Create a Dimmable LED with a Potentiometer on the Raspberry Pi

In this video lesson, we show how to create a dimmable LED on the raspberry pi using a potentiometer. Below is the schematic of the circuit we will be using.

Pot Controlled Dimmable LED

Then we used the following code to read values through the ADC0834 analog to digital chip, and then apply a PWM signal to control the brightness of the LED.