![]() |
Forum Index : Microcontroller and PC projects : DS3231 on MM+ Explorer100
Author | Message | ||||
astro1 Regular Member ![]() Joined: 26/06/2016 Location: AustraliaPosts: 52 |
Got 3 of the DS3231 modules from SC all showing RTC not responding. I have hooked up an old DS1307 and it works well. Option RTC 67,66 set. Is there an initial setup for the RTC (DS3231)? Thanks. |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10209 |
It should just work. Make sure though it is the correct way up - the pins may need reversing. See the picture on this thread |
||||
paceman Guru ![]() Joined: 07/10/2011 Location: AustraliaPosts: 1329 |
Probably an obvious question but remember they're 5v supply modules, not the 3.3v used for the Micromite. |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10209 |
The DS3231 works from 2.3V to 5.5V, typically 3.3V |
||||
paceman Guru ![]() Joined: 07/10/2011 Location: AustraliaPosts: 1329 |
Oops... I should read things more carefully. The current SC article (Oct. p34) on the 3231 module stipulates +5v for Vcc in the case of Arduino and Micromite control - slightly ![]() |
||||
astro1 Regular Member ![]() Joined: 26/06/2016 Location: AustraliaPosts: 52 |
Running 5v, tried on an MM+64, DS1307 works not the DS3231. Is there any tests to run to see what the DS3231 is doing? |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10209 |
Check the batteries are OK. They won't run without batteries. Otherwise they just work exactly like the DS1307 - no software changes needed |
||||
Grogster![]() Admin Group ![]() Joined: 31/12/2012 Location: New ZealandPosts: 9589 |
OPTION RTC DISABLE. SETPIN 66,DOUT SETPIN 67,DOUT Now, fit an LED+ resistor between the RTC module socket SCL line and deck(ground), and the RTC module socket SDA line and deck. Now run: DO:PIN(66)=1:PAUSE 1000:PIN(66)=0:PIN(67)=1:PAUSE 1000:PIN(67)=0:PAUSE 1000:LOOP This should alternate the two LED's on the I2C port back and forth. This will prove there is no problem with the soldering or any other connection issue between the RTC module socket, and the PIC32. There should only EVER be ONE LED on at any one time. If they BOTH light at some point, there is a short somewhere on those pins. If one or both LED's don't EVER light at all, there is a disconnection on that line between the RTC socket and the PIC32. Good luck - I'll be watching this thread. Smoke makes things work. When the smoke gets out, it stops! |
||||
astro1 Regular Member ![]() Joined: 26/06/2016 Location: AustraliaPosts: 52 |
Battery hooked up, diode removed. ![]() RTC gettime with DS3231 looking at data / clock. Not working. ![]() RTC gettime with DS1307, same pins on explore100. Working. I did try swapping the data and clock around. Gotta be something I'm doing wrong. |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10209 |
If you plug the module into the E100 as in the picture and it doesn't work then, given you can run a DS1307 in the same connections (prove it at both ends), the DS3231 must be faulty. They just plug in and work once the OPTION command is set - there is very little scope for getting this wrong in any way |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |