2017-08-19 04:34 AM
debugging motor in open loop mode
#define OPEN_LOOP_VOLTAGE_d 6000 /*! < Three Phase voltage amplitude in s16 format */
If I want to output a fixed voltage value, how to determine the S16 value
?PhaseVoltage(V) = [PhaseVoltage(s16V) * Vbus(V)] /[sqrt(3)*32767].
If I want to output a fixed voltage value, how to determine the S16 value?
2017-08-24 06:50 AM
Hi,
I think the value is defined as duty-cycle of the PWM applied to the motor in a 16 bit format.
0 --> 0 % of duty-cycle --> no voltage applied
65535 --> 100 % of duty-cycle --> 100% of the bus voltage applied to the motor
6000 --> 6000/65535 = 0.0915 = 9.15 % of duty-cycle --> about 9% of the bus voltage is applied to the motor
You can easily check it with an oscilloscope
2017-08-24 09:47 AM
I tested, S16V maximum is 32767, but how can not calculate
2017-08-25 08:43 AM
Ok, so you already have the answer.
Vphase = Vbus*OPEN_LOOP_VOLTAGE_d/32767
This will be the peak value of the the sinusoidal voltage applied to the motor.
2017-08-26 05:15 AM
Now understand, thank you!