Input Devices



This is the potentiometer I used as an input device. It takes the rotation and uses it to change the color of an RGB LED. It is a 13800-F-103 potentiometer.

The potentiometer was connected to 5V and GND, and the 3rd lead was connected to an input pin. The pin reads a value from 0 - 1023, which is mapped to a value from 0 - 255. The value from 0 - 255 controls the brightness of each color of the RGB LED.