This project is a simple line follower robot, where in we used the 4Duino-24 as the controller of the robot or rover. The rover will be on track of the line with the IR sensor giving the direction moving forward, left, right, reverse and stop.

 How it works

lineFollower

 Components

  • 4Duino-24
  • 3 Infrared Sensors
  • Motor Driver
  • 2 DC Motor
  • A robot Chassis

Implementation

Step 1: Build

Build the circuit as shown in the diagram.

LineFollower1_bb

Step 2: Program

Workshop 4 – 4Duino Extended Graphics environment is used to program this project.

Workshop requires that the Arduino IDE installed as it calls the Arduino IDE for compiling the Arduino sketches. The Arduino IDE however is not required to be opened or modified to program the 4Duino.

Open this file using Workshop 4.
line

 

Note: Download the project here.

Step 3: Compile

Click on the “Compile” button.

compile

Note: This step could be skipped. However, compiling is essential for debugging purposes.

Step 4: Comms Port

Connect the 4Duino to the PC using µUSB cable.

comms

Then navigate to the Comms tab and select the Comms port to which the 4Duino connected.

Step 5: Compile and Upload

Go back to “Home” tab. This time, click on the “Comp’nLoad” button.

comp n'load

Workshop 4 will prompt you to select a drive to copy the image files to a uSD Card. After selecting the correct drive, click OK.

The module will prompt you to insert the uSD card.

Properly unmount the uSD Card from the PC and insert it to the uSD Card slot of the display module. The image below must appear on your display after completing the steps above.

After uploading, 4Duino will start running the code.

centerGui    rightGui

reverseGui  leftGui

stopGUI

Demo

DSC_0143DSC_0141DSC_0153

Flow Chart