There are currently 0 users and 4 guests online.
An advanced line following robot with PID control
Advanced Line Following Robot - Step 3: The Mechanics
Submitted by Pratheek on January 3, 2010 - 12:40pm.
Nothing too complicated here. The robot uses differential drive as its steering mechanism. From my experience differential drive is one of the best steering mechanisms for line following robots. Almost all of the fast line followers I have seen use differential drive or a variation of it. It is easy to understand and implement and at the same time quite cheap (only needs two motors). And above all writing a PID control for the differential drive is both simple and easy. When the robot’s left or right sensor senses the line, the corresponding motor is slowed down and the robot stays on line.
The chassis is quite intriguing. The chassis is completely closed. All the parts – motors, circuit board, sensors – are placed inside the chassis. This is done so because by keeping the sensors enclosed in the chassis, you will be shielding them from any ambient light thus avoiding any interference from the surrounding light sources. With this setup, I can calibrate the sensors once at home and use the robot in outdoors, indoors and in the competition
The sensor board is mounted inside the closed chassis and is completely shielded by external light
This picture shows the plywood cut into pieces.
Then I drilled four holes to mount the L-Brackets to attach the sides.
The robot's base
The L-Brackets attached to the base.
The sides attached to the base.
The front piece is attached to the top through the hinge. The front piece is attached to the hinge so that, the front piece may be opened for calibrating sensors, changing batteries, etc.
I added a similar hinge to the back and attached the back piece as shown. Such an arrangement is made so that the back piece can be opened and the main circuit board can be accessed easily.
Then I drilled three holes of diameter 3mm at the back of the top peice and cut a 3cm by 8 cm peice for the LCD as shown in the next picture.
Note: As you can see in the picture, I have used polarized connectors for the DC motors. It is always a good idea to use polarized connectors for DC motors because if you connect them the other way around, then that motor will be turning back instead of turing forward and it will take a lot of time to figure out whats happening(this happened to me and it took me more than an hour to figure out what had happened. For more than an hour I thought there was some problem in the algorithm !)