Error - LCD에 문자가 표시되지 않는 경우, I2C문제 해결방법

CODEDRAGON Development/IoT

반응형

 

 

LCD 문자가 표시되지 않는 경우

컴파일 업로드가 정상적으로 이루어지지만

LCD 문자가 표시되지 않거나 이전에 표시된 문자만 표시되고 있는 경우의 해결방법입니다.

 


 

 


 

 

 

해결방법

해당 LCD 모듈의 I2C주소가 맞는 확인 다시 업로드 보시기 바랍니다.

I2C주소는 판매처나 제조사에서 확인할 있습니다.

아래는 이때가지 제가 확인한 LCD모듈의 I2C주소입니다. 이중 하나로 먼저 테스트 해보시기 바랍니다.

 

// (I2C 주소, (X), (Y))

LiquidCrystal_I2C lcd(0x20,16,2);

LiquidCrystal_I2C lcd(0x27,16,2);

LiquidCrystal_I2C lcd(0x3F,16,2);

 

 


 

 


 

 

제조사에서 표시되고 있는 정보 예시

Specifications

·       Display: Character 16h02 or 20x04

·       Backlight: Blue c white lettering

·       Contrast: Adjust the potentiometer

·       Power supply voltage: 5V

·       Interface: the I2C

·       the I2C Address: 0x27

·       Dimensions: 82mm x 35mm x 18mm

 

Connect to Arduino

·       The module is equipped with four-pin connector standard 2.54mm

·       The SCL : Serial clock line (Serial CLock)

·       The SDA : Serial Data Line (Serial DAta)

·       VCC : "+" Power

·       The GND : "-" power supply

·       Conclusions responsible for the I2C interface on Arduino boards based on various controllers differ

 

LCD I2C module

Based on ATmega 328

Leonardo

MEGA, ADK, DUE

SCL

A5

D3

D21

SDA

A4

D2

D20

VCC

5V

5V

5V

GND

GND

GND

GND

 

 

 


반응형

'Development > IoT' 카테고리의 다른 글

아두이노 eclipse 개발환경 구축 단계  (0) 2018.10.02
IoT(Internet of Things) 보안 가이드  (0) 2018.09.27
납땜(Soldering)  (0) 2018.09.16
PixelToMatrix, 직접다운로드, 사용방법  (0) 2018.09.11
LED Matrix Editor  (0) 2018.09.06