Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C12832_lcd DebounceInterrupts mbed-rtos mbed USBDevice
You are viewing an older revision! See the latest version
Homepage
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 Item | Description | Status |
---|---|---|
USB Connection | Verify if the device is recognized as USB Serial Device even when connected to a USB hub | PASS |
Verify the set time is displayed on the LCD | PASS | |
Set time update | Verify the Set time is updated every second. | PASS |
Setting the Alarm time | Verify the alarm time is getting updated on the LCD as the time increase button is pressed | PASS |
Sounding the Alarm | Verify the alarm and the alarm LED (LED2)are turned ON when the actual time and the set time are equal | PASS |
Stopping the Alarm | When 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 OFF | PASS |
- Product Level Testing
Test Item | Description | Status |
---|---|---|
Programming | Verify mbed is detected as Mass Storage Device and is programmed by the host | PASS |
USB | Verify 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 Debounce | Verify that there is no debounce on any of the joystick keys. | PASS |
.