Raspberry Pi Robots – Line Following – Episode 3

Robots… Robots… Robots… Everyone loves robots. Not a single person doesn’t. Fact. They are awesome. And here’s how to make your own one!

Welcome to Episode 3 of my latest Robots series! In this video I will show you how to make a robot follow a line all by itself. By the end of this video you will understand a Python program and be able to introduce another line following bot into the world in order to aid my plans of complete domination. Anyways! Watch the above for all the details.

INFORMATION (Chronological order):

First episode (Episode 1 – Basic Motor Control): https://www.youtube.com/watch?v=rESbe…

Second episode (Episode 2 – Obstacle Avoidance)

Pi2Go-lite: http://4tronix.co.uk/store/index.php?…

Panasonic Eneloops: http://www.amazon.co.uk/Panasonic-ene…

Recently price cut Model B+: https://www.raspberrypi.org/price-cut…

My WiFi dongle: http://thepihut.com/products/usb-wifi…

My GitHub repo: https://github.com/the-raspberry-pi-g…


1) Navigate into the correct directoy (from the default one) with the command: cd robot/pi2go
2) Update the robot software in order to grab the latest program, line_follower.py. Use the command: git pull
3) Look at the program with the command: nano line_follower.py
4) RUN the program with the command: sudo python line_followerr.py

Thank you for watching! Make sure you stay tuned by subscribing! Don’t forget to like, share and comment!

The Raspberry Pi Guy


3 comments on “Raspberry Pi Robots – Line Following – Episode 3
  1. Tomas says:

    what are the resistors that you have attached to TCRT5000?
    Do you use 5 V or 3.3 V?


  2. Chetan says:

    wish you could share line follow and obstacle both together code.
    While following if obstacle detects stop.

1 Pings/Trackbacks for "Raspberry Pi Robots – Line Following – Episode 3"

Leave a Reply to Tomas Cancel reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.