# Rezz-Inspired NeoPixel Glasses

## Overview

https://youtu.be/HMYwzyp2s1Q

## 3D Printing & Electronics

Build your own REZZ inspired glasses with NeoPixels and CircuitPython. 3D print the parts and use the Adafruit ItsyBitsy M4 to make hypnotic NeoPixel animations! Learn how to solder components and get started programming with CircuitPython.

![led_pixels_rezz-green.gif](https://cdn-learn.adafruit.com/assets/assets/000/086/470/medium640thumb/led_pixels_rezz-green.jpg?1577152817)

## DIY REZZ Glasses

[REZZ](http://officialrezz.com/) is a Canadian DJ and producer of electronic dance music. Her trademark eye-wear feature LED animations that appear like swirls that spin and change color. Her music can be streamed on [soundcloud](https://www.soundcloud.com/officialrezz). She also has videos and images up on her [instagram](https://www.instagram.com/officialrezz).

![led_pixels_rezz-insta.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/471/medium640/led_pixels_rezz-insta.jpg?1577153480)

## NeoPixel Triple-Rings

These rings have 44 through-hole NeoPixel LEDs. The outside has 24, inner ring has 16 and the center has 4. All of the NeoPixel rings are on one board, which makes it easy to wire. The NeoPixel LEDs are diffused so they look soft and easy on the eyes.

![led_pixels_rezz-fire.gif](https://cdn-learn.adafruit.com/assets/assets/000/086/462/medium640thumb/led_pixels_rezz-fire.jpg?1577151882)

![](https://cdn-learn.adafruit.com/assets/assets/000/085/839/medium800/led_pixels_hero-blue-2.jpg?1576286862)

## Parts
Parts used to build this project

- [ItsyBitsy M4](https://www.adafruit.com/product/3800)
- [Lipo Backpack&nbsp;](https://www.adafruit.com/product/2124)
- [Slide Switch](https://www.adafruit.com/product/805)
- [NeoPixel Triple-Ring](https://www.adafruit.com/product/4222)
- [400mAh Battery](https://www.adafruit.com/product/3898)
- [4-wire silicone cover stranded-core ribbon cable](https://www.adafruit.com/product/3889)

![led_pixels_parts.jpg](https://cdn-learn.adafruit.com/assets/assets/000/085/836/medium640/led_pixels_parts.jpg?1576269805)

### Part: ItsyBitsy M4
quantity: 1
Adafruit ItsyBitsy M4
[ItsyBitsy M4](https://www.adafruit.com/product/3800)

### Part: Lipo Backpack
quantity: 1
Trinket/ItsyBitsy Lipo Backpack
[Lipo Backpack](https://www.adafruit.com/product/2124)

### Part: NeoPixel Triple-Ring
quantity: 2
44 NeoPixel Triple-Ring Board
[NeoPixel Triple-Ring](https://www.adafruit.com/product/4222)

### Part: Reversable USB cable
quantity: 1
USB A to micro B reversible to get it connected easily the first time
[Reversable USB cable](https://www.adafruit.com/product/4111)

### Part: Slide Switch
quantity: 1
Slide Switch
[Slide Switch](https://www.adafruit.com/product/805)

### Part: 400mAh Battery
quantity: 1
400mAh Battery
[400mAh Battery](https://www.adafruit.com/product/3898)

### Part: 4-Wire Ribbon Cable
quantity: 1
30AWG SIlicone Cover Stranded-Core Ribbon Cable
[4-Wire Ribbon Cable](https://www.adafruit.com/product/3889)

### Part: M2 x 12mm Screws
quantity: 1
Phillips Pan Head. Secures arms to frames.
[M2 x 12mm Screws](https://www.albanycountyfasteners.com/Phillips-Pan-Head-Machine-Screw-M2-x-4-p/1066-1002.htm)

### Adafruit ItsyBitsy M4 Express featuring ATSAMD51

[Adafruit ItsyBitsy M4 Express featuring ATSAMD51](https://www.adafruit.com/product/3800)
What's smaller than a Feather but larger than a Trinket? It's an **Adafruit ItsyBitsy M4 Express** featuring the **Microchip ATSAMD51**! Small, powerful, with a ultra fast ATSAMD51 Cortex M4 processor running at 120 MHz - this microcontroller board is perfect...

Out of Stock
[Buy Now](https://www.adafruit.com/product/3800)
[Related Guides to the Product](https://learn.adafruit.com/products/3800/guides)
![Adafruit ItsyBitsy M4 Express featuring ATSAMD51 connected to a small breadboard. ](https://cdn-shop.adafruit.com/product-videos/640x480/3800-04.jpg)

### Adafruit LiIon/LiPoly Backpack Add-On for Pro Trinket/ItsyBitsy

[Adafruit LiIon/LiPoly Backpack Add-On for Pro Trinket/ItsyBitsy](https://www.adafruit.com/product/2124)
If you have an ItsyBitsy or Pro Trinket you probably know it's the perfect little size for a portable project. This LiPoly backpack makes it really easy to do! Instead of wiring 2 or 3 boards together to make a charging system, this little PCB sits on top of the PCB and allows a...

In Stock
[Buy Now](https://www.adafruit.com/product/2124)
[Related Guides to the Product](https://learn.adafruit.com/products/2124/guides)
![Angled Shot of the Adafruit LiIon/LiPoly Backpack Add-On for Pro Trinket/ItsyBitsy.](https://cdn-shop.adafruit.com/640x480/2124-09.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)

### 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!)...

Out of 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)

### Silicone Cover Stranded-Core Ribbon Cable - 4 Wires 1 Meter Long

[Silicone Cover Stranded-Core Ribbon Cable - 4 Wires 1 Meter Long](https://www.adafruit.com/product/3889)
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/3889)
[Related Guides to the Product](https://learn.adafruit.com/products/3889/guides)
![A coiled Silicone Cover Stranded-Core Ribbon Cable - 4 Wires 1 Meter Long](https://cdn-shop.adafruit.com/640x480/3889-01.jpg)

### Fully Reversible Pink/Purple USB A to micro B Cable - 1m long

[Fully Reversible Pink/Purple USB A to micro B Cable - 1m long](https://www.adafruit.com/product/4111)
This cable is not only super-fashionable, with a woven pink and purple Blinka-like pattern, it's also fully reversible! That's right, you will save _seconds_ a day by not having to flip the cable around.

First let's talk about the cover and over-molding. We got these...

In Stock
[Buy Now](https://www.adafruit.com/product/4111)
[Related Guides to the Product](https://learn.adafruit.com/products/4111/guides)
![Fully Reversible Pink/Purple USB A to micro B Cable](https://cdn-shop.adafruit.com/640x480/4111-02.jpg)

# Rezz-Inspired NeoPixel Glasses

## 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/086/426/medium800/led_pixels_circuit-diagram.jpg?1577139614)

## Power

The ItsyBitsy M4 is powered by 400mAh battery via the Lipo Backpack. This allows the USB port from the ItsyBitsy M4 to charge the 400mAh battery. A slide switch is connected to the two switch pin on the Lipo Back.&nbsp;

- **BAT** from **Lipo Backpack** to **BAT** on **ItsyBitsy M4**
- **Ground** from **Lipo Backpack** to **GND** on **ItsyBitsy M4**
- **5V** from **Lipo Backpack** to **USB** on **ItsyBitsy M4**

## Slide Switch

A 2-pin slide switch is wired to the switch pins on the Trinket/ItsyBitsy Lipo Backpack.&nbsp;

## NeoPixel Rings

The two 44x triple-rings are daisy chained with three wired connections, data, voltage and ground. The right ring is connected to the ItsyBitsy M4.

- **V+** from **NeoPixel Ring** to **Vhi** on **ItsyBitsy M4**
- **G** from **NeoPixel Ring** to **G** on **ItsyBitsy M4**
- **DIN** from **NeoPixel Ring** to **Pin #5** &nbsp;on **ItsyBitsy M4**

# Rezz-Inspired NeoPixel Glasses

## Software

![](https://cdn-learn.adafruit.com/assets/assets/000/086/346/medium800/led_pixels_code-banner.jpg?1577040402)

## Setup ItsyBitsy M4 with CircuitPython

We'll need to get our board setup so we can run the CircuitPython code. Let's walk through these steps to get the latest version of CircuitPython onto your board.&nbsp;

## The Mu Python Editor

Mu is a simple Python editor that works with Adafruit CircuitPython hardware. It's written in Python and works on Windows, MacOS, Linux and Raspberry Pi. The serial console is built right in, so you get immediate feedback from your board's serial output! While you can use any text editor with your code, Mu makes it super simple.

[Installing and Using the Mu Editor](https://learn.adafruit.com/welcome-to-circuitpython/installing-mu-editor)
![](https://cdn-learn.adafruit.com/assets/assets/000/086/347/medium800/led_pixels_itsy-code-glasses.jpg?1577040440)

## Installing or upgrading CircuitPython

You should ensure you have CircuitPython 4.0 or greater on your board. Plug your board in with a known good data + power cable (not the cheesy USB cable that comes with USB power packs, they are power only). You should see a new flash drive pop up.

If the drive is **CIRCUITPY** , then open the **boot\_out.txt** file to ensure the version number is 4.0 or greater.&nbsp;

```python
Adafruit CircuitPython 5.0.0-beta.0 on 2019-11-19; Adafruit ItsyBitsy M4 Express with samd51g19
```

## Download the Adafruit CircuitPython Library Bundle

In order to run the code, we'll need to download a few libraries. Libraries contain code to help interface with hardware a lot easier for us.

Use the [ItsyBitsy M4 page on Installing Libraries](https://learn.adafruit.com/introducing-adafruit-itsybitsy-m4/circuitpython-libraries) to get the library that matches the major version of CircuitPython you are using noted above, i.e. 4.x for the versiond starting with 4, 5.x for the versions starting with 5, etc.

To run the code for this project, we need the two libraries in the Required Libraries list below. Unzip the library bundle and search for the libraries. Drag and drop the files into a folder named **lib** on the **CIRCUITPY** drive (create the folder if it is not already on the ItsyBitsy M4).

## Required Libraries&nbsp;

- **neopixel.mpy**
- **adafruit\_fancyled**

![](https://cdn-learn.adafruit.com/assets/assets/000/086/494/medium800/led_pixels_circuitpy-drive.jpg?1577381347)

Once we have all the files we need, a directory listing will look similar to above as far as files and directories.

## Upload Code

Click on the download link below to grab the main code directly from GitHub. **Rename the file** to **code.py** &nbsp;and drop it onto the **CIRCUITPY** main (root) directory. The code will run properly when all of the files have been uploaded including libraries.

Use any text editor or favorite IDE to modify the code. We suggest using Mu as noted above.

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

## Double Check

See the directory listing above and double check that you have all the files listed to make this project function. If any are missing or in an incorrect directory, move them so they're in the right places.

# Rezz-Inspired NeoPixel Glasses

## 3D Printing

## 3D Printed Parts

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

- rezz-frame.stl
- rezz-arm-bat.stl
- rezz-arm-itsy.stl
- rezz-arm-grip-left.stl
- rezz-arm-grip-right.stl
- rezz-itsy-box.stl
- rezz-bat-box.stl
- rezz-bat-cover.stl

![led_pixels_3d-parts.jpg](https://cdn-learn.adafruit.com/assets/assets/000/085/837/medium640/led_pixels_3d-parts.jpg?1576274133)

## Exploded View

The CAD animation shows how the parts fit together. The two arms are secured to the frames with two M2 x 12mm long machine screws. The purple arm grips are printed in TPU flexible filament. The enclosures houses the electronics. The enclosures are superglued to the arms. The battery box has a snap-fit cover.

![led_pixels_explode.gif](https://cdn-learn.adafruit.com/assets/assets/000/086/391/medium640thumb/led_pixels_explode.jpg?1577122252)

[Download CAD from A360](https://a360.co/2MGG5Wf)
[Download from Thingiverse](https://www.thingiverse.com/thing:4066482)
[Download from PrusaPrinters](https://www.prusaprinters.org/prints/15678-rezz-inspired-neopixel-glasses)
## Slicing Parts

No supports are required. Slice with setting for PLA material. The arm grips will need to be printed in TPU flexible material. Adjust slice settings accordingly to materials.&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_pixels_cura-slice.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/410/medium640/led_pixels_cura-slice.jpg?1577123120)

## Design Source Files

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

![led_pixels_3800-ItsyBitsy-M4.gif](https://cdn-learn.adafruit.com/assets/assets/000/086/357/medium640thumb/led_pixels_3800-ItsyBitsy-M4.jpg?1577048753)

# Rezz-Inspired NeoPixel Glasses

## Frame Assembly

## Lipo Battery Arm

The **rezz-arm-bat.stl** and **rezz-bat-box.stl** parts are attached together with super glue. Use the mounting holes to line up the parts. Reference the top and bottom photos to get the correct placement.

![led_pixels_arm-bat-top.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/254/medium640/led_pixels_arm-bat-top.jpg?1576973497)

![led_pixels_arm-bat-bottom.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/263/medium640/led_pixels_arm-bat-bottom.jpg?1576973871)

## ItsyBitsy Arm

The **rezz-arm-itsy.stl** and&nbsp; **rezz-itsy-box.stl parts** are attached together with super glue. Use the mounting holes to line up the parts. Reference the top and bottom photos to get the correct placement.

![led_pixels_arm-itsy-top.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/255/medium640/led_pixels_arm-itsy-top.jpg?1576973525)

![led_pixels_arm-itsy-bottom.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/264/medium640/led_pixels_arm-itsy-bottom.jpg?1576973902)

## Connect Arms to Frame

The two arms are attached to the frame. Press the hinges from the arms into the knuckles on the sides of the frame.

![led_pixels_hinge-connecting.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/257/medium640/led_pixels_hinge-connecting.jpg?1576973602)

## Installing Hinges

Press the hinge and knuckles together so that the 2mm diameter hole is visible through out the hinge. Use a M2 threading tool to tap threads into the plastic.

![led_pixels_hinge-connect.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/256/medium640/led_pixels_hinge-connect.jpg?1576973570)

## Installed Arms

Install both arms into the frames. Double check the orientation of the arms and wear them to test fit and verify the parts are installed correctly.

![led_pixels_frame-arms-installed.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/258/medium640/led_pixels_frame-arms-installed.jpg?1576973637)

## Install Screw

Insert a M2 x 12mm machine screw through the top of the hinges. Fasten the screw until it's installed all the way through the hinge.

![led_pixels_frame-screw-arms.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/259/medium640/led_pixels_frame-screw-arms.jpg?1576973671)

## Secured Arms

Ensure the screw is installed as straight as possible through the hinge. Using a tapping tool to create threads into the hinges makes this much easier.

![led_pixels_frame-screw-installed.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/260/medium640/led_pixels_frame-screw-installed.jpg?1576973696)

## Assembled Frame

Test fit the assembled frames. Put them on and try them out. Double check the arms are installed in the correct orientation.

![led_pixels_frame-arms-up.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/262/medium640/led_pixels_frame-arms-up.jpg?1576973818)

# Rezz-Inspired NeoPixel Glasses

## Rings Wiring

## Data in and out

Follow the photo to reference the correct orientation that the two rings will be connected. Note the left and right rings. The **data out** from the **right ring** will be connected to the **data in** on the **left ring**.

![led_pixels_rings-inout.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/265/medium640/led_pixels_rings-inout.jpg?1576973980)

## Ring Wire

Use a 3-wire silicone cover stranded core ribbon cable to connect the two rings together. Measure and cut a piece of ribbon cable to be **4.5cm (1.7in)**&nbsp;in length. Use wire stripers to remove a bit of insulation from the tips of each wire. Tin the tips by adding a bit of solder. This will prevent the strands of wire from fraying.

![led_pixels_ring-two-wire.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/320/medium640/led_pixels_ring-two-wire.jpg?1577023380)

## Wire Left Ring

Solder the ribbon cable to the three pins on the **left ring**. **GND** , **DI** and **5V**. Third helping hands keep the PCBs in place while soldering.

![led_pixels_ring-left-wiring.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/266/medium640/led_pixels_ring-left-wiring.jpg?1576973997)

## Wire Right Ring

Solder the ribbon cable from the left ring to the right ring. Connect **GND** to **GND** , **DO** to **DI** &nbsp;and **5V** to **5V**. A second pair of helping hands was used to assist in keeping the PCBs secured while soldering.

![led_pixels_ring-right-wiring.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/267/medium640/led_pixels_ring-right-wiring.jpg?1576974029)

## Rings Wired

Double check the solder joints and ensure they're solid.

![led_pixels_rings-wired.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/268/medium640/led_pixels_rings-wired.jpg?1576974062)

## ItsyBItsy Wiring

Measure and cut a 3-wire ribbon cable to be **9.5cm (3.74in)** in length. Use wire stripers to remove a bit of insulation from the tips of each wire. Tin the tips by adding a bit of solder. This will prevent the strands of wire from fraying.

![led_pixels_ring-right-wire.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/269/medium640/led_pixels_ring-right-wire.jpg?1576974082)

## Connect Wire to Right Ring

Attach the cable to the right ring by soldering the wires to the three pins. Use a helping hands tool to keep the PCB in place while soldering.

![led_pixels_ring-right-wire-soldered.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/270/medium640/led_pixels_ring-right-wire-soldered.jpg?1576974109)

## Connected Left and Right Rings

Double check the wiring to ensure the solder joints are solid.

![led_pixels_rings-wired-two.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/271/medium640/led_pixels_rings-wired-two.jpg?1576974138)

# Rezz-Inspired NeoPixel Glasses

## Install Rings

## Rings Frame Preinstallation

Orient the set of rings with the assembled frames to get an idea of the placement. The left ring is on the side with the Lipo Backpack and battery while the right ring is on the arm with the ItsyBitsy M4.&nbsp;

![led_pixels_rings-frame-preinstall.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/282/medium640/led_pixels_rings-frame-preinstall.jpg?1576974434)

## Install Rings

Start by inserting the left ring into the right eye of the frame. Pull the left ring all the way through. Pass the cable from the right ring through the right eye.

![led_pixels_frame-ring-install-1.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/283/medium640/led_pixels_frame-ring-install-1.jpg?1576974541)

![led_pixels_frame-ring-install-2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/284/medium640/led_pixels_frame-ring-install-2.jpg?1576974560)

## Install Rings (Continued)

Orient the right ring so the cable is parallel with the arm. The LED rings should be upright and match the photo. The left and right circular ring holes on the frame feature bumps along the inner edges that will stop the PCBs from being pushed through. Insert the PCB at an angle in between the bumps to install.

![led_pixels_frame-ring-install-3.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/285/medium640/led_pixels_frame-ring-install-3.jpg?1576974575)

![led_pixels_frame-ring-install-4.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/286/medium640/led_pixels_frame-ring-install-4.jpg?1576974588)

## Ring Installation (Continued)

Insert the left ring through the left eye on the frame. Push the PCB all the way through and orient so the LEDs are parallel with the arms and lined up with the right ring. Press fit the left ring into the left eye so the PCB is flush with the frame.

![led_pixels_frame-ring-install-5.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/287/medium640/led_pixels_frame-ring-install-5.jpg?1576974602)

![led_pixels_frame-ring-install-6.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/288/medium640/led_pixels_frame-ring-install-6.jpg?1576974615)

## Install Wiring

Insert the ribbon cable from the rings through the holes on the side of the eye socket. Thread the ribbon cable through the center hole on the arm. Press the wiring into the channel on the arm.

![led_pixels_frame-arm-itsy-install-wire.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/289/medium640/led_pixels_frame-arm-itsy-install-wire.jpg?1576974646)

## Install Wiring (Continued)

Pull the ribbon cable through the other side of the arm.

![led_pixels_frame-arm-itsy-wire-installed.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/290/medium640/led_pixels_frame-arm-itsy-wire-installed.jpg?1576974662)

## Frame Installed Wires

Thoroughly inspect the frames and ensure the two rings are installed properly.

![led_pixels_frame-arm-isty-wire-installed-topview.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/291/medium640/led_pixels_frame-arm-isty-wire-installed-topview.jpg?1576974684)

# Rezz-Inspired NeoPixel Glasses

## Lipo Backpack Wiring

## Lipo Backpack

A slide switch will need to be wired to the Trinket/ItsyBitsy Lipo Backpack. This PCB enables the ItsyBitsy M4 to have USB battery recharging.

![led_pixels_lipo-backpack-parts.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/292/medium640/led_pixels_lipo-backpack-parts.jpg?1576974774)

## Wire Switch

Connect a short 2-wire ribbon cable to the slide switch. The ideal length of wire is around 2.5cm (1in) which is pretty short! Note the pins on the switch have been shorted. Only use the middle pin and either far left or right pin.

![led_pixels_switch-wired.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/293/medium640/led_pixels_switch-wired.jpg?1576974791)

## Cut Trace

The pins on the Trinket/ItsyBitsy Lipo Backpack need to be cut in order to enable on/off switch functionality. Use diagonal flush snips to cut the trace. Use the mounting hole as an anchor.&nbsp;

![led_pixels_lipo-cut-trace.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/294/medium640/led_pixels_lipo-cut-trace.jpg?1576974805)

## Wired Switch

Solder the two wires from the slide switch to the switch pins on the Trinket/ItsyBitsy Lipo Backpack. Solder the wires from the top of the PCB.

![led_pixels_lipo-switch-wired.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/295/medium640/led_pixels_lipo-switch-wired.jpg?1576974819)

## Wire for Lipo Backpack

Measure and cut a 30.5cm (12in) 3-wire ribbon cable. This will be used to connect the Trinket/ItsyBisty Lipo Backpack to the ItsyBisty M4.

![led_pixels_lipo-wire.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/296/medium640/led_pixels_lipo-wire.jpg?1576974843)

## Cut Ground Short

Measure out one wire to be 9cm (3.5in) in length. Use wire cutters to cut the wire. Peal away the (longer) excess wire from the 3-wire ribbon cable. The shorter wire will be connected to one of the ground pads on the left ring.

![led_pixels_lipo-wire-gnd-cut.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/297/medium640/led_pixels_lipo-wire-gnd-cut.jpg?1576974865)

## Connect Cable to Lipo Backpack

Solder the three wires to the pins on the back of the Trinket/ItsyBitsy Lipo Backpack. Ensure the short wire is soldered to the ground pin. The installation requires the wires to be soldered from the bottom of the PCB.

![led_pixels_lipo-wire-solder.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/298/medium640/led_pixels_lipo-wire-solder.jpg?1576974880)

## Wired Lipo Backpack

Double check the wiring is solid on the slide switch and Trinket/ItsyBitsy Lipo Backpack.

![led_pixels_lipo-wired.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/299/medium640/led_pixels_lipo-wired.jpg?1576974906)

# Rezz-Inspired NeoPixel Glasses

## Install Lipo Backpack

## Install Lipo Backpack

Insert the cable from the Trinket/ItsyBitsy Lipo Backpack through the hole on the left arm. Pull the wiring all the way through so the PCB and switch are inside the enclosure.

![led_pixels_lipo-install-arm.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/300/medium640/led_pixels_lipo-install-arm.jpg?1576975099)

## Fit Components

Insert the slide switch at an angle into the holder on the side of the enclosure. The slide switch is press fitted and secured in place. Orient the Trinket/ItsyBitsy Lipo Backpack PCB so it's in the right position and press it into the enclosure. Reference the photo for correct placement.

![led_pixels_lipo-switch-arm-install.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/301/medium640/led_pixels_lipo-switch-arm-install.jpg?1576975129)

## Switch Install

The slide switch is accessible through the hole on the back of the enclosure on the left arm.

![led_pixels_switch-arm-install.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/306/medium640/led_pixels_switch-arm-install.jpg?1576985003)

## Ground Wire Install

Insert the cable from the Trinket/ItsyBitsy Lipo Backpack through the hole on the side of the left eye on the frames. Carefully fit the short wire through the hole.

![led_pixels_lipo-gnd-arm-install.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/313/medium640/led_pixels_lipo-gnd-arm-install.jpg?1576985389)

## Nose Bridge

String the rest of the cable under the wiring on nose bridge up and over the right ring. Position the wiring so it neatly goes across the two rings.

![led_pixels_lipo-wire-bridge.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/308/medium640/led_pixels_lipo-wire-bridge.jpg?1576985038)

## Solder Ground

Carefully attach the short wire to the nearest ground pad on the left ring. A pair of tweezers can assist handling of the wire. Please be careful not to damage the frame or arms with the soldering iron.

![led_pixels_arm-left-gnd-wire-solder.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/312/medium640/led_pixels_arm-left-gnd-wire-solder.jpg?1576985197)

## Install Lipo Backpack Wiring

Thread the cable from the Trinket/ItsyBitsy Lipo Backpack through the hole on the right eye. Insert the cable through hole in the enclosure on the right arm. Press the wiring down into the channel on the right arm.

![led_pixels_lip-wire-right-arm-install.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/309/medium640/led_pixels_lip-wire-right-arm-install.jpg?1576985054)

## Lipo Backpack Wiring Installed

Pull the wiring from the Trinket/ItsyBitsy Lipo Backpack through the other side of the right arm.

![led_pixels_arm-right-wires-installed.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/310/medium640/led_pixels_arm-right-wires-installed.jpg?1576985154)

## Installed Wiring

Two sets of ribbon cables are now ready to connect to the ItsyBitsy M4. The length of wiring ought to be enough to reach the pins on the ItsyBitsy M4.

![led_pixels_arm-itsy-wires-side.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/311/medium640/led_pixels_arm-itsy-wires-side.jpg?1576985172)

# Rezz-Inspired NeoPixel Glasses

## ItsyBitsy Wiring

## Connect to ItsyBitsy M4

Solder the 3-wire cable from the rings to the pins on the bottom of the ItsyBitsy M4. Connect **ground** wire to the **ground(G)** pin, **data in** wire to **pin #5** and **5V** wire to **Vhi** pin. The **Vhi** pin is ideal for powering NeoPixels through USB or battery.

![led_pixels_itsy-neo-wiring.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/314/medium640/led_pixels_itsy-neo-wiring.jpg?1576985494)

## Wire Lipo Backpack Wires

Solder the two wires from the Trinket/ItsyBitsy Lipo Backpack to the **BAT** and **USB** pins on the ItsyBitsy M4. Check the continuity with a multi-meter to check which wire is connect to the **BAT** and **USB** pins.

![led_pixels_itsy-lipo-wiring.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/315/medium640/led_pixels_itsy-lipo-wiring.jpg?1576985506)

## Install ItsyBisty

Carefully install the ItsyBitsy M4 into the enclosure. Insert the PCB at an angle so one side is under the clips. Press the PCB into the case to snap fit it into place. Slide the PCB down so it's flush with the case.

![led_pixels_itsy-arm-installed.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/316/medium640/led_pixels_itsy-arm-installed.jpg?1576985522)

## Install Wires

Check the wiring and ensure it's fitted into the channels on the arms.

![led_pixels_itsy-wire-channel.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/317/medium640/led_pixels_itsy-wire-channel.jpg?1576985540)

# Rezz-Inspired NeoPixel Glasses

## Install Battery

## Connect Battery

Plug in the 400mAh battery to the JST port on the Trinket/ItsyBitsy Lipo Backpack. Orient the battery so it's matching the photo. Place the battery into the enclosure.

![led_pixels_battery-install.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/318/medium640/led_pixels_battery-install.jpg?1576985582)

## Install Cover

Place the battery cover over the case on the left arm. Insert the cover at an angle so one side is lined up with the groves on the edge. Firmly press together to snap fit into place.

![led_pixels_bat-cover-install.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/319/medium640/led_pixels_bat-cover-install.jpg?1576985600)

# Rezz-Inspired NeoPixel Glasses

## Usage

## Assembled Glasses

Use the slide switch to turn the circuit on and off. Recharge the battery over microUSB by plugging in the ItsyBitsy M4 to computer or 5V wall adapter.

![led_pixels_final-build.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/348/medium640/led_pixels_final-build.jpg?1577040504)

## USB Connect

The ItsyBisty M4 is easily accessible on the side of the right arm. This [fully reversible USB cable](https://www.adafruit.com/product/4111) is our favorite.

![led_pixels_itsy-usb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/498/medium640/led_pixels_itsy-usb.jpg?1577383554)

## Recharging Battery

Check the LEDs on-board the Trinket/ItsyBitsy Lipo Backpack to see the status of the battery.

- Red LED means the battery is recharging.
- Green LED means the battery has been fully recharged.

![led_pixels_usb-charging-LEDs.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/495/medium640/led_pixels_usb-charging-LEDs.jpg?1577383479)

Info: 

## Wearable

Wearing a hat helps support the weight of the glasses. Tucking the arms under the hat can help keep them secured.

![led_pixels_wear-hats.jpg](https://cdn-learn.adafruit.com/assets/assets/000/086/499/medium640/led_pixels_wear-hats.jpg?1577384551)

## Going Beyond

There's room for improving the comfort of the glasses. Perhaps some [sugru](https://www.adafruit.com/product/437) to create a makeshift nose bridge. Wearing these glasses for long periods of time can cause discomfort.

![](https://cdn-learn.adafruit.com/assets/assets/000/086/349/medium800/led_pixels_final-build-wide.jpg?1577040586)


## Featured Products

### Adafruit ItsyBitsy M4 Express featuring ATSAMD51

[Adafruit ItsyBitsy M4 Express featuring ATSAMD51](https://www.adafruit.com/product/3800)
What's smaller than a Feather but larger than a Trinket? It's an **Adafruit ItsyBitsy M4 Express** featuring the **Microchip ATSAMD51**! Small, powerful, with a ultra fast ATSAMD51 Cortex M4 processor running at 120 MHz - this microcontroller board is perfect...

Out of Stock
[Buy Now](https://www.adafruit.com/product/3800)
[Related Guides to the Product](https://learn.adafruit.com/products/3800/guides)
### NeoPixel Triple-Ring Board with 44 Thru-Hole LEDs

[NeoPixel Triple-Ring Board with 44 Thru-Hole LEDs](https://www.adafruit.com/product/4222)
Whether they're rings, strips, panels, matrices, we love glowing up projects with LEDs. And here's an interesting new board! Is it half&nbsp;of an electronic Oreo cookie? Nay! It's a **NeoPixel Triple-Ring Board with Thru-Hole LEDs**.

This board is dotted with 44...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/4222)
[Related Guides to the Product](https://learn.adafruit.com/products/4222/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)
### Adafruit LiIon/LiPoly Backpack Add-On for Pro Trinket/ItsyBitsy

[Adafruit LiIon/LiPoly Backpack Add-On for Pro Trinket/ItsyBitsy](https://www.adafruit.com/product/2124)
If you have an ItsyBitsy or Pro Trinket you probably know it's the perfect little size for a portable project. This LiPoly backpack makes it really easy to do! Instead of wiring 2 or 3 boards together to make a charging system, this little PCB sits on top of the PCB and allows a...

In Stock
[Buy Now](https://www.adafruit.com/product/2124)
[Related Guides to the Product](https://learn.adafruit.com/products/2124/guides)
### Fully Reversible Pink/Purple USB A to micro B Cable - 1m long

[Fully Reversible Pink/Purple USB A to micro B Cable - 1m long](https://www.adafruit.com/product/4111)
This cable is not only super-fashionable, with a woven pink and purple Blinka-like pattern, it's also fully reversible! That's right, you will save _seconds_ a day by not having to flip the cable around.

First let's talk about the cover and over-molding. We got these...

In Stock
[Buy Now](https://www.adafruit.com/product/4111)
[Related Guides to the Product](https://learn.adafruit.com/products/4111/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!)...

Out of Stock
[Buy Now](https://www.adafruit.com/product/3898)
[Related Guides to the Product](https://learn.adafruit.com/products/3898/guides)
### Silicone Cover Stranded-Core Ribbon Cable - 4 Wires 1 Meter Long

[Silicone Cover Stranded-Core Ribbon Cable - 4 Wires 1 Meter Long](https://www.adafruit.com/product/3889)
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/3889)
[Related Guides to the Product](https://learn.adafruit.com/products/3889/guides)

## Related Guides

- [MASLOW: an Open WiFi Detector with Adafruit Pro Trinket and CC3000](https://learn.adafruit.com/wifi-hotspot-finder-adafruit-pro-trinket-cc3000.md)
- [Supernova Poi](https://learn.adafruit.com/supernova-poi.md)
- [Pocket Galaxy](https://learn.adafruit.com/pocket-galaxy.md)
- [Adafriend the Virtual Pet Cube](https://learn.adafruit.com/adafriend.md)
- [Galaxy Pendant](https://learn.adafruit.com/life-proof-led-necklace.md)
- [How to train new TensorFlow Lite micro speech models](https://learn.adafruit.com/how-to-train-new-tensorflow-lite-micro-speech-models.md)
- [Watchmen's Sister Night NeoPixel Goggles](https://learn.adafruit.com/watchmen-sister-night-circuitpython-neopixel-goggles.md)
- [A CLI in CircuitPython](https://learn.adafruit.com/a-cli-in-circuitpython.md)
- [MakeCode Arcade with SAMD51 M4](https://learn.adafruit.com/makecode-arcade-with-samd51-m4.md)
- [DRAFT PUNK](https://learn.adafruit.com/draft-punk.md)
- [Infinity Mirror Collar](https://learn.adafruit.com/infinity-mirror-collar.md)
- [Alternative languages for programming the SAMD51 boards](https://learn.adafruit.com/alternative-languages-for-programming-samd-boards.md)
- [Introducing ItsyBitsy 32u4](https://learn.adafruit.com/introducting-itsy-bitsy-32u4.md)
- [Tent Lantern](https://learn.adafruit.com/tent-lantern.md)
- [CircuitPython 101: State Machines, Two Ways](https://learn.adafruit.com/circuitpython-101-state-machines.md)
