Arduino UNO Display LCD - I2C
Arduino UNO Display LCD - I2C
Arduino UNO
A4 (SDA) (datos)
A5 (SCL) (clock)
Ejemplo:
#include <Wire.h>
#include < LiquidCrystal_I2C.h>
LiquidCrystal_I2C LCD1(0x20, 16,2); //dirección de memoria 0x20
//display de 16x2
Conexión del PCF8574 con el Display LCD y Arduino UNO
𝑅𝑆
𝐴𝑙 𝐴𝑟𝑑𝑢𝑖𝑛𝑜 𝑈𝑁𝑂
𝑅𝑊
𝐸
D4
𝑃𝑒𝑟𝑚𝑖𝑡𝑒𝑛 𝑐𝑜𝑛𝑓𝑖𝑔𝑢𝑟𝑎𝑟 D5
𝑙𝑎 𝑑𝑖𝑒𝑐𝑐𝑖ó𝑛 𝑑𝑒 𝑚𝑒𝑚𝑜𝑟𝑖𝑎
D6
𝑝𝑎𝑟𝑎 𝑖𝑛𝑡𝑒𝑟𝑐𝑎𝑚𝑏𝑖𝑎𝑟
𝑑𝑎𝑡𝑜𝑠 𝑐𝑜𝑛 𝐴𝑟𝑑𝑢𝑖𝑛𝑜 𝑈𝑁𝑂 D7
Configuración de la dirección de memoria
𝐴2 𝐴1 𝐴0 𝐷𝑖𝑟𝑒𝑐𝑐𝑖ó𝑛
0 0 0 0 × 20
0 0 1 0 × 21
0 1 0 0 × 22
0 1 1 0 × 23
1 0 0 0 × 24
1 0 1 0 × 25
1 1 0 0 × 26
1 1 1 0 × 27