Topic outline

  • General

  • ACTIVITY DESCRIPTION

    The students’ task is to construct the alarm that will be triggered by a specific event. The robot’s task is to warn the intruder who enters the room.


    The aim of the activity is to detect and report intrusions by programming different sensors, such as the light and distance ones. The response of the mBot to these interferences will be in form of light and sounds.

  • 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:


    1. The robot is guarding the room.

    2. A burglar enters.

    3. The mBot reports the intrusion by sending a message to the person controlling the computer, who will “call police reinforcements”.

    4. The mBot performs sound and light effects already settled in the original code.

    5. The mBot shows the following text on the led matrix: “STOP! You are under arrest!”, and then it shows an angry face.

    6. If there is no burglar intrusion, the mBot will remain steady with a wide-eye open face and showing blue light.
  • SECOND VERSION

    The robot will be set up in a dark room, box or cabinet. When it gets lighter, the robot signals it with sound and light.


    The main sensor will be the light sensor on board. The activity will be developed as follows:


    1. The robot is guarding a closet.

    2. A burglar opens the closet.

    3. The mBot detects a change on the ambient lighting and shows an alarm face.

    4. It performs sound and light effects already settled in the original code.

    5. If there is no burglar intrusion, the mBot will remain steady with a sleeping face.
  • ACTIVITY RESOURCES

    Folder: 1File: 1