I tried the I2C scanner and it didn't detect the RTC, although my RTC lights up. I tested the A4 and A5 pins, I wired some buttons to it and it worked, the serial monitor shows it when It's being pressed. I'm pretty sure I download the right and needed libraries, it lights up but it can't seem to be detected.
So I bought a new Arduino uno r3 board, which didn't solve anything at all. Maybe it's the RTC itself, so I bought a new one and heck it still won't work.
I've searched couple of solutions online and I've tried everything that I saw, but it just won't work.
So it just doesn't work. Anyone who believes they have successfully got a DS3231 to work with an Arduino (including myself) must have been hallucinating, right?
Don't try and move on until the scanner can detect the RTC
The first thing to check is that you have A$ and A5 connected the right way round to the RTC. Disconnect everything from the Uno, connect the RTC to A4 and A5 and run the scanner. If no device is detected then swap the connections to A4 and A5 even though you are sure that they are correct. Run the scanner again. Is the RTC detected ?
How exactly are you connecting the RTC to the Uno ? For instance, are you using a breadboard ?
If no device is detected either way then check the integrity of the connections between the Uno and the RTC. If you have a multimeter check that the jumper wires are intact
Please post a clear photograph of the RTC board boar, both front and back
It is messy, and that makes it difficult to check the wires, but it looks to me like they are correctly connected. The red wire is SCL and brown wire is SDA.