Objective: create a digital hourglass with LEDs instead of sand. Time: 1,5 hour Prerequisites:
Arduino Genuino Uno
Other electrical parts: 10 kilohm resistor six 220 ohm resistors six LEDs tilt switch(wires, bread board, push buttons, etc.)
Software: Arduino IDE
Recommended: Arduino Starter Kit
I decided to play around more with Arduino by doing an interesting project from Arduino Starter Kit: Project 8 Digital Hourglass. Like a real hourglass the digital hourglass would notice when it was being tilted and, after that, slowly turn on each of its 6 LEDs to represent the sand that would shift.
In order to make this work we had to know when the hourglass was being tilted. That is why for the first time I had to use a tilt sensor. This sensor notices when you move the Arduino. It is like a simple, inexpensive version of an accelerometer with a small metal ball inside that you hear when you tilt the Arduino up and down.
The circuit that we built looked like this (source: here).
I could not add any video here, so this documentation will have to do with the following picture: