# Circuit Playground Express Rocket Lamp

## Overview

https://youtu.be/2bgZ7Um59wA

In this Project, we’re building a rocket-themed NeoPixel lamp, using a Circuit Playground Express. The cardboard lamp will create a colourful ambient light most of the time, and when the button on the Circuit Playground Express is pressed, a light-and-sound countdown procedure will begin.

![](https://cdn-learn.adafruit.com/assets/assets/000/072/223/medium800thumb/leds_ezgif-4-14191e1bfee6.jpg?1551722617)

This would be a great project to do with kids - there’s no soldering required, and the most dangerous tool you’ll need is a craft knife or pair of sharp scissors. There are also lots of possible software or hardware extensions, so you can take the project wherever you like.

If you haven't worked with the Circuit Playground Express before, check out the&nbsp;[introductory guide here](https://learn.adafruit.com/adafruit-circuit-playground-express "Introduction to Circuit Playground Express"). There's also the&nbsp;[NeoPixel Überguide](https://learn.adafruit.com/adafruit-neopixel-uberguide "NeoPixel Überguide")&nbsp;if you're new to NeoPixels.&nbsp;

The Circuit Playground Express runs CircuitPython code to run the lights and make the sound. This project also&nbsp;features a 50cm long NeoPixel LED strip, which comes pre-soldered with alligator clip leads so you can clip ‘em right up to the Circuit Playground board. Handy!

![leds_IMG_20190221_171141.jpg](https://cdn-learn.adafruit.com/assets/assets/000/071/846/medium640/leds_IMG_20190221_171141.jpg?1550924403)

## Parts
![](https://cdn-learn.adafruit.com/assets/assets/000/071/847/medium800/leds_IMG_20190221_171841.jpg?1550925866)

### Part: Adafruit Circuit Playground Express
quantity: 1
The brains of the project
[Adafruit Circuit Playground Express](https://www.adafruit.com/product/3333)

### Part: Alligator Clip LED Strip - 60 LED/m 30cm
quantity: 1
Lights up the inside of the rocket
[Alligator Clip LED Strip - 60 LED/m 30cm](https://www.adafruit.com/product/3811)

### Part: microUSB to USB cable 
quantity: 1
To download the code and (optionally) power the project
[microUSB to USB cable ](https://www.adafruit.com/product/592)

### Part: Lithium Ion Polymer Battery - 3.7v 500mAh [optional]
quantity: 1
Provides optional battery power to the project
[Lithium Ion Polymer Battery - 3.7v 500mAh [optional]](https://www.adafruit.com/product/1578)

### Part: 3 x AA Battery Holder with On/Off Switch, JST, and Belt Clip [optional]
quantity: 1
Provides optional battery power to the project
[3 x AA Battery Holder with On/Off Switch, JST, and Belt Clip [optional]](https://www.adafruit.com/product/3287)

### Part: AA batteries, 3 pack
quantity: 1
Alkaline AA batteries (LR6) - 3 pack
[AA batteries, 3 pack](https://www.adafruit.com/product/3521)

### Part: 5V 2.5A Switching Power Supply with 20AWG MicroUSB Cable
quantity: 1
An alternate, more permanent wall power supply, if desired
[5V 2.5A Switching Power Supply with 20AWG MicroUSB Cable](https://www.adafruit.com/product/1995)

### Part: Flat sheets of fluted cardboard
quantity: 1
Forms the body of the rocket

### Part: Roll of masking tape
quantity: 1
Holds it all together! 

### Part: Sheet of tracing paper or printer paper
quantity: 1
Forms the front of the rocket and diffuse the light

## Tools
![](https://cdn-learn.adafruit.com/assets/assets/000/071/848/medium800/leds_IMG_20190221_172312.jpg?1550925975)

### Part: Strong scissors
quantity: 1
To cut the cardboard with
[Strong scissors](https://www.adafruit.com/product/1599)

### Part: Craft knife or box cutter
quantity: 1
Good for cutting fiddly holes
[Craft knife or box cutter](https://www.adafruit.com/product/3929)

### Part: Cutting mat
quantity: 1
Protect your table!

### Part: Hot glue gun and glue sticks
quantity: 1
To attach cardboard &amp; components

### Part: Printer or Laser Cutter
quantity: 1
To make the template for cutting the rocket

### Part: Makedo Cardboard Toolkit [optional]
quantity: 1
This would be another, more kid-friendly way to build this project
[Makedo Cardboard Toolkit [optional]](https://www.adafruit.com/product/3285)

# Circuit Playground Express Rocket Lamp

## Print and Cut Template

To make this project easier, we designed a large legal /A3 sized printable template with a nice rocket shape. If you don’t have a large legal / A3 printer, you should be able to tile it onto 2 sheets of A4 or letter size paper. You don’t have to have this, but I found I made a lot less mistakes when I used it!

There’s also a file available for laser cutting the base, if you have access to a laser cutter.

[Printable PDF template](https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/master/Circuit_Playground_Express_Rocket_Lamp/template-A3.pdf)
[Laser-Cuttable DXF Outline Shape](https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/master/Circuit_Playground_Express_Rocket_Lamp/template-LaserCutter.dxf)
![](https://cdn-learn.adafruit.com/assets/assets/000/071/849/medium800/leds_IMG_20190220_182952.jpg?1550926757)

Warning: 

Cut the template out, and if you've tiled it over two pages, tape them together. Place and tape or glue it onto a piece of cardboard, but try not to go over joins or bends in the board.

Use either a craft knife or a pair of scissors to cut around it to make your base shape. You’ll also need to cut out two slots for cables as on the template for the alligator clips. Then remove the template from the cardboard.&nbsp;

You'll also need to cut some strips of card about a 1.5 inches wide to glue around the edge, but make sure you cut these strips across (perpendicular to) the flutes of the cardboard - see the diagram.

![](https://cdn-learn.adafruit.com/assets/assets/000/071/900/medium800/leds_flutes.jpg?1551109643)

Info: 

![](https://cdn-learn.adafruit.com/assets/assets/000/071/850/medium800/leds_Attachment-1.png?1550928549)

You can also laser-cut the base from cardboard using the DXF file, but that's beyond the scope of this tutorial.&nbsp;

## Bending the board

The first stage is to bend the cardboard strips you’ve cut so that they are flexible. If you don’t do this, they’ll just kink, but we want them to form nice sweeping arcs for the curve of the rocket’s body.

Grab a heavy book, and put it near the edge of a table. Place the cardboard strip under the book, and then pull it out and downwards. The diagram and gif should help you work out what to do here. You’ll need to leave one strip not bent, so that you can use it for the straight bits.

![leds_unnamed_(1)_(1).jpg](https://cdn-learn.adafruit.com/assets/assets/000/071/852/medium640/leds_unnamed_%281%29_%281%29.jpg?1550928790)

![](https://cdn-learn.adafruit.com/assets/assets/000/071/853/medium800thumb/leds_thingyo.jpg?1550928962)

# Circuit Playground Express Rocket Lamp

## Gluing

The next step is to use a hot glue gun to attach the strips you cut to the edge of the rocket shape. This step is fiddly! If you’re doing this project with kids it might be an idea to use a cold-melt glue gun, or make do with traditional paper building methods, tape or a [Makedo cardboard toolkit](https://www.adafruit.com/product/3285).

Position the card strip around the edge of the rocket shape and cut it to length. Then put some sticky tape or blue tack at each end to secure it in place. Run a bead of hot glue all along the bottom edge of the corner to secure it in place. It's also a good idea to glue up the joins of the pieces of cardboard so that the light doesn't leak out.&nbsp;

![leds_IMG_20190220_185521.jpg](https://cdn-learn.adafruit.com/assets/assets/000/071/856/medium640/leds_IMG_20190220_185521.jpg?1550929501)

Do this for all the bits of cardboard. Then do another strip along the dotted line of the template, to separate the fire from the rest of the rocket (otherwise the different colours of light will merge into one).

If you're using a USB cable to power it (not a battery), you'll need to test-fit the Circuit Playground Express into the bottom of the rocket and cut a little slot for the USB cable to pass through.&nbsp;

You can also paint or decorate the inside or outside rocket at this stage. Just bear in mind that the inside of the rocket will be covered with paper by the end.

# Circuit Playground Express Rocket Lamp

## Circuit Diagram

![](https://cdn-learn.adafruit.com/assets/assets/000/071/901/medium800/leds_rocket_diagram_%281%29.jpg?1551110099)

The circuit is really simple, perfect for beginners. It’s a good idea to do a dry-run of the circuit assembly first to test everything works before assembly on the rocket. You only need to connect 3 alligator clips:

- **Red** goes to **Vout**
- **Black** goes to **Gnd**
- **White** goes to **A7**

![](https://cdn-learn.adafruit.com/assets/assets/000/071/902/medium800/leds_rokcit_bb2_%281%29.jpg?1551110140)

For a permanent installation, a USB cable and 5V supply are fine.

If you’re using a battery pack or LiPo battery, plug it into the black JST connector of the Circuit Playground Express, opposite the microUSB connector. If you need more advice on what battery to choose, check out [this guide](https://learn.adafruit.com/battery-powering-wearable-electronics "Battery Powering Electronics Guide").

For a kid-friendly and mobile option, the 3xAA battery pack would be great.

### 3 x AA Battery Holder with On/Off Switch, JST, and Belt Clip

[3 x AA Battery Holder with On/Off Switch, JST, and Belt Clip](https://www.adafruit.com/product/3287)
This battery holder connects 3 AA batteries together in series for powering all kinds of projects. We spec'd these out because the box is compact, and 3 AA's add up to about 3.3-4.5V, a very similar range to Lithium Ion/polymer (Li-Ion) batteries, plus it has&nbsp;a nifty&nbsp;on-off...

In Stock
[Buy Now](https://www.adafruit.com/product/3287)
[Related Guides to the Product](https://learn.adafruit.com/products/3287/guides)
![Angled shot of 3 x AA battery holder with on/off switch, JST, and belt clip.](https://cdn-shop.adafruit.com/640x480/3287-00.jpg)

Danger: 

If you'd like to permanently mount the project with wall power, this supply may work well.

### 5V 2.5A Switching Power Supply with 20AWG MicroUSB Cable

[5V 2.5A Switching Power Supply with 20AWG MicroUSB Cable](https://www.adafruit.com/product/1995)
Our all-in-one 5V 2.5 Amp + MicroUSB cable power adapter is the perfect choice for powering single-board computers like Raspberry Pi, BeagleBone, or anything else that's power-hungry!

This adapter was specifically designed to provide 5.25V, not 5V, but we still call it a 5V USB...

In Stock
[Buy Now](https://www.adafruit.com/product/1995)
[Related Guides to the Product](https://learn.adafruit.com/products/1995/guides)
![MicroUSB power supply with bundled cable and U.S. plugs.](https://cdn-shop.adafruit.com/640x480/1995-02.jpg)

# Circuit Playground Express Rocket Lamp

## Code

## Setup

If you've never used the Circuit Playground Express with CircuitPython before, you'll need to do some setup. Plug in the Circuit Playground Express to your computer via a known good data+power USB cable, and click the little reset button in the center to put it into bootloader mode.

If you have a new flash drive on your computer named **CIRCUITPY** , all is good.

If the on-board NeoPixels should all turn green and a USB storage drive called **CPLAYBOOT** &nbsp;shows up, we'll need to load a fresh copy of CircuitPython.

![](https://cdn-learn.adafruit.com/assets/assets/000/071/894/medium800/leds_IMG_20190221_165645.jpg?1551107306)

You’ll need to follow the below guide to set up CircuitPython and then come back to continue.

[CircuitPython Setup Guide](https://learn.adafruit.com/adafruit-circuit-playground-express/circuitpython-quickstart)
## Upload the code

The next step is to put the code onto the Circuit Playground and give it a test! Open a new text file in your text editor of choice, and paste in the code below. Then save the file onto the USB drive under the filename **code.py**. Please don't rename it, it must be called **code.py**.

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

You’ll also need to download the WAV sound file from the link below, and copy that to the **CIRCUITPY** USB drive too.

[liftoff.wav](https://cdn-learn.adafruit.com/assets/assets/000/071/926/original/liftoff.wav?1551193035)
Then eject the drive - the code should automatically run and you should get a nice light show! Press button A and watch the countdown run. Button B should provide a 1-minute long (ish!) timer sequence.

If you want to edit the code, Mu is a good choice for a code editor. Mu is written in Python, and works on all 3 major platforms: MacOS, Windows and Linux (including the Raspberry Pi). It has an awesome CircuitPython mode, and has a built-in serial console, so you can easily see text output from your code too. You can follow the below instructions to install Mu:

[Mu Installation Tutorial](https://learn.adafruit.com/welcome-to-circuitpython/installing-mu-editor)
## Extending the Code

There are all sorts of ideas for extending the code - here are a few possible starting points:

- Change the delay on the timer
- Change the sound when the timer finishes
- Change the colour of the rocket or fire
- Change the speed of the fire animation
- Change the countdown animation

Have fun with it!&nbsp;

# Circuit Playground Express Rocket Lamp

## Final Assembly

The final step is to assemble everything into the lamp. Start by unclipping the NeoPixel strip from the Circuit Playground Express and thread the alligator clips down through slot 1, and up through slot 2 before clipping them back in (a reminder of the wiring&nbsp;[is available here](https://learn.adafruit.com/cpx-rocket-lamp/circuitdiagram "Circuit Diagram")).&nbsp;

The LED strip is in a silicone casing, so it’s fine to use hot glue to fix it onto the cardboard. You'll need to make sure the glue goes all the way over the LED strip so it doesn't peel out.&nbsp;

![leds_IMG_20190221_170820.jpg](https://cdn-learn.adafruit.com/assets/assets/000/071/895/medium640/leds_IMG_20190221_170820.jpg?1551108731)

If you’re using a battery, thread the wire into slot number 2 and connect it to the JST connector. You can secure the battery to the back of the rocket with tape.

![leds_IMG_20190221_170536_1.jpg](https://cdn-learn.adafruit.com/assets/assets/000/071/896/medium640/leds_IMG_20190221_170536_1.jpg?1551108937)

You should now have a fully assembled rocket lamp! There’s just one more step to finish the project off.

You'll need to make a paper cover for the main body of the rocket. This helps diffuse the light, and make it a bit more gentle, especially for the fire section.&nbsp;

You can use either tracing paper or standard printer paper for this - or even kitchen greaseproof/baking paper. You could even try it with coloured paper, tissue paper or more - get creative!

Use the body of the rocket as a template to draw around. Leave a few tabs on each side to cut around, so that you can tape the paper onto the rocket.&nbsp;

![leds_IMG_20190222_103438.jpg](https://cdn-learn.adafruit.com/assets/assets/000/071/897/medium640/leds_IMG_20190222_103438.jpg?1551109025)

Cut the template out with scissors. It's a good idea to cut a little outside the line so that the paper will definitely cover all of the rocket body - you don't want little gaps for the light to leak out of.&nbsp;

![leds_IMG_20190222_103705.jpg](https://cdn-learn.adafruit.com/assets/assets/000/071/898/medium640/leds_IMG_20190222_103705.jpg?1551109091)

Use some masking tape to attach the tabs of paper to the rocket. Don’t forget that you’ll still need to access the buttons, so leave the area of paper covering the flame loose, so it forms a lift-up flap.&nbsp;

![leds_IMG_20190222_113008.jpg](https://cdn-learn.adafruit.com/assets/assets/000/071/899/medium640/leds_IMG_20190222_113008.jpg?1551109207)

You could also modify the code to use one of the capacitive touch pads on the Circuit Playground Express ([tutorial here](https://learn.adafruit.com/adafruit-circuit-playground-express/adafruit2-circuitpython-cap-touch "Capacitive Touch Tutorial")) and connect it to another alligator clip lead or some tin foil, but that’s beyond the scope of this tutorial.

And you’re done!

![](https://cdn-learn.adafruit.com/assets/assets/000/072/209/medium800/leds_IMG_20190222_162525.jpg?1551719454)


## Featured Products

### 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)
### Circuit Playground Express - Base Kit

[Circuit Playground Express - Base Kit](https://www.adafruit.com/product/3517)
It's the **Circuit Playground Express Base Kit!** &nbsp;It provides&nbsp;the few things you'll need to get started with the new [Circuit Playground Express](https://www.adafruit.com/product/3333).&nbsp;This version of Circuit Playground is super powered, and will...

In Stock
[Buy Now](https://www.adafruit.com/product/3517)
[Related Guides to the Product](https://learn.adafruit.com/products/3517/guides)
### Adafruit NeoPixel LED Strip w/ Alligator Clips - 60 LED/m

[Adafruit NeoPixel LED Strip w/ Alligator Clips - 60 LED/m](https://www.adafruit.com/product/3811)
Adding glowy color to your projects has never been easier: no more soldering or stripping wires, clip 'em on and glow! This **Adafruit NeoPixel LED Strip with Alligator Clips** has **30 total LEDs** in a **"60 LED per meter" spacing** , and...

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

Out of Stock
[Buy Now](https://www.adafruit.com/product/592)
[Related Guides to the Product](https://learn.adafruit.com/products/592/guides)
### USB C to Micro B Cable - 3 ft 1 meter

[USB C to Micro B Cable - 3 ft 1 meter](https://www.adafruit.com/product/3878)
As technology changes and adapts, so does Adafruit! Rather than the regular USB A, this cable has&nbsp; **USB C to Micro B** &nbsp;plugs!

USB C is the latest industry-standard connector for transmitting data _and_ power. Like Lightning and MagSafe cables, USB C has no...

In Stock
[Buy Now](https://www.adafruit.com/product/3878)
[Related Guides to the Product](https://learn.adafruit.com/products/3878/guides)
### 5V 2.5A Switching Power Supply with 20AWG MicroUSB Cable

[5V 2.5A Switching Power Supply with 20AWG MicroUSB Cable](https://www.adafruit.com/product/1995)
Our all-in-one 5V 2.5 Amp + MicroUSB cable power adapter is the perfect choice for powering single-board computers like Raspberry Pi, BeagleBone, or anything else that's power-hungry!

This adapter was specifically designed to provide 5.25V, not 5V, but we still call it a 5V USB...

In Stock
[Buy Now](https://www.adafruit.com/product/1995)
[Related Guides to the Product](https://learn.adafruit.com/products/1995/guides)
### 3 x AA Battery Holder with On/Off Switch, JST, and Belt Clip

[3 x AA Battery Holder with On/Off Switch, JST, and Belt Clip](https://www.adafruit.com/product/3287)
This battery holder connects 3 AA batteries together in series for powering all kinds of projects. We spec'd these out because the box is compact, and 3 AA's add up to about 3.3-4.5V, a very similar range to Lithium Ion/polymer (Li-Ion) batteries, plus it has&nbsp;a nifty&nbsp;on-off...

In Stock
[Buy Now](https://www.adafruit.com/product/3287)
[Related Guides to the Product](https://learn.adafruit.com/products/3287/guides)
### Alkaline AA batteries (LR6) - 3 pack

[Alkaline AA batteries (LR6) - 3 pack](https://www.adafruit.com/product/3521)
Battery power for your portable project! These batteries are good quality at a good price, and work fantastic with any of the kits or projects in the shop that use AAs. This is a pack of **3 AA batteries**.  
  
These batteries are Alkaline (MnO2) chemistry, with a voltage...

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

## Related Guides

- [Adafruit Circuit Playground Express](https://learn.adafruit.com/adafruit-circuit-playground-express.md)
- [Crickit Dancing Marionette Kit](https://learn.adafruit.com/universal-marionette-with-crickit.md)
- [Xenomorph Halloween Candy Bucket](https://learn.adafruit.com/xenomorph-halloween-candy-bucket.md)
- [Mu Keyboard Shortcut Cheat Sheets](https://learn.adafruit.com/mu-keyboard-shortcut-cheat-sheets.md)
- [Circuit Playground Musical Glove](https://learn.adafruit.com/cpx-musical-glove.md)
- [Make It Sense](https://learn.adafruit.com/make-it-sense.md)
- [CircuitPython 101: Basic Builtin Data Structures](https://learn.adafruit.com/basic-datastructures-in-circuitpython.md)
- [Light Paintbrush with Circuit Playground](https://learn.adafruit.com/lightpaint-cplay.md)
- [Easy Sparkle Pocket T-Shirt](https://learn.adafruit.com/easy-sparkle-pocket-t-shirt.md)
- [NYE Circuit Playground Drop](https://learn.adafruit.com/nye-circuit-playground-drop.md)
- [Circuit Playground Express Sugar Glider](https://learn.adafruit.com/cpx-sugar-glider.md)
- [Gemma M0 Sheikah Pendant](https://learn.adafruit.com/gemma-m0-sheikah-pendant.md)
- [Remote Control Tree Ornament with Circuit Playground Express](https://learn.adafruit.com/remote-control-tree-ornament-with-circuit-playground-express.md)
- [Crickit Harmonic Drawing Machine](https://learn.adafruit.com/crickit-harmonic-drawing-machine.md)
- [Snake Charmer Box](https://learn.adafruit.com/snakecharmer.md)
- [Ursula's Seashell Necklace](https://learn.adafruit.com/ursulas-seashell-necklace.md)
