# Green Goblin Pumpkin CPB Ornament

## Overview

https://youtu.be/nAJu8YdBalw

Build an LED ornament inspired by Spiderman's Green goblin!&nbsp;

Use the built-in LEDs on the Circuit Playground Bluefruit and an additional NeoPixel ring on the back to illuminate on both sides of the ornament!&nbsp;

The 3D printed shell fits over our 6cm DIY ornament with a printed mount to hold the Circuit Playground Bluefruit and 16 NeoPixel ring.

![](https://cdn-learn.adafruit.com/assets/assets/000/106/037/medium800thumb/3d_printing_top-loop.jpg?1635793134)

Use CircuitPython to easy edit the color, animations or even motion or add sounds with the build-in speaker on the Circuit Playground Bluefruit!&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/106/039/medium800/3d_printing_charge.jpg?1635794275)

## Rechargeable&nbsp;

Easily power up the Ornament with an Adafruit Micro-Lipo Charger!&nbsp;

Simply plug it via USB cable into a USB port and our lipo rechargeable battery into the JST plug on the other end. There are two LEDs - one red and one green. While charging, the red LED is lit. When the battery is fully charged and ready for use, the green LED turns on. Seriously, it could not get more easy!

## Parts
The Circuit Playground Bluefruit is powered by a 500mah battery.

Components snap fit on to a 3D printed mount. The mount press fits into a 6cm plastic ornament. Printed outer shells attach to each half of the ornament.

![3d_printing_parts.jpg](https://cdn-learn.adafruit.com/assets/assets/000/106/061/medium640/3d_printing_parts.jpg?1635799205)

![3d_printing_3dparts.jpg](https://cdn-learn.adafruit.com/assets/assets/000/106/062/medium640/3d_printing_3dparts.jpg?1635799469)

### Circuit Playground Bluefruit - Bluetooth® Low Energy

[Circuit Playground Bluefruit - Bluetooth® Low Energy](https://www.adafruit.com/product/4333)
 **Circuit Playground Bluefruit** is our third board in the Circuit Playground series, another step towards a perfect introduction to electronics and programming. We've taken the popular Circuit Playground Express and made it even better! Now the main chip is an nRF52840...

Out of Stock
[Buy Now](https://www.adafruit.com/product/4333)
[Related Guides to the Product](https://learn.adafruit.com/products/4333/guides)
![shot of a Black woman's neon-green manicured hand holding up a Circuit Playground Bluefruit glowing rainbow LEDs.](https://cdn-shop.adafruit.com/640x480/4333-11.jpg)

### NeoPixel Ring - 16 x 5050 RGB LED with Integrated Drivers

[NeoPixel Ring - 16 x 5050 RGB LED with Integrated Drivers](https://www.adafruit.com/product/1463)
Round and round and round they go! 16 ultra bright smart LED NeoPixels are arranged in a circle with 1.75" (44.5mm) outer diameter. The rings are 'chainable' - connect the output pin of one to the input pin of another. Use only one microcontroller pin to control as many as you can...

In Stock
[Buy Now](https://www.adafruit.com/product/1463)
[Related Guides to the Product](https://learn.adafruit.com/products/1463/guides)
![Hand holding NeoPixel Ring with 16 x 5050 RGB LED, lit up rainbow](https://cdn-shop.adafruit.com/640x480/1463-00.jpg)

### DIY Ornament Kit - 6cm Diameter - Perfect for Circuit Playground

[DIY Ornament Kit - 6cm Diameter - Perfect for Circuit Playground](https://www.adafruit.com/product/4036)
Have you put up with mainstream, uninspiring, low-tech tree ornaments for too long? This season why not deck the halls with _codes_ of holly?

This **DIY Ornament Kit** is just the right size (6 cm diameter) for a Circuit Playground Express, 500mAh LiPoly battery, and...

In Stock
[Buy Now](https://www.adafruit.com/product/4036)
[Related Guides to the Product](https://learn.adafruit.com/products/4036/guides)
![6cm Diameter DIY Ornament Kit with Circuit board inside](https://cdn-shop.adafruit.com/640x480/4036-00.jpg)

### Lithium Ion Polymer Battery - 3.7v 500mAh

[Lithium Ion Polymer Battery - 3.7v 500mAh](https://www.adafruit.com/product/1578)
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 500mAh for a total of about 1.9 Wh. If you need a larger (or smaller!) battery, <a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/1578)
[Related Guides to the Product](https://learn.adafruit.com/products/1578/guides)
![Angled shot of a Lithium Ion Polymer Battery 3.7V 500mAh with JST-PH connector.](https://cdn-shop.adafruit.com/640x480/1578-03.jpg)

### Adafruit Micro-Lipo Charger for LiPo/LiIon Batt w/MicroUSB Jack

[Adafruit Micro-Lipo Charger for LiPo/LiIon Batt w/MicroUSB Jack](https://www.adafruit.com/product/1904)
Oh so handy, this little lipo charger is so small and easy to use you can keep it on your desk or mount it easily into any project! Simply plug it via any MicroUSB cable into a USB port and a 3.7V/4.2V lithium polymer or lithium ion rechargeable battery into the JST plug on the other end....

In Stock
[Buy Now](https://www.adafruit.com/product/1904)
[Related Guides to the Product](https://learn.adafruit.com/products/1904/guides)
![Adafruit Micro-Lipo Charger for LiPo/LiIon Batt w/MicroUSB Jack connected to battery. ](https://cdn-shop.adafruit.com/640x480/1904-06.jpg)

![Green](https://cdn-learn.adafruit.com/assets/assets/000/106/036/medium800/3d_printing_hero-wide.jpg?1635792664)

# Green Goblin Pumpkin CPB Ornament

## Circuit Diagram

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

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&nbsp;[GitHub - Adafruit Fritzing Parts](https://github.com/adafruit/Fritzing-Library/tree/master/parts).

![](https://cdn-learn.adafruit.com/assets/assets/000/106/040/medium800/3d_printing_circuit-diagram.jpg?1635794402)

## Wired Connections

The Circuit Playground Bluefruit is powered by a 500mAh battery. &nbsp;

## NeoPixel Ring

The back side of the ornament is illuminated by a 16 NeoPixel Ring.

- **V+** &nbsp;from **NeoPixel Ring** &nbsp;to **Vout** on **Circuit&nbsp;Playground&nbsp;**
- **G** from **NeoPixel Ring** to **GND** on **Circuit&nbsp;Playground**
- **IN** &nbsp;from **NeoPixel Ring** to **A1** on **Circuit&nbsp;Playground**

# Green Goblin Pumpkin CPB Ornament

## CircuitPython on Circuit Playground Bluefruit

# Install or Update CircuitPython

Follow this quick step-by-step to install or update CircuitPython on your Circuit Playground Bluefruit.

[Download the latest version of CircuitPython for this board via circuitpython.org](https://circuitpython.org/board/circuitplayground_bluefruit/)
 **Click the link above and download the latest UF2 file**

Download and save it to your Desktop (or wherever is handy)

![adafruit_products_CPB_Download_UF2.png](https://cdn-learn.adafruit.com/assets/assets/000/080/530/medium640/adafruit_products_CPB_Download_UF2.png?1567715178)

Plug your Circuit Playground Bluefruit into your computer using a known-good data-capable USB cable.

**A lot of people end up using charge-only USB cables and it is very frustrating! So make sure you have a USB cable you know is good for data sync.**

Double-click the small **Reset** button in the middle of the CPB (indicated by the red arrow in the image). The ten NeoPixel LEDs will all turn red, and then will all turn green. If they turn all red and stay red, check the USB cable, try another USB port, etc. The little red LED next to the USB connector will pulse red - this is ok!

If double-clicking doesn't work the first time, try again. Sometimes it can take a few tries to get the rhythm right!

(If double-clicking doesn't do it, try a single-click!)

![adafruit_products_CPB_Front_Reset_Button_Arrow.jpg](https://cdn-learn.adafruit.com/assets/assets/000/080/532/medium640/adafruit_products_CPB_Front_Reset_Button_Arrow.jpg?1567715535)

You will see a new disk drive appear called **CPLAYBTBOOT**.

&nbsp;

&nbsp;

&nbsp;

Drag the **adafruit\_circuitpython\_etc.uf2** file to **CPLAYBTBOOT.**

![adafruit_products_CPB_CPLAYBTBOOT.png](https://cdn-learn.adafruit.com/assets/assets/000/080/533/medium640/adafruit_products_CPB_CPLAYBTBOOT.png?1567715858)

![adafruit_products_CBP_drag_UF2.png](https://cdn-learn.adafruit.com/assets/assets/000/080/534/medium640/adafruit_products_CBP_drag_UF2.png?1567715871)

The LEDs will turn red. Then, the **CPLAYBTBOOT** drive will disappear and a new disk drive called **CIRCUITPY** will appear.

That's it, you're done! :)

![adafruit_products_CBP_CIRCUITPY.png](https://cdn-learn.adafruit.com/assets/assets/000/080/535/medium640/adafruit_products_CBP_CIRCUITPY.png?1567716034)

# Green Goblin Pumpkin CPB Ornament

## Code

![Green](https://cdn-learn.adafruit.com/assets/assets/000/106/038/medium800/3d_printing_charge.jpg?1635793367)

Once you've finished setting up your Circuit Playground Bluefruit with CircuitPython, you can access the code and necessary libraries by downloading the Project Bundle.

To do this, click on the **&nbsp;Download Project Bundle** &nbsp;button in the window below. It will download as a zipped folder.

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

## Upload the Code and Libraries to the Circuit Playground Bluefruit
After downloading the Project Bundle, plug your Circuit Playground Bluefruit into the computer USB port. You should see a new flash drive appear in the computer's File Explorer or Finder (depending on your operating system) called&nbsp; **CIRCUITPY**. Unzip the folder and copy the following items to the Circuit Playground Bluefruit's&nbsp; **CIRCUITPY** &nbsp;drive.&nbsp;

- **lib** &nbsp;folder
- **code.py**

Your Circuit Playground Bluefruit **CIRCUITPY** &nbsp;drive should look like this after copying the&nbsp; **lib** folder&nbsp;and **code.py** &nbsp;file.

![](https://cdn-learn.adafruit.com/assets/assets/000/106/121/medium800/3d_printing_circuitpy-drive.jpg?1635941608)

# Green Goblin Pumpkin CPB Ornament

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

&nbsp;

![3d_printing_3dparts.jpg](https://cdn-learn.adafruit.com/assets/assets/000/106/057/medium640/3d_printing_3dparts.jpg?1635797053)

[Edit Shell Design](https://a360.co/3tkzwkC)
[Download STLs](https://www.thingiverse.com/thing:5087060)
[Edit CPB / 16 NeoPixel ring](https://a360.co/3GMpkV3)
## Slicing Parts

&nbsp;

Supports are required. Slice with setting 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

![3d_printing_slice.gif](https://cdn-learn.adafruit.com/assets/assets/000/106/058/medium640thumb/3d_printing_slice.jpg?1635798205)

## Supports

&nbsp;

- Support Extrusion Width: .2
- Support Density: 4%
- Support Overhang Angle: 80
- Support Z Height: .21
- Interface: On
- Support Roof: On
- Support Pattern: Zig Zag
- Support Roof Pattern: Zig Zag

## Build Plate Adhesion&nbsp;

&nbsp;

- Type: Brim
- Line Count: 6
- Brim on inside + outside

![3d_printing_supports.jpg](https://cdn-learn.adafruit.com/assets/assets/000/106/059/medium640/3d_printing_supports.jpg?1635799009)

# Green Goblin Pumpkin CPB Ornament

## Assemble

## Solder NeoPixel ring

&nbsp;

Measure and cut wires to connect the Circuit Playground to the 16 Neopixel ring. Use third helping hands to hold the boards steady while soldering.

## &nbsp;

## CPB mount

&nbsp;

Align the slit on the printed Circuit Playground mount to allow the wires to pass through. Align the JST port to the slit on the printed mount.

![3d_printing_solder-ring.jpg](https://cdn-learn.adafruit.com/assets/assets/000/106/041/medium640/3d_printing_solder-ring.jpg?1635794900)

![3d_printing_wire-pass-through.jpg](https://cdn-learn.adafruit.com/assets/assets/000/106/044/medium640/3d_printing_wire-pass-through.jpg?1635795205)

## Press fit NeoPixel ring

&nbsp;

Center the ring to the mount and press one side of the ring until it press fits into the wall around the printed mount.

![3d_printing_ring-snap.jpg](https://cdn-learn.adafruit.com/assets/assets/000/106/046/medium640/3d_printing_ring-snap.jpg?1635795460)

## Insert battery

&nbsp;

Align the battery between the Circuit playground standoffs. Carefully bend the battery cable towards the slit on the printed mount.

&nbsp;

![3d_printing_add-lipo.jpg](https://cdn-learn.adafruit.com/assets/assets/000/106/049/medium640/3d_printing_add-lipo.jpg?1635795771)

## Press fit Circuit Playground

&nbsp;

Use the snaps on each side of the mount to hold the Circuit Playground in place. Place one side of the board under one of the snaps. Gently press the opposite side of the board to attach it to the mount.

![3d_printing_snap-cpb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/106/048/medium640/3d_printing_snap-cpb.jpg?1635795644)

## Press fit mount into Ornament

&nbsp;

Plug the battery into the JST port on the Circuit Playground. Allow the battery cable to press against the wall of the ornament. Gently press fit the printed mount into the Ornament.&nbsp;

![3d_printing_align-mount.jpg](https://cdn-learn.adafruit.com/assets/assets/000/106/050/medium640/3d_printing_align-mount.jpg?1635795951)

## Diffusion&nbsp;

&nbsp;

Use a sheet of parchment paper to help diffuse the ornament.

Align the tabs on the each half of the ornament and press fit both sides together.

![3d_printing_diffuse-add.jpg](https://cdn-learn.adafruit.com/assets/assets/000/106/052/medium640/3d_printing_diffuse-add.jpg?1635796318)

![3d_printing_half-attach.jpg](https://cdn-learn.adafruit.com/assets/assets/000/106/053/medium640/3d_printing_half-attach.jpg?1635796399)

## Attach Printed shells

&nbsp;

Align the bottom printed shell to the tabs on the ornament. Press fit the tab into the printed shell.&nbsp;

The optional screw mounts on the sides of the shells are used to help align both halves together. Apply a small amount of force to snap fit both shells together.&nbsp;

![3d_printing_shell-tab-attach.jpg](https://cdn-learn.adafruit.com/assets/assets/000/106/054/medium640/3d_printing_shell-tab-attach.jpg?1635796499)

![3d_printing_shell-attach.jpg](https://cdn-learn.adafruit.com/assets/assets/000/106/055/medium640/3d_printing_shell-attach.jpg?1635796581)

Add a hook to adorne to a tree or use as a stand alone prop for a Green Goblin cosplay!

![](https://cdn-learn.adafruit.com/assets/assets/000/106/122/medium800thumb/3d_printing_hero-loop.jpg?1635946312)


## Featured Products

### DIY Ornament Kit - 6cm Diameter - Perfect for Circuit Playground

[DIY Ornament Kit - 6cm Diameter - Perfect for Circuit Playground](https://www.adafruit.com/product/4036)
Have you put up with mainstream, uninspiring, low-tech tree ornaments for too long? This season why not deck the halls with _codes_ of holly?

This **DIY Ornament Kit** is just the right size (6 cm diameter) for a Circuit Playground Express, 500mAh LiPoly battery, and...

In Stock
[Buy Now](https://www.adafruit.com/product/4036)
[Related Guides to the Product](https://learn.adafruit.com/products/4036/guides)
### Circuit Playground Bluefruit - Bluetooth® LowEnergy - GH STUDEN

[Circuit Playground Bluefruit - Bluetooth® LowEnergy - GH STUDEN](https://www.adafruit.com/product/764)
 **Circuit Playground Bluefruit** is our third board in the Circuit Playground series, another step towards a perfect introduction to electronics and programming. We've taken the popular Circuit Playground Express and made it even better! Now the main chip is an nRF52840...

In Stock
[Buy Now](https://www.adafruit.com/product/764)
[Related Guides to the Product](https://learn.adafruit.com/products/764/guides)
### NeoPixel Ring - 16 x 5050 RGB LED with Integrated Drivers

[NeoPixel Ring - 16 x 5050 RGB LED with Integrated Drivers](https://www.adafruit.com/product/1463)
Round and round and round they go! 16 ultra bright smart LED NeoPixels are arranged in a circle with 1.75" (44.5mm) outer diameter. The rings are 'chainable' - connect the output pin of one to the input pin of another. Use only one microcontroller pin to control as many as you can...

In Stock
[Buy Now](https://www.adafruit.com/product/1463)
[Related Guides to the Product](https://learn.adafruit.com/products/1463/guides)
### Lithium Ion Polymer Battery - 3.7v 500mAh

[Lithium Ion Polymer Battery - 3.7v 500mAh](https://www.adafruit.com/product/1578)
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 500mAh for a total of about 1.9 Wh. If you need a larger (or smaller!) battery, <a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/1578)
[Related Guides to the Product](https://learn.adafruit.com/products/1578/guides)
### Adafruit Micro-Lipo Charger for LiPo/LiIon Batt w/MicroUSB Jack

[Adafruit Micro-Lipo Charger for LiPo/LiIon Batt w/MicroUSB Jack](https://www.adafruit.com/product/1904)
Oh so handy, this little lipo charger is so small and easy to use you can keep it on your desk or mount it easily into any project! Simply plug it via any MicroUSB cable into a USB port and a 3.7V/4.2V lithium polymer or lithium ion rechargeable battery into the JST plug on the other end....

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

## Related Guides

- [PiGRRL - Raspberry Pi Gameboy](https://learn.adafruit.com/pigrrl-raspberry-pi-gameboy.md)
- [STEAM-Punk Goggles](https://learn.adafruit.com/steam-punk-goggles.md)
- [3D Printed NeoPixel Ring Hair Dress](https://learn.adafruit.com/neopixel-ring-hair-dress.md)
- [Starduino: 8-Bit Super Mario Tree Topper](https://learn.adafruit.com/starduino-neopixel-8-bit-mario-star-tree-topper.md)
- [LPC824 NeoPixel IR Distance Sensor](https://learn.adafruit.com/lpc824-neopixel-ir-distance-sensor.md)
- [Energy Budgets](https://learn.adafruit.com/energy-budgets.md)
- [Circuit Playground Bike Glove](https://learn.adafruit.com/circuit-playground-bike-glove.md)
- [Superhero Power Gauntlet](https://learn.adafruit.com/superhero-power-gauntlet.md)
- [DIY Rechargeable LED Makeup Compact](https://learn.adafruit.com/diy-rechargeable-led-makeup-compact.md)
- [Cyber Tank Girl Cosplay](https://learn.adafruit.com/cyber-tank-girl-cosplay.md)
- [Glowing LED Team Badge for Pokemon Go](https://learn.adafruit.com/glowing-led-team-badge-for-pokemon-go.md)
- [Battery Powering Wearable Electronics](https://learn.adafruit.com/battery-powering-wearable-electronics.md)
- [Celebration Spectacles](https://learn.adafruit.com/celebration-spectacles.md)
- [SpaceX Helmet](https://learn.adafruit.com/spacex-helmet.md)
- [NeoPixie Dust Bag](https://learn.adafruit.com/neopixel-pixie-dust-bag.md)
