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) : DOMaker UNO: A0
IR Line Tracking Module (Left) : GNDMaker UNO: GND
IR Line Tracking Module (Left) : VCCL298ND : 5V
IR Line Tracking Module (Right) : DOMaker UNO: A1
IR Line Tracking Module (Right) : GNDMaker UNO: GND
IR Line Tracking Module (Right) : VCCL298ND : 5V
L298ND : ENAMaker UNO: Pin 5
L298ND : ENBMaker UNO: Pin 6
L298ND : IN1Maker UNO: Pin 7
L298ND : IN2Maker UNO: Pin 9
L298ND : IN3Maker UNO: Pin 10
L298ND : IN4Maker 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)

Leave a comment