Everytime I load up an example and compile it, first of all it gives out a warning "WARNING: Category 'Real-time clock' in library DS3231 is invalid and will be defined as 'Uncategorized'". After that it usually marks a lot of errors, mainly that something isn't declared or something about a multicharacter character constant thingy.
If I upload the program anyways and open the serial monitor on which the time should be displayed, it shows something about "21165 85 165 165" and so on. How to solve that?
We use the example "DS3231_test", that is usually our problem example. Any other test example doesn't work either.
wolfi1968:
If I upload the program anyways and open the serial monitor on which the time should be displayed, it shows something about "21165 85 165 165" and so on. How to solve that?
I have a similar problem. The following sketch uploaded to a Ceech Astri Arista board that emulates the Arduino Pro Mini (Atmega328, 3.3V, 8Mhz)
returns date/time as 2165-165-165T165:165:85 .
There is a real Time Clock Board (DS3231 AT24C32 IIC) on the Ceech's SCL/SCA connectors, powered from the Ceech board VCC (3.3V).
I uploaded to the Ceech board the widely available I2C scanner listed at for example
At the serial port it returned "I2C Scanner
Scanning... No I2C devices found"
Another identical Ceech board, currently in a beehive, runs OK with an identical clock board. The clock on the Ceech undergoing troubleshooting works OK on an Arduino Pro Mini (3.3V, 8Mhz) when connected to pins A4 & A5 (SDA/SCL).
I tried MarkDerbyshire's suggestion of removing the battery but this made no difference.
Are there sketches available for testing SCL/SDA functionality?
The Ceech board records 6 temperature sensor outputs OK on a micro SD card but the correct RTC data are missing.