Pillbox Alarm Software Overview

The pillbox alarm application allows the user to set up to four different daily alarm times, as reminders to take pills at required times. To set up the current time and the alarm times, the user must place the SET/RUN slide switch in the SET position. As shown in the photograph below, an Organic Light-Emitting Diode (OLED) display and four pushbuttons are used to implement a simple interface for adjusting the alarms.
Figure 1. Photograph of the Pillbox Alarm Software Running on the P4 Board
After alarm setup is complete, the user places the SET/RUN slide switch in the RUN position and the OLED display is shut off to conserve power. When an alarm occurs, a piezoelectric buzzer generates a pulsating sound and the LED associated with that alarm flashes until the adjacent pushbutton is pressed to reset the alarm.