

8-ball badge
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
12RP2040
LQFN-56(7x7)12bit 133MHz 30 LQFN-56(7x7) Microcontrollers (MCU/MPU/SOC) ROHSRaspberry PiMicrocontrollers (MCU/MPU/SOC)QMC6308
WLCSP-4-40℃~+85℃ 1.65V~1.95V 16bit 30uA I2C On-chip set/reset coil ±3mT ±3mT WLCSP-4 3D Magnetic Sensors ROHSQSTLinear Hall SensorsW25Q128JVSIQ TR
SOIC-8-208mil-40℃~+85℃ 100,000 cycles 128Mbit 133MHz 1uA 2.7V~3.6V 20 Years 3ms Power-on reset、Hardware Write Protection、Software Write Protection、Write enable latch、Absolute Write Protection、Power lock protection SPI SOIC-8-208mil NOR FLASH ROHSWinbond ElecNOR FLASHALS-PT19-315C/L177/TR8
0603-40℃~+85℃ 0.6mm 0.8mm 1.7mm 2.5V~5.5V Light Intensity Spectral correction/filtering 0603 Ambient Light Sensors ROHSEverlight ElectronicsAmbient Light SensorsME6210A33PG
SOT-89-25℃~+85℃ 1 1.6uA 18V 200mV@(200mA) 3.3V 500mA Fixed Positive Short Circuit Protection SOT-89 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSMICRONEVoltage Regulators - Linear, Low Drop Out (LDO) RegulatorsQMI8658C
LGA-14-40℃~+85℃ 1.5KB 1.71V~3.6V 16bit IMU (accelerometer + gyroscope) SPI、I2C、I3C Synchronization and timestamp X,Y,Z X,Y,Z ±16g ±2048dps LGA-14 Accelerometers ROHSQSTAccelerometersTC4056A
SOP-8-EP-40℃~+85℃ 1 1A 4.2V 4V~8V 55uA Charging IC Constant current charging、Constant voltage charging、Trickle charging、Automatic recharge、Charge termination、Programmable charging current、Soft-start、Under-voltage lockout Lithium Battery Support Support SOP-8-EP Battery Management ROHSFMBattery ManagementMSK4005
SOD-523-55℃~+125℃ 150uA@40V 490mV@500mA 500mA 50V Independent SOD-523 Schottky Diodes ROHSShikuesSchottky DiodesTS-1187A-B-A-B
SMD-4P,5.1x5.1mm-30℃~+85℃ 1.5mm 1.6N 100,000 cycles 12V 5.1mm 5.1mm 50mA Gold No Round Button SPST Surface Mount,Vertical Without Bracket SMD-4P,5.1x5.1mm Tactile Switches ROHSXKB ConnectionTactile SwitchesAO3401A
SOT-231 P-Channel 14nC@10V 30V 47mΩ@10V、60mΩ@4.5V、85mΩ@2.5V 4A 55pF 645pF 80pF 900mV SOT-23 MOSFETs ROHSAlpha & Omega SemiconductorMOSFETsS8050
SOT-23-55℃~+150℃ 1 NPN 100MHz 100nA 120 25V 300mW 500mA 5V 600mV NPN SOT-23 Bipolar (BJT) ROHShongjiachengBipolar (BJT)USB-TYPE-C-018
SMD-25℃~+85℃ 1 10000 times 16P 3A 5V 7.35mm Female Surface Mount, Right Angle Type-C SMD USB Connectors ROHSDEALONUSB Connectors
README
README.mdMagic 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!
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_textadafruit_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| Qty | Value | Footprint | References |
|---|---|---|---|
| 10 | 100nF | Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | C1, C7, C8, C10, C11, C12, C13, C14, C16, C17 |
| 9 | TestPoint | TestPoint:TestPoint_Pad_D1.0mm | TP7, TP8, TP9, TP11, TP12, TP13, TP14, TP15, TP16 |
| 6 | 1M | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R12, R13, R14, R15, R16, R17 |
| 5 | 10uF | Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | C2, C3, C4, C5, C6 |
| 4 | LOGO | project_specific:battery-layout | G***, G***, G***, G*** |
| 3 | 1K | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R2, R11, R18 |
| 3 | 2.4K | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R3, R22, R23 |
| 2 | 100K | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R4, R19 |
| 2 | 1uF | Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | C15, C18 |
| 2 | 27.4 | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R7, R8 |
| 2 | 27pF | Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | C19, C20 |
| 2 | 5.1K | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R9, R10 |
| 2 | DNF | Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | R20, R21 |
| 2 | MSK4005 | lcsc:SOD-523F_L1.2-W0.8-LS1.7-RD | D1, D2 |
| 2 | TS-1187A-B-A-B | lcsc:SW-SMD_4P-L5.1-W5.1-P3.70-LS6.5-TL-2 | BOOT_SEL1, SW2 |
| 1 | 22uF | Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | C9 |
| 1 | 24K | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R5 |
| 1 | A | project_specific:chip_a | TP6 |
| 1 | ALS-PT19-315C/L177/TR8 | lcsc:SENSORS-SMD_ALS-PT19 | R1 |
| 1 | AO3401A | lcsc:SOT-23_L2.9-W1.3-P1.90-LS2.4-BR | Q1 |
| 1 | B | project_specific:chip_b | TP5 |
| 1 | BATT_TEMP_EN | Jumper:SolderJumper-3_P1.3mm_Open_RoundedPad1.0x1.5mm | JP1 |
| 1 | BattConn | lcsc:CONN-TH_3P-P1.25_HDGC_HDGC1251WR-3P | J1 |
| 1 | D | project_specific:chip_down | TP4 |
| 1 | DNF | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R6 |
| 1 | GC9A01 LCD | project_specific:GC9A01 | U4 |
| 1 | L | project_specific:chip_left | TP1 |
| 1 | LOGO | project_specific:magic-8-logo | G*** |
| 1 | LOGO | project_specific:back-silk | G*** |
| 1 | LOGO | project_specific:eat-fruits | G*** |
| 1 | LOGO | project_specific:subsystem-labels | G*** |
| 1 | LOGO | project_specific:magic-8-stripe | G*** |
| 1 | LOGO | project_specific:crump | G*** |
| 1 | LOGO | project_specific:space | G*** |
| 1 | ME6210A33PG | lcsc:SOT-89_L4.5-W2.5-P1.50-LS4.2-BR | U10 |
| 1 | QMC6308 | lcsc:WLCSP-4_L0.8-W0.8-R2-C2-P0.40-BL | U9 |
| 1 | QMI8658C | lcsc:LGA-14_L3.0-W2.5-P0.50-BR | U7 |
| 1 | R | project_specific:chip_r | TP3 |
| 1 | RP2040 | lcsc:LQFN-56_L7.0-W7.0-P0.4-EP | U3 |
| 1 | S8050 | lcsc:SOT-23-3_L3.0-W1.7-P0.95-LS2.9-BR | Q2 |
| 1 | SAO Header 1 | project_specific:Badgelife-SAOv169-BADGE-2x3 | J2 |
| 1 | SAO Header 2 | project_specific:Badgelife-SAOv169-BADGE-2x3 | J3 |
| 1 | SW_Push | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Horizontal | SW1 |
| 1 | TC4056A | lcsc:ESOP-8_L4.9-W3.9-P1.27-LS6.0-BR-EP3.3 | U1 |
| 1 | U | project_specific:chip_up | TP2 |
| 1 | USB-TYPE-C-018 | lcsc:USB-C_SMD-TYPE-C-31-M-12 | USB1 |
| 1 | W25Q128JVSIQTR | lcsc:SOIC-8_L5.3-W5.3-P1.27-LS8.0-BL | U2 |
| 1 | X322512MSB4SI | lcsc:OSC-SMD_4P-L3.2-W2.5-BL | X1 |
The 89 most common of 90 parts.
Similar boards
- 2 layers40.9 × 84.4 mm

- 2 layers34 × 24 mm

Reality from scratch motherboard
uwrealitylabs/Reality-from-scratch-motherboard
RP2040+ICM42688
50 parts1GPL-3.0 - 2 layers50 × 45 mm

- 4 layers58.3 × 26.2 mm

- 4 layers91.8 × 92 mm

- 4 layers27.7 × 24.3 mm

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 layers

- 4 layers20 × 61.5 mm

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.