Electronics > Beginners
Reversing an output's polarity using a microcontroller
danners430:
Hey guys,
I'm looking to control a set of points on a model railway using a microcontroller. The point motors I'm using are controlled by reversing the polarity between the two power supply terminals on the point motor. Obviously easy to do using a simple DPDT switch or a relay, but is there any other ways of achieving this?
The microcontroller runs off 5V, and the point motors off 15V.
Cheers guys
Sent from my ONEPLUS A3003 using Tapatalk
oPossum:
H bridge chips like the L293D. One L293D will do two motors.
http://www.ti.com/lit/ds/symlink/l293.pdf
danners430:
--- Quote from: oPossum on September 06, 2018, 09:02:10 pm ---H bridge chips like the L293D. One L293D will do two motors.
http://www.ti.com/lit/ds/symlink/l293.pdf
--- End quote ---
That looks sensible :-) never noticed these before! I'm guessing two things from that datasheet, firstly that they're voltage and not current driven, so the input pins can be connected directly to the MCU output, and secondly that they could also be used to drive two lead bi-colour LEDs (overkill, I know)?
Sent from my ONEPLUS A3003 using Tapatalk
oPossum:
Yes and yes.
danners430:
Perfect - many thanks :D
--- Quote from: oPossum on September 06, 2018, 09:16:02 pm ---Yes and yes.
--- End quote ---
Sent from my ONEPLUS A3003 using Tapatalk
Navigation
[0] Message Index
[#] Next page
Go to full version