Handling Tactile Button Presses.

Handling Tactile Button Presses.

Usually a programmer's first program prints the string "Hello world" on the screen, while an embedded developer blinks an LED, maybe also adding a button to change the LED's state. It's the button I wanted to talk about: a button that toggles something is usually called a tactile button. It's usually connected according to one of the circuits shown below. But a much more interesting question...

Connecting an Incremental Encoder to a Microcontroller.

Connecting an Incremental Encoder to a Microcontroller.

An incremental encoder looks like a potentiometer, but unlike a potentiometer it has no end positions: it can rotate in both directions an unlimited number of turns. It should also be noted that an incremental encoder doesn't rotate smoothly like a potentiometer, but in steps. You can see one on car radios, oscilloscopes, stereo systems, washing machines and other...