Hi, welcome to my 4th tutorial of GETTING STARTED WITH ARDUINO.In this tutorial I am showing you how to connect a 7 segment LCD display to the Arduino. As I had told already in previous instructable these series are completely for beginners. I will briefly explain you about Arduino and LCD display.

Arduino Uno : It is a simple programming platform, that takes input from sensors, switches and many devices correspondingly controlling the output device such as motors, etc. For programming an Arduino you need to install the Arduino IDE from Arduino Home Page.

LCD display: A seven-segment display (SSD), or seven-segment indicator, is a form of electronic display device for displaying decimal numerals that are an alternative to the more complex dot matrix displays.

Seven-segment displays are widely used in digital clocks, electronic meters, basic calculators, and other electronic devices that display numerical information.

So now let's get started.

Step 1: Electronics Required:-

The tools required for building this project are :-

  • Arduino uno
  • 10khm potentiometer
  • Jumper wires
  • Breadboard
  • LCD display
  • Headers pin

Now time for building electronics.

Step 2: Building Electronics :-

To wire your LCD screen to your Arduino, connect the following pins:

  • LCD RS pin to digital pin 12
  • LCD Enable pin to digital pin 11
  • LCD D4 pin to digital pin 5
  • LCD D5 pin to digital pin 4
  • LCD D6 pin to digital pin 3
  • LCD D7 pin to digital pin 2

Additionally, wire a 10K pot to +5V and GND, with it's wiper (output) to LCD screens VO pin (pin3).

Step 3: Coding :-

Here is the code that needs to be uploaded, the code is fairly simple and if you need any help, feel free to comment bellow.

// include the library code:
#include // initialize the library with the numbers of the interface pins LiquidCrystal lcd(12, 11, 5, 4, 3, 2); void setup() { // set up the LCD's number of columns and rows: lcd.begin(16, 2); // Print a message to the LCD. lcd.print("hello, world!"); } void loop() { // set the cursor to column 0, line 1 // (note: line 1 is the second row, since counting begins with 0): lcd.setCursor(0, 1); // print the number of seconds since reset: lcd.print(millis()/1000); }


abqlewis (author)2015-07-27

Although I don't think this is a bad instructable, this is NOT a 7 Segment display. These would more likely be called something like 16x2 LCD, or HD44780 display. A seven segment display would be something more like

Droqles (author)abqlewis2016-05-21

On my Arduino case it says 7 segment display for the link you have there abqlewis, and 1602 Display for the LCD screen looking like yours in the video :)