Share My Creation B4R ESP32 MIDI over BLE Drum Machine

This is the 2nd Drum project I created using B4R. Instead of UNO, I'm using ESP32 this time because of the build-in BLE support, I no longer need a MIDI shield or purchase an additional Bluetooth MIDI adaptor, all come with the ESP32, so that I can make my project more cheap, small and without wire.

Currently B4R don't have the library for BLE for MIDI so this part I'm using inline C code. hope that someone will create some kind of BLE library so that we can use it for the future.

1. ESP32
2. Rotary Encoder
3. LCD
4. Buzzer
5. 1M resistor
6. Microphone connector


1. Simple metronome (buzzer sound)
2. Drum Machine - connect to the MIDI device via MIDI over BLE protocol (e.g. iPhone with Garageband)

Currently it have 70 Drum patterns, the tempo can be adjustable with the rotary encoder.

The microphone connector (with 1M resistor) can connect to the external electric drum pad or a DIY drum pad using piezo and turn this machine to a very simple e-drum. But I'm just doing some test code for this part for POC and I think it can work. hope that I can have more spare time later to finish the final part.

Last edited: