This is the Github Repository to software of IDP team L104, which was developed between Lent Week 1 to Lent Week 4, 2024.
Figure 1: Connection between the Arduino and the sensors.
Figure 2: The ToF and Ultrasound sensors are placed in the front of the AGV for block and platform detection.
Figure 3: Position of line sensors viewed from bottom of the AGV. The front and back sensors are placed along the centre line of the AGV and the left and right sensors are placed along the axis of the wheels.
The code is composed of the following files:
main.ino: The main Arduino program uploaded in the final competition
BlockDetection.cpp and BlockDetection.h: Includes functions for block identification.
LEDControl.cpp and LEDControl.h: Includes functions for flashing the blue LED.
LineSensorCombinations.cpp and LineSensorCombinations.h: Includes all the possible line sensor combinations.
motorControl.cpp and motorControl.h: Includes functions that controls the motors for wheels, the lifting mechanism, and the servo for the claw.
Pathfinding.cpp and Pathfinding.h: Includes functions for following the assigned paths, finding the block, and finding the platform, as well as basic controls for the industrial zone.