Reverse Function – White Line Following
The reverse function was used during the white line following test to help the micromouse detect and respond to the ring’s edge. When the white line was detected, the robot reversed using its rear sensors and moved away from the edge. A constant 20-second timer triggered direction changes, resetting each time it switched, to show the robot could follow the line both forward and backward. The test was manually stopped and was not used during actual matches.
Comparator
The comparator was implemented in Arduino IDE to detect the white edge of the ring using four LDR sensors. Each sensor’s voltage reading was compared to a fixed threshold value, and the code allowed for automatic calibration before engaging combat by hovering over the line and pressing a one of the touch sensors to adjust each LDR sensor to the current environment. If a sensor reading exceeded the threshold, it signalled that the micromouse had reached the edge, preventing the robot from crossing the boundary during testing.
OLED Display
The OLED display was used to show various modes and settings for the micromouse. It displayed a menu with options such as Combat Mode, Line Following Mode, and more, each represented by an icon /emoji to visually indicate the current mode. The OLED display allowed users to easily navigate between modes. The corresponding icons ensured that the micromouse was in the correct mode, improving usability and quick mode selection.
Shell Design
The shell design was manually made using the same material as the extension for the touch bars. The shell served as protection for the MM and ensured it’s saftey.