DC Motor driver
Finally! I receive the last shipment with all the electronic stuff.
The first task was to install batteries and build the regulated power supply. After a few trial, I decided to change the layout a little bit. I switch the direction of motors / gear box to make more room under the chassis and installed the 6 AA battery pack under the board, between the motors and the ball caster. See the drawing below for the updated layout.
The result is a much more stable robot. The center of gravity is lower and in the middle of the contact points. I am not an expert in mechanics, but I think this is the ideal situation
I also inverted the front and rear of my bot. The front side is the one the top of the above picture.Why? This way, the longest part of the bot will be in front of him and it won’t bump on something unexpectedly when the bot is turning. This is an advice taken from the forum of Society Of Robot. Makes sense to me!
The battery pack delivers 7.2V, way too much for the low voltage motors of the Tamiya gear box. I used a LM7805 to stabilize the output at 5V. A little bit over the maximum voltage accepted by the motors (4.5), but I will use PWM to reduce it. See the schematic for the details.
The next step was to build the the motor driver, based on the SN754410 chip by TI. The schematic shows all the details. D7 between the Arduino board and the driver prevents the current from flowing back to the driver when the Arduino is plugged to the USB. Here is a picture of the implementation on breadoard:
I also added a general purpose swicth (with pull-down) and a reset switch (easier to use than the on on the Arduino board). Below is a picture of the bot in its current state:
Next post will be about the software to drive the motors.









