

KyberBoard
Extending/Retracting Lightsaber CAD/FW/EDA
- Size
- 60.7 × 27.2 mm
- Copper layers
- 4
- Thickness
- 1.6 mm
- Parts
- 71
- Nets
- 59
- Pads
- 253
- Tracks, vias
- 324, 68
- Pours
- 14
- Routed
- Yes
- KiCad
- KiCad 5 (file 20171130)
- Created
- 28 Feb 2021
- Updated
- 31 Aug 2021
Overview
KyberBoard is an open-source printed circuit board by lowdrant, from the lowdrant/kyber repository on GitHub, published under the AGPL-3.0 licence. It is a 4-layer board of 60.7 × 27.2 mm with 71 parts on 59 nets, routed with 324 tracks and 68 vias.
It is built around the STM32L051K8T6, MMA8452QT and VNHD7008AY, with the AZ1117IH-3.3TRG1, SDM2U30CSP-7B and BZT585B3V6T among its other parts. Its parts include 18 capacitors, 17 resistors, 14 diodes, 5 transistors and 4 ICs. It belongs with the robots and motor control boards and the STM32 boards of this library.
Main components
12STM32L051K8T6
LQFP-32(7x7)-40℃~+85℃ 1.65V~3.6V 12bit 27 2KB 32 Bit 32MHz 64KB 8KB ARM Cortex-M0+ Built-in FLASH LQFP-32(7x7) Microcontrollers (MCU/MPU/SOC) ROHSSTMicroelectronicsMicrocontrollers (MCU/MPU/SOC)MMA8452QT
QFN-16(3x3)Attitude Sensor/GyroscopeNXP SemiconductorsVNHD7008AY
PWRSSOEP-36-40℃~+150℃ 4V~28V 51A 8mΩ No PWRSSOEP-36 Brushed DC Motor Drivers ROHSSTMicroelectronicsBrushed DC Motor DriversAZ1117IH-3.3TRG1
SOT-223-40℃~+125℃@(Tj) 1 1.3V@(0.8A) 15V 3.3V 4mA 70dB@(120Hz) Fixed Over Current Protection、Over Temperature Protection Positive SOT-223 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSDiodes IncorporatedUncategorisedSDM2U30CSP-7B
06030603 Schottky Diodes ROHSDiodes IncorporatedSchottky DiodesBZT585B3V6T
SOD-523-65℃~+150℃ 1 Independent 3.53V~3.67V 3.6V 350mW 500Ω 5uA@1V 90Ω SOD-523 Zener Diodes ROHSDiodes IncorporatedZener Diodes150060AS75000
0603UncategorisedWürth Elektronik150060RS75020
0603-40℃~+85℃ 100mcd 140° 20mA 2V 625nm 630nm Discrete Diode Red Water Clear 0603 LED Indication - Discrete ROHSWürth ElektronikLight Emitting Diodes (LED)150060VS75020
0603-40℃~+85℃ 140° 20mA 2V 50mcd 570nm 572nm Discrete Diode Green Water Clear 0603 LED Indication - Discrete ROHSWürth ElektronikLED Indication - DiscreteCIGT201210UHR47MNE
080525mΩ 3.6A 4.9A 470nH Molded Inductor ±20% 0805 Molding Power Inductors ROHSSamsung Electro-MechanicsPower InductorsSIS413DN-T1-GE3-MS
DFN-8L(3x3)-55℃~+150℃ 1 P-Channel 1.5V 2.8nF 21.5W 30V 30nC 319pF 346pF 55A 8.5mΩ@10V P-Channel ±20V DFN-8L(3x3) MOSFETs ROHSMSKSEMIMOSFETsSSM3K337R,LF
SOT-23F1 N-channel 1.7V 120pF 150mΩ@10V 1W 2A 38V 3nC@10V SOT-23F MOSFETs ROHSToshibaMOSFETs
README
README.mdkyber
The toy lightsaber I always wanted as a kid.
Status
- KyberBoard Rev 1 sent out for fabrication.
- Found Luke Skywalker lightsaber CAD for 3D printing by CaseStudyno8.
- Circuit design complete and subcircuit interfaces frozen.
- Subcircuits passed breadboard feasibility tests.
- First pass on firmware architecture complete.
Goals
- Build a lightsaber that extends/retracts, lights up, and makes sound
- Demonstrate "full-stack" electronics engineering skills + some mechanical design
- Stay sane for the rest of the pandemic (everyone needs a hobby)
- Maybe have a Luke Skywalker costume by Halloween 2021?
fw
Written for the STM32L051K8T6 microcontroller. Code should work on any STM32 micrcontroller, and most interfaces are abstracted into header files.
TODO: state diagram
Configuring STM32CubeIde
Edit project settings to include the multi-project libraries and make the compiler optimize for size. TODO: change saber-libs to holocron-libs

hw
A mildly overdesigned PCB to allow flexibility in mechanical design. Designed for test, assembly, and reconfigurability.
Component Selection Rules
Keep It Simple, Stupid. Stick to driving circuits that have readily available and easily solderable components. If necessary, target components that have in-stock evaluation boards and take the scrap.
Current (A) Budget
| Component | Amperage | Reasoning |
|---|---|---|
| motor | 10A | stall current of on-hand dc motor |
| solenoid | 1A | 12 V/13 Ohms rounded up |
| 3V3 bus | 1A | typical LDO rating |
| waste | 0.5A | safety factor |
| ----------- | ---------- | --------------------------------- |
| total | 12.5A |
Voltage Loss Budget
Mostly concerned with battery protection I2R losses. Target < 0.5V peak drop (instinctive spec, not computed)
Major concerns are
- falling below the solenoid turn-on voltage, although I haven't really settled on a solenoid
- throwing off motor control
Current resolution: use ST's VNHD7008AY eval board example design. It seems to work fairly well
Subcircuits
Reverse Polarity Protection
Use the built-in protection of the hbridge. Need to characterise I2R losses. This will help prevent the Big DumbTM since I plan to use terminal blocks for my main connector.
Low-Voltage Shutoff
Grocery store batteries can't drive the actuators, so I'm looking at using a LiPo. This simple Zener-NMOS-PMOS circuit I designed for a student club will should prevent battery over-discharge.
When the voltage is above Vthresh, the Zener conducts, so the NMOS conducts, which makes the PMOS conduct.
3V3 Bus
LDO; I do not want to deal with buck converters. I am not being paid for this design.
Accelerometer/Gyro
For that sweet, sweet zwoom. Use I2C/SPI to make routing a little easier. I have a still-in-stock breakout board for the no-longer-produced MMA84252QT.
Motor Current Sensing
I may use torque control to retract the saber. Currently planning to extend it with a spring, so the "retracted torque" is theoretically better characterized than the "retracted position".
HBridge
I found a high-current hbridge IC that does not require complementary PWM (thank you ST). I have limited PWM capabilities due to only low-power ST micros being in stock.
Actuators
Low-side switches that do not require inrush-limiting resistors to reduce component count. The SSM3K337R,LF stays well under the maximum drive current and well-preserves a 20kHz square wave.

Non-electrical considerations
- Cost: 4 layers. 2-sided board gives me the needed density, and routing isn't that awful
- I'm not sure I want to hand-solder QFN packages
- Size: Maximize density to maximize mechanical design flexibility.
- Power budget: Meh, I can increase resistances after fab if it's a battery killer
cad
Found a Luke Skywalker lightsaber CAD for 3D printing by CaseStudyno8. Was also pointed to Disney's new lightsaber, which shows some novel mechanical design for retraction. Although I would prefer to be able to fence with my design, the tape measure strategy does show promise.
Parts
71| Qty | Value | Footprint | References |
|---|---|---|---|
| 8 | 100n | Capacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolder | C2, C4, C5, C7, C8, C15, C17, C18 |
| 8 | 1k | Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder | R1, R2, R3, R6, R8, R10, R19, R20 |
| 5 | 10k | Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder | R4, R11, R12, R13, R18 |
| 5 | SDM2U30CSP-7 | Diode_SMD:D_0603_1608Metric_Pad1.05x0.95mm_HandSolder | D4, D5, D6, D7, D9 |
| 4 | BZT585B3V6T | Diode_SMD:D_SOD-523 | D8, D13, D14, D15 |
| 3 | 10n | Capacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolder | C9, C10, C11 |
| 3 | MountingHole_Pad | MountingHole:MountingHole_2.7mm_M2.5_ISO7380_Pad | H1, H3, H4 |
| 2 | 0 | Resistor_SMD:R_0402_1005Metric | R16, R17 |
| 2 | 10u | Capacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolder | C3, C12 |
| 2 | 150060AS75000 | LED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolder | D10, D11 |
| 1 | |||
| 1 | 0 | Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder | R9 |
| 1 | 150060RS75020 | LED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolder | D3 |
| 1 | 150060VS75020 | LED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolder | D1 |
| 1 | 15910060 | Connector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_Vertical_SMD | J4 |
| 1 | 1k5 | Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder | R5 |
| 1 | 1u | Capacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolder | C19 |
| 1 | 200u | Capacitor_SMD:CP_Elec_8x10.5 | C6 |
| 1 | 22u | Capacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolder | C13 |
| 1 | 33n | Capacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolder | C1 |
| 1 | 4u7 | Capacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolder | C16 |
| 1 | AZ1117IH-3.3TRG1 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U3 |
| 1 | BZT52C8V2S-7-F | Diode_SMD:D_SOD-323_HandSoldering | D2 |
| 1 | CIGT201210UHR47MNE | Capacitor_SMD:C_0805_2012Metric | L1 |
| 1 | LOGO | easter-eggs:starfleet | G*** |
| 1 | LOGO | easter-eggs:qr-funeral-pyre | G*** |
| 1 | LOGO | easter-eggs:velociraptor | G*** |
| 1 | MMA8452QT | MMA8452:MMA8452Q | U4 |
| 1 | SIS413DN-T1-GE3 | Package_SO:Vishay_PowerPAK_1212-8_Single | Q2 |
| 1 | SSM3K337R | Package_TO_SOT_SMD:SOT-23 | Q3 |
| 1 | SSM3K337R,LF | Package_TO_SOT_SMD:SOT-23 | Q7 |
| 1 | STL120N4F6AG | STL120N4F6AG:STL120N4F6AG | Q1 |
| 1 | STL76DN4LF7AG | STL76DN4LF7AG:STL76DN4LF7AG | Q4 |
| 1 | STM32L051K8T6 | Package_QFP:LQFP-32_7x7mm_P0.8mm | U1 |
| 1 | Screw_Terminal_01x04 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MPT-0,5-4-2.54_1x04_P2.54mm_Horizontal | J1 |
| 1 | Screw_Terminal_01x11 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MPT-0,5-11-2.54_1x11_P2.54mm_Horizontal | J2 |
| 1 | TL3342F160QG/TR | Button_Switch_SMD:SW_SPST_TL3342 | SW1 |
| 1 | TestPoint | TestPoint:TestPoint_Pad_2.0x2.0mm | TP1 |
| 1 | VNHD7008AY | Package_SO:ST_PowerSSO-36_SlugDown_ThermalVias | U2 |
Questions
How big is the KyberBoard PCB?
It measures 60.7 × 27.2 mm and has 4 copper layers, 1.6 mm thick.
What parts does the KyberBoard use?
71 parts, built around the STM32L051K8T6, MMA8452QT, VNHD7008AY and AZ1117IH-3.3TRG1. 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 KyberBoard KiCad files?
From the lowdrant/kyber repository on GitHub, at the commit this page was made from: the board is hw/KyberBoard/KyberBoard.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Can I use the KyberBoard design in my own project?
Its repository publishes it under the AGPL-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
- 6 layers60.6 × 100 mm

- 4 layers90 × 66 mm

Power
AndreasNielsen4000/Group-7-IoT-Project
The project is a wireless speaker system that can play music from a Bluetooth or WiFi source. The system consists of four main parts with subcomponents:
119 parts1 - 4 layers27 × 27 mm

O32controller
qwertpas/O32controller
Miniature closed-loop controller for brushless DC motors
126 parts37MIT - 4 layers38.5 × 42 mm

M FC
Def12345678/M-FC-G474-Rev-A
Modular STM32G474 Flight Controller Rev-A. Focus on modularity using JST-SH connectors for all peripherals (ESC, RX, etc.). ICM-42688-P IMU and DPS368 barometer. Requires external 5V 2.5A (no onboard BEC).
112 partsMIT - 4 layers32.3 × 33.3 mm

- 2 layers54.6 × 14 mm

- 4 layers66.1 × 66.5 mm

Light Doorbell KiCad
Estylos/Light-Doorbell-HW
KiCad project for a custom, battery-powered doorbell with dual-color LED feedback and 4-layer circular PCB design. Optimized for low power and compact integration
87 parts1MIT - 2 layers85.6 × 54 mm

Wallet dmm
ArgonautGit/wallet_dmm
A multimeter the size of a credit card: DC volts, resistance, continuity and diode test, shown on a 0.91" OLED, with three buttons, an RGB LED and a piezo beeper.
70 parts