Hello,
As described above i am using a mega 2560 with a genuine Arduino w5500/SD card reader a DS3302 RTC and just recently added the I2C 16X2 LCD.
Prior to adding the LCD ive had no issues with getting the time/date from the RTC, saving it to SD card and FTP'ing the data to a server.
Now with the LCD the uploads fail using the Ethernet but everything else works.
Going back to the code without the I2C LCD fixes the issues although without the LCD.
For the moment I am powering the Arduino via the USB as the barrel would probably not have enough power without adding a SMPS 5v regulator first.
Ive read that there was conflict with the Ethernet module and the LCD but mostly the one without 12c?
Ive the LCD connected to the mega on the SDA and SCL ports beside the USB port on the mega and the RTC connected to pins 20 and 21. I did have the LCD daisy chained to the RTC ports which worked but just without Ethernet working.
Is there something i can do with the library?
I use the following config for the LCD.
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,20,4);
///in my setup is the code below
lcd.init(); // initialize the lcd
lcd.backlight();
The LCD works fine and displays all message without artifacting, i am not sure about the Ethernet though or why it aint working?
Any help would be fantastic.
Thank you
Nobody any ideas on this?
It seems like an issue lots of people are having with solutions such as get a UART LCD being a possibility.
Although I would rather use what i have.
Hello,
thank you for the reply.
I ran the I2C scanner and i can see my LCD has an address of 0x27 and there was a bunch of other ones which weren't the same address.
I removed the LCD and the address disappeared as expected.
Im just not sure what causes the conflict.
Thanks for your reply i appreciate it!!
cfcorp:
I ran the I2C scanner and i can see my LCD has an address of 0x27 and there was a bunch of other ones which weren't the same address.
Do you mean the I2C Scanner is showing a bunch of other devices that you do NOT expect to see on your I2C bus?!? That would indicate a huge problem. Does it show the RTC at the right address?
cfcorp:
I removed the LCD and the address disappeared as expected.
What about the "bunch of other ones"? Do they also disappear? What about the RTC?
The two devices which show I2C addresses are the RTC which is a DS3231 and the 16X2 LCD.
the LCD has the address 0x27 and the DS3231 has multiple addresses.
See the image attached, when i remove the LCD the 0x27 address is no longer found as expected and if i remove the DS3231 the it also removes its I2C addresses.
Putting the 16x2 on its own shows address of 0x27 as expected.
Ive got a Ethernet shield (W5500 Arduino) and the micro SD slot in use as well as an RS232 serial adapter on Serial 2 and a water flow meter which is interrupt driven.
I built the code up in stages with the LCD being the last to be programmed, prior to this everything else works.
I can upload the project, its about 800 lines untidied if that helps.
Thanks for your help with this!!
https://datasheets.maximintegrated.com/en/ds/DS3231.pdf
The datasheet says that the address of the DS3231 is 0x68 (B1101000) . The fact that yours shows up with 15 other addresses gives me cause for concern. I think you have a hardware problem.
Hello johnwasser,
Thanks for the reply. You're right all those addresses seem excessive. I have a ds1307 module that i will try out and see what happens and report back.
Thank you
Regards
Also worth noting that the ds3231 is a module with the at24c32 module on it too which has an address of 0x57 but it seems excessive.
I'll check the other rtc to see if the ethernet works along with it.