Organize and Share your Electronics the way you want. Sign-Up for a free account now. It takes only 30 seconds!

How to build an open source MIDI keyboard

How to build an open source MIDI keyboard

This project details the steps to build your own Open Source (musical) keyboard which connects to a computer via USB and sends MIDI signals.
I bought this AN2131 board on eBay. It’s just a AN2131 chip with the required support circuitry – crystal oscillator, power regulators etc.

First I took the inputs and outputs of the key matrix and wired them to the GPIO ports of the AN2131. This was just a matter of plugging the whole lot into some protoboard. This didn’t work too well, as the keys would get “stuck” often. This is because an unconnected chip leg can “float” between on and off due to the residual charge held in the wire. The solution is to add pull-down resistors which allow this residual charge to flow to ground when the key is released. I added one to each input of the circuit. I used a variety of spare resistors from the junk box 320 ohms to 1000 ohms.

MIDI is a serial protocol and this USB MIDI adapter works in a very similar way to a USB to Serial convertor. I took this firmware and removed the MIDI input parts, replacing them with a key matrix scanner. The keys are scanned, and any changes in the key state are converted to the appropriate MIDI signals before being sent over USB to the PC. To the PC it behaves no differently than the original hardware so no new drivers are needed.

Visit Here for more.







 

More Articles to Read

App note: EPIC: Electro-Pyrotechnic Initiator Chip Resistor
App note: EPIC: Electro-Pyrotechnic Initiator Chip Resistor
App note: Noise analysis for high-speed op amps
App note: Noise analysis for high-speed op amps
Skill Sunday: Arrays
Skill Sunday: Arrays
App note: Infrared remote control implementation with MSP430FR4xx
App note: Infrared remote control implementation with MSP430FR4xx
Gesture Controlled Smart Home
Gesture Controlled Smart Home
Design for a Wideband, Differential Transimpedance DAC Output
Design for a Wideband, Differential Transimpedance DAC Output
Wrist thrusters let you fly through the water effortlessly
Wrist thrusters let you fly through the water effortlessly
Bertan/Spellman 225-20R HV power supply teardown
Bertan/Spellman 225-20R HV power supply teardown
Blinking Christmas Lights
Blinking Christmas Lights
Adjusting clock with alarm, hygrometer & thermometer on 1.8″ ST7735 display
Adjusting clock with alarm, hygrometer & thermometer on 1.8″ ST7735 display
Adding an “extra sense” with rangefinders
Adding an “extra sense” with rangefinders
This wireless game controller looks like a rug
This wireless game controller looks like a rug
How to run your ESP8266 for years on a battery
How to run your ESP8266 for years on a battery
Calibration of a 3-Phase Energy Meter Board on the ADE7754
Calibration of a 3-Phase Energy Meter Board on the ADE7754
Making beats on a tiny Arduino DJ controller
Making beats on a tiny Arduino DJ controller
Qinsi-QS5100 Sn63Pb37 solder profile
Qinsi-QS5100 Sn63Pb37 solder profile
Water Detection System
Water Detection System
Professional Hi-Fi 15W Tube Amplifier circuit
Professional Hi-Fi 15W Tube Amplifier circuit
This Arduino machine will judge how sick your ollies are
This Arduino machine will judge how sick your ollies are
Turn an old payphone into a boombox for ’90s hits
Turn an old payphone into a boombox for ’90s hits

Top


Shares