This is an excellent video, all the info you need to get started in under 4 minutes - thank you 👍 I get fed up with RU-vidrs that pad a 5 minute video to 35 minutes - droning on with "blah, blah, blah" and naff video animations (naming no names).
most creators try to hit 10min mark to "get the algorithm going", god bless those who earn money any other way lol, they give info like this, few minutes.
PSA for anyone using this RTC (DS3231), there is a badly designed charging circuit on this particular module (ZS-042 and probably others). You must either use a rechargeable LIR2032 battery or disable the charging circuit. You can do so by cutting the trace or removing the diode or resistor. Otherwise, using a non-rechargeable CR2032 could cause it to swell and explode. Although, even with a rechargeable LIR2032, the charging voltage is too high at ~4.7 V relative to the spec of 4.2 V, which may also cause issues. The recommenced option is to remove the diode with a pair tweezers or by desoldering, and use a regular CR2032 battery. There is a thread about this issue on the Arduino forums.
To anyone that was in my shoes where the serial moniter only prints nonsense, I oversaw the baud rate. If it's making a ton of ????, match your serial moniters baud rate to 115200 (as seen in the video).
Thanks for the Excellent easy to understand video. I am great at building the circuit but horrible at programming. It’s like I’m terrified of programming
I'm having an issue with the programming part. I downloaded both libraries and it still doesn't work but I suspect, based of what I'm reading, that the library is isn't completely identifying certain variables/parts, such as: DS3231 rtc(SDA, SCL); Serial.print(rtc.getDOWStr()); Serial.print(rtc.getDateStr()); Serial.println(rtc.getTimeStr());
Thanks a lot for this helpful video. There is a note: It works with me when I changed the serial as follow: // Serial.begin(115200); Serial.begin(9600);
Thank you very much. I’ve got a problem this device after a day the time becomes of by around 6 seconds from the real time how can I fix that. Thank you
everything works fine, but when I disconnect the arduino from the PC, wait a few minutes, connect it again, Time starts from the moment where I cut off the power. Where is the fault hardware or software?
Sir can you please add a pushbutton so when we will push it we can see the day and temperature and then we push it second time we can see the time and date again. Sir please reply
First of all, thanks for the reaction. But I tried it in multiple ways, but the fact that it uses rtc.getTimeStr(); seems the confuse the system. Is this a matter of notation? I have: int i = String.toInt(rtc.getTimeStr());
Great video, i got a 'warning deprecated conversion from string constant to 'char*' -wwrite-strings' but can you clarify this is nothing to worry about? Regards
people forget to say: when 5V is in use and non rechargeable battery, you MUST break the charging path - otherwise your 3V battery may explode ;-) if you connect to 3.3V it will not happen as there is a diode in the circuit. same no issue if you use 5V and rechargeable battery ;-) one more thing as bonus: this module has extra EEPROM that can be used ;-)
Hi! I need help about a project to simulate sunrise - sunset with real time clock ⏰. E.g. i want to start at 07:00 and stop at 19:00 dimming by time (every 15min) for six hours to peak and onother six hours decrease light to sunset. *arduino uno *DS1302 Clock Module with Battery *AC Light Dimmer Module for PWM control, 1 Channel, 3.3V/5V logic, AC 50/60hz, 220V/110V *dimmable led lamp
I am getting error like error: no matching function for call to 'DS3231::DS3231(const uint8_t&, const uint8_t&)' DS3231 rtc(SDA, SCL); Please help me to fix it
I have bought a couple of the DS3231 modules. Trying to build a temp logger. All of them get the temperature wrong by 18 deg C even when using different libraries. And it seems they lose a lot of time as well. I guess the time loss and temp is correlated. Any idea why this might be?
Do *NOT* USE CR2032. Most modules are intended to be used with rechargeable LR2032 batteries. When DS3231 is connected to the Arduino, CR2032 is being charged (even though it's not rechargeable). It also won't last too long.
@Mad Max yo chill out and Atef Ben Attia, you can probably use an if statement like this. You would need to save the hour part to a variable as well. This variable as well as the code would need to be in a loop so it constantly refreshes. if ((hour == 2) && (minute == 0)) { *insert what you want it to do here* }
i have multiple sensor and from multiple sensor i can get mulitple types of data . For instance i can get time, date, month, day of week, temperature, humidity, dstance between objects, etc.
I have only 1 lcd1602. HOW I CAN DISPLAY EACH DATA LIKE THIS WAY. DATE = XX XXXXXX XXXX (DATE MONTH YEAR) TIME = XX:XX:XX AM/PM DAY = XXXXXXXXXXX TEMP = XX.XXX °C/°F HUMI = XX.XXX % DIST = XXX cm XXX in
hooked up lcd and got this message rtc was not declared n this scope. (print get timestr)...any ideas? I used your tutorial on wiring lcd. started new sketch, included the two libraries and your code....
You should be able to use it without an arduino nano, because as far as I know, with any given arduino circuit board; the only difference is how fast it can process info, as well as its storage capacity.
How to make the RTC counting a delay? I'll explain. I have 2 large stepper motors. I need to turn them one revolution per minute. Is it possible to do it with RTC? My delay varies and is from a minute up to 24 hours. :) The delay function is not accurate for long periods of time...