Ñòàòü àâòîðîì
Îáðàòíàÿ ñâÿçü

// Set the I2C address (check with I2C scanner) LiquidCrystal_I2C lcd(0x27, 16, 2);

: Connect to Analog Pin A5 on the Arduino Uno. Configuration & Troubleshooting

void main() I2C_Init(); I2C_Start(); I2C_Write(I2C_ADDRESS, 0x00); I2C_Write(I2C_ADDRESS, 'H'); I2C_Write(I2C_ADDRESS, 'e'); I2C_Write(I2C_ADDRESS, 'l'); I2C_Write(I2C_ADDRESS, 'l'); I2C_Write(I2C_ADDRESS, 'o'); I2C_Write(I2C_ADDRESS, ' '); I2C_Write(I2C_ADDRESS, 'W'); I2C_Write(I2C_ADDRESS, 'o'); I2C_Write(I2C_ADDRESS, 'r'); I2C_Write(I2C_ADDRESS, 'l'); I2C_Write(I2C_ADDRESS, 'd'); I2C_Stop();

: In Proteus simulations, the default address for I2C modules like the PCF8574 is often 0x20 , though hardware typically uses 0x27 or 0x3F .

Proteus does not always have a pre-made schematic symbol specifically named "JHD-2x16-I2C" in all library versions. Therefore, the simulation is constructed using the standard parallel LCD and an I2C expander component.

: Search for LCD1602 or PC8574 if the integrated JHD model isn't appearing. Often, you manually pair a 16x2 LCD with a PCF8574 I2C I/O expander. Microcontroller : Arduino Uno Go to product viewer dialog for this item. PIC16F877A Go to product viewer dialog for this item.

Jhd-2x16-i2c Proteus

// Set the I2C address (check with I2C scanner) LiquidCrystal_I2C lcd(0x27, 16, 2);

: Connect to Analog Pin A5 on the Arduino Uno. Configuration & Troubleshooting

void main() I2C_Init(); I2C_Start(); I2C_Write(I2C_ADDRESS, 0x00); I2C_Write(I2C_ADDRESS, 'H'); I2C_Write(I2C_ADDRESS, 'e'); I2C_Write(I2C_ADDRESS, 'l'); I2C_Write(I2C_ADDRESS, 'l'); I2C_Write(I2C_ADDRESS, 'o'); I2C_Write(I2C_ADDRESS, ' '); I2C_Write(I2C_ADDRESS, 'W'); I2C_Write(I2C_ADDRESS, 'o'); I2C_Write(I2C_ADDRESS, 'r'); I2C_Write(I2C_ADDRESS, 'l'); I2C_Write(I2C_ADDRESS, 'd'); I2C_Stop();

: In Proteus simulations, the default address for I2C modules like the PCF8574 is often 0x20 , though hardware typically uses 0x27 or 0x3F .

Proteus does not always have a pre-made schematic symbol specifically named "JHD-2x16-I2C" in all library versions. Therefore, the simulation is constructed using the standard parallel LCD and an I2C expander component.

: Search for LCD1602 or PC8574 if the integrated JHD model isn't appearing. Often, you manually pair a 16x2 LCD with a PCF8574 I2C I/O expander. Microcontroller : Arduino Uno Go to product viewer dialog for this item. PIC16F877A Go to product viewer dialog for this item.