The Digital Hourglass project implements a count up timer which takes in user input for the time to be measured and prints a character on the display at certain intervals till the time is up. The project goes through some of the basic concepts like connecting the Sensors Mezzanine board with the DragonBoard, interfacing an LCD with the board and installing the necessary libraries.
- DragonBoard 410c
- Power Supply
- Sensors Mezzanine
- Micro USB Cable
- Grove-LCD 16x2 RGB Backlight and a grove cable
First, connect the Sensors Mezzanine board onto the DragonBoard via the low-speed expansion connector on both boards. Use the Grove Universal 4 pin cables to connect the LCD to I2C0. You can find the images of the hardware setup in the images folder. That’s it! We’re all set to run our application.
UPM Library
$ sudo apt-get install libupm-dev
$ git clone https://github.com/96boards-projects/hourglass.git
$ cd projects
$ cd hourglass
$ make
$ ./hourglass
When the program is executed, the user is asked to enter the time in minutes. 30 '*' characters are printed on the display periodically based on the user input. Once the time is up, you will see a TIME UP message displayed on the LCD.