Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32 SUSTAIN_PIN #8

Open
mcvall opened this issue Mar 30, 2021 · 3 comments
Open

ESP32 SUSTAIN_PIN #8

mcvall opened this issue Mar 30, 2021 · 3 comments

Comments

@mcvall
Copy link

mcvall commented Mar 30, 2021

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);
}

@micromotores
Copy link

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

@mcvall
Copy link
Author

mcvall commented Jan 18, 2022

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
Copy link

Can you tell me more about your PCB?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants