Sensing
Robots can be coded to sense their environments using sensors. Our mBot has two sensors.
Ultrasonic Sensor
This one is right at the front of the mBot
It uses SOUND to sense where it is
Infra-red Sensor
This one is underneath at the front
It uses LIGHT to sense where it is.
Ultrasonic Sensor
An ultrasonic sensor is like the eyes of mBot, which can let mBot know the distance from an object in front. The ultrasonic sensor measures in cm with preciseness to 1cm and maximum measurable distance to 400cm. Even though this sensor acts like the eyes of your mBot, it actually uses sound.
Discussion
What does sonic mean? What does ultrasonic mean?
What everyday things can you think of that sense sound?
On this presentation are the instructions to get your mBot to sense what is in front of it and react in the correct way.
Make sure you follow all the instructions carefully and be sure to take screen shots of your code as you do it so you can add it to your copy of the presentation.
Make sure you test any movement of your mBot on the floor so it doesn't fall off the table.
Flowchart Planning for loop on the Ultrasonic Sensor
You will be using a Google Drawing to create a flowchart for making your mBot sense when something is in front of it.
Infra-red Sensor
The line-follower sensor is below the robot, which consists of two sensors, Sensor 1 and 2, each consists of an infrared emitter and an infrared receiver. As it is often used to keep the robot moving straight, it is called a line-follower sensor. Its detection range is 1 to 2 cm
Discussion
What does infra red mean?
What everyday things can you think of that sense light?
On this presentation are the instructions to get your mBot to sense a black line that is under it and follow it.Â
Make sure you follow all the instructions carefully and be sure to take screen shots of your code as you do it so you can add it to your copy of the presentation.
Make sure you test any movement of your mBot on the floor so it doesn't fall off the table.
Flowchart Planning for Follow the Black Line
You will be using a Google Drawing to create a flowchart for making your mBot follow the black line.