DS3231 - RTC Time Keeper
Moderator: Benj
Re: DS3231 - RTC Time Keeper
Hello,
Can you tell me if the V2.1 version is now the best or not ?
thanks
Can you tell me if the V2.1 version is now the best or not ?
thanks
Re: DS3231 - RTC Time Keeper
Hello,
I am using the Tiny RTC with the great DS3231 component. (Many thanks for it)
But my day of week return is alway a day behind. Would it just be the cheap bit of hardware I've bought or am I making a mistake somewhere.bthanks for any advice.
I am using the Tiny RTC with the great DS3231 component. (Many thanks for it)
But my day of week return is alway a day behind. Would it just be the cheap bit of hardware I've bought or am I making a mistake somewhere.bthanks for any advice.
- Attachments
-
- image.jpg
- I'm always a day behind, same as the rest of my life
- (1.32 MiB) Downloaded 2771 times
-
- Posts: 528
- Joined: Sat Dec 01, 2012 1:23 pm
- Location: Sweden
- Has thanked: 49 times
- Been thanked: 101 times
Re: DS3231 - RTC Time Keeper
Doesn't the Tiny RTC I2C module use the DS1307 chip and not the DS3231? Does the DS1307 have exactly the same commands and functions?
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: DS3231 - RTC Time Keeper
Hi Daniel,
Yes the DS1307 and Ds3231 use exactly the same commands.
So if time is being displayed correctly with DS3231 and then you swap with DS1307, the time will be correctly displayed.
I would recommend Ds3231 as they are accurate to 3 minutes per year and you can assess built in temperature sensor.
Martin
Yes the DS1307 and Ds3231 use exactly the same commands.
So if time is being displayed correctly with DS3231 and then you swap with DS1307, the time will be correctly displayed.
I would recommend Ds3231 as they are accurate to 3 minutes per year and you can assess built in temperature sensor.
Martin
Martin
-
- Posts: 528
- Joined: Sat Dec 01, 2012 1:23 pm
- Location: Sweden
- Has thanked: 49 times
- Been thanked: 101 times
Re: DS3231 - RTC Time Keeper
Ok. I just never used the DS1307 because as you say, the DS3231 is far superior.
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: DS3231 - RTC Time Keeper
Hi Pactor
So if day of the week is out then it requires manually changing to correct day of the week.
All the RTC does is increment that day of the week by one at 00:00.00 and if day of the week was 7 then will be changed to 1.
Martin
The day of the week (1 to 7) is not automatically calculated from the date and month,Pactor wrote:But my day of week return is alway a day behind. Would it just be the cheap bit of hardware I've bought or am I making a mistake somewhere.bthanks for any advice.
So if day of the week is out then it requires manually changing to correct day of the week.
All the RTC does is increment that day of the week by one at 00:00.00 and if day of the week was 7 then will be changed to 1.
Martin
Martin
Re: DS3231 - RTC Time Keeper
Thanks for the info.
What ever date I put in a day of week is coming a day behind, but there seems to be no option to set the week, I'm not sure how it's arriving at it.
I will have a look a real DS3231
What ever date I put in a day of week is coming a day behind, but there seems to be no option to set the week, I'm not sure how it's arriving at it.
I will have a look a real DS3231
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: DS3231 - RTC Time Keeper
Hi Pactor,
Was the DS3231 already set up with current day date and time, or did you program the date day and time?
Was the DS3231 already set up with current day date and time, or did you program the date day and time?
Martin
Re: DS3231 - RTC Time Keeper
Hello,
I just programmed the time and the date, there seems to be nothing on the component to set the day of week only to read DOW, it seems to be working it out somehow.
There's some clever boys at work somewhere. I'm sure I can get over it, I normally have some idea of what day it is, most days anyway.
I will read back the posts more.
Thanks
I just programmed the time and the date, there seems to be nothing on the component to set the day of week only to read DOW, it seems to be working it out somehow.
There's some clever boys at work somewhere. I'm sure I can get over it, I normally have some idea of what day it is, most days anyway.
I will read back the posts more.
Thanks
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: DS3231 - RTC Time Keeper
In that case you have two options.
1. Program the day using something like flowchart posted here
Or
2) Modify Flowchart your using to either probram RTC with new day or to display a different day of the week so correct day is shown.
Option one would probable be the easiest.
Flowchart posted can be improved, but since none has posted about any issues, I have not updated it.
Perhaps has a suggestion Jordy could add a WriteDay function?
Martin
1. Program the day using something like flowchart posted here
Or
2) Modify Flowchart your using to either probram RTC with new day or to display a different day of the week so correct day is shown.
Option one would probable be the easiest.
Flowchart posted can be improved, but since none has posted about any issues, I have not updated it.
Perhaps has a suggestion Jordy could add a WriteDay function?
Martin
Martin
Re: DS3231 - RTC Time Keeper
I've borrowed everyone's examples and have it running with DS18B20 sensor and RTC
All I need is a magnifying glass to see it on this tiny dot matrix display.
All I need is a magnifying glass to see it on this tiny dot matrix display.
- Attachments
-
- image.jpg
- I have it running with the DS18B20 sensor
- (1.04 MiB) Downloaded 2727 times
Re: DS3231 - RTC Time Keeper
I got it from Ebay but its very small only an inch or so across £5.50
http://www.ebay.co.uk/usr/failsafe_electronics
LCD 0.96" 4 pin, 2 pin operation trough SPI or I2C.
Resolution: 128x64 pixels
Color: blue and yellow
Dimension: 28x28mm
Vcc: 2.2V - 5.5V
http://www.ebay.co.uk/usr/failsafe_electronics
LCD 0.96" 4 pin, 2 pin operation trough SPI or I2C.
Resolution: 128x64 pixels
Color: blue and yellow
Dimension: 28x28mm
Vcc: 2.2V - 5.5V
- petesmart
- Valued Contributor
- Posts: 395
- Joined: Thu May 06, 2010 11:42 am
- Location: Sydney, Australia
- Has thanked: 187 times
- Been thanked: 140 times
Re: DS3231 - RTC Time Keeper
HI Jordy,
I have been looking at your component for the DS3231 that you posted some time back. Would it be possible for me to get access to the source so that I can update it to drive a DS3232? this is a later version RTC
Happy to post back the updated version on the forum.
all the best
Pete
I have been looking at your component for the DS3231 that you posted some time back. Would it be possible for me to get access to the source so that I can update it to drive a DS3232? this is a later version RTC
Happy to post back the updated version on the forum.
all the best
Pete
sorry about that Chief!