Tag Archives: debouncing

Virtual printer & more fun with AVR interrupts

In building my AVR ATMEGA328P-based ‘virtual parallel printer‘, there were two signals that required special treatment. So it was time to revisit interrupts. On a Centronics-style parallel port, the host machine sends an ‘init’ or reset signal to the printer to tell it to flush its buffers and set itself to the default state. It also sends a ‘strobe’ signal… Read more »

Debouncing fun with Schmitt triggers and capacitors

You simply can’t trust switches. You think they’re either on or off, but the truth is that, in getting from one state to the other, they can change their mind many times. This is a phenomenon known as switch bounce and it happens because switches aren’t perfect. Just at the point where they are making or breaking contact, certain mechanical… Read more »