Arduino project 57- Obstacle avoiding robot using Arduino

How many times have we wished to have a robot that goes around the house avoiding obstacles? Creating this project with Arduino Uno, an HC-SR04 module and two wheels will take us to be a child.

The robot is able to avoid obstacles, thanks to the ultrasonic range finder sensor that senses obstacle coming on its way. The robot is equipped with two motors. As soon as it perceives an obstacle in its path, it blocks one of the two wheels, thus allowing to turn around and avoid bumping.

There are several robot chassis available on Ebay. You can buy something similar to shown below:
First, we mount the circuit like the following diagram, if you do not use the BC547B transistors and want to use other types of transistors I suggest you take a look at the datasheet of the component you are going to use. You should compare the details and use a suitable one.
The wiring diagram:
After having assembled the components on the breadboard and connected everything, all that remains is to insert the sketch on Arduino through the IDE updated to the latest version. The code is as follows:

How to assemble a line following robot – Page 1

The assembly of a line following robot is pretty straight forward. If you follow the silkscreen labels, you will be able to assemble it easily.

The line following robot comes with the components as shown on the image.

Start with resistors

Solder all the resistors that comes with the package.

Solder the transistors S8550

Solder the 5mm red LED. Make sure that the Anode and Cathode go into the right holes.

 

Solder the 100uF capacitors.

Solder the variable resistor 10K ohm

Solder 8 pin DIL socket

Solder wires on robot motors

Peel off the sticker and stick the motors

After sticking the motors, the robot should like this:

Make sure that the motors are soldered on the PCB solder pad.

See the remaining part of this tutorial on the next page.

How to assemble Magician Chassis

Check out similar robotics chassis at Buildcircuit store

Sparkfun.com has recently released a simple, easy and useful robot platform for robotics amateurs. It is called “Magician Chassis”. You can use the chassis for different kinds of robots, for example, line sensing, obstacle detecting and smart phone controlled robots. I have recently published an easy project about smart phone controlled robot. I have also used Magician Chassis on my project. I recommend this chassis for robotics amateurs and novices because it is cheaper than other products I have known. You can use it for learning and experimenting the basics of robotics.

(more…)

Search for products

Back to Top
Product has been added to your cart