Skip to the content
2 layers25.4 × 25.4 mmMidi in module, the printed circuit board in 3D

MIDI synthesizer for the RISC-V Design Challenge

Size
25.4 × 25.4 mm
Copper layers
2
Thickness
1.6 mm
Parts
10
Nets
12
Pads
45
Tracks, vias
64, 1
Pours
2
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
25 Sep 2022
Updated
25 Sep 2022

Overview

Midi in module is an open-source printed circuit board by FrankBuss, from the FrankBuss/riscv-challenge repository on GitHub, published under the BSD-2-Clause licence. It is a 2-layer board of 25.4 × 25.4 mm with 10 parts on 12 nets, routed with 64 tracks and 1 via.

It is built around the H11L1 and BAV99. Its parts include 4 resistors, 3 connectors, 1 capacitor, 1 IC and 1 diode. It belongs with the audio and music boards of this library.

Main components

2

README

README.md

MIDI synthesizer

This is the MIDI synthesizer project for the RISC-V Design Challenge. I'm using this board for it.

The board is configured to receive the MIDI data with an opto-isolator with the standard MIDI frequency of 31,250 Hz. The firmware then detects note-on and note-off events and generates a PWM signal with the requested pitch.

Soldering the MIDI-in board and testing the project:

https://www.youtube.com/watch?v=y-bby_u5XV8

Software

First install MounRiver, as described here: https://www.youtube.com/watch?v=JHzsH9RhTR4

Then download or clone this repository and open the project file midi-synthesizer.wvproj in the midi-synthesizer directory. You can then build and upload it.

Hardware

Circuit diagram of the MIDI-in board: MIDI-in

You can find the KiCad project in the midi-in-module directory. There is also a gerbers.zip file, which you can use to order your board from a PCB manufacturer like https://jlcpcb.com.

Parts list, which you can get from https://www.digikey.com:

IdDesignatorPackageQuantityDesignationDigi-Key Part Number
1D1SOT-231BAV993191-BAV99CT-ND
2R1,R3,R4R_1206_3216Metric3220311-220ERCT-ND
3J3,J2PinHeader_1x10_P2.54mm_Vertical2Conn_01x10_MaleZ12462-ND
4J1DIN_CUI_SD-50BV1DIN-5-GNDCP-3150-ND
5C1C_0805_2012Metric1100n478-1395-1-ND
6R2R_0805_2012Metric12.2k311-2.20KLRCT-ND
7U1DIP-6_W8.89mm_SMDSocket_LongPads1H11L1H11L1SMCT-ND

When soldering it, you can use (this interactive placement tool)[midi-in-module/bom/ibom.html] to find the location of the components.

You can connect the PWM output directly to a high impedance amplifier, or you can build a simple amplifier with a N-channel MOSFET to drive a speaker, as seen in the video:

speaker

Connections

On the dev board, connect PA0 to LED1, to light the LED when a note is playing. Connections to the MIDI-in board:

dev boardMIDI-in board
VCC+5V
GNDGND
PA10MIDI-in

Note: VCC is 3.3V. The MIDI-in board works with 5V and 3.3V.

Then connect PA8 to an audio amplifier, connect a MIDI keyboard, or a USB-to-MIDI interface as seen in the video.

Credits

The MIDI demo file is from https://www.free-scores.com/download-sheet-music.php?pdf=11596#.

Parts

10
QtyValueFootprintReferences
3220Resistor_SMD:R_1206_3216MetricR1, R3, R4
2Conn_01x10_MaleConnector_PinHeader_2.54mm:PinHeader_1x10_P2.54mm_VerticalJ2, J3
1100nCapacitor_SMD:C_0805_2012MetricC1
12.2kResistor_SMD:R_0805_2012MetricR2
1BAV99Package_TO_SOT_SMD:SOT-23D1
1DIN-5-GNDConnectors:DIN_CUI_SD-50BVJ1
1H11L1Package_DIP:DIP-6_W8.89mm_SMDSocket_LongPadsU1

Similar boards

  • 2 layers48.3 × 50.8 mmElectronic load controller, the printed circuit board in 3D

    Electronic load controller

    ondras12345/electronic-load

    Digital control for XHDZ-FZ-2g electronic load

    63 parts2MIT
  • 2 layers124.5 × 99.1 mmVetrnik power, the printed circuit board in 3D

    Vetrnik power

    ondras12345/vetrnik

    Electronics for heating water with power from a 2 kW wind turbine

    138 parts
  • 4 layers60 × 94 mmDaisySeedPedal125b, the printed circuit board in 3D

    DaisySeedPedal125b

    bkshepherd/DaisySeedProjects

    A collection of hardware and software projects based around the Electro-Smith Daisy Seed

    80 parts559MIT
  • 2 layers245.2 × 100 mmV5 main, the printed circuit board in 3D

    V5 main

    zynthian/zynthian-hw

    Zynthian hardware stuff: PCBs, schemes, parts specifications, pin assignment, ...

    160 parts156
  • 2 layers64.3 × 56 mmMt32-pi midi hat, the printed circuit board in 3D

    Mt32-pi midi hat

    chris-jh/mt32-pi-midi-hat

    A Raspberry Pi Midi Hat for the project mt32-pi by Dale Whinham (https://github.com/dwhinham/mt32-pi)

    22 parts139GPL-3.0
  • 2 layers100 × 100 mmYM2612 MIDI SMD, the printed circuit board in 3D

    YM2612 MIDI SMD

    superjoebob/genny

    YM2612/SN76489 Virtual Instrument

    112 parts96
  • 2 layers152.4 × 68.6 mmPico test synth2, the printed circuit board in 3D

    Pico test synth2

    todbot/pico_test_synth

    Simple board to help make synths with Raspberry Pi Pico/Pico2 and PCM5102 I2S DAC

    55 parts57MIT
  • 2 layers51.3 × 96.2 mmMinisynth32, the printed circuit board in 3D

    Minisynth32

    grantek/minisynth32

    A 3D-printable MIDI synthesiser inspired by the Roland MT-32 and clumsyMIDI, and powered by the mt32-pi MT-32 emulator.

    32 parts45CC-BY-SA-4.0

Questions

How big is the Midi in module PCB?

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

What parts does the Midi in module use?

10 parts, built around the H11L1 and BAV99. 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 Midi in module KiCad files?

From the FrankBuss/riscv-challenge repository on GitHub, at the commit this page was made from: the board is midi-in-module/midi-in-module.kicad_pcb and its schematic midi-in-module/midi-in-module.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Midi in module 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).