Afficheur vert 1602+I2C

Afficheur vert 1602+I2C

            Lcd display module with blue blacklight

  • Built-in industry standard hd44780 equivalent lcd controller
  • 1602 I2c interface 4-wire 1602 screen io port of control board is only 20, so io ports is not enough for many sensor, sd card, relay modules
  • The original 1602 screen need 7 io ports to drive up, and this module can save 5 io ports


Connections!
First of all we connect i2c pins module as shown in the schematic. Power the LCD module to 5 volts and connect the ground as well. The SDA pin of the i2c module conected to arduino A4 and the SCL pin to A5. We connect the arduino to USB and we are ready to program. In order to make the LCD work we need to inport the LCD library for arduino.


/* http://www.electronoobs.com */

/*-----( Inport library )-----*/
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
//i2c pins
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); //

void setup()
{
//WE define our LCD 16 columns and 2 rows
lcd.begin(16,2);
lcd.backlight();//Power on the back light
//lcd.backlight(); Power off the back light

}

void loop()
{
//Write your text:
lcd.setCursor(0,0); //we start writing from the first row first column
lcd.print(" ELECTRONOOBS"); //16 characters poer line
delay(1000);//Delay used to give a dinamic effect
lcd.setCursor(0,1);
lcd.print("Thanks, share");
delay(8000);

lcd.clear();//Clean the screen
lcd.setCursor(0,0);
lcd.print(" How r U?");
lcd.setCursor(0,1);
lcd.print(" ELECTRONOOBS");
delay(8000);
}


Écrire une critique

Remarque: HTML n`est pas traduit!
    Mal           Bien
  • : 308
  • Code produit: LCD1602+I2C
  • Disponibilité: En stock
  • $7.99