Skip to the content
PCBKitNew board
2 layers39 × 119 mmSofbpcb, the printed circuit board in 3D

Elena of Avalor staff for 3D printing and PCB fabrication

Size
39 × 119 mm
Copper layers
2
Thickness
1.6 mm
Parts
21
Nets
68
Pads
106
Tracks, vias
124, 0
Pours
1
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
12 Jun 2021
Updated
24 Nov 2021

Overview

Sofbpcb is an open-source printed circuit board by philmccarthy24, from the philmccarthy24/scepteroflight repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 39 × 119 mm with 21 parts on 68 nets, routed with 124 tracks and 0 vias.

It is built around the ULN2003. Its parts include 7 connectors, 5 resistors, 4 diodes and 1 IC. It belongs with the NXP (LPC, Kinetis, i.MX RT) boards of this library.

Main components

1

README

README.md

Scepter of Light

3D printable prop

Phil McCarthy, August 2021

blaze

What is this?

A 3D printed version of the Scepter of Light from Elena of Avalor, created by Phil McCarthy over summer 2021.

scepter

Why?

My daughter loves Elena, and wanted a scepter to go with her costume. I've thought about designing a circuit board and doing some 3D printing for a while - so this was an ideal learning project with the right level of challenge. It took about three months to complete in my spare time.

The scepter lights up and plays music when turned on, and rumbles with "magic" when waved. See a quick video demo here.

I've made an Instructable and a Thing to go with this repository, to make it more searchable.

Features

  • Easy access charging via MicroUSB port in unscrewable hilt - red light is charging, blue means charged. Grille around port allows heat dissapation during charge. charging

  • Custom PCB with ULN2003A driver allows independent control of each of the three side ultrabright LEDs, the top ultrabright LED array, and the vibration motor, via the MCU's output pins.

    pcb

  • All components on the PCB board are through-hole, allowing easy soldering/assembly, but it's thin enough to fit into the 50mm diameter scepter head.

  • High spec Teensy 4.1 MCU with 600 MHz Cortex-M7 processor and 1MB RAM can support gesture recognition via ML (in future).

What's included in this repository?

Original OpenSCAD designs and related assets for all parts, STL files for unmodified reprints (also Prusa project files which will save you time when slicing if you have a Prusa), KiCAD project files and gerbers for modifying/fabricating the PCB, and documentation.

Included in the documentation is the full parts list, assembly instructions, and the printing settings that worked for me when printing the parts out.

Any gotchas?

I haven't included wav sound files for potential copyright reasons. You just need to find some appropriate sounds and save them as "theme.wav" and "blaze.wav" on the root of the micro SD card that slots into the microcontroller.

The GY-521 gyro module needs to be mounted onto the PCB upside down, due to a "feature" in the PCB design - this is documented in the assembly instructions.

The sound isn't super-loud. It's acceptably audible, but not room filling. This is because there's little space in the enclosure interior, so I had to opt for a thin 8ohm 0.5W 20mm speaker. As a result the default 9dB gain setting of the MAX98357 distorts the audio through this speaker. I reduced the gain to 6dB by connecting the GAIN pin to Vin, which results in non-distorted (but slightly quieter) audio.

If you have some way of mounting a larger, more powerful speaker (up to 3W), it's possible to get these different gain settings:

  • 15dB if a 100K resistor is connected between GAIN and GND
  • 12dB if GAIN is connected directly to GND
  • 9dB if GAIN is not connected to anything
  • 6dB if GAIN is connected directly to Vin (default PCB wiring)
  • 3dB if a 100K resistor is connected between GAIN and Vin

You will need to hack the PCB with a craft knife and soldering iron or update the PCB design to achieve these changes.

What's the future of the project?

I plan to add gesture recognition at some point - the MCU was chosen to be powerful enough to support machine learning and classification of accelerometer data.

I'm not sure when I'm going to get round to coding it in; it might be next year. If you want to implement this yourself, go for it - I'm excited to see what you do!

Legal stuff

This project is a fan-made artistic prop, not a commercial product, and is free and open source. The PCB design, 3D print designs and MCU firmware are shared under the GPLv3 license.

In particular note the warranty and liability sections - these designs are shared for you to do what you want with them, with the understanding that if they cause harm or damage to you, your property or your loved ones, you and solely you take full responsibility.

High capacity Lithium Ion batteries are dangerous, should never be short circuited, and must be used with care and knowledge. Please don't assume my circuitry or designs are electrically or mechanically safe.

Parts

21
QtyValueFootprintReferences
368Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR2, R3, R4
3LEDLED_THT:LED_D3.0mmD2, D3, D4
215Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1, R5
15v Power InConnector_JST:JST_XH_S2B-XH-A_1x02_P2.50mm_HorizontalJ3
1D_SchottkyDiode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD1
1LEDStalk_hdrConnector_JST:JST_XH_S2B-XH-A_1x02_P2.50mm_HorizontalJ4
1LOGOscepterpcblogo:scepterpcblogoG***
1MAX98357A_hdrConnector_PinHeader_2.54mm:PinHeader_1x07_P2.54mm_VerticalJ1
1MPU6050_hdrConnector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ2
1Teensy4.1_left_hdrConnector_PinHeader_2.54mm:PinHeader_1x24_P2.54mm_VerticalJ6
1Teensy4.1_right_hdrConnector_PinHeader_2.54mm:PinHeader_1x24_P2.54mm_VerticalJ7
1ULN2003Package_DIP:DIP-16_W7.62mmU2
1VibrationMotor_hdrConnector_JST:JST_XH_S2B-XH-A_1x02_P2.50mm_HorizontalJ5

The 18 most common of 21 parts.

Questions

How big is the Sofbpcb PCB?

It measures 39 × 119 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Sofbpcb use?

21 parts, built around the ULN2003. 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 Sofbpcb KiCad files?

From the philmccarthy24/scepteroflight repository on GitHub, at the commit this page was made from: the board is pcb/sofbpcb.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Sofbpcb design in my own project?

Its repository publishes it under the GPL-3.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).

Similar boards

  • 4 layers99.6 × 76.2 mmE TKT, the printed circuit board in 3D

    E TKT

    andreisperid/E-TKT

    open source embossed label maker

    110 parts481MIT
  • 2 layers31 × 64 mmPower driver, the printed circuit board in 3D

    Power driver

    jmfriedt/SDR-GB-SAR

    Opensource, openhardware implementation of a Software Defined Radio (SDR) Ground Based Synthetic-Aperture RADAR (GB-SAR)

    6 parts70
  • 2 layers160 × 100 mmMPCNC Nano Estlcam Shield, the printed circuit board in 3D

    MPCNC Nano Estlcam Shield

    tnn85/MPCNC-Nano-Estlcam-Shield

    Ein CNC Shield für die MPCNC in Verwendung mit Estlcam

    96 parts70
  • 2 layers42.5 × 43.2 mmElectronicFocuser, the printed circuit board in 3D

    ElectronicFocuser

    jlecomte/ascom-oag-focuser

    Open Source ASCOM-Compatible OAG Focuser For Astrophotography

    4 parts55MIT
  • 4 layers100 × 49.8 mmExpansion board, the printed circuit board in 3D

    Expansion board

    reubenstr/zuko

    A quadruped robot dog!

    75 parts51MIT
  • 2 layers75 × 60 mmDUTler V2, the printed circuit board in 3D

    DUTler V2

    TheYoctoJester/dutler

    A bench butler for your Device Under Test: turns a Raspberry Pi Pico into a USB-serial console bridge with power-relay and MOSFET strap/reset control for embedded-Linux bring-up and hardware-in-the-loop.

    54 parts23Apache-2.0
  • 4 layers76 × 82.5 mmNucleo64 CNC, the printed circuit board in 3D

    Nucleo64 CNC

    terjeio/CNC_Breakout_Nucleo64

    CNC breakout for STM324F411 and ST32F446 development boards

    120 parts22