AirDion Ble Midi Instrument
AirDion is a new musical instrument based on the esp32 board, using low-consumption bluetooth or ble technology and the midi protocol. The heart of the airdion is the vl53l0x distance sensor which, thanks to its continuous distance reading function, allows you to emulate the way that an accordion is played by moving the hand away from and towards the sensor.
This first prototype uses as an audio output device a synthesizer software which can be installed on a computer or a tablet or cell phone, but in future updates it is expected to use an audio output installed on the airdion itself using a class D amplifier and the i2s features of the esp32, as well as audio synthesis libraries that emulate different instruments.
For now I present to you the AirDion 1.0.
Supplies
1 Wemos lolin32 lite
1 display ssd1306 0.96
1 VL53l0x
6 tacks
1 box project
1 battery from old cellphone
wires
Assemble
Conect display and vl53l0x to GND, VCC, SDA and SCL to Esp32
Display and VL5310X ESP32 lolin lite
GND -> GND
VCC -> VCC
SDA -> 19
SCL -> 23
Solder the wires to the studs and then to the capacitive pins of the esp32 lolin lite
The pins are marked as 4,2,15,13,32,33 or T0,T2,T3,T4,T8,T9 in that respective order.
Code
This project uses several libraries, two of them are my own creation.
simple menu and touch button.
Simple menu
https://github.com/habuenav/simplemenu
touch button
https://github.com/habuenav/TouchButton
the other libraries are
distance sensor
https://github.com/deneyapkart/deneyap-derinlik-olcer-arduino-library
Midi
https://github.com/pschatzmann/arduino-midi
Downloads
Time to Play
You will understand that I just finished the project and I haven't had time to practice but here I leave the fingering.
yellow button moving hand away note C
yellow button approaching hand note D
blue button moving hand away note E
blue button approaching hand note F
Red button moving the hand away note G
Red button approaching hand note A
Green button moving the hand away note B
Green button approaching hand note C
yellow and blue button moving the hand away note C#
yellow and blue button approaching the hand note D#
blue and red button moving the hand away note F#
blue and red button approaching the hand note G#
Red and green button moving hand away note A#
If the hand is left removed for more than 1 second or if the buttons are released, the order to stop the notes is sent.
that's all.
I hope you like it.