Skip to the content
PCBKitNew board
4 layers60.7 × 27.2 mmKyberBoard, the printed circuit board in 3D

KyberBoard

lowdrant/kyber2

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

12

README

README.md

kyber

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 In C/C++ General Settings, add '../saber-libs' to the compiler search path Configure the compiler to optimize for size

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

ComponentAmperageReasoning
motor10Astall current of on-hand dc motor
solenoid1A12 V/13 Ohms rounded up
3V3 bus1Atypical LDO rating
waste0.5Asafety factor
------------------------------------------------------
total12.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. UV Protection Circuit UV Protection Sim result 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. PWM Simulation Result

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
QtyValueFootprintReferences
8100nCapacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolderC2, C4, C5, C7, C8, C15, C17, C18
81kResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR1, R2, R3, R6, R8, R10, R19, R20
510kResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR4, R11, R12, R13, R18
5SDM2U30CSP-7Diode_SMD:D_0603_1608Metric_Pad1.05x0.95mm_HandSolderD4, D5, D6, D7, D9
4BZT585B3V6TDiode_SMD:D_SOD-523D8, D13, D14, D15
310nCapacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolderC9, C10, C11
3MountingHole_PadMountingHole:MountingHole_2.7mm_M2.5_ISO7380_PadH1, H3, H4
20Resistor_SMD:R_0402_1005MetricR16, R17
210uCapacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolderC3, C12
2150060AS75000LED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolderD10, D11
1
10Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR9
1150060RS75020LED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolderD3
1150060VS75020LED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolderD1
115910060Connector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_Vertical_SMDJ4
11k5Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR5
11uCapacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolderC19
1200uCapacitor_SMD:CP_Elec_8x10.5C6
122uCapacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolderC13
133nCapacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolderC1
14u7Capacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolderC16
1AZ1117IH-3.3TRG1Package_TO_SOT_SMD:SOT-223-3_TabPin2U3
1BZT52C8V2S-7-FDiode_SMD:D_SOD-323_HandSolderingD2
1CIGT201210UHR47MNECapacitor_SMD:C_0805_2012MetricL1
1LOGOeaster-eggs:starfleetG***
1LOGOeaster-eggs:qr-funeral-pyreG***
1LOGOeaster-eggs:velociraptorG***
1MMA8452QTMMA8452:MMA8452QU4
1SIS413DN-T1-GE3Package_SO:Vishay_PowerPAK_1212-8_SingleQ2
1SSM3K337RPackage_TO_SOT_SMD:SOT-23Q3
1SSM3K337R,LFPackage_TO_SOT_SMD:SOT-23Q7
1STL120N4F6AGSTL120N4F6AG:STL120N4F6AGQ1
1STL76DN4LF7AGSTL76DN4LF7AG:STL76DN4LF7AGQ4
1STM32L051K8T6Package_QFP:LQFP-32_7x7mm_P0.8mmU1
1Screw_Terminal_01x04TerminalBlock_Phoenix:TerminalBlock_Phoenix_MPT-0,5-4-2.54_1x04_P2.54mm_HorizontalJ1
1Screw_Terminal_01x11TerminalBlock_Phoenix:TerminalBlock_Phoenix_MPT-0,5-11-2.54_1x11_P2.54mm_HorizontalJ2
1TL3342F160QG/TRButton_Switch_SMD:SW_SPST_TL3342SW1
1TestPointTestPoint:TestPoint_Pad_2.0x2.0mmTP1
1VNHD7008AYPackage_SO:ST_PowerSSO-36_SlugDown_ThermalViasU2

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

    VisionAddOn

    TobiasJaeggi/fpga-mocap

    FPGA based Motion Capture

    195 parts1GPL-3.0
  • 4 layers90 × 66 mmPower, the printed circuit board in 3D

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

    O32controller

    qwertpas/O32controller

    Miniature closed-loop controller for brushless DC motors

    126 parts37MIT
  • 4 layers38.5 × 42 mmM FC, the printed circuit board in 3D

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

    Fmcw2 mcu

    Ttl/fmcw2

    FMCW radar design files

    124 parts199
  • 2 layers54.6 × 14 mmSlotag v0p1, the printed circuit board in 3D

    Slotag v0p1

    lab11/slocalization

    High-Fidelity Localization of Slow Energy-Harvesting Tags

    28 parts8
  • 4 layers66.1 × 66.5 mmLight Doorbell KiCad, the printed circuit board in 3D

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

    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