Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Piano LED for Arduino (PLA) is a free, lightweight, without Ad. application that allows you to controll LED-Strips during you playing digital piano (you still need an Arduino board, like UNO). It is able to receive MIDI message from your digital piano and transmit the MIDI data to Arduino, so that Arduino is able to control LEDs with the MIDI-Streaming. You can also play piano with this app and Logic Pro together.

Demo: YouTube

For new informations please visit at: this link

Download Links

Version 1.0: Google Drive, MEGA.

Do NOT stare at the LED for a long time, it will permanently damage your eyes!

Working Principle (Data Flow)

Requirement

  1. Arduino Uno
  2. Two meter LED Strip (144/meter, model WS2812B)
  3. 330 ohm resistor (optional)
  4. Three Jumper wires (other similar wires are also OK)
  5. Two USB cables (type B), used to connect Arduino and MIDI-Device to your Mac
  6. A Mac with operating system Big Sur(MacOS 11.0) or above
  7. Digital Piano or a MIDI-Keyboard

Preparation

Video

  1. Turn on the piano’s MIDI transmission function

  2. connecting your digital computer to your Mac

  3. Following the next figure, correctly connect the WS2812B light strip (in this case with Arduino Uno). Normally, the red port of the light strip need the 5V power as input, the white wire is ground (GND), and the green cable needs to connect to port 9. For details please refer to the description of the light strip for the specific connection method.

  4. Install Arduino IDE for Mac and save Arduino Stekch. An simple Arduino sketch sample is also included in this application. You can easily save this sketch by clicking File -> Save Arduino Sketch to Disk

  5. Add FastLED library to your Arduino bibliothek

  6. Upload Arduino Sketch to Uno

  7. Turn on your piano and connect Arduino Uno to your Mac

You must turn on your piano before you start this app, otherwise the PLA will not connect to your piano

  1. Start your App, and enjoy.

Quick Start

Arduino only needs to be set up once! In the future if you play with Piano LED for Arduino, you only need to use a USB cable to connect Arduino to your Mac

  1. Connect Arduino (Assum you have already uploaded the sketch to Arduino) and your digital piano via USB cable to your Mac and then turn on your digital piano
  2. Select the Arduino port by click left or right arrow, default port name is usbmodem14201 (it may different)
  3. Press Power button at right top corner to connect to Arduino.
  4. When you see the the LED indicator start blinking from A0 to C6, you are able to play with that. Enjoy yourself 😄

PS: The test environment is with Arduino Uno, MacBook Pro 16 (2019), Roland FP-90. It is not guaranteed to be compatible with other test environments. If you encounter any LED lights flickering during the performance, you can try to restart the software or disconnect the device to try again. If you still have problems, please write and submit a bug.

About transmission message

The message which generated from PLA is only one byte, it contains note on/off status and note number. note status is at first bit and the last seven bits are note number.

Note Status

If the first bit is one, that means the piano key note is pressed (note on status), which in decimal will be added by 128 ##Note Number There are totally 88 key notes on piano, therefor the range of this transmission message is [21108] = [0x150x6c] = 0b[0001 0101 ~ 0110 1100].

Example

If key note A0 (the first key of your piano) is release, PLA will send 21(0x15) to Arduino, when this key is pressed, PLA will send 149(21+128) to Arduino.

If key note C8 (the last key of your piano) is release, PLA will send 108(0x6C) to Arduino, when this key is pressed, PLA will send 236(108+128) to Arduino.

Contributions

Sketch App Sources

  1. Synthesizer Icon by John Khester
  2. Skeuomorphic Button Styles by Minh Pham
  3. Modern Power Button by Ronald Ravelo
  4. Arduino UNO by Ramon Gilabert Llop

Font

Radio Stars by Typodermic from https://www.fonts.com/

Library

Gong

RSSerialPort

About

Piano LED for Arduino (PLA) is a free, lightweight, without Ad. application that allows you to controll LED-Strips during you playing digital piano (you still need an Arduino board, like UNO). It is able to receive MIDI message from your digital piano and transmit the MIDI data to Arduino, so that Arduino is able to control LEDs with the MIDI-Stre…

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors