newrudeman

[No screen test] PCF8574T-LCD-IIC control module-with small tutorial

 
Overview

Project Description

This project is an I2C control board verification module based on HGSEMI (Huaguan) PCF8574T port expansion chip. The main purpose is to save the shortcoming that the LCD takes up a lot of IO when used. It only requires 2 power lines and 2 data lines, and cooperates with the function library You can communicate! Save the io for other uses, and my mother will no longer have to worry about not having enough io.

image.png%M32M9}BKB`F%9LANUP6$X7.jpg

Chip characteristics

Attributes Parameter value
Product catalogue Interface - I/O Expander
Installation type surface mount type
Operating Voltage 2.5V ~ 6V
Number of I/Os 8
characteristic POR
interface I²C
Interrupt output yes
Clock frequency 100kHz
Output type push-pull
Sink/source current output 300uA, 25mA
Operating temperature -40℃ ~ +85℃

How to use (Arduino)

wiring

I2C control module Arduino
SCl A5
SDA A4
VCC 5V
GND GND

code

There are many I2C LCD function libraries on the Internet. The one I want to use is LCD Library 1.2.1 (attachment). I won’t go into details about how to install the library.

#include 
#include 

LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); //0x27换成你的I2C地址,通过短接A0A1A2更换I2C地址

void setup()
{
lcd.begin(16,2); //1602LCD屏幕
lcd.backlight();//开启背光
//lcd.backlight(); //关闭背光

}

void loop()
{
lcd.setCursor(0,0); //设置光标位置第一行第一列是0,0
lcd.print("Hello World"); //能打印16个英文字母等(进阶玩法请自己搜索)
delay(100);
lcd.setCursor(0,1);
lcd.print("I am Scarrrr0725");
delay(1000);

lcd.clear();//清除内容
}

The default I2C address is 0x27 because none of the three jumper pads are shorted (1 = shorted)

image.png

Reference: http://www.electronoobs.com/eng_arduino_tut4.php

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-19 13:09:36
  • Studio 764, please give me a free ticket
  • Vxworks implements ping command
  • RF Agile Transceivers
  • [Silicon Labs BG22-EK4108A Bluetooth Development Review] Four Programs Plus Button Development Steps
  • A very useful program for finding a job
  • STM32F207

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号