bbswitzer / pianoproject Goto Github PK
View Code? Open in Web Editor NEWArduino Code for a DIY Player Piano
License: MIT License
Arduino Code for a DIY Player Piano
License: MIT License
Hello, this was asked about before however I don't think it was solved.
After installing the correct code onto the ESP32 I though I would be able to connect my phone to the device via MIDI software, however that is not the case. There are no discoverable Bluetooth devices.
Am I missing something? Is there a specific procedure to connect to the ESP32 via Bluetooth?
I have tried different Bluetooth programs and it works perfectly.
Hi Brandon. How to set up the SUSTAIN_PIN correctly in the sketch? I created a new sustain PWM output: "pinMode (SUSTAIN_PIN, OUTPUT);" connected LED to PIN 13, but it doesn't work. In the port monitor (ESP32), I see that a midi signal comes from the Control box (Pro micro), all notes except SUSTAIN. I plugged in the midi keyboard, all notes work just as well except SUSTAIN.
Thanks!
void setup ()
{
const int SUSTAIN_PIN = 13;
pinMode (SUSTAIN_PIN, OUTPUT);
pinMode (LED_BUILTIN, OUTPUT);
Serial.begin (38400);
initializeBluetooth ();
// create sustain PWM output. this can't be done by the Pro Micro because the shift registers are filled up
ledcSetup (0, 100, 8);
ledcAttachPin (SUSTAIN_PIN, 0);
}
Hi Brandon. I have Compilation error, how to solve a problem? Thanks.
C:\Arduino\PianoProject-master (1)\PianoProject-master\ESP32\ESP32.ino: In function 'void flashLED()':
ESP32:33:15: error: 'LED_BUILTIN' was not declared in this scope
digitalWrite(LED_BUILTIN, HIGH);
^
C:\Arduino\PianoProject-master (1)\PianoProject-master\ESP32\ESP32.ino: In function 'void setup()':
ESP32:47:10: error: 'LED_BUILTIN' was not declared in this scope
pinMode(LED_BUILTIN, OUTPUT);
^
exit status 1
'LED_BUILTIN' was not declared in this scope
Hi Brandon,
I appreciate a lot your work, and I am trying to use it for a very similar project on a small old organ.
I'm having some issues on bonding the esp32 with android, in order to get it seen as a MIDI-output by synthesia.
I tried several times (also using "nRF Connect" or "Serial Bluetooth Terminal", also pressing the EN button) to pair the esp32 with my smartphone (and I tried with other smartphones too)... I think I am just missing something... Do you have any ideas? (I'm using your code as it is now).
Thank you soo much,
Matteo
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.