# Astrolite NeoPixel Upgrade

## Overview

https://www.youtube.com/watch?v=sZHMZIlp6GU

In this project we’re upcycling a classic construction kit from 1969.

&nbsp;

Astrolite&nbsp;by Hasbro, introduced in 1969, was a building toy set made of clear tubes that snap fit together,&nbsp;allowing one to build cities or robots of light!

&nbsp;

In this project we’re adding NeoPixels and motorizing the color wheel.

![3d_printing_hero_wide.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/690/medium640/3d_printing_hero_wide.jpg?1547959532)

The Adafruit CRICKIT is great for this project, it can drive NeoPixels, servos and lots of other sensors and components for building robots.

&nbsp;

The board and components fit inside the light box and secured with 3d printed parts.

&nbsp;

All of the components stack on top of each other, making this an easy mod!

![3d_printing_hero-adastar.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/691/medium640/3d_printing_hero-adastar.jpg?1547959648)

The 3d files are free to download and modify in any CAD package!

&nbsp;

Program the Crickit and Circuit Playground Express with Microsoft Makecode or [Circuit Python](https://learn.adafruit.com/adafruit-crickit-creative-robotic-interactive-construction-kit/circuitpython-examples). Use the onboard sensors to trigger drivers, motors, change light animations and sounds.

&nbsp;

Add our polycarbonate case to a couple of Circuit Playground Expresses to add even more interactive lights! We 3d printed ¼ tripod attachments to fit with the tubes!

![3d_printing_top-attach-loop.gif](https://cdn-learn.adafruit.com/assets/assets/000/069/692/medium640thumb/3d_printing_top-attach-loop.jpg?1547959985)

![3d_printing_hero-cpx-adapt.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/693/medium640/3d_printing_hero-cpx-adapt.jpg?1547960064)

## Prerequisite Guides

There's resources in these guides that go beyond what's covered in this tutorial. MakeCode guide is all about setting up your Circuit Playground Express board. TheCircuit Playground Express introduction guide walks you through all of the pinouts, sensors and everything you need to know.

- [MakeCode for Circuit Playground Express](https://learn.adafruit.com/makecode)
- [Introducing Circuit Playground Express](https://learn.adafruit.com/adafruit-circuit-playground-express)
- [Introducing CRICKIT](https://learn.adafruit.com/adafruit-crickit-creative-robotic-interactive-construction-kit)

## Parts

You can find the list of all parts used to make this project linked below!

### Adafruit CRICKIT for Circuit Playground Express

[Adafruit CRICKIT for Circuit Playground Express](https://www.adafruit.com/product/3093)
Sometimes we wonder if robotics engineers ever watch movies. If they did, they'd know that making robots into servants always ends up in a robot rebellion. Why even go down that path? Here at Adafruit, we believe in making robots our&nbsp; **friends!**

So if you find...

In Stock
[Buy Now](https://www.adafruit.com/product/3093)
[Related Guides to the Product](https://learn.adafruit.com/products/3093/guides)
![Top down view of a Adafruit CRICKIT for Circuit Playground Express with a circular board connected. ](https://cdn-shop.adafruit.com/640x480/3093-07.jpg)

### Circuit Playground Express

[Circuit Playground Express](https://www.adafruit.com/product/3333)
 **Circuit Playground Express** is the next step towards a perfect introduction to electronics and programming. We've taken the original Circuit Playground Classic and made it even better! Not only did we pack even more sensors in, we also made it even easier to...

In Stock
[Buy Now](https://www.adafruit.com/product/3333)
[Related Guides to the Product](https://learn.adafruit.com/products/3333/guides)
![A Black woman's manicured hand holds a round microcontroller with lit up LEDs.](https://cdn-shop.adafruit.com/640x480/3333-05.jpg)

### Adafruit NeoPixel LED Side Light Strip - Black 120 LED

[Adafruit NeoPixel LED Side Light Strip - Black 120 LED](https://www.adafruit.com/product/3634)
Fancy new _side light_ LED strips are a great alternative for folks who have loved and used Adafruit LED strips for a few years but want gorgeous, glowy&nbsp;light emitting at 90 degrees. They're very skinny so you can run them along a thin edge and curve them around shapes and...

In Stock
[Buy Now](https://www.adafruit.com/product/3634)
[Related Guides to the Product](https://learn.adafruit.com/products/3634/guides)
![Top down view of a Adafruit NeoPixel Digital RGB 120 LED-per-meter strip.](https://cdn-shop.adafruit.com/640x480/3634-04.jpg)

### Adafruit Circuit Playground Express or Bluefruit Enclosure

[Adafruit Circuit Playground Express or Bluefruit Enclosure](https://www.adafruit.com/product/3915)
We've got nice cases for many of our beloved boards, but the [Circuit Playground Express](https://www.adafruit.com/product/3333)&nbsp;and [Circuit Playground&nbsp;Bluefruit](https://www.adafruit.com/product/4333) has been left out of couture enclosure...

Out of Stock
[Buy Now](https://www.adafruit.com/product/3915)
[Related Guides to the Product](https://learn.adafruit.com/products/3915/guides)
![Top down view of a clear acrylic Adafruit Circuit Playground Express or Bluefruit Enclosure.](https://cdn-shop.adafruit.com/product-videos/640x480/3915-06.jpg)

### Part: Servo
quantity: 1
Continuous Rotation Servo
[Servo](https://www.adafruit.com/product/154)

### Part: 4 x AA Battery Holder with 2.1mm Plug
quantity: 1
4 x AA Battery Holder with 2.1mm Plug
[4 x AA Battery Holder with 2.1mm Plug](https://www.adafruit.com/product/3784)

### Part: 1/4" to 1/4" Screw Adapter
quantity: 1
1/4" to 1/4" Screw Adapter
[1/4" to 1/4" Screw Adapter](https://www.adafruit.com/product/2632)

### Part: Camera and Tripod 3/8" to 1/4" Adapter Screw
quantity: 1
Camera and Tripod 3/8" to 1/4" Adapter Screw
[Camera and Tripod 3/8" to 1/4" Adapter Screw](https://www.adafruit.com/product/2392)

## Standoffs&nbsp;

&nbsp;

(4) M3x15mm secures Crickit to the 3D Printed Base

&nbsp;

CPX Servo Mount screws

(2) M3x6mm

&nbsp;

Servo Standoffs

(4) M3x10mm

&nbsp;

Servo Horn Standoffs

(2) M3x25mm

![3d_printing_screws.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/716/medium640/3d_printing_screws.jpg?1548015266)

### Part: M3 Male-Female Hex Brass Standoffs
quantity: 1
M3 Male-Female Hex Brass Standoffs
[M3 Male-Female Hex Brass Standoffs](https://www.amazon.com/gp/product/B06XQ33Y9X)

# Astrolite NeoPixel Upgrade

## Circuit Diagram

Take a moment to review the components in the circuit diagram. This illustration is meant for&nbsp;referencing wired connections - The length of wire,&nbsp;position and size of components are not exact.

![](https://cdn-learn.adafruit.com/assets/assets/000/069/729/medium800/3d_printing_cricuit-diagram.jpg?1548106042)

## **Connections:**

**Servo:&nbsp;**

The servo plugs into the headers with the ground positioned close to the center of the board.

**Side Light NeoPixel Strip:**

The Side Light NeoPixel strip connects to the NeoPixel terminal on the Crickit. Din on the NeoPixel strip connects to the arrow icon on the terminal on the Crickit on the Crickit. GND connects to GND and 5V to 5V.

 **Battery Pack**

&nbsp;

The&nbsp; **4xAA** &nbsp;battery case connects to the&nbsp; **Power** &nbsp;input on the&nbsp; **Crickit**. We added an on and off push button in between the battery pack and the barrel. We used a [JST 2-pin Extension Cable with On/Off Switch - JST PH2](https://www.adafruit.com/product/3064)&nbsp;but any on / off switch will work.

![3d_printing_battery-pack-switch.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/717/medium640/3d_printing_battery-pack-switch.jpg?1548015516)

## Side Light Neopixel Strip Direction

&nbsp;

Double check that the cables are connected at the start on the strip!&nbsp;

![3d_printing_neopixel-side-direction.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/695/medium640/3d_printing_neopixel-side-direction.jpg?1548004433)

# Astrolite NeoPixel Upgrade

## Code

## MakeCode for CRICKIT and Circuit Playground Express

MakeCode is this programming editor that runs in the Google Chrome web browser. It’s has an intuitive interface that’s both block based and text editor.

It works with Adafruit's CRICKIT and Circuit Playground Express so you can make interactive projects with the on-board sensors and components. You can drag & drop blocks to make interactive programs using lights and sounds without having to solder or learning a new syntax.

You can alternatively upload code directly to the Circuit Playground Express with WebUSB,&nbsp;[see the steps to do so here](https://learn.adafruit.com/makecode/webusb).

![](https://cdn-learn.adafruit.com/assets/assets/000/069/725/medium800/3d_printing_makecode.jpg?1548097971)

[Edit Astrolite Code in Makecode](https://makecode.com/_HiHfuVP5rP71)
## Setup Circuit Playground Express for MakeCode

To get started, we'll need to head over to the&nbsp;[Adafruit MakeCode](https://makecode.adafruit.com/beta?webusb=1#editor)&nbsp;website and follow the steps below.

1. Plug in your Circuit Playground Express with a&nbsp; **USB Cable**
2. Press the&nbsp; **RESET** &nbsp;button. Green light means you're ready to MakeCode
3. Download the&nbsp; **UF2** &nbsp;file and drop it onto&nbsp; **CPLAYBOOT**.

## &nbsp;

## Install CRICKIT Extension for MakeCode

On the [MakeCode.Adafruit.Com](MakeCode.Adafruit.Com) site, click on New Project. In the list of blocks, select ADVANCED and then EXTENSIONS. Click on the Crickit block that shows up and install Crickit support! You will now have a new CRICKIT bin of blocks you can use!

&nbsp;

Continue on to learn how to use these blocks. [Read the full guide here for more info](https://learn.adafruit.com/adafruit-crickit-creative-robotic-interactive-construction-kit/makecode).

&nbsp;

## Upload and Test Code

Once you have your CPX setup with the MakeCode UF2, try testing it out by uploading the code to the board. Click the link below to open up the program in MakeCode. Click on the pink edit icon near the top of the title to open the code. This will create a project in MakeCode and allow you to edit, modify and upload the code to the board.&nbsp;

## WebUSB

&nbsp;

Makecode can also pair with your Circuit Playground Express through a chrome web browser by&nbsp;[following this page in our MakeCode guide](https://learn.adafruit.com/makecode/webusb).

&nbsp;

Open the project:&nbsp;[https://makecode.com/\_WhgMsj9Ea57X](https://makecode.com/_WhgMsj9Ea57X)

![3d_printing_makecode-wide.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/697/medium640/3d_printing_makecode-wide.jpg?1548007010)

With WebUSB, the code edit will upload directly to the Circuit Playground Express without the need to drag and drop file onto it!

Follow the instruction to set up your board and you'll be able to quickly send code to Circuit Playground Express!&nbsp;

# Astrolite NeoPixel Upgrade

## 3D Printing

## What If I Don't Have A 3D Printer?

Not to worry! You can use a 3D printing service such as&nbsp;a local 3D printer operator 3D print and ship you parts to you. This is a great way to get your&nbsp;parts 3D printed by local makers. You could also try checking out your local Library or search for a Maker Space.

## &nbsp;
![](https://cdn-learn.adafruit.com/assets/assets/000/069/698/medium800/3d_printing_3d-parts.jpg?1548010167)

[Download STLs](https://www.thingiverse.com/thing:3375069)
## Edit Design

The design is&nbsp;modeled in&nbsp;Autodesk Fusion 360 and available&nbsp;to edit. You can adjust the pieces to print&nbsp;by moving or adding construction planes to cut up the parts&nbsp;. You can modify the&nbsp;sketches or adjust features in the&nbsp;parametric&nbsp;timeline.

[Edit Servo Mount, Horn and CPX Mount Fusion 360 Files](https://a360.co/2Do9eRG)
[Edit Tripod Adapter, AdaStar Shape and Pegs](https://a360.co/2FC0hGI)
## Slice Settings

Depending on your 3D printer, you may need to&nbsp;adjust the slice settings. We printed all of the parts on a Prusa i3 MK2s. These parts were sliced with Ultimaker Cura.

- Nozzle: 0.4mm
- Extrusion Width: 0.4mm
- Layer Height: 0.15mm
- Infill: 20%
- Nozzle Temperature: 210c
- Heated Glass Bed: 60c
- Print Speed: 60mm/s

## Design Source Files

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

&nbsp;

[Adafruit CAD Parts](https://github.com/adafruit/Adafruit_CAD_Parts)
# Astrolite NeoPixel Upgrade

## Assembly

## Remove Light socket

&nbsp;

We started by gutting the light bulb socket using a rotary tool and pliers.

&nbsp;

Use the&nbsp;Dremel to remove a center black section and then use the&nbsp;pliers to grip the edges and pray off.&nbsp;

![3d_printing_socket-removed.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/718/medium640/3d_printing_socket-removed.jpg?1548015923)

## Base Plate

&nbsp;

The 3D Printed Base plate will attach our Crickit with standoffs. The Base plate will press fits onto the bottom of the original Astrolite case and holds without the need of any additional hardware!

&nbsp;

We'll use the&nbsp;(4) M3x15mm standoffs to attach the Crickit to the 3d Printed base.

![3d_printing_base-standoffs.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/699/medium640/3d_printing_base-standoffs.jpg?1548013619)

![3d_printing_base-standoffs-attached.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/700/medium640/3d_printing_base-standoffs-attached.jpg?1548013883)

## CPX mounts

&nbsp;

Next we'll assemble the included blot kit to the Circuit Playground Express.&nbsp;

&nbsp;

The 3D Printed Servo Mount attaches to the Circuit Playground Express. Align the cutaway over the JST port.&nbsp;

&nbsp;

Use two M3x6mm long screws to secure the Servo mount to the Circuit Playground Express.&nbsp;

![3d_printing_cpx-bolts.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/701/medium640/3d_printing_cpx-bolts.jpg?1548013983)

![3d_printing_cpx-bolted-mount-back.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/702/medium640/3d_printing_cpx-bolted-mount-back.jpg?1548014018)

## Mount to Crickit&nbsp;

&nbsp;

Now we can go ahead and secure the [Circuit Playground Express to the Crickit](https://learn.adafruit.com/adafruit-crickit-creative-robotic-interactive-construction-kit/assembly).&nbsp;

&nbsp;

The printed Servo Holder will attach to the printed Servo Mount on the Circuit Playground via (4)&nbsp;M3x10mm standoffs.&nbsp;

![3d_printing_cpx-bolted-mount.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/703/medium640/3d_printing_cpx-bolted-mount.jpg?1548014105)

![3d_printing_cpx-crickit-servo-stands.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/704/medium640/3d_printing_cpx-crickit-servo-stands.jpg?1548014132)

## Servo Holder

&nbsp;

Position the printed Servo Holder so the slot for the cable is aligned with the power jack.&nbsp; Fasten the Servo Holder with (4) M3x6mm screws.

Align the cable on the Continuous Servo and press fit into the holder.&nbsp;

&nbsp;

## Side NeoPixel Strip

&nbsp;

The Side Light Neopixel Strips are angled&nbsp;90 degrees and allow the maximum amount of light into the tubes. Check the direction of the strip and connect to the Neopixel terminal on the Crickit.

![3d_printing_servo-holder-attachedB.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/733/medium640/3d_printing_servo-holder-attachedB.jpg?1548106852)

![3d_printing_servo-mountedB.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/734/medium640/3d_printing_servo-mountedB.jpg?1548106866)

## Servo horn&nbsp;

&nbsp;

The Servo Horn engages the color wheel by inserting two 25mm long standoffs into the circular hole pattern on the color wheel.

&nbsp;

Press fit the horn onto the servos shaft. You can secure it further with one of the include servo horn screws.&nbsp;&nbsp;

![3d_printing_horn-assemble.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/707/medium640/3d_printing_horn-assemble.jpg?1548014404)

![3d_printing_horn-attach.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/708/medium640/3d_printing_horn-attach.jpg?1548014441)

## Mount Components&nbsp;

&nbsp;

Our AA battery pack fits inside the base, off to one side of the corners. We can secure it with double stick foam tape.

&nbsp;

Pass the toggle on/off switch through the light socket opening.

![3d_printing_battery-switch-mounting.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/709/medium640/3d_printing_battery-switch-mounting.jpg?1548014631)

![3d_printing_battery-switch-mounted.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/710/medium640/3d_printing_battery-switch-mounted.jpg?1548014665)

## Position Strip

&nbsp;

Loop the Side Light Neopixel strip around the center of the case.&nbsp;&nbsp;

![3d_printing_all-mounted.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/722/medium640/3d_printing_all-mounted.jpg?1548023033)

## Platform Standoffs

&nbsp;

To elevate the base and provide more clearance, additional standoffs are added to the corners. We used (4) M3x10mm standoffs with M3x6mm screws.

&nbsp;

This allows the color wheel to spin freely without catching the edges.

![3d_printing_platform-stand.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/711/medium640/3d_printing_platform-stand.jpg?1548014744)

![3d_printing_switch.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/712/medium640/3d_printing_switch.jpg?1548014825)

## Attach Platform&nbsp;

&nbsp;

And that's it! Once the platform is elevated on each corner,&nbsp; the platform simplify fits on top of the case.

&nbsp;

We can peak through the side of the case to verify if the servo horn standoffs fit into the color wheel by hand turn until the hole fall into place.

![3d_printing_top-attach-loop.gif](https://cdn-learn.adafruit.com/assets/assets/000/069/713/medium640thumb/3d_printing_top-attach-loop.jpg?1548014916)

![](https://cdn-learn.adafruit.com/assets/assets/000/069/726/medium800thumb/3d_printing_hero-spin-loop.jpg?1548099065)

## CPX Case

&nbsp;

Our crystal clear&nbsp;acrylic case for the CPX is a really nice companion.

We used a mix of tripod screws and 3d printed bits so we can work it into the astrolite kit.

&nbsp;

The Adafruit CRICKIT has lots of IO so it’s easy to add more components like speakers for audio and sound effects.

![3d_printing_cpx-case-adapter.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/714/medium640/3d_printing_cpx-case-adapter.jpg?1548015153)


## Featured Products

### Adafruit CRICKIT for Circuit Playground Express

[Adafruit CRICKIT for Circuit Playground Express](https://www.adafruit.com/product/3093)
Sometimes we wonder if robotics engineers ever watch movies. If they did, they'd know that making robots into servants always ends up in a robot rebellion. Why even go down that path? Here at Adafruit, we believe in making robots our&nbsp; **friends!**

So if you find...

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

## Related Guides

- [Paper Craft Zoetrope with Crickit](https://learn.adafruit.com/paper-craft-zoetrope-with-circuit-python.md)
- [Automatic Cat Treat Dispenser](https://learn.adafruit.com/automatic-cat-treat-dispenser.md)
- [Crickit Controlled Animatronic Eyeball](https://learn.adafruit.com/crickit-controlled-animatronic-eyeball.md)
- [Make It Bubble](https://learn.adafruit.com/make-it-bubble.md)
- [Trash Panda](https://learn.adafruit.com/trash-panda-circuit-python-crickit.md)
- [Tightrope Unicycle Bot](https://learn.adafruit.com/tightrope-unicycle-bot.md)
- [CRICKIT Exhibit Demo Board](https://learn.adafruit.com/crickit-exhibit-demo-board.md)
- [Animatronic Glowing Medusa Headdress](https://learn.adafruit.com/animatronic-glowing-medusa-headdress.md)
- [Crickit Powered Maker Ice Cream Truck!](https://learn.adafruit.com/crickit-maker-ice-cream-truck.md)
- [Bluetooth Turtle Bot with CircuitPython and Crickit](https://learn.adafruit.com/bluetooth-turtle-bot-with-circuitpython-and-crickit.md)
- [Circuit Playground + CircuitPython Quickstart Guide](https://learn.adafruit.com/circuit-playground-express-circuitpython-5-minute-guide.md)
- [Crickit Powered Dancin' Snowman!](https://learn.adafruit.com/crickit-powered-dancin-snowman.md)
- [Animatronic Hand](https://learn.adafruit.com/animatronic-hands.md)
- [Crickit Powered Holiday Diorama](https://learn.adafruit.com/crickit-powered-holiday-diorama.md)
- [Mount for CRICKIT](https://learn.adafruit.com/mount-for-crickit.md)
