Proteus [work] - Jhd-2x16-i2c
In Arduino IDE: Sketch -> Include Library -> Manage Libraries . Search for LiquidCrystal I2C by Frank de Brabander.
To simulate a JHD 16x2 LCD I2C adapter (PCF8574) in Proteus, you need to combine the standard LCD model with an I2C-to-Parallel converter, as Proteus often treats them as separate components in the schematic. Connecting JHD-2x16 with I2C in Proteus Component Selection Search for (the standard 16x2 LCD model in Proteus). Search for
// Set the LCD address to 0x27 for a 16 chars and 2 line display LiquidCrystal_I2C lcd( setup() { lcd.init(); // initialize the lcd lcd.backlight(); // Turn on backlight lcd.setCursor( ); lcd.print( "Proteus I2C LCD" ); lcd.setCursor( ); lcd.print( "JHD-2x16 Success" Use code with caution. Copied to clipboard jhd-2x16-i2c proteus
pins of the PCF8574 to your microcontroller (e.g., A5 and A4 on an Arduino Uno).
One benefit of using the jhd-2x16-i2c in Proteus over physical hardware is the ability to see the I2C protocol. Use the : In Arduino IDE: Sketch -> Include Library ->
// Print a message to Line 1 (Index 0) lcd.setCursor(0, 0); lcd.print("Proteus I2C LCD");
You cannot use the standard LiquidCrystal.h library. You need the I2C version. Connecting JHD-2x16 with I2C in Proteus Component Selection
To simulate the JHD-2x16-I2C module in Proteus, users need to follow these steps:
To get started, you will need the following components from the Proteus object picker: : Arduino Uno or Mega.
// Print a message to Line 2 (Index 1) lcd.setCursor(0, 1); lcd.print("Hello World!");
Before diving into the software, let's decode the keyword:
