Encoder in Hardware with Timer Peripheral

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Posts: 799
Joined: Mon Nov 20, 2017 10:18 am

Re: Encoder in Hardware with Timer Peripheral

Post by OutoftheBOTS_ » Mon Jun 15, 2020 9:02 pm

MartinManzinger wrote:
Mon Jun 15, 2020 9:55 am
I put a schmitt trigger in front of every button and encoder signal I have. So for me it's the perfect solution now. It's maybe a good idea to put a example code into the wiki?
I am curious if a schmitt trigger will work to remove switch bounce as the signal bounces all the way from total open to totally closed.

I know the hardware bounce filter I linked above uses a cap and resistor to slow the charging and discharging on the cap to remove the bounce

Post Reply