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 !
Issue with double switch on ESP32-S2
Re: Issue with double switch on ESP32-S2
I've updated my program without interrupts... and it works now perfectly fine...
Re: Issue with double switch on ESP32-S2
Oh yes.
Bounce.
The signal is bouncing as it opens and closes.
If you have a scope take a look.
Solution:. Denounce sw logic or denounce in hardware. I usually denounce in s/w.
Tom
Bounce.
The signal is bouncing as it opens and closes.
If you have a scope take a look.
Solution:. Denounce sw logic or denounce in hardware. I usually denounce in s/w.
Tom
IT Professional, Maker
Santiago, Dominican Republic
Santiago, Dominican Republic
Re: Issue with double switch on ESP32-S2
IT Professional, Maker
Santiago, Dominican Republic
Santiago, Dominican Republic
Who is online
Users browsing this forum: Bing [Bot] and 111 guests