erriez / erriezds3231 Goto Github PK
View Code? Open in Web Editor NEWDS3213 high precision RTC (Real Time Clock) library for Arduino
Home Page: https://github.com/Erriez/ErriezArduinoLibrariesAndSketches
License: MIT License
DS3213 high precision RTC (Real Time Clock) library for Arduino
Home Page: https://github.com/Erriez/ErriezArduinoLibrariesAndSketches
License: MIT License
When loading the sketch SetBuildTime, time is updated, but with an offset of about 11 seconds.
So the time is not accurate, but 11 seconds later.
How to deal with this?
Hi,
I can change SDA and SCL pin in code?
I use ESP32 and have a conflit with LCD ST7796...
tks
C:\Program Files (x86)\Arduino\libraries\ErriezDS3231\src\ErriezDS3231.cpp: In member function 'bool ErriezDS3231::getDateTime(uint8_t*, uint8_t*, uint8_t*, uint8_t*, uint8_t*, uint16_t*, uint8_t*)': C:\Program Files (x86)\Arduino\libraries\ErriezDS3231\src\ErriezDS3231.cpp:398:15: error: aggregate 'tm dt' has incomplete type and cannot be defined struct tm dt;
Dear @Erriez , thank you for your library.
I have issue with alarm2. When I check for Alarm2 occurence in a loop, there is activation at a time when it should not activate.
This is the output from my code:
19:08:45.724 -> Alarm2 ACTIVE: rtc.getAlarmFlag(Alarm2) == true
19:48:45.753 -> Alarm2 ACTIVE: rtc.getAlarmFlag(Alarm2) == true
21:10:15.649 -> Alarm2 ACTIVE: rtc.getAlarmFlag(Alarm2) == true
00:21:05.032 -> Alarm2 ACTIVE: rtc.getAlarmFlag(Alarm2) == true
01:42:35.648 -> Alarm2 ACTIVE: rtc.getAlarmFlag(Alarm2) == true
03:01:41.943 -> Alarm2 ACTIVE: rtc.getAlarmFlag(Alarm2) == true
03:25:46.864 -> Alarm2 ACTIVE: rtc.getAlarmFlag(Alarm2) == true
03:29:18.890 -> Alarm2 ACTIVE: rtc.getAlarmFlag(Alarm2) == true
04:50:56.583 -> Alarm2 ACTIVE: rtc.getAlarmFlag(Alarm2) == true
05:16:45.625 -> Alarm2 ACTIVE: rtc.getAlarmFlag(Alarm2) == true
10:37:56.892 -> Alarm2 ACTIVE: rtc.getAlarmFlag(Alarm2) == true
after each check that rtc.getAlarmFlag(Alarm2) == true, I disable the alarm:
rtc.clearAlarmFlag(Alarm2);
Can you give some hint about this issue that I am facing?
Thank you.
I have an arduino project with ESP32 and I'm using this library ( which is great btw ).
Currently on power on I'm doing the following
boolean RTC::begin(){
Wire.begin(rtcSDA_Pin, rtcSCL_Pin);
Wire.setClock(400000);
if( !rtc.begin() ){
Serial.printf("[RTC] - Failed to initialize RTC\n");
return false;
}
Serial.printf("[RTC] - RTC initialized\n");
checkBattery();
rtc.clockEnable(true);
return true;
}
void RTC::checkBattery(){
Serial.printf("[RTC] - Battery is %s\n", rtc.isRunning()?"charged":"drained");
}
If i call rtc.clockEnable(true);
the library will tell me that the battery is ok even if it is drained.
But if i don't set the clock to true it will never be ok, even if i replace the battery.
What is the recommended way of handling the low battery? I want to report to the users that they should replace it even at runtime.
So i would call the check battery function periodically.
Hello, You make a good job !
Is it possible to get milliseconds from DS3231 ?
thanks
i am using rtc DS3231 module and your library with esp32- WROOM in my project .... Sometimes, when the power gets cutoff, the time gets delayed from few minutes to hours... Now the main issue is when i to test myself and turn off the device , the time is not changed...Means this behaviour is random, sometimes it does delay sometimes not..... I changed the batteries of rtc module still the issue is there....Please give some solution to this ... THank you in advance
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.