Hourglass Using Arduino

by EDISON SCIENCE CORNER in Circuits > Arduino

25669 Views, 197 Favorites, 0 Comments

Hourglass Using Arduino

20210519_170607.jpg
Hourglass using Arduino | DIY | LED Hourglass

In ancient times people used Hourglass to measure the passage of time. Hourglass is a simple device that consists of two glass bulbs that are connected vertically with a narrow neg and that allows the flow of sand or fluid from top to bottom. most of the time the flow duration is about one hour that's why we call hourglass. That's enough why I am taking this because this tutorial is about How to build a digital Hourglass using Arduino.

Materials Needed for Making Arduino Hourglass

IMG_20200429_093718-01.jpeg
IMG_20200429_105305-01.jpeg
IMG_20200701_172406-01.jpeg

let's start with gathering all components first we need a brain to control everything here I am going to use an Arduino because it has enough digital io pins also Arduino supports i2c. next to detect the orientation we need an accelerometer in this case I am going with ADXL335 3 axis accelerometer. To represent the sand we need LEDs for easy connections I am going with an 8*8 led matrix which is driven by max7219ic so we can control this matrix with just three pins. We need two of them one for the top and one for the bottom. Finally, a battery of 7.4 volts will perfect for this job. additionally, we need wires and some foam board for making the frame.

  1. Arduino
  2. ADXL335 3 axis accelerometer
  3. 8*8 led matrix
  4. 7.4v battery

Circuit Diagram

Untitled Sketch 2_bb.jpg

Building the Circuit

IMG_20210328_193425.jpg
IMG_20210328_193432.jpg
IMG_20210328_194804.jpg
IMG_20210328_195818.jpg
IMG_20210328_193024.jpg

After gathering all components let's start building.

First, I tested the circuit on the breadboard and everything works perfectly fine. So I decided to solder everything permanently. First, we need to cascade two led matrices together that is we need to connect the Dout pin of the first matrix to the Din pin of the second matrix also connect the clock pin to clock and ds to ds. I used enameled copper wire to connect modules together. Also, I connected wires to Arduino and the accelerometer.

Connect the VCC of the led matrix and accelerometer to the 5v pin of Arduino. Then connect the ground pins of Arduino, Ledmatrix, and accelerometer together. After that connect the CLK pin to Arduino D4 din to D5 and DS to D6. Connect the x-axis out of the accelerometer to A1 and Y-axis to A2.once again I tested the circuit and varified everything.

Making the Enclosure

IMG_20210516_183310.jpg
IMG_20210516_163343.jpg
IMG_20210516_163324.jpg
IMG_20210516_185917.jpg
IMG_20210516_201039.jpg
IMG_20210516_201412.jpg
IMG_20210516_210440.jpg

Now let's make a simple enclosure to hide everything inside and to increase the overall look for enclosure making I am a using 3 mm foam sheet. Please watch the video tutorial about this. after cutting the foam sheet into the required size. Glue everything together and make a rectangular box shape. We have to place the led matrix in a conical shape to get a look similar to an ancient hourglass. Then placed everything inside the box I placed the accelerometer on the side of the box. Finally, I added a small switch to this circuit and placed it on the backside of the box.

Coding and Finishing

1621423280267-01.jpeg

You can download Arduino code, circuit diagrams from this link

if you face any problems comment that below...