Let's Make Robots!

Obstacle Avoidance Robot Car - Arduino

The robot moves avoiding obstacles and choosing the best way to follow by ultrasound.
AttachmentSize
IRremote.zip33.18 KB
Code_for_Obstacle_Avoidance_Arduino_Robot.txt7.38 KB

The programming code is attached here as a .txt file. Download it and paste the text on the Arduino compiler.
Remember to add the IRremote library (also attached to this post) to your arduino software before trying to compile the code! 

Further information about motor controller and IR receiver here:
http://adhocnode.com/arduino-irrecv-module/
http://arduino-info.wikispaces.com/IR-RemoteControl
http://adhocnode.com/motor-control/

I bought the robot from:
http://dx.com/p/arduino-compatible-bluetooth-controlled-robot-car-kits-146418

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Nice bot. Are you powering the motors with one 3.7v pack or do you have the two packs in series? 

Thanks! I´m using two 3.7 V batteries in series to power the Arduino board. Motors are powered by the Arduino 5V output

I got the same bot but from ebay this week. Could you please tell me where I should connect the wires of the motors for I don't know which two I should put together in MOTOR A and MOTOR B.

You must connect left motors together in MOTOR A and right motors together in MOTOR B. Be careful with their polarity. I´m posting 2 pictures of my wiring. Hope you find them helpful!

WHere do you connect the Black wire from the ground motor shield? On your second picture from your post on 2014-02-28 Thank you!

dupe

dupe

I got the same bot but from ebay this week. Could you please tell me where I should connect the wires of the motors for I don't know which two I should put together in MOTOR A and MOTOR B.

dupe

dupe