Your mission is to build and program a robot that will delivery cargo to a specific location.
The location is a square of color on the floor.
When the robot detects the color green, it will stop and drop off the green package by moving a servo.
When the robot detects the color yellow it will stop and drop off the yellow package by moving a servo.
The goal will be for the robot to drive in a straight line until it reaches a color. Then it drops off that cargo before driving straight to the next color.
Resources:
wiring a continuous servo (moves the robot)
wiring a standard servo (delivers the cargo)
wiring the color sensor
You will need:
-Arduino
-color sensor
-lots of wires
-one servo for each delivery door – these should be standard servos
-two continuous servos to make it stop, start and turn
-click here for starter code.
Coding:
You will need to modify the code:
-so that it recognizes the color square and moves the correct servo.
-so that the continuous servos stop at the color square to drop off the cargo.
-so that the robot starts moving after the cargo has been dropped.
-so that the standard servo opens and closes when cargo is being delivered.