Pages

Friday, June 4, 2021

Being a Jedi in Coding

 LI: To cde the robot to move backwards without touching it.




My robot will wait until I have pressed the on board button before I have done anything. We used an 'if'. 'then'. 'else' as this gives the robot two choices of things to do. We are using the ultrasonic sensor on the front of the robot to sense if there is anything within the 10 cm radius.  if there is something in 10cm  of in the robot or less than the robot will move backwards if not the robot will move forward, this is than put into a forever block that constantly reapeats itself trying to sense if theres anything within 10cm.

No comments:

Post a Comment