bbswitzer / PianoProject

Arduino Code for a DIY Player Piano
MIT License
58 stars 19 forks source link

ESP32 SUSTAIN_PIN #8

Open mcvall opened 3 years ago

mcvall commented 3 years ago

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 (SUSTAINPIN, 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); }

micromotores commented 2 years ago

did you manage to do the project? Can I contact you to clarify some doubts I have?

mcvall commented 2 years ago

Hi. The project is still in progress. I make the solenoids myself, I also made the PCB. I hope to finish soon :) You can ask questions here.

JackZielke commented 2 years ago

Can you tell me more about your PCB?