LI: To become a coding jedi, by trying to control our mbot's directions.
My robot will wait untiol I have pressed the onboard button before it does anything.
We used an "IF - THEN - ELSE" block, as this give the robot two choices of things to do.
We are using the ULTRASONIC SENSOR on the front of the robot and we need to sense if something is 10cm in front of it wil move backwards. IfF something is NOT less than 10 cm of the robot, it will move forward (ELSE). Thisis all put into a forever block so that the robot constantly senses what is in front of it.
No comments:
Post a Comment