@espboards: One button press. 47 interrupts fired. Most beginners never know this is happening 👇 When you press a button, the metal contacts physically bounce - on, off, on, off - dozens of times before settling. Every bounce = one interrupt = your code counting garbage. Fix: check if 10ms passed since the last press. If not, ignore it. That's it. #ESP32 #maker #programming #microcontroller #hardware

espboards
espboards
Open In TikTok:
Region: FR
Saturday 14 March 2026 16:25:03 GMT
17187
868
9
38

Music

Download

Comments

lordkortix
LordKortix :
wouldn't adding a pullup resistor negate this debounce?
2026-03-14 17:40:59
7
affliked2
Afflikted too :
Just add a 20-40 millisecond delay after the first button detect.
2026-03-23 19:42:18
1
anddymashar
Dev Anddy :
😂 just solved a problem in my prototype
2026-03-15 22:22:14
1
p_satire
Psatire :
what about capacitor?
2026-03-16 16:31:27
1
zlobinanton
zlobinanton :
well not 47 times, but yes, maybe 5 times
2026-03-15 04:30:04
0
juanin.bombin
Juaninbombin :
Add a lowpass filter at the mcu gpio for more reliability
2026-03-15 11:36:54
0
marcelcastil
Marcel Castilho929 :
pcnt
2026-04-30 03:07:14
0
patrikvonanka
Patrik :
not like the quantum
2026-03-14 16:50:13
0
To see more videos from user @espboards, please go to the Tikwm homepage.

Other Videos


About