I'm trying to use a sen0206 (with an MLX90614) and a LCD 16x02 (HD44780 + PCF8574T I2C adapter).
After multiple non successful tries on my nano board, I tried on my Uno and it works in a second, why ?
The best I can get on the Nano is weird characters without the backlight only.
Is a pullup resistor already on the Uno on SDA/SCL (A4/A5) pins ?
With this sketch I can get the adress of the LCD but not the address of the SEN0206, why ?
With this library I got an error 2 = LCD not found
but the address seems to be the right one because it prints the address of the PCF8574 (0x27).
Am I missing something or is there another things that I do not know ?
After multiple non successful tries on my nano board, I tried on my Uno and it works in a second, why ?
With no schematic, it's a shot in the dark, but since the Nano and the Uno are functionally very close to identical, the odds are you wired the Nano wrong, and the Uno right. However, there's also a good chance you've overloaded (too much current drawn) the Nano, but the Uno is hanging in there. Again, no schematic = no data.
C
well, working from that, start by connecting your LCD ground.
remove the sensor - can you write anything to the LCD?
can you find the LCD now?
remove the LCD - can you read the sensor and send data to Serial Monitor?
can you find the sensor now?
What's your power supply, the one wired to Vin? What's the green blob the positive wire goes through? A switch?
This is all simple divide-and-conquer debugging.
C
It can't seems to find the address with or without the pullup resistor:
I2C Scanner
Scanning...
No I2C devices found
3/ Time to try to write to the LCD without the pullup resistor.
I tried with this library and the only sketch examples there is with it (LiquidCrystal_PCF8574_Test) and it print
Probing for PCF8574 on address 0x27...
Error: 2: LCD not found.
And the output sketch to find the address is 0x27.
But, when I try the other sketch (the one to print something on the LCF) I still got an Error 2: LCD not found
Now for the sensor I came with the same schematic:
But, I still doesn't have the chance to retrieve the address of the sensor.
And when I try the the sketches of this library I got a Communication with device failed, please check connection
But I just notice on the github page of the library that the nano may not be compatible with this sensor, am I right ? (At least it's not mentioned) In your opinion is it why it can't find the address ?