Issue with double switch on ESP32-S2
Posted: Wed Mar 23, 2022 9:58 am
Hi all,
I'm working on creating a foot switch for a tablet for turning the pages. I have one pedal for going backward, and one pedal for going forward.
My project is based on a ESP32-S2. I have plugged one pedal between pin 5 (ground) and pin 33, and the other between pin 5 (ground) and pin 35.
I'm working with interrupts to capture when a pedal is pressed, and set the pinMode so that the pull-up resistor is enabled.
Most of the time (7/10), when I press a switch, the ISR is called once for each pedal, hence I don't know which pedal has actually been pressed.
I've un-solder and re-solder the pedals several times.
Do you have an idea of the potential sources of the problem?
Thanks !
I'm working on creating a foot switch for a tablet for turning the pages. I have one pedal for going backward, and one pedal for going forward.
My project is based on a ESP32-S2. I have plugged one pedal between pin 5 (ground) and pin 33, and the other between pin 5 (ground) and pin 35.
I'm working with interrupts to capture when a pedal is pressed, and set the pinMode so that the pull-up resistor is enabled.
Most of the time (7/10), when I press a switch, the ISR is called once for each pedal, hence I don't know which pedal has actually been pressed.
I've un-solder and re-solder the pedals several times.
Do you have an idea of the potential sources of the problem?
Thanks !