Bukit Mertajam, Penang

Line Following Robot

So we have successfully build Bluetooth Mobile Robot and An Obstacle Avoiding Robot. Now, let’s try to turn this robot to a “Line Following Robot” by adding an IR Line Tracking Module to it. This robot will follow any line . Just follow this tutorial to know more ­čÖé

Hardware Preparation

This tutorial use :

  1. Maker UNO Bluetooth Robot Kit
  2. IR Line Tracking Module x2

You can make the hardware connection based on the diagram and table below.

Connection
IR Line Tracking Module (Left) : DO Maker UNO: A0
IR Line Tracking Module (Left) : GND Maker UNO: GND
IR Line Tracking Module (Left) : VCC L298ND : 5V
IR Line Tracking Module (Right) : DO Maker UNO: A1
IR Line Tracking Module (Right) : GND Maker UNO: GND
IR Line Tracking Module (Right) : VCC L298ND : 5V
L298ND : ENA Maker UNO: Pin 5
L298ND : ENB Maker UNO: Pin 6
L298ND : IN1 Maker UNO: Pin 7
L298ND : IN2 Maker UNO: Pin 9
L298ND : IN3 Maker UNO: Pin 10
L298ND : IN4 Maker UNO: Pin 11
Figure 1 : Hardware connection

Sample Code

This is the sample code used for this tutorial. Try it!

Thank you

Thank you for reading this tutorial and we hope it helps your project development. If you have any technical inquiry, please post at Cytron Technical Forum.

Comments (2)

You’re welcome.

Leave a comment