Skip to the content
2 layers75 × 50 mmHiside switch, the printed circuit board in 3D

An accelerator / coilgun for metallic marbles

Size
75 × 50 mm
Copper layers
2
Thickness
1.6 mm
Parts
25
Nets
11
Pads
56
Tracks, vias
59, 28
Pours
4
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
8 Apr 2022
Updated
3 Jul 2026

Overview

Hiside switch is an open-source printed circuit board by fabianmink, from the fabianmink/MarbleAccelerator repository on GitHub, published under the BSD-2-Clause licence. It is a 2-layer board of 75 × 50 mm with 25 parts on 11 nets, routed with 59 tracks and 28 vias.

It is built around the BTS6163D and BC848. Its parts include 8 resistors, 6 capacitors, 3 connectors, 1 IC and 1 diode.

Main components

2

README

README.md

Marble Accelerator

This project deals with the construction of various accelerators (coil guns) for metallic marbles. It might be used e.g. for the GraviTrax marble run (marble data: $m = 8.6 \mathrm{g}$, $d = 12.7 \mathrm{mm}$). It has been used in various student projects in electrical engineering bachelor's and master's programs in the IEM department at the THM Friedberg, e.g. this one

Horizontal design complete

Coilgun Designs

Coil winding cross sections are 15mm (coil length) x 7mm (inner radius 8mm, outer radius 15mm), leading to around 350 turns for 0.5mm wire diameter which results in an inductance of approximately 1mH.

Horizontal coil design with two coils

Horizontal coil design

Horizontal CAD design (base and tube parts)

horizontal design base horizontal design tube

The design is intended to be used with EVERLIGHT ITR9904 optical sensor for marble detection.

Vertical coil design (single coil)

Vertical CAD design (base part and output)

vertical design base vertical output

vertical whole marble track

vertical design accelerator coil

The design is intended to be used with Vishay CNY70 optical sensor for marble detection.

The advantage of the vertical design is that the marble is at a defined state (no movement, $v_\mathrm{z} = 0$) at the beginning. This makes the accelerator parameters easier to tune, as the current level and duration of the current pulse are always the same.

Coil winding

For an operating voltage of 24V, suitable wire diameters are in the range of 0.5mm ... 0.75mm.

coil winding machine

FEM Simulation (FEMM)

FEM Simulation

Fitting of FEM results

The fit is based on the following coenergy equation:

  • Co-Energy: $E_{\mathrm{Co}} = \frac{1}{2} \cdot L_\mathrm{min} \cdot I^2 \cdot \left[ 1 + d \cdot \exp \left( -0.5 \cdot \left(\frac{z - z_0}{z_\mathrm{s}}\right)^2 \right) \right]$

i.e.:

  • z-Direction Force: $F_\mathrm{z} = \frac{\partial E_{\mathrm{Co}}}{\partial z} = - \frac{1}{2} \cdot L_\mathrm{min} \cdot I^2 \cdot \left[ d \cdot \exp \left( -0.5 \cdot \left( \frac{z - z_0}{z_\mathrm{s}} \right)^2 \right) \right] \cdot \frac{z - z_0}{z^2_\mathrm{s}}$

  • Flux Linkage: $\Psi = \frac{\partial E_{\mathrm{Co}}}{\partial I} = L_\mathrm{min} \cdot I \cdot \left[ 1 + d \cdot \exp \left( -0.5 \cdot \left( \frac{z - z_0}{z_\mathrm{s}} \right)^2 \right) \right]$

  • Inductance: $L = \frac{\partial \Psi}{\partial I} = \frac{\partial^2 E_{\mathrm{Co}}}{\partial I^2} = L_\mathrm{min} \cdot \left[ 1 + d \cdot \exp \left( -0.5 \cdot \left( \frac{z - z_0}{z_\mathrm{s}} \right)^2 \right) \right]$

  • Flux derivative: $\frac{\partial \Psi}{\partial z} = \frac{\partial^2 E_{\mathrm{Co}}}{\partial I \partial z} = - L_\mathrm{min} \cdot I \cdot \left[ d \cdot \exp \left( -0.5 \cdot \left( \frac{z - z_0}{z_\mathrm{s}} \right)^2 \right) \right] \cdot \frac{z - z_0}{z^2_\mathrm{s}}$ (needed for induced voltage calculation)

  • Maximum force for given current occurs at the inflection points of $E_{\mathrm{Co}}$, i.e. at $z = z_0 \pm z_\mathrm{s}$: $F_\mathrm{z,max} \left( I \right)= \frac{1}{2} \cdot L_\mathrm{min} \cdot I^2 \cdot d \cdot \exp \left( -0.5 \right) \cdot \frac{1}{z_\mathrm{s}}$

Resulting examplary fitted force:

Force Fit

Dynamic System Simulation Model

The dynamic simulation implements the following equations:

  • Velocity (z-direction): $\dot{v} = \frac{1}{m} \cdot F_\mathrm{z}$
  • z-Position: $\dot{z} = v$
  • Force calculation: $F_\mathrm{z} = F_\mathrm{z}\left(I, z\right)$ (see equation in chapter above)
  • Coil current: $\dot{I} = \frac{1}{L \left(I, z\right) } \cdot \left[ u - R \cdot I - u_\mathrm{ind} \right]$
  • Induced voltage: $u_\mathrm{ind} = \frac{\partial \Psi}{\partial z} \cdot v$

Model:

System Simulation

Coil electromagnetic subsystem:

Model of coil electromagnetic system

Power Electronics / Software

The software is designed for STM's B-G431B-ESC1 (Discovery kit with STM32G431CB MCU); it also includes the neccessary power MOSFETs. The supply voltage is 24V. An external capacitor of approximately 20mF is recommended in order to provide the high pulsed currents of 10..20A for durations of a few 10ms.

Boost Converter

In case the coil should be battery-powered (e.g. from 3x AA alkaline cells / 4.5V), the boost converter board can be used.

Boost Converter Board

Hi-Side Switch

Can be used to power the coil.

Hi-Side Switch Board

Simlar projects

Parts

25
QtyValueFootprintReferences
6RResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1, R2, R3, R6, R7, R8
4MountingHoleMountingHole:MountingHole_3.2mm_M3H1, H2, H3, H4
3C_PolarizedCapacitor_THT:CP_Radial_D26.0mm_P10.00mm_SnapInC2, C3, C4
2CCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1, C6
2RResistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_HorizontalR4, R5
2Screw_Terminal_01x02TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_HorizontalJ2, J3
11N4007Diode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD1
1BC848Package_TO_SOT_SMD:SOT-23Q1
1BTS6163DPackage_TO_SOT_SMD:TO-252-4U1
1CCapacitor_THT:C_Rect_L7.2mm_W4.5mm_P5.00mm_FKS2_FKP2_MKS2_MKP2C5
1Conn_01x04_PinConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ1
1Thermistor_PTCVaristor:RV_Disc_D9mm_W3.3mm_P5mmTH1

More from fabianmink/MarbleAccelerator

1
  • 2 layers75 × 40 mmBoost converter, the printed circuit board in 3D

    Boost converter

    fabianmink/MarbleAccelerator

    An accelerator / coilgun for metallic marbles

    30 parts1BSD-2-Clause

Similar boards

  • 4 layers166.3 × 166.3 mmFlatSatHub, the printed circuit board in 3D

    FlatSatHub

    astronautix/FlatSatHub

    IonSat's FlatSat Hub

    218 parts1
  • 2 layersLadeschaltung, the printed circuit board in 3D

    Ladeschaltung

    Megamann77/UW_Lautsprecher_for_OTS_Mic

    Autonomer, druckdichter Sprachverstärker für die Taucherausbildung. Nimmt das Signal des Mikrofons einer OTS-Vollgesichtsmaske ab und gibt es über einen Körperschallwandler an der POM-Gehäusewand ins Wasser.

    36 parts1CERN-OHL-S-2.0
  • 2 layers65 × 128.5 mmMiniOSC, the printed circuit board in 3D

    MiniOSC

    benjiaomodular/MiniOSC

    A schmitt-trigger inverter based sawtooth and pulse oscillator module

    82 parts36CC-BY-SA-4.0
  • 2 layers73 × 53 mmBt remote, the printed circuit board in 3D

    Bt remote

    mpfisher69/R2R-Bluetooth-Remote

    An open source repository of Bluetooth Remote Controller for Reel-to-Reel tape recorders and vintage cassette decks.

    57 parts9
  • 2 layers99.1 × 60.3 mmFTController, the printed circuit board in 3D

    FTController

    jbtronics/FTController

    A Motor controller for Fischertechnik with many cool features.

    94 parts5
  • 2 layers42 × 24 mmTeco, the printed circuit board in 3D

    Teco

    Kreyl/TecoStLink

    ST-Link V2.1 clone

    56 parts5
  • 6 layers50 × 81.3 mmBRS HW v1, the printed circuit board in 3D

    BRS HW v1

    lucasnoce/BRS_v1

    Basic Rocket System

    129 parts3MIT

Questions

How big is the Hiside switch PCB?

It measures 75 × 50 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Hiside switch use?

25 parts, built around the BTS6163D and BC848. 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 Hiside switch KiCad files?

From the fabianmink/MarbleAccelerator repository on GitHub, at the commit this page was made from: the board is electronics/hiside_switch/hiside_switch.kicad_pcb and its schematic electronics/boost_converter/boost_converter.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Hiside switch design in my own project?

Its repository publishes it under the BSD-2-Clause licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).