Hi , iam trying to understand the controlling of Brushless motor .
Main problem that i did not understand is this code , esc.write(0);
i know this code is to write value to esc Ok but what is the value that we pass is it the voltage ? or is it the amperes or what ?
How can i add value that works with full power to my motor
The value that you pass to the write() function would be an angle between 0 and 180 degrees if you were controlling a servo. When controlling an ESC it is interpreted as the speed of rotation of the brushless motor
As with the servo the range of values is 0 to 180, 0 being the slowest and 180 being the fastest
Note, however, that some ESCs require an arming process to be carried out before the motor will start and that there may also be a calibration process if you wish to have the speed of 2 or more motors to be matched
Hi , thanks for your answer so for servo motor if i want to move the angle of motor i use value from 0 degree to 180 degree maximum ,
And for the brushless motor wich is more important for me , I have to pass the KV for example : i have brushless motor with 1000Kv and it take maximum volt 12v and 10 amperes how can i calculate the maximum value and pass it using esc.write(maximum_speed)
On many ESC designs stopped is something above zero PWM. Perhaps anything < 5%, and max speed is often something like > 95%. This is because the internal circuitry cannot sense the % PWM it no signal change is present. For instance, at 0% is it 0% or a broken wire.
ESCs, in a broader sense, are PWM controllers for electric motors. The ESC generally accepts a nominal 50 Hz PWM servo input signal whose pulse width varies from 1 ms to 2 ms.
The duty cycle comes nowhere near 100 percent. 50 Hz is a pulse every 20 milliseconds.
Modern ESCs do take control,signals other than standard servo style PWM, but they do respond to old school,waveforms.
For servo's I agree. As this was just a speed controller I didn't know if the same applied. I know some DC speed controllers work with 10% to 90% input control.