Sunday, February 26, 2012

Mod Part 1

Conversion wiring diagram


Pin
Item
from
To
color
other

Arduino
5V pin
Breadboard
Red
5V Power Rail

Arduino
GND
Breadboard
Black
GND Rail
PWM 7
servomotor
Servo
Arduino
white
Steering communication

servomotor
Servo GND
Breadboard GND Rail
Black
GND

servomotor
Servo Power
Breadboard Power Rail
Red
5V.
Digital 30
H-bridge
ENA
Arduino
Blue
Enables motor controller
Digital 52
H-bridge
IN1
Arduino
Orange
Spins dc motor one way
Digital 53
H-bridge
IN2
Arduino
Green
Spins dc motor opposite way

H-bridge
MOT DC
Battery +
Red
(6-35)V

H-bridge
MOT DC
Battery -
Black
GND

H-bridge
MOT 1 (+)
car
Red
Power

H-bridge
MOT 1 (-)
car
Black
GND

H-bridge
5V-Power
Breadboard  5V Power Rail
Red
Power

H-bridge
GND
Breadboard GND Rail
Black
GND














Making Servo ext. cable:
1.      Snip male end off

2.      Separate the 3 cables (B,R,W)

3.      Strip 3 wire ends

4.      Twist bare wire together

5.      Place 1 peace of heat shrink on each set of cables

6.      Dip wire ends in flux

7.      Tint all 6 wire ends

8.      Solder 3 connections servo ext cable to other wire

9.      Place heat shrink over connection

10.   Melt heat shrink



Findings:

·        Car was responding to embedded program as expected.

·        H-bridge: 

o   Mot DC plug can handle 6-35v

§  Battery wire melted instantly with 22gage. It had 10v coming from battery connected
§  Made new cable 18 gage, work beautifully

o   Heat sink gets extremely hot when powered on (don’t touch)

DC Motor code

/*      digitalWrite(52, HIGH); //forward yellow light on H-bridge
          digitalWrite(53, LOW);
*/

/*      digitalWrite(52, LOW);  //reverse red light on H-bridge
          digitalWrite(53, HIGH);
*/



Accomplishments of the day:

·        Car mods

o   Servomotor ext cable made

o   Added 2 additional cables from DC motor (+,-)  on car; for micro controller to provided power to DC motor through H-bridge

o   H-Bridge extra battery connector made 18gage with red connector ends

·        Steering   

o   Tested servo code

§  rotate wheels from 0-180 degree in increments of 20 degree

·        Program Arduino to drive the car in a circle

o   front wheels set to 20 degrees and constant power in forward motion


Mod still not done

o   We need to figure out a way to secure the three components on the car:

o    Arduino,

o   Breadboard

o   H-bridge

o   Sensors

Naseem soldering

cables connecting Arduino to H-bridge (chart above for color coding)
Nathan connecting cables to H-bridge

H-bridge cable after first test


gage of wire to small.

Video of test car going around in a circle at constant speed.
wheels are set  20degree to the left

1 comment:

  1. Very good --

    We could get an enclosure to put the electronics inside but need to know what we can put on the chassis and how big we need the box to be.

    what is next?

    ReplyDelete