Sometimes you want an arduino application to be controlled either by a potentiometer (eg. joystick) or by a keypad. Here is a simple resistor circuit that uses two keys and mimicks a potentiometer in three different states – middle position, …

Replacing potentiometer with up-down buttons on arduino Read more »