CG1111 2019/20 Semester 1
- Build mBot according to
mBot Report.pdf
- Compile and Upload
main/main.imo
to mBot
General Movement
- IR Sensor (wk 9-2) – detect walls at side
- Built-in Ultrasonic Sensor (wk 10-1) – detect wall in front
- Programming – forward movement and readjustment
- Programming - IR Callibration
Waypoint Challenges
- Built-in IR sensor - detect waypoint / black line
- Built-in LDR Detector (wk 9-2) – detect colour on floor & ceiling
- Sound Detector (wk 10-1) x2 – filter & detect frequency of sound
- Programming - turning
Finish
- Speaker (makeblock) – play celebratory tune
- Loop: Check for waypoint
- Yes: Check for colour
- Yes: Move appropriately
- No: Check for sound
- Yes: Move apppropriately
- No: Finish
- No: Check for front wall (failsafe)
- Yes: Check side wall - right wall present?
- Yes: Turn left
- No: Turn right
- No: move forward
- Yes: Check side wall - right wall present?
- Yes: Check for colour