Hello everyone i make a project where i move an rc car with arduino mega.
I use an H-bridge for back motor with controls front-back and the speed.
For the front motor which has 2 wires and i guess i will need to send 1-0 for left and 0-1 for right .. how should i connect them to my mega pins; WIll i need an second bridge ; I ask cause i dont know if it can burn my mega pins.
The rc-car have an 6Volt battery
Most likely you will need another h-bridge for the motor.
I assume (without having any other information from you about the car) that the RC car you are using is some cheap toy vehicle? If so, then it simply uses a small toy motor for the full left/right actuation of the steering (this is called "bang-bang" control - since the motor turns the steering against the stops).
You need to measure the amount of current this motor consumes when it is actuated against the stops (this is called the stall current), and you will need an h-bridge with a continuous current output rating greater than this amount (at least 15-20% would be ideal). Likely you can get away with something low cost, because the stall current will likely not be greater than 1-2 amps (if that).
Again - note that this control doesn't allow you any kind of "proportional" angle of steering - just full-left and full-right control. If you need or want proportional (where you can smoothly vary the angle from center to full-left, right, or anywhere in between) - you will need to replace the current actuator with an actual RC servo; doing so can be fairly easily done, but may require a bit of mechanical ingenuity in order to properly locate and connect up the servo to the wheels to steer them properly.
In regards to the current actuator, though, I must ask why you didn't just keep the RC receiver and interface to that, as it has on-board all the h-bridge and other controls needed for the car? It wouldn't be as easy to hack this, but it might have saved you a bit of money (unless it was already broken in some manner of course).
Also - have you read through this thread?
http://forum.arduino.cc/index.php/topic,86883.0.html
It might not help you now if you have already removed the RC receiver (or if it was broken), but you might want to bookmark it for the future...
Good luck with your project!
Yeah its a cheap only, about 9 euros. The H-bridge for control speed and back/forward working perfect.The H-bridge made with IRF530 and IRF9530.. but i have also avaible an dual H-bridge. You think i just use the bridge and done ;
About replace it with servo..yeah the mechanic changes may not be right and have issues