This group project, an assignment for subject Embedded System Programming in University of Malaya. The concept is using Ticker and Interrupt to perform specific functions. Ticker is mainly for updates/shows/blinks the display. Interrupt is mainly for changing the cursor location and select function. Using built-in C++ functions (localtime & set_time) for the time function. In additiona, the code also shows certain values on terminal (using putty/teraterm) for debugging.
- Display time (AM/PM)
- Adjust time
- Set alarm. (Indicator if alarm is ON/OFF)
- Initial setup at reset button press.
- Liquid Crystal Display (LCD)
- Mbed application board (JOYSTICK & BUZZER)
- Mbed LPC178
- Solderless Breadboard
- Wires
LCD Pin number | Text LCD pins | MBED pins |
---|---|---|
1 | GND | 0V (GRD) |
2 | VCC | 3.3V |
3 | VO | 0V, via 1k resistor |
4 | RS | P19 |
5 | RW | 0V (GRD) |
6 | E | P20 |
7 | D0 | not connected |
8 | D1 | not connected |
9 | D2 | not connected |
10 | D3 | not connected |
11 | D4 | P25 |
12 | D5 | P22 |
13 | D6 | P23 |
14 | D7 | P24 |
- MBED official library
- TextLCD by Simon
- Setup time for the first time.
- Display time (User able to set alarm or adjust time)
- Setup alarm
- Indicator alarm is ON (* left next to Alarm)
- Adjust time (with Back to cancel)
- Mulhein
- Hafizul
- Ebrahim
- Link to original repository: https://os.mbed.com/users/ebrahimatya/code/grpass_clock/