Skip to the content
2 layers8-ball badge, the printed circuit board in 3D

An Open Source CircuitPython-compatible PCB badge that can (maybe) tell the future!

Copper layers
2
Thickness
1.6 mm
Parts
90
Nets
82
Pads
277
Tracks, vias
945, 136
Pours
2
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
30 Oct 2023
Updated
28 Feb 2024

Overview

8-ball badge is an open-source printed circuit board by tylercrumpton, from the tylercrumpton/magic-8-badge repository on GitHub. It is a 2-layer board with 90 parts on 82 nets, routed with 945 tracks and 136 vias.

It is built around the RP2040, QMC6308 and W25Q128JVSIQ TR, with the ALS-PT19-315C/L177/TR8, ME6210A33PG and QMI8658C among its other parts. Its parts include 23 resistors, 20 capacitors, 7 ICs, 3 connectors and 2 diodes. It belongs with the lEDs and displays boards and the RP2040 boards of this library.

Main components

12

README

README.md

Magic 8-Badge

Hardware, software, and other resouces for a fun little CircuitPython-compatible PCB badge!

Note: Lots of information and improvements to be added soon!

IMG_0826

Hardware

All of the hardware design files are included in the hardware/ directory. The board was designed with KiCad 7, using mostly components from JLCPCB's Assembly Parts Library.

Firmware

The Magic 8-Badge was created to utilize Adafruit's CircuitPython 🐍, and will hopefully have a board definition available on the CircuitPython website soon. The v1 version of the Magic 8-Badge distrbuted at PhreakNIC 24 in Nov 2023 are runnings a slightly-modified version of CircuitPython 8.2.0 that enables software pullup resistors on the I2C lines connected to the 6DoF IMU chip. The diff in changes in available in firmware/8.2.x-circuitpython-patch-208ebdf3.diff.

The CircuitPython *.py files used to run the badge are included in firmware/circuitpy-code. This code is a huge mess, but I have some changes coming soon that will clean up the code, speed up the boot time, improve the UX and graphics a bit, and hopefully add more fun little features! The main application is found in firmware/circuitpy-code/code.py, and there are some required libraries that need to be installed from the Adafruit CircuitPython Bundle as well as the Community Bundle:

  • Adafruit CircuitPython Bundle requirements:
    • adafruit_display_text
    • adafruit_imageload
  • Community Bundle requirements:
    • gc9a01

You'll need to copy these libraries from the respective bundles into the /lib directory on the CIRCUITPY drive that should show up when plugged into a USB port on your computer.

Errata

I will include notes her about board bugs, things to consider when making code changes, and whatever else little idiosyncasies are present in various versions of the Magic 8-Badge.

v1

Version v1 of the Magic 8-Badge has a couple of issues that are mostly worked around in software and hardware re-work:

  • The QMC6308 magnetometer chip (U9) has been removed from all v1 boards because the power and ground connections are reversed. If the chip is placed, the board will fail to start, effectively shorting the 3v3 power rail. Don't do this!
  • There are no external pullups on the I2C lines connected to the QMI8658C accelerometer/gyroscope chip (U7). CircuitPython doesn't currently support setting internal pullup resistors for I2C pins, and the internal pullup resistors on the RP2040 are technically out of spec for I2C communications (50-80kohms). The patch to the CircuitPython core described above manually enables the internal pullup resistors, and I've not seen any issues reading from the QMI8658C with those. I'm going to try to submit a pull request to allow compile-time enabling of these internal resistors so that a custom build of CircuitPython is no longer neccessary. If you want to try a different version of CircuitPython that doesn't include that patch, no harm will be done, but CircuitPython will throw an error when trying to connect to the QMI8658C.
  • There is no low-voltage cut-off for the Li-ion battery used for the Magic 8-Badge. The battery selected does offer low-voltage protection to keep the battery from discharging to dangerous levels, but the threshold voltage is lower than I would have liked. I recommend disconnecting the Li-ion battery if it is not going to be used in order preserve the capacity and health of the battery.

License

The hardware and its design files are licensed under the CERN Open Hardware Licence v2 - Permissive.

The firmware/software is licensed under the MIT License.

The CrumpSpace logo is a trademark of CrumpSpace and should not be used in association with hardware or software that is sold or distributed by others.

Parts

90
QtyValueFootprintReferences
10100nFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC1, C7, C8, C10, C11, C12, C13, C14, C16, C17
9TestPointTestPoint:TestPoint_Pad_D1.0mmTP7, TP8, TP9, TP11, TP12, TP13, TP14, TP15, TP16
61MResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR12, R13, R14, R15, R16, R17
510uFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC2, C3, C4, C5, C6
4LOGOproject_specific:battery-layoutG***, G***, G***, G***
31KResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR2, R11, R18
32.4KResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR3, R22, R23
2100KResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR4, R19
21uFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC15, C18
227.4Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR7, R8
227pFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC19, C20
25.1KResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR9, R10
2DNFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderR20, R21
2MSK4005lcsc:SOD-523F_L1.2-W0.8-LS1.7-RDD1, D2
2TS-1187A-B-A-Blcsc:SW-SMD_4P-L5.1-W5.1-P3.70-LS6.5-TL-2BOOT_SEL1, SW2
122uFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC9
124KResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR5
1Aproject_specific:chip_aTP6
1ALS-PT19-315C/L177/TR8lcsc:SENSORS-SMD_ALS-PT19R1
1AO3401Alcsc:SOT-23_L2.9-W1.3-P1.90-LS2.4-BRQ1
1Bproject_specific:chip_bTP5
1BATT_TEMP_ENJumper:SolderJumper-3_P1.3mm_Open_RoundedPad1.0x1.5mmJP1
1BattConnlcsc:CONN-TH_3P-P1.25_HDGC_HDGC1251WR-3PJ1
1Dproject_specific:chip_downTP4
1DNFResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR6
1GC9A01 LCDproject_specific:GC9A01U4
1Lproject_specific:chip_leftTP1
1LOGOproject_specific:magic-8-logoG***
1LOGOproject_specific:back-silkG***
1LOGOproject_specific:eat-fruitsG***
1LOGOproject_specific:subsystem-labelsG***
1LOGOproject_specific:magic-8-stripeG***
1LOGOproject_specific:crumpG***
1LOGOproject_specific:spaceG***
1ME6210A33PGlcsc:SOT-89_L4.5-W2.5-P1.50-LS4.2-BRU10
1QMC6308lcsc:WLCSP-4_L0.8-W0.8-R2-C2-P0.40-BLU9
1QMI8658Clcsc:LGA-14_L3.0-W2.5-P0.50-BRU7
1Rproject_specific:chip_rTP3
1RP2040lcsc:LQFN-56_L7.0-W7.0-P0.4-EPU3
1S8050lcsc:SOT-23-3_L3.0-W1.7-P0.95-LS2.9-BRQ2
1SAO Header 1project_specific:Badgelife-SAOv169-BADGE-2x3J2
1SAO Header 2project_specific:Badgelife-SAOv169-BADGE-2x3J3
1SW_PushConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_HorizontalSW1
1TC4056Alcsc:ESOP-8_L4.9-W3.9-P1.27-LS6.0-BR-EP3.3U1
1Uproject_specific:chip_upTP2
1USB-TYPE-C-018lcsc:USB-C_SMD-TYPE-C-31-M-12USB1
1W25Q128JVSIQTRlcsc:SOIC-8_L5.3-W5.3-P1.27-LS8.0-BLU2
1X322512MSB4SIlcsc:OSC-SMD_4P-L3.2-W2.5-BLX1

The 89 most common of 90 parts.

Similar boards

  • 2 layers40.9 × 84.4 mmBicycle board, the printed circuit board in 3D

    Bicycle board

    XuHg-zjcn/bicycle_board

    a PCB board for bicycle

    158 partsCERN-OHL-S-2.0
  • 4 layers58.3 × 26.2 mmFireFlyV1 1, the printed circuit board in 3D

    FireFlyV1 1

    kylaro/firefly-led-controller

    PCB for the FireFly LED Controller

    59 parts1
  • 4 layers27.7 × 24.3 mmESP32-C3-V2, the printed circuit board in 3D

    ESP32-C3-V2

    Ans1S/esp32-c3-iot-sensor-board

    Open-source ESP32-C3 platform for ultra-low-power environmental sensor networks powered by recycled LiPo cells. Includes KiCad PCB, PlatformIO firmware (ESP-NOW + ThingSpeak), BME280/BME680 support, deep-sleep…

    53 parts6MIT
  • 4 layersCansat-2023, the printed circuit board in 3D

    Cansat-2023

    GWC-Cansat/Cansat-2023

    The GWC Cansat 2023 files

    60 partsGPL-3.0
  • 4 layers20 × 61.5 mmBle door sensor, the printed circuit board in 3D

    Ble door sensor

    gumulka/ble_door_sensor

    A simple project to observe a window or door is open/closed. It works like most other sensors as well. A magnet has to get attached to the door and if it comes near the board, it is detected and the state of the window…

    41 parts2Apache-2.0

Questions

What parts does the 8-ball badge use?

90 parts, built around the RP2040, QMC6308, W25Q128JVSIQ TR and ALS-PT19-315C/L177/TR8. 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 8-ball badge KiCad files?

From the tylercrumpton/magic-8-badge repository on GitHub, at the commit this page was made from: the board is hardware/8-ball-badge/8-ball-badge.kicad_pcb and its schematic hardware/8-ball-badge/8-ball-badge.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the 8-ball badge design in my own project?

Its repository states no licence, so its author keeps all rights: ask tylercrumpton before reusing the design.