Serial IIC I2C Adapter for HD44780 LCD

 With this I2C interface LCD module, you will be able to realize data display via only 2 DATA + 2 power wires. If you already have I2C devices in your project, this LCD module actually cost no more resources at all. It is fantastic for Arduino UNO and Raspberry PI based project.

More details

On sale On sale!
£3.50

Availability: In stock

5 items in stock

Add to my wishlist

As the pin resources of Arduino controller and Raspberry PI GPIO are limited, your project may be not able to use normal LCD shield after connected with a certain quantity of sensors, SD memory card or GPIO's. However, with this I2C interface LCD module, you will be able to realize data display via only 2 DATA + 2 power wires. If you already have I2C devices in your project, this LCD module actually cost no more resources at all. It is fantastic for Arduino UNO and Raspberry PI based project.

Specification

- I2C Address: 0x20 

- Supply voltage: 5V

- Size: 82x35x18 mm 

- Come with IIC interface, which can be connected by Du-Pont Line


 

( A2, A1, A0 ) -> Address

 

( L, L, L ) -> 0x20

 

( L, L, H ) -> 0x21

 

( L, H, L ) -> 0x22

 

( L, H, H ) -> 0x23

 

( H, L, L ) -> 0x24

 

(H, L, H ) -> 0x25

 

(H, H, L ) -> 0x26

 

(H, H, H ) -> 0x27


 

TEXT CODE:

#include <Wire.h> 
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x20,16,2); //set the LCD address to 0x20 for a 16 chars and 2 line display
void setup()
{
lcd.init(); 
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("Hello");
lcd.setCursor(0, 1);
lcd.print("Voltage: ");
lcd.setCursor(13, 1);
lcd.print("V");
}
void loop()
{
int val;
float temp;
val=analogRead(0);
temp=val/4.092;
val=(int)temp;//
lcd.setCursor(9, 1);
lcd.print(0x30+val/100,BYTE); 
lcd.print(0x30+(val%100)/10,BYTE); 
lcd.print('.');
lcd.print(0x30+val%10,BYTE);
delay(100);
}

definitions in LiquidCrystal_I2C.cpp are incorrect and must be changed
#define LCD_BACKLIGHT 0x08
#define LCD_NOBACKLIGHT 0x00

#define En B00000100 // Enable bit
#define Rw B00000010 // Read/Write bit
#define Rs B00000001 // Register select bit




void LiquidCrystal_I2C::send(uint8_t value, uint8_t mode) {
uint8_t highnib=value&0xf0;
uint8_t lownib=(value<<4)&0xf0;
write4bits((highnib)|mode);
write4bits((lownib)|mode); 
}


To download the circuit diagram click the link or go to download section of the product

 

Also if you want to develop your own library and need some help here it is another usefull link

No customer comments for the moment.

Only registered users can post a new comment.

Cart  

No products

Shipping £0.00
Total £0.00

Cart Check out

PayPal