Task 3 from Spain - Alarm with buttons, leds and buzzer

  • Alarm with buttons, leds and buzzer

     

    Try to plan your work with any mate in class or from eTwinning by chatroom and forums, you can work in pairs.  The App must be related with the eTwinning project "Scratch and Arduino from east to west", contents, media, intercurtural information between countries, etc.

     

    Modifies the arduino program of the semaphore of 3 leds, to adapt it to three modes of behavior, weak, average, strong alarm. This will be simulated with 3 pushbuttons in the inputs, detecting with one click each of the three alarm modes. We will use 3 outputs for LEDs, red, yellow and green. We will also use a buzzer or beeper to emit sounds in another output.

    1. In the weak alarm mode, only the green led must be switched on for 1 second and off for 2 seconds, repeated indefinitely. The buzzer will repeat every 5 seconds a melody with 5 musical notes.
    2. In the middle alarm mode, only the green yellow for 1 second must be turned on and off for 1 second, repeat indefinitely. The buzzer will repeat every 3 seconds a melody with 3 musical notes.
    3. In the strong alarm mode, only the red led must be switched on for 1 second and off for half a second, repeated indefinitely. The buzzer will repeat every 3 seconds a melody with 3 musical notes.

    You have to use a conditional statement to detect which button has been triggered. Use loops to repeat routines.  Physically implement the project with the Arduino board, the protoboard, Leds, cables, etc. And make it works.

     

    1. Perform the program in the Arduino IDE. Discuss each line of code you use. Deliver the Arduino program to its native extension.
    2. Make a video with iMovie with the specifications below. Delivery URL of the video. In the video description delivers the text of the complete program code.

    Video specifications:

     

    1. Duration of less than 1 minute.
    2. Start with title and description.
    3. Divided screen, left video of hardware in operation, and simultaneously to right monitor quicktime recording of arduino series with outputs programmed with order Serial.println.
    4. Final with credits (author, date, course and school).
    5. Music with copyleft or in default indicating author and "disclaimer".
    6. Video or letters in English, and logos of eTwinning and the project "Scratch and Arduino from east to west" must be in the video.

    Publish your work in the forum.  You can try downloading your classmates ones if you have previously uploaded it to the forum on Twinspace.  Use the Forums to show your work using the URL of your video in youtube.

     

    Example from class:

    https://youtu.be/ib2C82131tA

    The results: