s-pw / PianoLED

34 stars 11 forks source link

Piano MIDI LED Controller

Summary

This is a ESP8266 based LED controller for key instruments. It can be used as a cool gadget when playing piano or as a piano learning tool when connected to Synthesia that can light up correct keys.

Demo

Piano MIDI LED Controller

Features

Source code

NodeMCU ANSI C code is included in NodeMCU code .

Assembly

Requirements

ESP8266 module with qio and at least 4MB of flash.

Hardware

The MIDI inputs are compatible with TTL logic signal. To connect standard MIDI you will need to use circuit to create TTL signal (e.g. using optocoupler). 2 meters of 144 LED WS2812 strip almost perfectly matches standard piano keyboard, to make it match perfectly you can cut the strip into octaves (24 LEDs) and solder it using correct distance.

Firmware

  1. Download and flash firmware MIDI firmware
  2. Upload lua and supporting code from directory src/nodemcu/ see: https://nodemcu.readthedocs.io/en/master/en/upload/