I'm controlling a brushless motor using a raspberry pi. I use servo pulsess to control my motor. But i also need to turn it in the reverse direction. To do that, I have no idea what to do. Some say that the ESC may have options about it but I have no idea. Also, i need to reverse it by code, by not having to restart the esc. I know that when I switch to cables of the motor, the motor reverses direction. But I don't know how to switch it automatically by code.

Waiting for help :)


  • \$\begingroup\$ generally to reverse the direction would require reprogramming the ESC to a bidirectional firmware, so instead of the servo pulse train controlling 0-100% it is -100-100%, \$\endgroup\$ – Reroute Aug 25 at 9:55
  • \$\begingroup\$ Welcome to the site. Are you saying that you've persistently searched the Internet for information on reversing DC motors and then bi-directional DC motor drivers and found nothing? This is will be detailed there far better. Please realise that this is not a free design house or online technical encyclopedia, copied out to you on demand. People will help you take the next step if your question shows that you've done as much as you possibly could on your own - which yours doesn't, I'm afraid. Had you searched this site for DC motor and gone through previous answers? \$\endgroup\$ – TonyM Aug 25 at 9:57
  • \$\begingroup\$ H Bridge comes to my mind instantly. Is that an option to consider? \$\endgroup\$ – Umar Aug 25 at 10:26
  • \$\begingroup\$ Which ESC do you have? \$\endgroup\$ – Bruce Abbott Aug 25 at 10:27
  • \$\begingroup\$ It's all down to the eSC. Some have a way of programming the initial direction, involving a powercycle, followed by a specific sequence of speed commands (servo pulses) while listening for beeps from the motor. You need to read the ESC datasheet. If it can do this, you need to reproduce that sequence. \$\endgroup\$ – Brian Drummond Aug 25 at 14:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.