DEV Community

Chamodh Nethsara
Chamodh Nethsara

Posted on

I turned my old broken piano into a USB MIDI keyboard using a $4 Pi Pico

Hello everyone, I had a broken Casio digital piano and I always wanted to convert it to a MIDI keyboard ever since I got to know about the existence of MIDI keyboard. After a little research with ChatGPT I found out that I can use a Raspberry Pi Pico to make a MIDI keyboard which can be used as a plug and play USB device and it worked!!

I wrote the code with C and used the TinyUSB library to communicate via USB and it's a really amazing library to work with because it allows you to do wonders with a very high level abstraction. With TinyUSB and Pi Pico you can literally make any kind of USB devices including keyboards, game consoles and even USB flash drives. Pretty amazing right?

However, the learning resources for TinyUSB are still really low specially when it comes to TinyUSB + Pi Pico. So I wrote an article series on medium about this project and they are first-page ranked on Google Search too.

If you like to read the articles, please follow the links below.

(1) Setup, Build and Flash Your First Raspberry Pi Pico Program with C/C++: https://medium.com/cooking-with-raspberries/setup-build-and-flash-your-first-raspberry-pi-pico-program-with-c-c-730373c01eca

(2) Getting Started with Raspberry Pi Pico and TinyUSB.
https://medium.com/cooking-with-raspberries/getting-started-with-raspberry-pi-pico-and-tinyusb-b45e0ab53783

(3) Turn your old digital keyboard into a USB MIDI keyboard with RPI Pico and TinyUSB.
https://medium.com/cooking-with-raspberries/turn-your-old-digital-keyboard-into-a-usb-midi-keyboard-with-rpi-pico-and-tinyusb-28d4bfbae39e

Also I made a simple video as a demo. As I am not very good at playing the keyboard it doesn't sound good but the keyboard works so well :)

This is my very first post in this amazing community and hope you guys will like my project.

Thank you so much for reading.

Happy Building.
Chamodh

Top comments (0)