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
- 3 Infrared Sensors
- Motor Driver
- 2 DC Motor
- A robot Chassis
Build the circuit as shown in the diagram.
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.
Note: Download the project here.
Click on the “Compile” button.
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.
Then navigate to the Comms tab and select the Comms port to which the 4Duino connected.
Go back to “Home” tab. This time, click on the “Comp’nLoad” button.
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.