• Models
  • Contests
  • Slicer
  • Login
  • Start Here
    thingiverse-iconprintables-iconcults3d-iconmakerworld-iconmyminifactory-icon

    3D GO

    3D ModelsContestsCollectionsSaved ModelsOn a mobile device?

3D GO

Privacy Policy
Digital Hourglass 3D Printer File Image 1
Digital Hourglass 3D Printer File Image 2
Digital Hourglass 3D Printer File Image 3
Digital Hourglass 3D Printer File Image 4
Digital Hourglass 3D Printer File Thumbnail 1
Digital Hourglass 3D Printer File Thumbnail 2
Digital Hourglass 3D Printer File Thumbnail 3
Digital Hourglass 3D Printer File Thumbnail 4

Digital Hourglass

Dsk001 avatarDsk001

November 13, 2022

printables-icon
DescriptionCommentsTags

Description

***** If you downloaded any of the arduino files before 12/24/21 Please download the updated version below ****

 

This is a digital hourglass inspired by a project on Instrucables.com by Edison Science Corner
https://www.instructables.com/Hourglass-Using-Arduino/

This project uses an Arduino nano, 2 8x8 led matrix, and an accelerometer. It has been put together for the https://www.alien3d.us/ monthly project box for November of 2021.

 

Parts List: 

(all electronics parts included in the Alien3D.us November 2021 box)

  • Arduino Nano
    • https://www.amazon.com/dp/B07WWK29XF/ref=cm_sw_r_tw_dp_BHTPGDFGSKMC3D8Q5BP7 
  • 2 8*8 Led Matrix with MAX7219
    • https://www.amazon.com/dp/B07FHXHFDZ/ref=cm_sw_r_tw_dp_BS1H2RFH37WPEHY18F0K
  • ADXL345 Accelerometer
    • https://www.amazon.com/dp/B01DLG4OU6/ref=cm_sw_r_tw_dp_DYRTRP80VRJ2C0701ZHH?_encoding=UTF8&psc=1 
  • 9v battery
  • Toggle switch
  • Wires
  • M3 screws (not included in alien box)
    • any M3 screw between 6 and 10mm will work.

Programming the Arduino:

First lets get the Arduino ready. First thing we will need to do is get some libraries added to your Arduino IDE. If you have never used Arduino's before or the software to program them you can visit https://www.arduino.cc/en/Guide

Adding libraries:

Once you have the Arduino software open we will click on Sketch > Include Library > Manage Libraries

Once there we will add 3 libraries
The Adafruit ADXL345, Adafruit Unified Sensor, Adafruit BusIO
Do a search for the Adafruit ADXL345 and click install, it should ask you to also install the other 2 libraries but if it does not search for those as well and click install

 

Setting up files:

Now download the hourglass.zip and extract the files.
Should look like this:

Setting Arduino Board:

You should now be able to open the hourglass.ino file in the Arduino IDE
Now to select the Arduino board in the software.
Click on Tools > Board > Arduino AVR Boards > Arduino Nano
Next Tools >  Processor > ATmega328P (old bootloader)
Should end up looking like below:

Please verify the correct Com port is also selected. I cant tell you which com port it will be on your computer as the number can change depending on what you have plugged or installed on your computer. But if you have multiple com ports listed try one and if it doesn't work try the other/s.

After that you should be able to click on the Verify and then upload buttons and the Arduino is programmed. (The button with a check and then the Arrow)

 

If you are having difficulties with the code and would like an easier approach please visit

Arudino Web Editor getting started so you can install the create plug in
https://docs.arduino.cc/cloud/web-editor/tutorials/getting-started/getting-started-web-editor

Then go to Web Editor Hourglass Project:
https://create.arduino.cc/editor/dsk001785/900a489f-160d-41b9-b3bc-5fe3e5949f4f/preview

There Arduino provides an online editor with all the needed libraries installed and the files all setup and verified, you only need to upload to the to the Arduino.

 

Printing Parts:

You will need to print one of each file included except the pillars that one will need to be printed 8 times. The back hourglass piece shown in natural PLA below was printed vertically so that it has a smooth surface and wouldn't require supports. the others are printed with their flat faces to the bed. The only part that requires a little bit of support is the Top piece for where the switch goes.

Wiring Up Electronics:

Below you an see a picture with the wiring diagram of how to connect all the wires needed for the project. Make sure your Arduino is connected to the top led matrix and then that matrix connects to the bottom one. The bottom pins of the bottom matrix are left disconnected. 

Here is an actual photo of how my final wiring looks like: ( I used 7 M3 screws to hold everything together but a bit of hot glue would work just as well.)
Please make sure to take note of the orientation of the accelerometer, if it is installed backwards or rotated the LEDs will not react as expected. If you will be soldering all the wires together make sure the switch is installed into the printed part first.

Final Assembly:

Arrange all parts like in the picture above, so you have the front plate with all the electronics, the top lid with the battery and switch and bottom with the Arduino top pins inserted into the pillar at the bottom. This will be a snug fit and will hold the Arduino in place.
The you can place the back piece. This would be an excellent time to perform a final test and make sure the electronics turn on and function being careful to hold everything in your hands.
If it passed the final test then you can take a pair of pillars and place them into the round holes on the bottom piece and they should click into place. When all 4 pairs are in then with some wiggling you should be able to get everything to line up with the top piece and click the pillars into that one as well.

 

If you would like to keep up to date with my latest work, follow me on Instagram/Twitter!

https://twitter.com/Dsk001_3D

https://www.instagram.com/dsk001_3d/

If you would like to support me, please use the link below to become a patron! 

https://www.patreon.com/Dsk001 

 

License:

Creative Commons — Attribution

Related Models

Thor Mjolnir Hammer Bic Pen preview image

Thor Mjolnir Hammer Bic Pen

effektz profile image

effektz

9,085

Diverse Schilder / various labels  for hobby & makers preview image

Diverse Schilder / various labels for hobby & makers

RPK profile image

RPK

2

Customizable EU License Plate Keychain preview image

Customizable EU License Plate Keychain

John_M profile image

John_M

34

Vorpal The Hexapod Walking Robot preview image

Vorpal The Hexapod Walking Robot

vorpal profile image

vorpal

4,982

MakerZ – Open Source 1/28 RC Drift Chassis by Fails & Makes | Açık Kaynak 1/28 RC Drift Şasisi preview image

MakerZ – Open Source 1/28 RC Drift Chassis by Fails & Makes | Açık Kaynak 1/28 RC Drift Şasisi

Fails&Makes profile image

Fails&Makes

Cacciavite Portachiavi - Scewdriver keychain preview image

Cacciavite Portachiavi - Scewdriver keychain

Butti Maker Studio profile image

Butti Maker Studio

22

Snap-Together Mini Minecraft Jack-O-Lantern with integrated LED preview image

Snap-Together Mini Minecraft Jack-O-Lantern with integrated LED

scottrlindsey profile image

scottrlindsey

4,448

Small Parts Storage Drawers - Organizer preview image

Small Parts Storage Drawers - Organizer

GT 3D Makers profile image

GT 3D Makers

29

8