Skip to the content
2 layers93.1 × 65.5 mmButterflyChain, the printed circuit board in 3D

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

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

butterfly board

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:

Add Package dialog box

Then just choose the "butterfly" package that appears.

You should then have a "Butterfly" category in your toolbox:

MakeCode toolbox

Now you can use the butterfly blocks:

Butterfly program

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

  1. Solder the surface-mount capacitor C1 onto the back of the board.

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

  3. Solder the JST SM plug and receptacle to the J1 and J2 locations. Be sure to get the polarity right!

  4. 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
QtyValueFootprintReferences
18Neopixel_THTmyLibrary:LED_D5.0mm-4D1, D2, D3, D4, D5, D6, D7, D10, D11, D12, D13, D14, D15, D16, D17, D18 +2
147µFCapacitors_SMD:C_1210_HandSolderingC1
1AntennaemyLibrary:AntennaeJ3
1InputPin_Headers:Pin_Header_Straight_1x03_Pitch2.54mmJ1
1LOGOmyLibrary:copper-on-wing-leftG***
1LOGOmyLibrary:copper-on-wing-rightG***
1LOGOmyLibrary:FingerprintG***
1OutputPin_Headers:Pin_Header_Straight_1x03_Pitch2.54mmJ2

The 25 most common of 26 parts.

Similar boards

  • 2 layers57.3 × 19 mm11ua, the printed circuit board in 3D

    11ua

    rene-dev/stmbl

    AC Servo Driver for STM32F4

    26 parts990GPL-3.0
  • 2 layers98 × 59.5 mmMCP23017 PCB, the printed circuit board in 3D

    MCP23017 PCB

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    26 parts915
  • 2 layers142.9 × 98.5 mmCantor MX, the printed circuit board in 3D

    Cantor MX

    diepala/cantor

    Cantor keyboard, a 42 key diodeless split keyboard.

    26 parts756GPL-3.0
  • 2 layers103.8 × 50 mmGalagino pcb set, the printed circuit board in 3D

    Galagino pcb set

    harbaum/galagino

    A Galaga, Pac-Man and Donkey Kong arcade emulator for the ESP32

    26 parts558
  • 2 layers20.3 × 34.8 mmL0 ESP32, the printed circuit board in 3D

    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 mmWALTsm, the printed circuit board in 3D

    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 mmDoj v2, the printed circuit board in 3D

    Doj v2

    kelu124/echomods

    Open source ultrasound processing modules and building blocks

    26 parts463

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