Official Page with More Information:
http://newbiehack.com/ButtonorSwitchDebounceinSoftware.aspx
This is the tenth video in a series on programming and simple circuit design for the Avr ATMega32 microcontroller. In this video, I demonstrate one technique to debounce a button's signal through programming rather than hardware.
What is better software or hardware button debouncing?
pcangeldust 3 hours ago in playlist Microcontroller Tutorial - A Beginners Guide
Thank you for these. In debouncing would it be better to reset the confidence level on each counter-event. m not clear sorry.
eg. looking for a press
loop: if down then ++ conf else conf=0 if conf > 500 then pressed = true
goto loop
this we count the down time since the last up time.
cheers
nedladdy 3 weeks ago in playlist Microcontroller Tutorial - A Beginners Guide
Amazing tutorials! Truly some of the most complete and concise explanations on any topic that I have looked up. Especially on something with so much depth as embedded programming! This really feels like a high school/early college level class/lecture. Please keep up the great work! Are there any plans on going into some basic circuit design- like sizing diodes, or capacitors, or what they do? What about data logging? Like storing data from the accelerometer to an SD card?
Thanks again, Keep itup
dsnyder05 4 weeks ago in playlist Microcontroller Tutorial - A Beginners Guide
@anajonesr , Yes you did, but only when it's value > 200, I think you should reset both after every successful count, nether pressed or released .
Thank you, I learned a lot from your tuts
Zanhor 4 months ago in playlist Microcontroller Tutorial - A Beginners Guide
@Zanhor Thanks. I actually do zero the two variables you mention at the 7:00 minute mark.
anajonesr 4 months ago