This example shows you how to read analog input using a potentiometer, display absolute read value, convert to volts and turn on/off display backlight using interrupt.

Hardware required

- Arduino Board

- Nokia 5110 84x48 pix LCD Display

- 10 KOhms Potentiometer

- 10 KOhms resistor

- Pushbutton

- Breadboard

- 13 Jumpers male to male

- 3 jumpers female to male

Software requirements

- Adafruit-PCD8544-Nokia-5110-LCD-Library

https://github.com/adafruit/Adafruit-PCD8544-Nokia-5110-LCD-library

- Adafruit-GFX-Library

https://github.com/adafruit/Adafruit-GFX-Library

Circuit

1) Nokia 5110 LCD Display
- Arduino Pin 12 do Arduino connected to display pin 1 (RST)
- Arduino Pin 11 do Arduino connected to display pin 2 (CE)
- Arduino Pin 10 do Arduino connected to display pin 3 (DC)
- Arduino Pin 9 do Arduino connected to display pin 4 (Din)
- Arduino Pin 8 do Arduino connected to display pin 5 (Clk)
- Arduino VCC to display pin 6 (Vcc)
- Arduino Pin 7 connected to display pin 7 (BL)
- Arduino GND connect to display pin 8 (GND)

2) Potentiometer
- Arduino GND connected to one of the outer pins of potentiometer
- Arduino 5 volts (VCC) to the other outer pin of potentiometer
- Arduino Analog Pin A0 to the middle pin of potentiometer

3) Pushbutton
- Arduino GND connected to one of the legs of pushbutton through 10 KOhms resistor
- Arduino 5 volts (VCC) connected to anoter leg of pushbutton
- Arduino digital pin 2 to oposite leg of pushbutton