Let's Make Robots!

ESC + L293 + Brushless motor

So, i've been having some trouble lately and I can't seem to find a solution on the web. I've managed to controll a brushless motor through and ESC and arduino with PWM. Nothing too dificult. What I need now is a way to controll an inversion of the motor. Like you know, changing two of the wires from the motor makes it turn the other way around. I have an L293 that I know can be used to invert a brushed motor, but i've got no clue on how to use it to switch two wires when given a logic input (while controlling the speed of it through the ESC), and on the other hand maybe current would be an issue. Basically what i'm searching is if it's possible to build a circuit to change the two wires at a given signal:

Basic state, input 0:
-ESC wire 1 ==> motor wire 1
-ESC wire 2 ==> motor wire 2

Input 1:
-ESC wire 1 ==> motor wire 2
-ESC wire 2 ==> motor wire 1

Don't know if such an inversion would work under load, but I don't see why not. And no, my ESC hasn't built-in inversion T_T.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

I fly a rip-off of an Easy Star plane and the motor is in a pusher configuration. Thus, I have done the two-wire-swap the few times I have replaced the motor.

The way I see it, your ESC is only going to get that motor going one way, therefor we cannot do any direction changing pre-ESC. Instead, the direction change has to be done between the ESC and the motor itself. I think you will physically need to swap those wires.

The easiest thing to do here would be to use a small, 5v DPDT relay. The relay will need a transistor (maybe a 2n2222 --or really, whatever NPN you happen to have) so the arduino can "click" it. --This is a pretty simple circuit really and can be found easily.

You drive around, with your PWM and ESC and when you want to go in reverse, you throttle down, make the "relay pin" high to click the relay, throttle back up and hey --you are going in reverse.

this is what I was thinking of. I'm using the arduino commander app so activation of the realy can be done very simple, just set the X-axis of the accelerometer in my phone to send a 1 when it is in "backwards mode". Thank you very much!