1+ # CE243 Assignment 2
2+
13Your task is to design and write a C program to control an EMoRo robot. Your program should use the
24push buttons on its GLAM board to input commands and use its LCD to display messages.
35The functions of four buttons are specified below:
@@ -11,14 +13,15 @@ SW_4.
1113
1214These buttons will trigger the EMoRo robot to implement different tasks.
1315More specifically,
14- Pressing SW_1 triggers the EMoRo robot to move forward and avoid any obstacle
16+ - Pressing SW_1 triggers the EMoRo robot to move forward and avoid any obstacle
1517detected by its on-board sonar sensors.
16- Pressing SW_2 triggers the EMoRo robot to move along a circle track which is
18+ - Pressing SW_2 triggers the EMoRo robot to move along a circle track which is
1719very smooth.
18- Pressing SW_3 triggers the EMoRo robot to move along a square track that has
20+ - Pressing SW_3 triggers the EMoRo robot to move along a square track that has
1921four sharp turns at 90 degrees.
20- Pressing SW_4 will stop the movement of the EMoRo robot and reset the
22+ - Pressing SW_4 will stop the movement of the EMoRo robot and reset the
2123embedded computer for next button input.
24+
2225LCD: All messages should be displayed on the LCD device on the robot.
23261 ) When the robot is switched on or after SW_4 is pressed, the LED should
2427display the following message:
@@ -31,4 +34,4 @@ the robot is turning at the corners of the square track, the LCD shows Sharp
3134turning ** * degrees. When the robot moves along the straight line sections,
3235the LCD shows Square track following.
3336Libraries: You should use the EMoRo2560 library provided in Moodle to write your C
34- program.
37+ program.
0 commit comments