LCD, Potentiometer and Pwm Led With Arduino

About: Hello! I'm Lorenzo Daidone, a student of the IIS Italo Calvino in Genoa, Italy. I love Arduino, Raspberry and all around the DIY electronics.

What will you need:

  • Arduino board
  • LCD 16 * 2
  • Trimmer 10 kΩ
  • Potentiometer 10 kΩ
  • Led 5mm
  • 220, 330 Ω resistors
  • Some jumpers
  • Breadboard

What sketch does:
In this sketch, will be printed the potentiometer analog value on lcd and near it the pwm value given to led.


  • Arduino pin A5 to the potentiometer central pin
  • Arduino pin 2 to LCD D7
  • Arduino pin 3 to LCD D6
  • Arduino pin 4 to LCD D5
  • Arduino pin 5 to LCD D4
  • Arduino pin 9 to led (through 330 ohms resistor)
  • Arduino pin 11 to LCD Enable
  • Arduino pin 12 to LCD RS
  • LCD Vss pin to ground
  • LCD Vdd pin to +5V
  • LCD R/W pin to ground
  • LCD A pin through a 220 ohms resistor to +5V
  • LCD K pin to ground
  • a pin of pot to +5V, the opposite one to GND

You can see video here.

Visit my site for more:



    • Safe and Secure Challenge

      Safe and Secure Challenge
    • Epilog X Contest

      Epilog X Contest
    • PCB Contest

      PCB Contest

    2 Discussions