- On sale!
- -€3.30
This is another great IIC/I2C/TWI/SPI Serial Interface. As the pin resources of FOR Arduino controller is limited, your project may be not able to use normal LCD shield after connected with a certain quantity of sensors or SD card. However, with this I2C interface module, you will be able to realize data display via only 2 wires.
If you have any questions on this product please feel free to contact us.
*Disclaimer: The images are merely illustrative.
There’s essentially two ways to connect these:
This is really simple and here are the connections:
SCL = A5
SDA = A4
VCC = 5V+
GND = GND
/** * I2C/IIC LCD Serial Adapter Module Example * Tutorial by http://mklec.com * * Instructions at http://blog.mklec.com/how-to-use-iici2c-serial-interface-module-for-1602-lcd-display * * This uses the Liquid Crystal library from https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads GNU General Public License, version 3 (GPL-3.0) * Pin Connections: * SCL = A5 * SDA = A4 * VCC = 5V * GND = GND */ #include <Wire.h> #include <LCD.h> #include <LiquidCrystal_I2C.h> LiquidCrystal_I2C lcd(0x27,2,1,0,4,5,6,7); // 0x27 is the I2C bus address for an unmodified module void setup() { lcd.setBacklightPin(3,POSITIVE); lcd.setBacklight(HIGH); // NOTE: You can turn the backlight off by setting it to LOW instead of HIGH lcd.begin(16, 2); lcd.clear(); } void loop() { lcd.setCursor(0,0); lcd.print("http://mklec.com"); lcd.setCursor(0,1); lcd.print("I2C Module Demo"); delay(1000); }
Related products