The project was conducted using the DE0 board, and programming was carried out in VHDL using Altera Quartus.
The robot was equipped with 8 IR sensors, but in the actual implementation, only 6 IR sensor data were utilized to compensate for sensor errors and achieve the final implementation.
The robot achieved a record of 21.57 seconds, securing first place in the class.

- For a single horizontal line, the robot is programmed to stop.
- For two thin horizontal lines, the robot implements a traffic light signal.
- For two thick horizontal lines, the robot activates an acceleration zone.
sensor
motorThe robot was equipped with a total of 8 IR sensors, but each sensor experienced significant noise, causing issues in accurately recognizing a horizontal line exactly once when passing over it. Upon debugging the robot's line detection counts through the DE0 board, it was observed that due to noise, the robot counted tens of values when passing over a single horizontal line. Initially, an attempt was made to reduce noise by manually adjusting the resistance values of the IR sensors, but the problem persisted. To address this issue, a method was implemented where sensor values were sampled only during specific time intervals in the control cycle. This approach allowed the robot to correctly recognize horizontal lines.