Total 5 stage for this project. At the start and the end of each stage, car will use XBee to send the message to host.
Use opencv to detect the black line. By using line regression, the camamra can know the car should be fixed to right or left. Use ping to detect the distance from apriltag to car. if the distance is shorter than 50cm, the car stop.
Turn the car into opsite direction.
Use opencv to detect the Apriltag and fix the direction of mbed car. The tag I used is 36h11. Use ping to detect the distance from apriltag to car. if the distance is shorter than 40cm. Start stage4.
Turn the car to right 90 degrees.
Use opencv to detect the Apriltag and fix the direction of mbed car. The tag I used is 36h11. Use ping to detect the distance from apriltag to car. if the distance is shorter than 20cm, the car stop.
https://drive.google.com/file/d/1GdKmn7OBhSV7CJoYXWyjml_q45apzYUz/view?usp=sharing