Introduction: LED Display Arduino
An Arduino 16x2 Liquid Crystel Display uses simplified formatting to make Displaying Texts easy and useful.
Supplies
- Arduino or Genuino Board
- LCD Screen
- pin headers to solder to the LCD display pins
- 10k ohm potentiometer
- 220-ohm resistor
- hook-up wires
- breadboard
Step 1: Connect Your Wires
Before wiring the LCD screen to your Arduino board you should solder a pin header strip to the 14 pin count connector of the LCD screen, as you can see in the image above. To wire your LCD screen to your board.
Then Insert the LDC Screen into your Bread Board allowing easy access to the pins and Power Conductor. Follow the Diagram to wire your project.
The circuit:
* 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
* LCD R/W pin to ground
* LCD VSS pin to ground
* LCD VCC pin to 5V
* 10K resistor: ends to +5V and ground : wiper to LCD VO pin
Step 2: 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); }
Step 3: Finish
Well Done. Keep Experimenting till you have enough knowledge with each Display area to code your own game