Which ATTINY core have you loaded into the Arduino IDE to program the ATTINY84 ?
Are you using a ready built I2C backpack for your display or have made you own with this PCF8574T port extender ? If it is your own, have you a schematic ?
Look here for lots of Arduino ATTINY support including wire/I2C: https://github.com/SpenceKonde
6v6gt:
Which ATTINY core have you loaded into the Arduino IDE to program the ATTINY84 ?
Are you using a ready built I2C backpack for your display or have made you own with this PCF8574T port extender ? If it is your own, have you a schematic ?
Look here for lots of Arduino ATTINY support including wire/I2C: SpenceKonde (Spence Konde (aka Dr. Azzy)) · GitHub
And now i have imported the TinyWireM and the LiquidCrystal_I2C_Tiny libary from SpenceKonde and it doesn`t work.
I use only the PCF8574T. The LCD works with Arduino and the PCF8574T, but not with the Attiny 84.
After i open an examplesketch from the LiquidCrystal_I2C_Tiny to test the function => i have a compile-error. When i errase the <SoftI2CMaster.h> -libary (<LiquidCrystal_I2C_Tiny.h> -libary was included), it compiles, but the LCD doens't work.
And now i have imported the TinyWireM and the LiquidCrystal_I2C_Tiny libary from SpenceKonde and it doesn`t work.
I use only the PCF8574T. The LCD works with Arduino and the PCF8574T, but not with the Attiny 84.
After i open an examplesketch from the LiquidCrystal_I2C_Tiny to test the function => i have a compile-error. When i errase the <SoftI2CMaster.h> -libary (<LiquidCrystal_I2C_Tiny.h> -libary was included), it compiles, but the LCD doens't work.
Please do not post screen shots of code. Use the proper code tags when posting.
You need to post the code and a diagram of the circuit.
6v6gt:
What about I2C pull up resistors ? Say 4.7K each.
I puted two 2k2 resistors between the SDA-Pin(PCF8574T-Pin15) and 5V AND two 2k2 resistors between the SCL-Pin(PCF8574T-Pin14) and 5V. => It doesn't work!!
I have imported the libary correct, but i noticed that the font of the LiquidCrystal_I2C Tiny library(#include <LiquidCrystal_I2C Tiny.h>)is not orange.
This is how I use an I2C LCD display on an ATTINY84 :
// SCL pin D4 (physical pin 9 on attiny84)
// SDA pin D6 (physical pin 7 on attiny84)
# include <TinyWireM.h> // adafruit
# include <LiquidCrystal_I2C_Tiny.h> // Dr Azzy
LiquidCrystal_I2C lcd(0x27, 16, 2);
# include "SoftwareSerial.h"
SoftwareSerial swSerial( 3 , 2 ); // (RX, TX) (clockwise pin mappings)
// in setup() . . .
TinyWireM.begin() ;
delay(1000) ;
lcd.begin();
If you have no success, try an I2C scanner to verify the address you are using.
I guess you are aware that there is a compiler option to invert the pin mappings between the attiny84 and the arduino digital pins and you have chosen the correct one for your configuration.
6v6gt:
This is how I use an I2C LCD display on an ATTINY84 :
// SCL pin D4 (physical pin 9 on attiny84)
// SDA pin D6 (physical pin 7 on attiny84)
# include <TinyWireM.h> // adafruit
# include <LiquidCrystal_I2C_Tiny.h> // Dr Azzy
LiquidCrystal_I2C lcd(0x27, 16, 2);
# include "SoftwareSerial.h"
SoftwareSerial swSerial( 3 , 2 ); // (RX, TX) (clockwise pin mappings)
// in setup() . . .
TinyWireM.begin() ;
delay(1000) ;
lcd.begin();
If you have no success, try an I2C scanner to verify the address you are using.
I guess you are aware that there is a compiler option to invert the pin mappings between the attiny84 and the arduino digital pins and you have chosen the correct one for your configuration.
I know the address from the PCF8574T => 0x20, it works with an Arduino or do you mean an other address?
I think you have an other libary likeSoftware Serial.
Reiter:
I know the address from the PCF8574T => 0x20, it works with an Arduino or do you mean an other address?
I think you have an other libary likeSoftware Serial.
Well, it could help to localize the problem if you try an I2C scanner. If the display can't be detected, you have to solve that problem first before looking in detail at the rest of your application or circuit.
Yes, I have used softwareSerial but that is irrelevant to troubleshooting your problem. It does not conflict in any way with I2C.
Have you altered the setting of the contrast potentiometer since trying all this on the Uno? The setting is very sensitive to voltage changes.