2020-07-08 05:26 PM
Hello~ my friends.
For rotor speed calculation, I have two problems
These above question make me curious. So, if you know, please tell me know. Thank you so much.
Keep your safety in Covid-19.
Best regard.
2020-07-13 12:30 AM
Hi,
Let me try to better explain how the conversion between the two speed format is performed.
In formula 1, you have the definition of a dpp unit:
Electrical angle is expressed using a 16 bit integer (i.e. 1 rad = 65536) and the FOC frequency is used as timebase. This is your new "unit" for the speed calculations.
In formula 2, you have the conversion between the two units, let me split it in two intermediate conversions:
[dpp] = 65536 / FOCfreq [rad/s] --> 1 rad per second is equal to 65536/FOCfreq dpp
[rad/s] = 1/10 [rad * Hz/10] --> 1 rad by tenth of Hz is equal to 0.1 rad per second (i.e. rad by Hz)
then
[dpp] = [rad/s] * 65536 / FOCfreq = [rad * Hz/10] * 1/10 * 65536 / FOCfreq
All these unusual formats allows integer calculations instead of fixed point or floating point ones.
2021-06-29 03:41 PM
Hi Enrico,
I saw this reply from a year ago and wanted to ask a related question. In my sensorless application driving a BLDC I need the best resolution possible. I set the SPEED_UNIT to _001Hz but the feedback from the SPD_GetAvrgMecSpeedUnit procedure still seems to be in units rounded to 6. For example I can read 3059 and 3064 but nothing in between. I'm running a 6 pole-pair motor at nominally 30.5Hz and my requirement for speed variation is <2us p-p jitter. I'm finding it quite challenging ;)
I'm using a STM32G431 48-pin device with a STSPIN233 using 5V on a custom board. My start current peak is about 700mA and my run current is typically 35mA peak.
For my speed feedback in procedure STC_CalcTorqueReference is SPD_GetAvrgMecSpeedUnit the correct procedure to use to get measured speed?
Thank you for consideration of my problem.
Thanks,
Brian
2021-07-05 01:04 AM
Hi @BTrem.1,
please open a new topic for your question.
I suggest you to post it in the STM32 Motor Control section.
Have a nice day.