fixed battery charger.
started to program a pathfing algorithm.
ping sensors report distances in inches from left and right. so i was attempting to program if it recieves a signal closer to the left side the car would move right. if the car recieved s signal closer on the right side it would move left.
need to figure out how to change speed, because its picks up speed fast. front left sensor need to be screw back on. fell off when test code.
Sunday, March 25, 2012
Saturday, March 24, 2012
was able to write code to recieve distances from all 3 parallax ping sensors to display in terminal. worked on presentation.
need to figure out how to get car to go in reverse. wanted to test other h-bridge because i thought my code should run properly. however when i plug the spare h-bridge up. i switch 2 cables and it fried the board. Also, the end came off the battery charger so i need to fix that as well.
need to figure out how to get car to go in reverse. wanted to test other h-bridge because i thought my code should run properly. however when i plug the spare h-bridge up. i switch 2 cables and it fried the board. Also, the end came off the battery charger so i need to fix that as well.
Monday, March 19, 2012
testing
able to test some code on the car tonight.
all compants are working as they should. everything is wired up correctly.
able to get code to read input distances from sensors and report them on a consol on my laptop for testing perposes.
code i wrote tonight goes in a circle clockwise one rotation and then heads in a straight line, then a shallow left turn. then repeats.
all compants are working as they should. everything is wired up correctly.
able to get code to read input distances from sensors and report them on a consol on my laptop for testing perposes.
code i wrote tonight goes in a circle clockwise one rotation and then heads in a straight line, then a shallow left turn. then repeats.
Sunday, March 18, 2012
Velcro for sensor mount
Car w/o body
sensor mount
Center sensor (3 pin parallax)
Right + Center sensor
Right + Center + Left
3 pin parallax ultrasonic sensor
Base car + Sensors
Car + Arduino
Car + Arduino box cover
Car + Arduino box cut out for wires
Arduino box with spacers
lexan mounted to Arduino box spacers,
breadboard on lexan,
4 spacer on lexan for h-bridge
2 spacer on right for switch pannel
H-bridge mounted
switch pannel mounted
rear DC motor connected to MOT1 on H-Bridge,
Switch 1 connected to H-bridge and 9.6 battery,
Switch to 2 connected to Arduino and 9V battery
H-bridge wired to Arduino,
Arduino out 5volt power to breadboard to power servo + Sensors,
Steering servo wired to Arduino through breadboard,
3 ping sensors wired to Arduino through breadboard
Rear spoiler added for looks!
Car conversion complete, and ready for code.
Note:
Should have one more quick disconnect between DC motor and H-bridge and stronger velcro to hold Arduino box
Sunday, March 4, 2012
switches
I wired up 2 switches today.
One switch was for the arduino
board. And the other one was for the big H-bridge.
I can not use a single switch
because we have two different battery sources
I tried to test out the small h-bridge. There is no input
for an extra battery supply. I gave it the required 5v it says it need to run.
However it does not even turn the DC motor. I used the same code as the Big
H-bridge when the car was running in a circle. I need to investigate farther.
Subscribe to:
Posts (Atom)