

ButterflyChain
KiCad files for a chainable NeoPixel butterfly.
- Size
- 93.1 × 65.5 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 26
- Nets
- 22
- Pads
- 82
- Tracks, vias
- 250, 0
- Pours
- 4
- Routed
- Yes
- KiCad
- KiCad 4
- Created
- 16 Sep 2018
- Updated
- 22 Oct 2021
Overview
ButterflyChain is an open-source printed circuit board by mignon-p, from the mignon-p/ButterflyChain repository on GitHub, published under the CC-BY-SA-4.0 licence. It is a 2-layer board of 93.1 × 65.5 mm with 26 parts on 22 nets, routed with 250 tracks and 0 vias.
Its parts include 18 diodes, 3 connectors and 1 capacitor. It belongs with the lEDs and displays boards of this library.
README
README.mdChainable Butterfly
This repository contains the KiCad and Gerber files for a PCB shaped like a butterfly. The butterfly contains 18 "NeoPixel" (WS-2812) LEDs. The butterflies can be chained together, and controlled by just about any microcontroller. However, I specifically had the BBC micro:bit in mind, and designed these chainable butterflies together with my neo:bit and feather:bit boards.
The butterfly design is based on my butterfly nightlight, but I have removed the microcontroller so that it can be controlled externally.

Usage
You can use any NeoPixel library on any microcontroller to control the LEDs on the butterfly. The silkscreen shows how the LEDs are numbered. Note that the NeoPixel butterflies use RGB format, rather than the more common GRB format.
If you're using the micro:bit MakeCode editor, you can optionally use my butterfly package. It makes it easier to control the inner, middle, or outer LEDs on the butterfly as a group.
My butterfly package is not an "approved" package, so you'll need to
enter its URL specifically. Expand the "Advanced" box, and choose
"Add Package". Then enter https://github.com/ppelleti/pxt-butterfly
in the search box:

Then just choose the "butterfly" package that appears.
You should then have a "Butterfly" category in your toolbox:

Now you can use the butterfly blocks:

Be sure to use the NeoPixel "show" block once you've set your butterfly colors.
Bill of Materials
- D1-D18 (qty 18) - 5mm through-hole NeoPixel. SparkFun part no. COM-12986. Digi-Key part no. 1568-1213-ND.
- C1 (qty 1) - 47µF 1210 capacitor. Samsung part no. CL32A476MPJNNNE. Digi-Key part no. 1276-3380-1-ND.
- J1-J2 (qty 1) - 3-pin JST SM Plug + Receptacle Cable Set. Adafruit part no. 1663.
- Bare wire, 20 AWG.
Circuit board
This board is big enough that it would be rather expensive to order from OSH Park, so I would recommend a Chinese fab such as Elecrow or JLCPCB. I chose blue soldermask for my boards, but red or yellow might work, as well. I chose the ENIG finish.
If you're not making any changes to the board, all you need to do is
zip up the files in the gerber directory, and upload the zipfile to
Elecrow or JLCPCB.
Note that in the KiCad files and Gerber files, the "front" of the board is actually the back, and vice-versa. This is because JLCPCB adds a customer ID number to the front of the board, but I wanted the number to be on the actual back of the board, where it doesn't disrupt the esthetics of the butterfly. (It turns out it's possible to specify the location of the customer ID, but I hadn't read that when I first came up with this trick.)
Assembly
-
Solder the surface-mount capacitor C1 onto the back of the board.
-
Solder the 18 LEDs to the front of the board. The LED should be positioned so that the square pad gets one of the longer legs, not one of the shorter ones.
-
Solder the JST SM plug and receptacle to the J1 and J2 locations. Be sure to get the polarity right!
-
Create the butterfly's antennae by inserting a length of bare wire into the holes on the butterfly's head. (These two holes are represented by J3 on the schematic.) It's a tight fit, so friction may be enough to hold the wire in place, but you can always solder it to be sure.
License
This design is licensed under the Creative Commons Attribution-ShareAlike 4.0 International license.
Some of the footprints in myLibrary.pretty are based on footprints
in the KiCad library, which is licensed under the
KiCad library license (which is now also CC-BY-SA-4.0, with an
exception).
Parts
26| Qty | Value | Footprint | References |
|---|---|---|---|
| 18 | Neopixel_THT | myLibrary:LED_D5.0mm-4 | D1, D2, D3, D4, D5, D6, D7, D10, D11, D12, D13, D14, D15, D16, D17, D18 +2 |
| 1 | 47µF | Capacitors_SMD:C_1210_HandSoldering | C1 |
| 1 | Antennae | myLibrary:Antennae | J3 |
| 1 | Input | Pin_Headers:Pin_Header_Straight_1x03_Pitch2.54mm | J1 |
| 1 | LOGO | myLibrary:copper-on-wing-left | G*** |
| 1 | LOGO | myLibrary:copper-on-wing-right | G*** |
| 1 | LOGO | myLibrary:Fingerprint | G*** |
| 1 | Output | Pin_Headers:Pin_Header_Straight_1x03_Pitch2.54mm | J2 |
The 25 most common of 26 parts.
Similar boards
- 2 layers57.3 × 19 mm

- 2 layers98 × 59.5 mm

MCP23017 PCB
hackclub/OnBoard
💡 Join 1,000 teenagers and make your first PCB with a $100 grant!
26 parts915 - 2 layers142.9 × 98.5 mm

- 2 layers86.1 × 86.1 mm

- 2 layers103.8 × 50 mm

Galagino pcb set
harbaum/galagino
A Galaga, Pac-Man and Donkey Kong arcade emulator for the ESP32
26 parts558 - 2 layers20.3 × 34.8 mm

L0 ESP32
Luos-io/luos_engine
Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.
26 parts546MIT - 2 layers40.6 × 50.8 mm

WALTsm
google/walt
A device for measuring latency of physical sensors and outputs on phones and computers
26 parts474Apache-2.0 - 2 layers158.5 × 75 mm

Questions
How big is the ButterflyChain PCB?
It measures 93.1 × 65.5 mm and has 2 copper layers, 1.6 mm thick.
What parts does the ButterflyChain use?
26 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the ButterflyChain KiCad files?
From the mignon-p/ButterflyChain repository on GitHub, at the commit this page was made from: the board is ButterflyChain.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Can I use the ButterflyChain design in my own project?
Its repository publishes it under the CC-BY-SA-4.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).