NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Everything Else » switching power to ground
September 07, 2010 by Quinnifir |
hi my names Quinn and i have a science class where im building a remote control car. i need to know how to make the car reverse by switching the power to ground and the ground to power. thank you! |
---|---|
September 07, 2010 by Ralphxyz |
Hi Quinn, look at the Digtal Scale code. Some thing like this without the printf_ of course:
I make no promises as I have never done this with a motor but it seems as though it should work. It does reverse the polarity. Of course you will need to watch the current load if you are driving the motor with the MCU. You could wire it up using some transistors, drive the transistors from pins on the MCU, start by lighting a LED one for forward and one for reverse. Look at the Motors and MIcrocontrollers Tutorial 101 Let us know how you make out, one of these days I have to do something with a RC car and will need your help. Ralph |
September 07, 2010 by Rick_S |
Probably one of the most common ways is through the use of what is called an "H-Bridge" this is esentially a set of driver transistors that will do the reversal based on an input. Here is a link to a fairly common lower current IC H-bridge. You can also build your own using discrete components (transistors, resistors, diodes). Do a google search for H bridge and you'll find more info than you can shake a stick at. Rick |
Please log in to post a reply.
Did you know that you can see each keypress on a computer keyboard on an oscilloscope? Learn more...
|