X
0
Your position: Home / Display / LCD screen

LCD 2004 20x4 Character LCD Display Module HD44780 Controller blue screen backlight forarduino

62520051
Price:
Quantity:
-
+
(932 available)
Shipping Cost:
to
Estimated Delivery Time:
Please select the country you want to ship from
Please select the information you wantX
  • Description
  • Reviews
*Use a breadboard rail to make multiple connections to the Aduino GND pin
*For potentiometer connection, use the potentiometer's center pin and either of the other pins to make the connection from LCD pin 3 to Aduino GND
** A current limiting resistor or potentiometer (40 Ohm minimum) should be used to avoid excessive current. It should look something like this: 
Software
Here is the driver code:/* ------------------------------------------------------------------------------- */
// character LCD example code
// www.hacktronics.com
#include
// Connections:
// rs (LCD pin 4) to Aduino pin 12
// rw (LCD pin 5) to Aduino pin 11
// enable (LCD pin 6) to Aduino pin 10
// LCD pin 15 to Aduino pin 13
// LCD pins d4, d5, d6, d7 to Aduino pins 5, 4, 3, 2
LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2);
int backLight = 13;    // pin 13 will control the backlight
void setup()
{  pinMode(backLight, OUTPUT);
  digitalWrite(backLight, HIGH); // turn backlight on. Replace 'HIGH' with 'LOW' to turn it off.
  lcd.begin(20,4);              // columns, rows.  use 16,2 for a 16x2 LCD, etc.
  lcd.clear();                  // start with a blank screen
  lcd.setCursor(0,0);           // set cursor to column 0, row 0 (the first row)
  lcd.print("Hello, World");    // change this text to whatever you like. keep it clean.
  lcd.setCursor(0,1);           // set cursor to column 0, row 1
  lcd.print("keyes");
   // if you have a 4 row LCD, uncomment these lines to write to the bottom rows
  // and change the lcd.begin() statement above.
  //lcd.setCursor(0,2);         // set cursor to column 0, row 2
  //lcd.print("Row 3");
  //lcd.setCursor(0,3);         // set cursor to column 0, row 3
  //lcd.print("Row 4"); } void loop() { }
/* ------------------------------------------------------------------------------- */ 
You will now have a folder called ?LCD_example?
Start the Aduino software and load the example program by clicking File->Sketchbook->Open
Navigate to the LCD_example folder and select the ?LCD_example.pde? file.
Transfer the program to your Aduino by clicking the ?Upload to I/O board? button. After uploading, on the LCD you should see:
Hello, World

Average rating:
Share your thoughts with other customers
Write a review
Product reviews can be carried out after the member login, please click here to login
Links:autopartsColor E Ink Display
Message Us