From the Proteus component library ( P key), pick the following:

: Ensure the address in your code matches the hardware settings of the PCF8574 in the Proteus workspace. Arduino Forum experts note that incorrect pin mapping between the backpack and the LCD is the #1 cause of failure.

While Proteus does not have a native "JHD-2x16-I2C" component, a functionally identical simulation is built by connecting an to a PCF8574 with proper pull-ups and contrast control. This setup perfectly emulates the I2C backpack behavior, allowing firmware development and testing without physical hardware. Using the LiquidCrystal_I2C library with address 0x20 (or 0x27 for many real modules) ensures code portability from simulation to physical deployment.

The address in your code MUST match the DVCADDR property of the component in Proteus. If your code uses 0x27 but the Proteus model is 0x7C , nothing will display. The common cause for JHD-2X16-I2C de proteus no muestra nada is a mismatch between the expected 0x27 and the actual 0x3F or 0x7C of the model.

When you place the JHD-2X16-I2C on your Proteus schematic, you can double-click it to reveal a set of "Hidden" parameters. These are crucial for correct operation and debugging.

: Ensure you call lcd.init() and lcd.backlight() in your setup to activate the display.

void lcd_init() // Initialize I2C TWBR = 0x18; // 100 kHz TWSR = 0x00;

Contatta lo Studio Caramanico 

Alessandro Caramanico, Commercialista e Revisore Contabile iscritto presso l'Ordine di Chieti, Via Madonna delle Grazie 4 int. 6,  66016 Guardiagrele (Ch) Abruzzo

Mail:  - Cellulare: 347/1444792

Ultimi articoli pubblicati