I2C LCD display, unable to get hardware working
Posted: Mon Aug 17, 2020 2:43 pm
I am running v8.2.2.15.
I have tried to get a generic 1602 display working using the I2C protocol.
I have generated a simple code on flow code 8 and on simulation this works.
When uploading to the Arduino, nothing happens.
I have run a the same hardware in the IDE environment and this is working.
I have toggled the backlight on and off- no luck
I am using a generic 1602 display with a PCF8574 I2C piggy backed
data sheet file:///I:/Central%20Beds%20Engineering/RQF%20Unit%206%20Microcontroller%20Systems%20for%20Engineers/data%20sheets/PCF8574_PCF8574A%20I2C%20chip%20set.pdf
Unable to attach the arduino code so here is the code
//web page below gives pin outs
//https://www.makerguides.com/character-i ... -tutorial/
#include <Wire.h>
#include <LCD.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Addr, En, Rw, Rs, d4, d5, d6, d7, backlighpin, polarity
void setup()
{
lcd.begin(16,2);
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("Hello world!");
lcd.setCursor(0, 1);
lcd.print("Row number: ");
lcd.setCursor(12, 1);
lcd.print("2");
}
void loop()
{
}
Just to recap,
using IDE load the programme and the I2C LCD works
USing Flowcode programme- the software emulator is working
Upload code to hardware- does not work!
This is the first time on the forum, I hope I have included everything
regards
ChrisP
I have tried to get a generic 1602 display working using the I2C protocol.
I have generated a simple code on flow code 8 and on simulation this works.
When uploading to the Arduino, nothing happens.
I have run a the same hardware in the IDE environment and this is working.
I have toggled the backlight on and off- no luck
I am using a generic 1602 display with a PCF8574 I2C piggy backed
data sheet file:///I:/Central%20Beds%20Engineering/RQF%20Unit%206%20Microcontroller%20Systems%20for%20Engineers/data%20sheets/PCF8574_PCF8574A%20I2C%20chip%20set.pdf
Unable to attach the arduino code so here is the code
//web page below gives pin outs
//https://www.makerguides.com/character-i ... -tutorial/
#include <Wire.h>
#include <LCD.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Addr, En, Rw, Rs, d4, d5, d6, d7, backlighpin, polarity
void setup()
{
lcd.begin(16,2);
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("Hello world!");
lcd.setCursor(0, 1);
lcd.print("Row number: ");
lcd.setCursor(12, 1);
lcd.print("2");
}
void loop()
{
}
Just to recap,
using IDE load the programme and the I2C LCD works
USing Flowcode programme- the software emulator is working
Upload code to hardware- does not work!
This is the first time on the forum, I hope I have included everything
regards
ChrisP