nus-wira / mBot

CG1111

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mBot

CG1111 2019/20 Semester 1

Get Started

  1. Build mBot according to mBot Report.pdf
  2. Compile and Upload main/main.imo to mBot

Feature List

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

Algorithm

  • 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

Acknowledgements

Professor - Ravi S/O Suppiah

Team Members -
Walter Kong
Wira Azmoon Ahmad
Wang Shuyi
Wang Zihao
Brendan Wan

About

CG1111


Languages

Language:C++ 83.8%Language:C 16.2%