Robot Follow Indicated Color Road

by cristinepotu7171 in Circuits > Arduino

498 Views, 2 Favorites, 0 Comments

Robot Follow Indicated Color Road

coloratul.jpg
Robot Follow Indicated Color Road

How to make a follow indicated color road, with Arduino, color sensor TCS3200, infrared module and ultrasonic sensor

Supplies

86b82cf4525bc903dbe08a3b50bf47eed4fa476d_original.jpeg
download (1).jpg
xczxc.jpg
l298n-punte-h-dubla-dual-h-bridge-motor-dcsteppe.jpg
7508995570f7963d4bea5f6019b94e24.jpg
images (1).jpg
images.jpg
1k-ohm-resistor__05927.1532890549.jpg
eng_pl_2WD-210mm-Car-Chassis-Robot-Platform-2-Wheels-2-Motors-Set-Arduino-566_1.jpg

1.infrared module x2

2.servo motor SG90

3.Arduino UNO

4.L298N dual bridge DC motor

5.RGB LED

6.TCS3200 color sensor

7.breadboard and wires

8.1k resistor

9.Car KIT Arduino

Schematic Diagram

ROBOT COLOR SCHEMATIC DIAGRAM.png
Make the connections of the components according to the diagram below


Wiring and Construction

IMG_20220527_100605.jpg
IMG_20220527_100502.jpg
IMG_20220527_100619.jpg
IMG_20220527_100616.jpg
In this step we make the connections on the wiring, assemble the components and check the correctness of the conections.
The device is also mechanically assembled


Upload Software and Calibrate Color Sensor

IMG_20220527_083836.jpg
IMG_20220527_083855.jpg
1.png
downloadV.png


we download and install Visuino software. We open the code from the attachment. We open another window in Visuino and load in Arduino with the calibration code. We enter a color under the color sensor. We read the values ​​as explained in the video and enter them in the robot code. You can find both codes in the attachment.


each color corresponds to 4 reading parameters as shown in the series. We enter the maximum value read and the minimum value. Values ​​are not critical. After reading the 4 parameters for all 3 colors, RED, GREEN AND BLUE, we load the code in Arduino.

We Build the Running Track and Start the Robot

snapshot80.png
snapshot79.png
snapshot78.png
snapshot77.png
I chose to build the route from black insulating tape and colored cardboard in red, green and blue. You can choose which colors you want, but you need to recalibrate the color sensor for them. Turn on the robot with the on / off button and insert the card with the desired route color under the sensor for a split second. The robot will start following the indicated route with two stops in places chosen by each one.
I hope you liked my project, whoever wants can leave a comment. All the best!