Skip to the content
2 layersDrehorgel20, the printed circuit board in 3D

MIDI based crank organ software and hardware

Copper layers
2
Thickness
1.6 mm
Parts
14
Nets
51
Pads
112
Tracks, vias
0, 0
Routed
Not yet
KiCad
KiCad 7 (file 20221018)
Created
27 Sep 2023
Updated
30 Oct 2026

Overview

Drehorgel20 is an open-source printed circuit board by bixb922, from the bixb922/crank-organ repository on GitHub, published under the MIT licence. It is a 2-layer board with 14 parts on 51 nets.

It is built around the ULN2003A. Its parts include 8 connectors, 4 ICs and 2 capacitors. It belongs with the audio and music boards of this library.

Main components

1

README

README.md

MIDI based crank organ software and hardware

Contents

  1. Overview
  2. Detailed description of software and hardware, schematics, plans
  3. To see a demo
  4. Folders
  5. License
  6. Disclaimer
  7. Feedback

1. Overview

This animation shows how a crank organ with MIDI control works:

animated gif for crank organ

The crank moves the bellows. The air is pumped into a reservoir, which connects to the windchest with the pipes. A single pipe is shown, but usually a crank organ has anywhere between 15 and 100 or more pipes. Under the foot of the pipe is a electromagnetical valve (a solenoid valve). The microcontroller stores MIDI files that have the exact time each note starts and stops, and energizes the solenoid (electromagnet) through a driver (a electrical current amplifier). The solenoid opens the airflow at the foot of the pipe, air enters the pipe and vibrates, producing sound.

Here you can see my homemade crank organ: https://www.youtube.com/@bixb922. This crank organ gave origin to the electronics and software solution in this repository. The organ has 48 pipes: 35 bourdon pipes and 13 piccolo pipes. It has a crank sensor, microphone for tuning and a touch button. It has 4 electronic registers and a button to change the playback speed. Currently I have about 500 MIDI files in the organ.

This repository has a complete hardware and software solution for these devices of mechanical music. This diagram shows how this system works:

diagram

The microcontroller stores the MIDI files with the tunes and also has a web server for the cell phone (or a tablet, or PC). On the cell phone a browser such as Chrome or Firefox is used to select the MIDI files that are going to be played. Once a setlist or a tune have been selected, the microcontroller plays the files.

Please note that you really don't need a cell phone or tablet to perform: If you define a setlist, you just turn on the microcontroller and start going. You'll only need a cell phone during performance if you want to change the order of the setlist.

No special application is needed on the cell phone. Just a standard web browser like Firefox or Chrome.

The microcontroller used is a ESP32-S3. Typical boards have about 26 pins available to manage pipes and peripherals, simplifying enormously the electronics for a 20 note organ. It also manages touch pads, counters/encoders, has lots of RAM and flash at a very low battery load, so I think it is a good choice for a microcontroller. With the available I2C capabilities, the ESP32-S3 could manage many (hundreds?) of pipes.

The repository describes the complete solution:

  • hardware schematics
  • list of materials
  • instructions on how to build the hardware
  • complete software (open source) written in a high level language: MicroPython
  • a easy installation procedure for the software (no programming skills necessary)
  • ready to use configuration files for common crank organ setups

There are many places on internet to describe how to build a crank organ, how to design and cut the pipes, make bellows, windchests, etc. That description is not part of this repository. However, I included a list of interesting links and some notes on building a MIDI crank organ here: Buildng a crank organ.

Please post an github issue for any question you might have. Please star this repository if you like what you have seen.

How is this solution used?

Once the hardware is built (see hardware plans in the doc-hardware folder), install the software, and copy your MIDI files to the microcontroller via WiFi or USB (See software documentation for detailed instructions). You can add more information such as title, genre and lyrics to the music.

You control the order of the tunes with the cell phone. You select tunes to play by tapping on them on the tunelist page on the cell phone. This is done with a very intuitive and easy to use interface using a common browser like Chrome or Firefox. Everything is done over web pages: select a tune, control setlists, configuration, etc.

There are several ways to select tunes to be played:

The creative mode: Tap on a tune on the tunelist, and turn the crank (or touch and release the touchpad) and the tune plays. Then select the next tune, etc. You stay on the tunelist page.

The very creative mode: You can tap several tunes and queue them to play one after the other.

The diligent mode: Before a performance, you can tap several tunes and organize them into a setlist on the performance page. You save the setlist on flash to be ready for the next performance. When the performance begins, you power on the microcontroller, turn the crank (or touch and release the touchpad) and the setlist plays. No need to pull out the cell phone or to push buttons.

The diligent and flexible mode: You can modify the setlist on the fly with the performance page. You can delete or skip a tune, reorder tunes, or select a new tune and move to the top of the list, according to the audience and your wishes.

The very lazy mode: Don't use your cell phone. Don't define a setlist. Turn the microcontroller on. Turn the crank or touch the touchpad. All available tunes will be shuffled randomly and played.

2. Detailed description of software and hardware, schematics, plans

Main documents:

Specific documents:

This is work in progress, but I am actively using this solution on a daily basis, so I feel it is pretty stable. Please post an issue in the "issue" section or start a discussion in this repository for questions or observations. I'll be happy to correct any problem and will try to help if there is an issue.

3. To see a demo

To see this software in operation, see a demo here: https://bixb922.github.io/demo/index.html.

This demo simulates the operation of the software in this repository closely. The pages have some guidance at the beginning. There is no need to install any software on your PC.

4. Folders

FolderContents
binCompiled binary files of the software for ESP32-S3
buildingDescription and links on how to build a crank organ
dataPinout templates for 20, 26 and 31 note organs
design-and-development Design details and internals
doc-hardwareDescription of electronic hardware
doc-softwareDescription of the crank organ software in this repository
doc-servosHow to build valves using RC servos
kicadKiCad source files for the electronics
srcFull source code in MicroPython language
staticWeb pages for the microcontroller (HTML, CSS, Javascript)
toolsSome tools used during development of this software

Here is a change log, see section titled "Recent changes".

5. License

This material is available under the MIT license:

This license and disclaimer also covers the hardware design documents. The hardware design is part of the software published here.

Copyright (c) 2023 Hermann Paul von Borries

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE AND DESIGN IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

6. Disclaimer

The information provided here is for general informational purposes only. All information on this repository is provided in good faith, however I make no representation or warranty of any kind, express or implied, regarding the accuracy, adequacy, validity, reliability, availability or completeness of any information in this repository.

7. Feedback

Feedback is welcome. Please post questions, corrections or comments here: https://github.com/bixb922/crank-organ/discussions

Parts

14
QtyValueFootprintReferences
3ULN2003APackage_DIP:DIP-16_W7.62mmU1, U2, U3
1100 nFCapacitor_THT:CP_Axial_L11.0mm_D6.0mm_P18.00mm_HorizontalC1
110uFCapacitor_THT:CP_Radial_D10.0mm_P2.50mmC2
1GPIOConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ2
1I2CConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ1
1MCP23017_SPPackage_DIP:DIP-28_W7.62mmU6
1PowerConnector_JST:JST_EH_B4B-EH-A_1x04_P2.50mm_VerticalJ3
1Solenoid-1Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ4
1Solenoid-2Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ5
1Solenoid-3Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ6
1Solenoid-4Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ7
1Solenoid-5Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ8

Similar boards

  • 2 layers107 × 54 mmInterface board 1, the printed circuit board in 3D

    Interface board 1

    Green-bms/SmartBMS

    Open source Smart Battery Management System

    63 parts756
  • 4 layers93.3 × 60.3 mmArduino 386EX V5, the printed circuit board in 3D

    Arduino 386EX V5

    dbalsom/arduinoX86

    An interface between an Arduino Due or Arduino GIGA and 8088, 8086, V20, V30, 186 or 286 CPUs

    56 parts114
  • 2 layers52 × 61 mmArduino motorfocus, the printed circuit board in 3D

    Arduino motorfocus

    fehlfarbe/arduino-motorfocus

    Arduino motorfocus with moonlite protocol for telescopes

    23 parts58MIT
  • 4 layers199.9 × 69.3 mmZaphod controller, the printed circuit board in 3D

    Zaphod controller

    Scottapotamas/zaphod-bot

    A DIY high performance delta-bot for fun, and lightpainting...

    251 parts53
  • 4 layers285.1 × 48.1 mmAyab esp32, the printed circuit board in 3D

    Ayab esp32

    AllYarnsAreBeautiful/ayab-hardware

    Contains the schematics and layouts for the AYAB Arduino shield

    246 parts50CC-BY-SA-4.0
  • 2 layers40 × 80 mmSplitflappcb, the printed circuit board in 3D

    Splitflappcb

    codingcatgirl/split-flap-fae-pcb

    Alternative drop-in replacement PCB for David Kingsman's split-flap display

    46 parts31Apache-2.0
  • 2 layers177.9 × 187.4 mmAudio board 0033 rev.a, the printed circuit board in 3D

    Audio board 0033 rev.a

    palazzol/CyberamicControlCenter

    Repo for docs and info about the Cyberamic Control Center

    105 parts16
  • 2 layers90 × 60 mmValvenode master, the printed circuit board in 3D

    Valvenode master

    vinthewrench/valvenode

    Wired RS-485 field-bus irrigation valve controller for Raspberry Pi farm automation

    54 parts15

Questions

What parts does the Drehorgel20 use?

14 parts, built around the ULN2003A. 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 Drehorgel20 KiCad files?

From the bixb922/crank-organ repository on GitHub, at the commit this page was made from: the board is kicad/drehorgel20.kicad_pcb and its schematic kicad/drehorgel20.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Drehorgel20 design in my own project?

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