Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 16:11 06 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : DS3231 on MM+ Explorer100

Author Message
astro1
Regular Member

Joined: 26/06/2016
Location: Australia
Posts: 52
Posted: 05:57pm 08 Oct 2016
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 10209
Posted: 09:08pm 08 Oct 2016
Copy link to clipboard 
Print this post

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: Australia
Posts: 1329
Posted: 09:58pm 08 Oct 2016
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 10209
Posted: 11:04pm 08 Oct 2016
Copy link to clipboard 
Print this post

  Quote  Probably an obvious question but remember they're 5v supply modules, not the 3.3v used for the Micromite.

The DS3231 works from 2.3V to 5.5V, typically 3.3V
 
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1329
Posted: 01:56am 09 Oct 2016
Copy link to clipboard 
Print this post

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 confusing if you're always thinking Micromite stuff.
 
astro1
Regular Member

Joined: 26/06/2016
Location: Australia
Posts: 52
Posted: 10:46pm 09 Oct 2016
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 10209
Posted: 11:15pm 09 Oct 2016
Copy link to clipboard 
Print this post

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 Zealand
Posts: 9589
Posted: 04:18am 10 Oct 2016
Copy link to clipboard 
Print this post

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: Australia
Posts: 52
Posted: 10:24pm 10 Oct 2016
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 10209
Posted: 11:10pm 10 Oct 2016
Copy link to clipboard 
Print this post

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
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025