FIRST VERSION
The robot will react when the distance sensor detects the object at a distance of 1m. The robot will react with sound and light.
The main sensor will be the ultrasonic sensor. The activity will be developed as follows:
- The robot is guarding the room.
- A burglar enters.
- The mBot reports the intrusion by sending a message to the person controlling the computer, who will “call police reinforcements”.
- The mBot performs sound and light effects already settled in the original code.
- The mBot shows the following text on the led matrix: “STOP! You are under arrest!”, and then it shows an angry face.
- If there is no burglar intrusion, the mBot will remain steady with a wide-eye open face and showing blue light.