Ok so this is the first Arduino project I have attempted, a simple object avoiding robot.
For the Arduino board I am using an Arduino Uno and for the sensor I am using a LV-MaxSonar-EZ3. I have pulled an old remote controlled car apart to use it as a motor control board (basically a simple duel H-Bridge). You can see the picture below.
I looked online and found the data sheet regarding the logic chip included in this board which has allowed me to isolate the 4 motor control lines and a common line. I have then cut the motor control lines (1,2,3,4) so I can use the Arduino to control the motors.
When I connect a 9V poer supply to the positive and negative leads (as seen in picture) and run a wire from the common to lead 1, it makes the motor spin, going to lead 2 spins it the other way and the same happens for leads 3 and 4.
The voltage going through leads 1,2,3,4 is 2V.
At first I was going to set a separate pin on the Arduino board for leads 1,2,3,4 which would then act as a switch to choose which line was active (needs to at once to go straight). However this brings about a problem with where to run the common.
My question is, can the Arduino be run straight to point 5,6 and the same places on the other H-Bridges (8 in total) and use the output from the Arduino board, along with a 1K resister for protection, straight to these points, opening up the transistor allowing the 9V's from the battery to run straight to the motor. Or would a ground lead need to be incorporated somewhere.
If you guys can see any other way of doing this it would be GREATLY appreciated.
Thank you in advance.
Ps, here is the topside of the board,