Bhakti Kulkarni / Mbed 2 deprecated RTOS_Alarm_Clock

Dependencies:   C12832_lcd DebounceInterrupts mbed-rtos mbed USBDevice

You are viewing an older revision! See the latest version

Homepage

Table of Contents

    GOAL:

    To implement a simple alarm clock using MBED Application borad LPC1768.

    USER CONTROLS

    • USB interface to set the clock initially. This is required only when the board is powered ON.
    • Joystick down button to increase the hrs/mins.
    • Joystick center button to toggle between hrs and min.
    • Joystick right button to stop the alarm.
    • LCD to display the actual time and the alarm time.

    DETAILS

    • Thread compare_time is used to compare the actual time and the alarm time set by the user.
    • Thread update_lcd is used to display the actual time and the alarm time set by the user on the LCD.
    • Main thread is used to initiate threads to update LCD and thread to compare timings.
    • A ticker is used to update the actual time every second.

    TESTING

    • User Level Testing
    Test ItemDescriptionStatus
    USB ConnectionVerify if the device is recognized as USB Serial Device even when connected to a USB hubPASS
    Verify the set time is displayed on the LCDPASS
    Set time updateVerify the Set time is updated every second.PASS
    Setting the Alarm timeVerify the alarm time is getting updated on the LCD as the time increase button is pressedPASS
    Sounding the AlarmVerify the alarm and the alarm LED (LED2)are turned ON when the actual time and the set time are equalPASS
    Stopping the AlarmWhen the alarm is ON and the user presses the right button of the joystick the alarm should turn OFF and the Alarm LED LED2 should be OFF.PASS
    If the User does not press the alarm stop button within a minute the alarm should turn OFFPASS
    • Product Level Testing
    Test ItemDescriptionStatus
    ProgrammingVerify mbed is detected as Mass Storage Device and is programmed by the hostPASS
    USBVerify the power consumed by the USB device. Current drawn is 160mA. Power is 800mW.Satisfies the USB specification
    Normal Working (After the time is set)After setting the time remove the USB.(Be sure to connect the external supply before removing the USB)The clock works satisfactorily on the external power supply.
    Key DebounceVerify that there is no debounce on any of the joystick keys.PASS

    .


    All wikipages