This is my first robot. It uses the Arduino Diecimila. It also uses a ping ultrasonic sensor to detect objects in front of it. For motor control I used the SN754410NE. I mounted the chip on a dip ic board, that I then mounted on a home made arduino proto shield. I use a 9 volt battery as the motor voltage source and 4 AA batteries as the Arduino voltage source. My goal now that I have gotten this far is to add a servo to turn the ping sideways and to add more to the program. Right now it only goes forward and reverse. I hacked a remote control truck for the wheels and used a piece of wood to mount everything on. I’ll post more details later. Pretty crude right now, but it’s taken me a while to get to this point. Thanks for reading.
Awesome! I like it, has a different look than I have seen on here, and it is a good one. Also, props on the Coke can, good to see Soda/Pop/Cola (depending on region) featured in a pic for once.
**Hail to the COKE can! ** Hail to the COKE can! Looks good. I think you might find that you want to point that ultrasonic sensor down some. It doesn’t really do the robot any good to see obastacles above it. Keep it up!
Thanks for the positive feedback. The ultrasonic sensor will point lower, except that the harness I used isn’t long enough right now. I have a pir and some ir sensors I want to add, but I’m learning as I go since I never programmed in C language before, only ladder logic. Actually, I have a question for the LMR members out there, I’m having trouble coming up with the program for the servo to make it continuously turn from 0 - 180 and back again. Similar to Frits’ pic programming but only in Arduino language, or C+. I already learned how to control the servo with a potentiometer, and also to go to a certain angle, but not like I described from 0 - 180, and back again, repeat… If anyone has any ideas, I’ll try them out and post my success or lack thereof. Peace.
One thing to look at to One thing to look at to control the motor a little smoother is using the pwm. It’ll let you ramp up and down the speed a little smoother. it’ll cut down on the spiking when you change from forward to reverse.