I am really lost in the search for interfacing the RTC to the LCD display. Are there some guidance as to how to display the RTC data and how to use / wire the eeprom (SQW / INT and 32KHz). Could not find any code.
I am just a beginner. I apologise if I miss out locating the much needed codes. I only manage to run the DS3231_TEST code and LCD display (http://arduino-info.wikispaces.com/LCD-Blue-I2C) on the serial monitor independently. Other codes I found are not related and failed every attempt including many confusing libraries. . It would be useful to know how to set calender and time on the RTC and I could not find any documentation on clock setting. Appreciate If I can to get some help from the experts. Thanks
This is what I use for the clock
http://bildr.org/2011/03/ds1307-arduino/
I understand the 3231 uses the same. Note that there are two programmes, one to set the clock and one to run.
You neede to know the clock's I2C address so you can use a line like
#define DS1307_ADDRESS 0x68
for the LCD it is likely to be like
LiquidCrystal_I2C lcd(0x27,20,4);
There is a programme around that can sniff the address if you don't have it
Hi Nick,
DS3231 AT24C32 IIC High Precision Real Time Clock Module, I think is quite different from DS1307 that you recommended to take a look.
Found this statementfrom retailer website (....Can be cascaded with other IIC device, 24C32 addresses can be shorted A0/A1/A2 modify default address is 0x57;)
I dont understand whether I need to short terminals to get the default 0x57 or use default address without shorting. The example program for testing DS3231 actually works in the serial monitor even without device address. Are there working codes that can be added to display on the RTC on the LCD display. Sorry for all these questions.
I think is quite different from DS1307
Not different enough to worry about. The software is the same. It sounds like you are using a bare chip whereas I just use a module and don't know anything about shorting any pins. I imagine you don't need to know either, so just use the 0x57 in your code as I described. It costs nothing to try it.