We have a robot ready which is autonomous that detects the wall by 40 cms and takes decision to turn around. Now, its time to build line follower robot. We are going to add two Infrared sensor to the robot so that it can follow black line.
Making Pi Robot – Line Follower
- Adding IR Sensor Module to Raspberry Pi Robot
- Programming Line Follower Raspberry PI Robot with Python
- Final Line Follower Raspberry PI robot in Action
If you have missed my previous tutorials series go back and first build a basic robot with Pi. Here is the step by step guide:
Step by Step Tutorial to build basic Pi Robot
- Understanding Raspberry PI and Robotics
- Assembling Raspberry PI Robot and all electronics
- Programming Raspberry PI Robot with Python
- Final Raspberry PI robot in Action
Time to add eyes that looks for black line and make it’s own decisions!
Final Outcome – The Inspiration!
Testing on Most complex track
- Line Tracker Module Based On TCRT5000L
- 2 pairs of 1k? Resistor and 2k? Resistor – you can get from local electronics shop. It is very cheap. Other option is to get kit of resistors so that you can use for multiple projects.
- Jumper Wires – We are going to use only few but purchasing like this will help in other projects also
- Breadboard – I have hooked up breadboard in middle of the robot so that I can create many circuits without need to solder it. I can also build multiple robots using it.
|1||Line Tracker Module Based On TCRT5000L||$4|
|2||Resistor kit(optional – not needed if you already have it)||$1|
|4||Jumper wire kit(optional – not needed if you already have it)||$6|
|5||Breadboard(optional – not needed if you already have it)||$5.69|
In actual it costed me around Rs. 240/ – in INR as I already had other parts.
We are going to hook up IR Sensors as shown below. Here there will be two IR Sensors in each module. One will transmit IR light and other will receive it. We have to calibrate sensor in such a manner that when black tape is there beneath the sensor it doesn’t reflect back the IR light(As black doesn’t reflect back). We will use this core logic for sensing and programming the line follower robot. Here is how you can hook up both pairs:
Line follower tracks
You can create track by using black cello tape which is normally used in electrical/electronics sealing. Some tracks that I created are as shown below: