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). 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
Would it be possible with a single L293 or is there any other way to do it?