Friday, 4 June 2021

Tech Reflection

LI: to code the mBot into sensing objects infront of it




For Tech we were continuing our learning with coding with Mrs Ferguson. This week we were learning about Ultrasonic Sensoring, so we coded our mBot to sense something infront of it thats maybe 10cm or 50cm infront. When it senses an object thats infront it moves back, and when there is no object infront that it can sense it will keep moving. The coding blocks IF - THEN- ELSE gives the mBot to options to act on. We then used the Ultrasonic Sensor on the front of the robot to sense if something is infront of it in a certain range (10cm, 50cm etc). 

No comments:

Post a Comment