Skip to the content
PCBKitNew board
2 layers100 × 62 mmMagic switchboard, the printed circuit board in 3D

A magic schwitchboard is a little box with four switches and four lamps colored in red, green, blue and yellow. The switches have got hats in the same colors.

Size
100 × 62 mm
Copper layers
2
Thickness
1.6 mm
Parts
26
Nets
20
Pads
78
Tracks, vias
135, 0
Pours
4
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
29 Apr 2016
Updated
11 Apr 2025

Overview

Magic switchboard is an open-source printed circuit board by RincewindWizzard, from the RincewindWizzard/magic-switchboard repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 100 × 62 mm with 26 parts on 20 nets, routed with 135 tracks and 0 vias.

It is built around the ATTINY2313A-PU and BC547. Its parts include 5 resistors, 4 diodes, 4 transistors, 4 switches and 2 connectors. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

2

README

README.md

Magic Switchboard

Magic Switchboard geöffnet

A magic schwitchboard is a little box with four switches and four lamps colored in red, green, blue and yellow. The switches have got hats in the same colors. You can change the position of the lamps and the hats in any way you want. But the red switch always lights the red lamp, the blue the blue, the yellow the yellow and the green the green one. How does this work? The magician is the one operating the switchbox. He has to remember which switch was turned off last. He then hands off the box to the audience and asks them to rearrange the colors. When the audience returns his box he remembers the sequence in which the lights turn on and turns the switches with matching color. For the audience it seems like the colors are connected somehow.

Youtube Video

Wiring

Platine leer Platine bestückt

You can find wiring instructions in the Schematics. The Attiny4313A can be powered with up to 5V.

With the BC547 transistor you can safely drive a current up to 100 mA and voltage of 50V for your light bulbs. For bigger loads consider using TIP100.

The voltage source for the arduino nano can be seperate to the voltage source of the lights, but they have to have a common ground (GND) for the circuit to work. For driving 230VAC (common household plug) light bulbs you might want to use a galvanic separation (opto-isolator). If you don't know what that means, don't try it.

If all lamps are off, the ATtiny is switched into sleep mode, which draws significant less current. This circuit doesn't have a low power warning, so if there is strange behaviour (lamps dont turn on as expected) you might try change your batteries.

How it Works

The sequence in which the lamps turn on is determined by last lever turned off. After a longer sleep time (ca. 2.5sec) it resets to default = 0 lever.

Lever (left to right)Turn on Sequence
00, 1, 2, 3
11, 0, 2, 3
22, 3, 1, 0
33, 2, 1, 0

In order to connect the correct colors from levers to lamps, you need to remember which lamp turns on next and flip the lever with the corresponding color.

You find the code here.

Parts List

Parts

26
QtyValueFootprintReferences
410kswitchboard:ResistorR1, R2, R3, R4
4BC547switchboard:BC547Q1, Q2, Q3, Q4
4MTS-103switchboard:MTS-103 SwitchSW1, SW2, SW3, SW4
4Redswitchboard:E10 Edison Socket Print PinsD1, D2, D3, D4
2LOGOswitchboard:SiegelstempelG***, G***
2M4MountingHole:MountingHole_4.3mm_M4_DIN965_Pad,
1100uFswitchboard:CP_Radial_D6.3mm_P2.50mmC1
13Vswitchboard:BatteryHolder_Keystone_3009_1x2450BT1
15V maxswitchboard:ScrewTerminal1x2J2
1ATtiny2313A-PUswitchboard:ATtiny2313U1
1AVR-ISP-6switchboard:ISP6J1
1LED_brightnessswitchboard:ResistorR5

Questions

How big is the Magic switchboard PCB?

It measures 100 × 62 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Magic switchboard use?

26 parts, built around the ATTINY2313A-PU and BC547. 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 Magic switchboard KiCad files?

From the RincewindWizzard/magic-switchboard repository on GitHub, at the commit this page was made from: the board is kicad/magic-switchboard/magic-switchboard.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Magic switchboard 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

  • 2 layers70 × 45 mmUSBtinyISP, the printed circuit board in 3D

    USBtinyISP

    etimou/USBtinyISP

    Simple ISP programmer

    26 parts1
  • 2 layers85.7 × 50.8 mmAvr910, the printed circuit board in 3D

    Avr910

    makeo/AVR910-Prog

    AVR910 Programmer

    20 parts1
  • 4 layers243.8 × 170.2 mmAtx040-main pcb, the printed circuit board in 3D

    Atx040-main pcb

    piotr-binkowski/atx040-main-pcb

    136 parts1
  • 2 layers147.3 × 89.2 mmUVLampController, the printed circuit board in 3D

    UVLampController

    GrzegorzewskiSzymon/Controlled-UV-lamp-for-making-PCBs

    This project is originally written for ATtiny2313A with external 16MHz oscilator.

    54 parts
  • 2 layers45.7 × 22.2 mmReloj Attiny2313A 3492AS, the printed circuit board in 3D

    Reloj Attiny2313A 3492AS

    mafdezmoreno/ATtiny2313_Clock_MikroC

    DIY Clock. Code. PCB (KiCAD). 3D STL

    19 parts
  • 2 layers49.5 × 59.7 mmPm sensor UART, the printed circuit board in 3D

    Pm sensor UART

    ondras12345/pm-sensor

    SPS30-based PM2.5 particulate matter sensor with RS485

    38 partsMIT
  • 2 layers78.7 × 38.1 mmPCB1 Mainboard, the printed circuit board in 3D

    PCB1 Mainboard

    Andreas-Wahl/Startlight-HW

    SLOTCAR STARTLIGHT "Bären(n)keller - HARDWARE

    30 parts2