# LED Matrix Hourglass

## Overview

https://youtu.be/sO3tqN-1lj8

## Sand Physics Toy

Build a beautiful 3D printed hourglass physics toy using LED matrices and an Adafruit Feather Sense. Use CircuitPython to simulate particle collision code on a small microcontroller packed with tons of sensors. With built-in lipo charging over USB, your projects can be small and portable!

![led_matrices_hero-shelf.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/769/medium640/led_matrices_hero-shelf.jpg?1594068570)

## Sand Toy Upgrade

This is an add-on to [Carter Nelson's Time Triangle Thing](https://learn.adafruit.com/t-time-triangle-thing/) learn guide. It uses a similar circuit and slight code adjust to make a portable hourglass in a 3D printed case.

This uses the Feather Sense on-board accelerometer to simulate an hourglass with interactive grains of sand. This looks and feels like it’s actually been affected by gravity.

![led_matrices_hero-desk.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/768/medium640/led_matrices_hero-desk.jpg?1594068475)

## 3D Printed Case

The hourglass is made up 3D printed parts that snap fit together. The electronics are housed in the base. The assembly is modular and easy to put together. Parts are 3D printed without any support material.

![led_matrices_hero-open.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/770/medium640/led_matrices_hero-open.jpg?1594068856)

## Project Inspiration

This was inspired by @[david\_proyectos](https://www.instagram.com/david_proyectos/) See his LED hourglass build [posted on instagram](https://www.instagram.com/p/B_VdSapAc-J/).&nbsp;

## Prerequisite Guides

Take a moment to walk through the following learn guides.

- [Triangle Time Thing by Carter Nelson](https://learn.adafruit.com/t-time-triangle-thing)
- [8x8 LED Backpacks learn guide](https://learn.adafruit.com/adafruit-led-backpack/overview)
- [Adafruit Feather Sense learn guide](https://learn.adafruit.com/adafruit-feather-sense)

Warning: As of January 10, 2024 - We have replaced the discontinued LSM6DS33 with an LSM6DS3TR-C 6 DoF sensor. The performance is improved, however new firmware libraries will need to be used in order to read the accelerometer and gyroscope.

## Parts
## Mini and Small

The LED Matrices are available in 1.2in and 0.8in sized displays. The case was designed for both sizes and feature similar circuits and assembly. The LEDs come in various colors, so there are a few options to choose from.

![led_matrices_hero-two.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/767/medium640/led_matrices_hero-two.jpg?1594068286)

## Parts List

Parts used to build this project.

- [Feather Sense](https://www.adafruit.com/product/4516)

- [Mini 8x8 LED Matrix –&nbsp;Yellow](https://www.adafruit.com/product/871)

- [400mAh Battery](https://www.adafruit.com/product/3898)&nbsp;

- [Slide Switch](https://www.adafruit.com/product/805)

- [4pin JST-SH cable](https://www.adafruit.com/product/4397)

- [4pin JST-SH connector](https://www.adafruit.com/product/4208)

- [10-wire silicone cable](https://www.adafruit.com/product/3890)

![led_matrices_parts-crop.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/549/medium640/led_matrices_parts-crop.jpg?1593453655)

### Part: Silk Gold PLA
quantity: 1
2.85mm diameter filament on Amazon
[Silk Gold PLA](https://amzn.to/2Z3WSZF)

### Part: Silk Gold PLA
quantity: 1
1.75mm diameter filament on Amazon
[Silk Gold PLA](https://amzn.to/2NXPHvV)

### Adafruit Feather nRF52840 Sense

[Adafruit Feather nRF52840 Sense](https://www.adafruit.com/product/4516)
The **Adafruit Feather Bluefruit Sense** takes our popular [Feather nRF52840 Express](https://www.adafruit.com/product/4062) and adds a smorgasbord of sensors to make a great wireless sensor platform. This Feather microcontroller comes with Bluetooth® Low Energy and...

In Stock
[Buy Now](https://www.adafruit.com/product/4516)
[Related Guides to the Product](https://learn.adafruit.com/products/4516/guides)
![Angled shot of blue, rectangular, microcontroller.](https://cdn-shop.adafruit.com/640x480/4516-06.jpg)

### Adafruit Mini 8x8 LED Matrix w/I2C Backpack - Yellow

[Adafruit Mini 8x8 LED Matrix w/I2C Backpack - Yellow](https://www.adafruit.com/product/871)
What's better than a single LED? Lots of LEDs! A fun way to make a small display is to use an [8x8 matrix](https://www.adafruit.com/category/37_88) or a [4-digit 7-segment display](https://www.adafruit.com/category/37_103). Matrices like these are...

In Stock
[Buy Now](https://www.adafruit.com/product/871)
[Related Guides to the Product](https://learn.adafruit.com/products/871/guides)
![Adafruit Mini 8x8 LED matrix w/I2C Backpack- Yellow.](https://cdn-shop.adafruit.com/640x480/871-00.jpg)

### Adafruit Small 1.2" 8x8 LED Matrix w/I2C Backpack - Yellow

[Adafruit Small 1.2" 8x8 LED Matrix w/I2C Backpack - Yellow](https://www.adafruit.com/product/1050)
What's better than a single LED? Lots of LEDs! A fun way to make a small display is to use an [8x8 matrix](https://www.adafruit.com/category/37_88) or a [4-digit 7-segment display](https://www.adafruit.com/category/37_103). Matrices like these are...

Out of Stock
[Buy Now](https://www.adafruit.com/product/1050)
[Related Guides to the Product](https://learn.adafruit.com/products/1050/guides)
![Adafruit Small 1.2" 8x8 Yellow LED Matrix w/I2C Backpack assembled and powered on. A yellow graphic smiley is displayed.](https://cdn-shop.adafruit.com/640x480/1050-00.jpg)

### Lithium Ion Polymer Battery Ideal For Feathers - 3.7V 400mAh

[Lithium Ion Polymer Battery Ideal For Feathers - 3.7V 400mAh](https://www.adafruit.com/product/3898)
Lithium-ion polymer (also known as 'lipo' or 'lipoly') batteries are thin, light, and powerful. The output ranges from 4.2V when completely charged to 3.7V. This battery has a capacity of **400mAh** for a total of about 1.9 Wh. If you need a larger (or smaller!)...

In Stock
[Buy Now](https://www.adafruit.com/product/3898)
[Related Guides to the Product](https://learn.adafruit.com/products/3898/guides)
![Slim Lithium Ion Polymer Battery 3.7v 400mAh with JST 2-PH connector and short cable](https://cdn-shop.adafruit.com/640x480/3898-05.jpg)

### Breadboard-friendly SPDT Slide Switch

[Breadboard-friendly SPDT Slide Switch](https://www.adafruit.com/product/805)
These nice switches are perfect for use with breadboard and perfboard projects. They have 0.1" spacing and snap in nicely into a solderless breadboard. They're easy to switch no matter what size fingers you have, but not so easy that they'll get flipped by accident. Work great as...

In Stock
[Buy Now](https://www.adafruit.com/product/805)
[Related Guides to the Product](https://learn.adafruit.com/products/805/guides)
![Small, black, SPDT slide switch.](https://cdn-shop.adafruit.com/640x480/805-03.jpg)

### STEMMA QT / Qwiic JST SH 4-pin Cable with Premium Female Sockets

[STEMMA QT / Qwiic JST SH 4-pin Cable with Premium Female Sockets](https://www.adafruit.com/product/4397)
This 4-wire cable is a little over 150mm / 6" long and fitted with JST-SH female 4-pin connectors on one end and premium female headers on the other. Compared with the chunkier JST-PH these are 1mm pitch instead of 2mm, but still have a nice latching feel, while being easy to insert and...

Out of Stock
[Buy Now](https://www.adafruit.com/product/4397)
[Related Guides to the Product](https://learn.adafruit.com/products/4397/guides)
![Angled shot of JST SH 4-pin Cable with Premium Female Sockets.](https://cdn-shop.adafruit.com/640x480/4397-02.jpg)

### JST SH 4-pin Right Angle Connector (10-pack)

[JST SH 4-pin Right Angle Connector (10-pack)](https://www.adafruit.com/product/4208)
If you're a DIY&nbsp;enthusiast who likes to&nbsp;_micro_-manage your project's connections, here is a 10-pack of some&nbsp;_micro_&nbsp;JST SH connectors!&nbsp;They're&nbsp;solid plastic with 4 x 1mm pitch through-hole mounting tabs. In an SMT line you can just paste...

In Stock
[Buy Now](https://www.adafruit.com/product/4208)
[Related Guides to the Product](https://learn.adafruit.com/products/4208/guides)
![Angled shot of ten 4-pin JST-SH connectors.](https://cdn-shop.adafruit.com/640x480/4208-02.jpg)

### Silicone Cover Stranded-Core Ribbon Cable - 10 Wire 1 Meter Long

[Silicone Cover Stranded-Core Ribbon Cable - 10 Wire 1 Meter Long](https://www.adafruit.com/product/3890)
For those who are fans of our silicone-covered wires, but are always looking to _up their wiring game_. We now have **Silicone Cover Ribbon cables!** These may look _a lot_ like <a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/3890)
[Related Guides to the Product](https://learn.adafruit.com/products/3890/guides)
![10 wire Silicone Cover Stranded-Core Ribbon Cable](https://cdn-shop.adafruit.com/640x480/3890-01.jpg)

### USB cable - USB A to Micro-B

[USB cable - USB A to Micro-B](https://www.adafruit.com/product/592)
This here is your standard A to micro-B USB cable, for USB 1.1 or 2.0. Perfect for connecting a PC to your Metro, Feather, Raspberry Pi or other dev-board or microcontroller

Approximately 3 feet / 1 meter long

In Stock
[Buy Now](https://www.adafruit.com/product/592)
[Related Guides to the Product](https://learn.adafruit.com/products/592/guides)
![USB cable - USB A to Micro-B - 3 foot long](https://cdn-shop.adafruit.com/640x480/592-01.jpg)

# LED Matrix Hourglass

## Circuit Diagram

The diagram below provides a visual reference for wiring of the components. This diagram was created using the software package [Fritzing](http://fritzing.org/download/).

## Adafruit Library for Fritzing

Use Adafruit's Fritzing parts library to create circuit diagrams for your projects. Download the library or just grab individual parts. Get the library and parts from [GitHub - Adafruit Fritzing Parts](https://github.com/adafruit/Fritzing-Library/tree/master/parts).

![](https://cdn-learn.adafruit.com/assets/assets/000/092/550/medium800/led_matrices_circuit-diagram.jpg?1593455914)

## A0 – I2C Address Change

You'll also need to change the I2C address of one of the matrices. Solder the **A0** jumper on one of the LEDs matrices to set the address to **0x71**. That way we will end up with these addresses for our matrices:

- Matrix 1 = **0x70** (default, no solder)
- Matrix 2 = **0x71**

The **0x70** address matrix in on top and the **0x71** address matrix in on the bottom. Also reference the photos in the general build.

## Wired Connections

- VCC from Mini Matrix (0x70) to VCC on Mini Matrix (0x71 – A0)
- GND from Mini Matrix (0x70) to GND on Mini Matrix (0x71 – A0)
- SDA from Mini Matrix (0x70) to SDA on Mini Matrix (0x71 – A0)
- SCL from Mini Matrix (0x70) to SCL on Mini Matrix (0x71 – A0)
- VCC from Mini Matrix (0x71 – A0) to 3V on Feather Sense
- GND from Mini Matrix (0x71 – A0) to GND on Feather Sense
- SDA from Mini Matrix (0x71 – A0) to SDA on Feather Sense
- SCL from Mini Matrix (0x71 – A0) to SCL on Feather Sense

## Onboard Sensor

For the newer board using the LSM6DS3TR-C 6-DoF Accel + Gyro IMU and the older boards using LSM6DS33, the default I2C address is 0x6A and IRQ Pin on digital pin 3.

# LED Matrix Hourglass

## Hourglass Code

Now let's get the Feather setup with CircuitPython, the necessary libraries, and the hourglass code.

## Prepare the Feather Sense

Follow this guide for setting up CircuitPython on the Feather nRF52840 Sense:

[CircuitPython on Feather Sense](https://learn.adafruit.com/adafruit-feather-sense/circuitpython-on-feather-sense)
## Hourglass Code

Click the **Download Project Bundle** button in the code listing below to get a zip file with the project code and necessary libraries. Copy **code.py** and **matrixsand.py** to the **CIRCUITPY** folder.

Also copy the libraries to **CIRCUITPY/lib**. For quick reference, the **CIRCUITPY/lib** folder should have these contents (having more is OK):

![](https://cdn-learn.adafruit.com/assets/assets/000/091/797/medium800/led_matrices_Screenshot_from_2020-06-06_09-32-43.png?1591461176)

Here is the main code listing for **code.py**. The **matrixsand.py** file will be found in the zip, along with everything else. Click the **Download Project Bundle** to get the zip.

https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/CircuitPython_LED_Sand_Hourglass/hourglass/code.py

The code handles both of the accelerometers that may appear on the Adafruit Feather nRF52840 Sense.

# LED Matrix Hourglass

## Modify Code

## Adjust Code

The original code from Carter's Triangle Time Thing learn guide will need to be modified slightly. The Feather Sense is mounted in a different orientation so the accelerometer coordinates will need to be changed in order to match the new position.

Look for line 42 in the code and update the following values to match the new coordinates.

```python
# rotate coords
    xx = az - ay
    yy = az + ay
    zz = ax
```

Save the updated values to the **code.py** file using Mu editor or your preferred text editor. Make sure the **code.py** file has been updated on the **CIRCUITPY** drive.

# LED Matrix Hourglass

## 3D Printing

## Parts List

STL files for 3D printing are oriented to print "as-is" on FDM style machines. Parts are designed to 3D print without any support material. Original design source may be downloaded using the links below.

![led_matrices_3d-parts.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/766/medium640/led_matrices_3d-parts.jpg?1594063943)

## Mini or Small 8x8

The two versions feature identical file names. Choose the version you want to build.

[Download CAD files on Thingiverse](https://www.thingiverse.com/thing:4528789)
[Download CAD files on Prusa Printers](https://www.prusaprinters.org/prints/36145-led-matrix-hourglass)
## Fusion 360 Download

The links below will launch the CAD in a browser. You can interact with the model and download files using links in the top right.

[Download 0.8in Mini Version](https://a360.co/2Z2Y9jB)
[Download 1.2in Small Version](https://a360.co/2Z2YcMj)
## CAD Assembly

The Feather Sense, slide switch and battery are housed in the bottom base cover using tabs and built-in standoffs. The 3x spindles are secured to the base covers using 6x M3 screws. The top and bottom base feature snap fit covers.

![led_matrices_cad-explode.gif](https://cdn-learn.adafruit.com/assets/assets/000/092/771/medium640thumb/led_matrices_cad-explode.jpg?1594069748)

## Slicing Parts

No supports are required. Slice with settings for PLA material.&nbsp;

The parts were sliced using CURA using the slice settings below.

- PLA filament 220c extruder
- 0.2 layer height
- 10% gyroid infill
- 60mm/s print speed
- 60c heated bed

![led_matrices_slice-peanut.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/772/medium640/led_matrices_slice-peanut.jpg?1594070027)

## Slice with Brim

Adding a brim can help improve adhesion to the build plate. Brim adds a single layer around the base of the model. Models with small surface area touching the bed is prune to peel off especially with tall objects. Use a brim with a 3mm width when slicing the three spindles.

![led_matrices_slice-spindles.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/773/medium640/led_matrices_slice-spindles.jpg?1594070174)

## Design Source Files

The project assembly was designed in Fusion 360. This can be downloaded in different formats like STEP, STL and more. Electronic components like Adafruit's board, displays, connectors and more can be downloaded from the [Adafruit CAD parts GitHub Repo](https://github.com/adafruit/Adafruit_CAD_Parts).

![led_matrices_3d-cad-parts.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/813/medium640/led_matrices_3d-cad-parts.jpg?1594078267)

# LED Matrix Hourglass

## Matrix Setup

## LED Matrices and Backpacks

The 2x mini 8x8 LED matrices are soldered to the backpacks. The pinouts are symmetrical so they can be orientated either way.

![led_matrices_matrices-leds.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/555/medium640/led_matrices_matrices-leds.jpg?1593457455)

## Solder LED Matrix

Insert the pins from the 8x8 LED matrix through the top of the backpack. Ensure the LED matrix is installed correctly and flush with the PCB. A [stick vise](https://www.adafruit.com/product/3197) can help keep the components in place while soldering.&nbsp;

![led_matrices_matrix-pcbvise.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/551/medium640/led_matrices_matrix-pcbvise.jpg?1593457300)

## Soldered LED Matrix

Check all of the pins are properly soldered.

![led_matrices_matrix-pins.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/552/medium640/led_matrices_matrix-pins.jpg?1593457332)

## Trim Pins

The pins are long and need to be trimmed in order to fit inside the 3D printed enclosure. Use [flush cutters](https://www.adafruit.com/product/152) to shorten the pins from the LED matrix.

![led_matrices_matrix-pins-trim.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/553/medium640/led_matrices_matrix-pins-trim.jpg?1593457353)

## Jumper A0

Solder the **A0** jumper on one of the LEDs matrices to set the address to **0x71**. This matrix will be setup as the bottom half of the hourglass.

![led_matrices_matrix-A0-jump-zoom.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/852/medium640/led_matrices_matrix-A0-jump-zoom.jpg?1594151534)

# LED Matrix Hourglass

## Wiring

## Ribbon Wire JST Cables

Use a piece of 4-wire ribbon cable and cut to 9cm in length. Use a second piece of 4-wire ribbon cable and cut to 6cm in length. Use the full length of 4-pin JST SH cable and remove the ends with the jumper connectors. Using wire stripper, remove a bit of insulation from each wire. Tin the wires by adding a small amount of solder. This helps to prevent the wires from fraying.

&nbsp;

![led_matrices_jst-ribbon-cables.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/584/medium640/led_matrices_jst-ribbon-cables.jpg?1593462834)

## DIY Stemma QT Cable

The 4-pin JST SH connector is soldered to the 9cm long ribbon cable. Insert the connector onto the 4-pin JST SH cable. Solder each wire from the 9cm ribbon cable to the 4-pin JST SH connector.

![led_matrices_jst-cable-wiring.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/556/medium640/led_matrices_jst-cable-wiring.jpg?1593457563)

Warning: 

## Wiring LED Matrix Backpack

Use the 6cm long ribbon cable to connect the two matrices. Solder the wires from the ribbon cable and the JST cable into the LED matrix with the A0 soldered jumper. Each pin shares two wires from each cable. Use the 3D printed matrix cover as a jig to hold PCBs in place while soldering.

![led_matrices_matrix-btm-wiring.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/557/medium640/led_matrices_matrix-btm-wiring.jpg?1593457588)

## Wiring Second Matrix

Solder the wires from the 6cm long ribbon cable to the pins on the second LED matrix (with no soldered jumper). Use the colored wires to reference the connections. Ensure connections are similar with VCC to VCC, GND to GND, SCL to SCL and SDA to SDA.&nbsp;

&nbsp;

![led_matrices_matrix-top-wiring.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/558/medium640/led_matrices_matrix-top-wiring.jpg?1593457748)

## Slide Switch Wiring

Use a 2-wire ribbon cable and cut to 5cm in length. This will connect the slide switch to the Feather Sense.

![led_matrices_feather-sw-wiring.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/559/medium640/led_matrices_feather-sw-wiring.jpg?1593457800)

## Solder Switch Wire

Remove one of the the pins on either far left or right but not the middle. Trim the remaining pins short so they're half their length. Solder the 2-wire ribbon cable to the remaining pins on the slide switch.

![led_matrices_switch-wiring.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/560/medium640/led_matrices_switch-wiring.jpg?1593457824)

## Connect Switch to Feather

Solder one wire from the switch to the EN pin on the Feather Sense. Solder the second wire from the switch to the GND pin on the Feather Sense. These connections will fit best in the enclosure when they're soldered from the bottom of the PCB.

![led_matrices_feather-sw-wired.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/561/medium640/led_matrices_feather-sw-wired.jpg?1593457897)

## Test Switch and Battery

Connect the 400mAh battery to the Feather Sense. Use the slide switch to power the Feather Sense on and off. The NeoPixel should power on green with the CircuitPython code loaded on board.&nbsp;

![led_matrices_switch-bat-test.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/562/medium640/led_matrices_switch-bat-test.jpg?1593457919)

## Connect Matrices to Feather

Solder the 9cm long ribbon cable to the pins on the Feather Sense. Connect 4-pin JST SH cables together. Ensure the connection are correct. Make the following connections.

- SDA from Matrix to SDA on Feather Sense
- SCL from Matrix to SCL on Feather Sense
- VCC from Matrix to 3V on Feather Sense
- GND from Matrix to GND on Feather Sense

![led_matrices_feather-led-wiring.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/563/medium640/led_matrices_feather-led-wiring.jpg?1593457979)

## Test Circuit

Use the slide switch to power on the LED matrices.

![led_matrices_circuit-test.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/564/medium640/led_matrices_circuit-test.jpg?1593458012)

# LED Matrix Hourglass

## Assembly

## Matrices Enclosure

Insert the 4-pin JST SH cable from the matrices through one of the holes on either side of the enclosure. Reference the photo for correct&nbsp; placement. Check to ensure the top and bottom matrices are correctly positioned.

![led_matrices_install-leds-cover-case.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/565/medium640/led_matrices_install-leds-cover-case.jpg?1593458055)

## Install Cover

Place the cover with the matrices installed over the enclosure. Position wiring so it's fully inside the case and it does not get kinked. Firmly press the cover into the case to snap fit shut.

![led_matrices_led-case-install.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/566/medium640/led_matrices_led-case-install.jpg?1593458077)

## Secure Feather Sense and Switch

Insert the Feather Sense into the bottom base at an angle. Fit the PCB under the clips and fit mounting holes into the standoffs. Insert the slide switch at an angle into the built-in holder.&nbsp;

![led_matrices_install-bottom-parts.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/567/medium640/led_matrices_install-bottom-parts.jpg?1593458105)

## Install Case to Bottom Base

Orient the case with the cutouts on the bottom base. Fit the case into the bottom base by press fitting snaps.

![led_matrices_bottom-cover-install.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/568/medium640/led_matrices_bottom-cover-install.jpg?1593458139)

## Secure Battery

Use a piece of double sided tape or mounting tack to secure the 400mAh battery to the bottom base.

![led_matrices_botom-cover-battery.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/569/medium640/led_matrices_botom-cover-battery.jpg?1593458162)

## Installing Spindles

The three spindles are secured to the top and bottom covers using M3 x 6mm long machine screws. They're symmetrical and can be installed in either direction.

![led_matrices_spindles-screws.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/570/medium640/led_matrices_spindles-screws.jpg?1593458180)

## Securing Spindles

Place one of the spindles onto the bottom covering that goes onto the top base. Line up the mounting holes and insert screw. Fasten tightly.

![led_matrices_spindle-installing.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/571/medium640/led_matrices_spindle-installing.jpg?1593458203)

## Secured Spindles

Repeat process for the other two spindles. Ensure the spindles are installed onto the correct side of the cover. Reference photo for correct placement.

![led_matrices_spindle-installed-cover.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/572/medium640/led_matrices_spindle-installed-cover.jpg?1593458241)

## Install Matrix Case

The matrix enclosure is press fitted into the covering that goes onto the bottom covering that goes onto the top base.

![led_matrices_case-install-top-cover.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/573/medium640/led_matrices_case-install-top-cover.jpg?1593458369)

## Bottom Cover – Top Base

The shape cutout in the center of the covering lines up with the end of the matrix enclosure. Firmly press the case through the covering so surfaces are flush.

![led_matrices_case-installed-top-cover.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/574/medium640/led_matrices_case-installed-top-cover.jpg?1593458398)

## Top Cover – Bottom Base

Insert the 4-pin JST cable from the matrix through the center hole of the top cover that goes onto the bottom base.

![led_matrices_cable-install-bottom-cover.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/575/medium640/led_matrices_cable-install-bottom-cover.jpg?1593458487)

## Install Cover to Matrix Case

Fit the end of the matrix case through the center hole of the top cover. Ensure the 4-pin JST cable is through the hole and accessible.

![led_matrices_case-install-bottom-cover.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/576/medium640/led_matrices_case-install-bottom-cover.jpg?1593458512)

## Secure Cover to Bottom Base

Insert and fasten three M3 x 6mm long machine screws to secure spindles to the top cover.

![led_matrices_secure-bottom-top-cover.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/577/medium640/led_matrices_secure-bottom-top-cover.jpg?1593458532)

## Connect Matrix to Feather

Grab the cable from the matrix and plug it into the JST cable on the Feather Sense. Double check the assembly is correctly installed.

![led_matrices_connect-led-feather.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/578/medium640/led_matrices_connect-led-feather.jpg?1593458554)

## Install Bottom Base

Fit the top cover onto the bottom base with the cut outs lined up properly. Firmly press edges together to snap fit shut.

![led_matrices_base-install.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/579/medium640/led_matrices_base-install.jpg?1593458576)

## Top Base

Install the top cover to the top base. The top base is symmetrical so it can be installed in either direction.

![led_matrices_top-base-cover-install.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/580/medium640/led_matrices_top-base-cover-install.jpg?1593458595)

## Install Top Base

Lastly, place the top base over the bottom cover and firmly press together to snap fit shut.

![led_matrices_top-base-installed.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/581/medium640/led_matrices_top-base-installed.jpg?1593458614)

## Final Build

And there we have it! Your LED matrix hourglass is assembled and ready for testing. Use the switch to power the Feather on and off.

When the battery is low, turn off the project and recharge the battery using a micro USB cable.

![led_matrices_final-build.jpg](https://cdn-learn.adafruit.com/assets/assets/000/092/582/medium640/led_matrices_final-build.jpg?1593458638)


## Featured Products

### Adafruit Feather nRF52840 Sense

[Adafruit Feather nRF52840 Sense](https://www.adafruit.com/product/4516)
The **Adafruit Feather Bluefruit Sense** takes our popular [Feather nRF52840 Express](https://www.adafruit.com/product/4062) and adds a smorgasbord of sensors to make a great wireless sensor platform. This Feather microcontroller comes with Bluetooth® Low Energy and...

In Stock
[Buy Now](https://www.adafruit.com/product/4516)
[Related Guides to the Product](https://learn.adafruit.com/products/4516/guides)
### Adafruit Mini 8x8 LED Matrix w/I2C Backpack - Yellow

[Adafruit Mini 8x8 LED Matrix w/I2C Backpack - Yellow](https://www.adafruit.com/product/871)
What's better than a single LED? Lots of LEDs! A fun way to make a small display is to use an [8x8 matrix](https://www.adafruit.com/category/37_88) or a [4-digit 7-segment display](https://www.adafruit.com/category/37_103). Matrices like these are...

In Stock
[Buy Now](https://www.adafruit.com/product/871)
[Related Guides to the Product](https://learn.adafruit.com/products/871/guides)
### Adafruit Small 1.2" 8x8 LED Matrix w/I2C Backpack - Yellow

[Adafruit Small 1.2" 8x8 LED Matrix w/I2C Backpack - Yellow](https://www.adafruit.com/product/1050)
What's better than a single LED? Lots of LEDs! A fun way to make a small display is to use an [8x8 matrix](https://www.adafruit.com/category/37_88) or a [4-digit 7-segment display](https://www.adafruit.com/category/37_103). Matrices like these are...

Out of Stock
[Buy Now](https://www.adafruit.com/product/1050)
[Related Guides to the Product](https://learn.adafruit.com/products/1050/guides)
### Lithium Ion Polymer Battery Ideal For Feathers - 3.7V 400mAh

[Lithium Ion Polymer Battery Ideal For Feathers - 3.7V 400mAh](https://www.adafruit.com/product/3898)
Lithium-ion polymer (also known as 'lipo' or 'lipoly') batteries are thin, light, and powerful. The output ranges from 4.2V when completely charged to 3.7V. This battery has a capacity of **400mAh** for a total of about 1.9 Wh. If you need a larger (or smaller!)...

In Stock
[Buy Now](https://www.adafruit.com/product/3898)
[Related Guides to the Product](https://learn.adafruit.com/products/3898/guides)
### Breadboard-friendly SPDT Slide Switch

[Breadboard-friendly SPDT Slide Switch](https://www.adafruit.com/product/805)
These nice switches are perfect for use with breadboard and perfboard projects. They have 0.1" spacing and snap in nicely into a solderless breadboard. They're easy to switch no matter what size fingers you have, but not so easy that they'll get flipped by accident. Work great as...

In Stock
[Buy Now](https://www.adafruit.com/product/805)
[Related Guides to the Product](https://learn.adafruit.com/products/805/guides)
### STEMMA QT / Qwiic JST SH 4-pin Cable with Premium Female Sockets

[STEMMA QT / Qwiic JST SH 4-pin Cable with Premium Female Sockets](https://www.adafruit.com/product/4397)
This 4-wire cable is a little over 150mm / 6" long and fitted with JST-SH female 4-pin connectors on one end and premium female headers on the other. Compared with the chunkier JST-PH these are 1mm pitch instead of 2mm, but still have a nice latching feel, while being easy to insert and...

Out of Stock
[Buy Now](https://www.adafruit.com/product/4397)
[Related Guides to the Product](https://learn.adafruit.com/products/4397/guides)
### JST SH 4-pin Right Angle Connector (10-pack)

[JST SH 4-pin Right Angle Connector (10-pack)](https://www.adafruit.com/product/4208)
If you're a DIY&nbsp;enthusiast who likes to&nbsp;_micro_-manage your project's connections, here is a 10-pack of some&nbsp;_micro_&nbsp;JST SH connectors!&nbsp;They're&nbsp;solid plastic with 4 x 1mm pitch through-hole mounting tabs. In an SMT line you can just paste...

In Stock
[Buy Now](https://www.adafruit.com/product/4208)
[Related Guides to the Product](https://learn.adafruit.com/products/4208/guides)
### Silicone Cover Stranded-Core Ribbon Cable - 10 Wire 1 Meter Long

[Silicone Cover Stranded-Core Ribbon Cable - 10 Wire 1 Meter Long](https://www.adafruit.com/product/3890)
For those who are fans of our silicone-covered wires, but are always looking to _up their wiring game_. We now have **Silicone Cover Ribbon cables!** These may look _a lot_ like <a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/3890)
[Related Guides to the Product](https://learn.adafruit.com/products/3890/guides)

## Related Guides

- [Adafruit LED Backpacks](https://learn.adafruit.com/adafruit-led-backpack.md)
- [Adafruit Feather nRF52840 Sense](https://learn.adafruit.com/adafruit-feather-sense.md)
- [Trinket / Gemma Space Invader Pendant](https://learn.adafruit.com/trinket-slash-gemma-space-invader-pendant.md)
- [Wirelessly Code your Bluetooth Device with CircuitPython](https://learn.adafruit.com/wirelessly-code-your-bluetooth-device-with-circuitpython.md)
- [Introducing Adafruit Feather](https://learn.adafruit.com/adafruit-feather.md)
- [Animating Multiple LED Backpacks](https://learn.adafruit.com/animating-multiple-led-backpacks.md)
- [Power Glove Wireless MIDI Controller](https://learn.adafruit.com/power-glove-bluetooth-midi-controller.md)
- [T³ Time Triangle Thing](https://learn.adafruit.com/t-time-triangle-thing.md)
- [Adafruit LSM6DS33 6-DoF IMU Breakout](https://learn.adafruit.com/lsm6ds33-6-dof-imu-accelerometer-gyro.md)
- [Bluetooth LE Sensor Nodes to Raspberry Pi WiFi Bridge](https://learn.adafruit.com/bluetooth-le-broadcastnet-sensor-node-raspberry-pi-wifi-bridge.md)
- [Using the Bluefruit Dashboard with Web Bluetooth in Chrome](https://learn.adafruit.com/bluefruit-dashboard-web-bluetooth-chrome.md)
- [CircuitPython Hardware: LED Backpacks & FeatherWings](https://learn.adafruit.com/micropython-hardware-led-backpacks-and-featherwings.md)
- [Electronic Demon Costume](https://learn.adafruit.com/electronic-demon-costume.md)
- [Light-Up Reactive Ukulele](https://learn.adafruit.com/light-up-reactive-ukulele.md)
- [Owl IR TV Remote](https://learn.adafruit.com/owl-ir-tv-remote.md)
