All about the DS3231

  Рет қаралды 26,433

learnelectronics

learnelectronics

Күн бұрын

Пікірлер: 34
@hdguppies
@hdguppies Жыл бұрын
I'm late to the Arduino party and I appreciate your videos very much. You're a good teacher. Thanks!
@RalphWLundvall
@RalphWLundvall 3 жыл бұрын
Follow-up with a deep sleep project that awakens every hour by alarm2. That would be golden. I keep searching and what I find keeps falling short.
@pairabd3852
@pairabd3852 4 жыл бұрын
Sir Would you please tell me that when i should use enableoscillator() function or when not?
@michaelpadovani9566
@michaelpadovani9566 7 жыл бұрын
One of my favorite Arduino components. I use the Sodaq library but overall very similar. Set it and forget it (at least for a while). Having that battery helps and I keep everything on Standard Time (so no need to reset to DST). You can also modify code to always output YYYY/MM/DD, HH:MM:SS ---- makes it look neater and keeps consistent spacing.
@learnelectronics
@learnelectronics 7 жыл бұрын
Michael Padovani it sure is a great module. couple lines of code and you have a clock in any project.
@MrBobWareham
@MrBobWareham 5 жыл бұрын
How about charging the battery?
@KJ7JHN
@KJ7JHN 5 жыл бұрын
Nice tutorial. Thank you. Stay creative.
@shashinair4185
@shashinair4185 2 жыл бұрын
Can u tell me the difference between ds3231m 12c and DS3231 .both can work with the same code
@3maisons
@3maisons 4 жыл бұрын
This board has a pull-up resistor connecting SQW to VCC, which is a BAD THING. That connection assumes that you will never want to use SQW when the I2C is not powered (that is VCC is open). The DS3231 chip with its backup battery is capable of signalling an alarm condition via SQW, but the "pull-up" resistor connects SQW to VCC which is connected to the power on LED (via a 1K resistor) and thence to ground. When VCC is not separately powered, whatever source is connected externally to SQW has its power drained away. That connection can be de-soldered with difficulty from the top right connector on the topmost component labelled 472 (actually a resistor array) (below the POWER label and to the right of the leftmost SDA and VCC labels). When SQW is not low, removing this trace raises the resistance between SQW and GND from 13K to 180K by my measurement. (When SQW is low because an alarm is triggered, SQW to GND is about 32 ohms). I agree with other commenters: the 24C32N is not where the clock registers are stored, but rather on the DS3231 chip itself. Also remove the resistor above the right hand SCL label for lithium battery health.
@Norfeldt
@Norfeldt 6 жыл бұрын
Learning electronic by watching your awesome videos. Seeing this makes me want to ask some questions. 1. Can it be set to auto adjust to summer and winter time (the ridiculous +- 1 hour)? 2. Can it be programmed to be a timed trigger? In order to make the Arduino consume less power by sleeping it or power on/off 3. Could you please mention a use case for the oscillation?
@MaxDiscere
@MaxDiscere 5 жыл бұрын
you forgot the alram
@barneycarparts
@barneycarparts 2 жыл бұрын
what var type does rtc.getime return? I only want the hour to trigger a relay.. How do I o that. Thanks
@doormattde
@doormattde 6 жыл бұрын
Very helpful, I should stop watching yt in bed tho, gonna try this maybe tomorrow
@Graham1904
@Graham1904 4 жыл бұрын
Bull that the DS3231uses the EEPROM to store RTC data!!!!! It is totally independent
@joemeissler4876
@joemeissler4876 7 жыл бұрын
You have to be careful with the ZS-042. It tries charging the battery. See the discussion here: forum.arduino.cc/index.php?topic=278270.0
@drewfaiella1893
@drewfaiella1893 2 ай бұрын
Excellent video on the DS3231. I downloaded your _7_segment_4_digit.ino sketch but it will not compile. Line 35 of the code says "Clock.getTime(year, month, date, DoW, hour, minute, second); //get time from DS3231". I get the error message "Compilation error: 'class DS3231' has no member named 'getTime'; did you mean 'getA1Time'?" . How do I resolve this. I've installed all DS3231 Libraries via the Arduino Library Manager but trying each in turn doe's not solve the problem. Can you help?
@OldCurmudgeon3DP
@OldCurmudgeon3DP 6 жыл бұрын
Is one required to set the DoW or will the chip figure it out? I have no use for that one bit of info in my sketches and the uRTClib.h I'm using now has the set command wrapped up like your get command with all parameters required.
@learnelectronics
@learnelectronics 6 жыл бұрын
I'm pretty sure you can leave it out.
@OldCurmudgeon3DP
@OldCurmudgeon3DP 6 жыл бұрын
learnelectronics I've found that leaving out the DoW when setting the RTC using the DS3231 library causes the chip to override my year variable with a value that is valid for the month & day setting I send it. Or I need to change the order I send the value to make it set the DoW internally. Trying to decide if I persue that or cut my losses & add DoW to my GUI.
@matthewfredregill2516
@matthewfredregill2516 6 жыл бұрын
learnelectronics Where is the sketch in your dropbox. What is it called?
@matthewfredregill2516
@matthewfredregill2516 6 жыл бұрын
Where is the sketch for this located in your dropbox? What is the file called
@biggieb400
@biggieb400 6 жыл бұрын
I just looked and I can't find it either...
@nikosadie
@nikosadie 6 жыл бұрын
Does anyone know how to disable the battery charging on it. The LIR2032 battery it uses is not available in my country and I am concerned what would happen if I used a regular CR2032 battery. So I need to disable the charging.
@scottmc2626
@scottmc2626 6 жыл бұрын
On the 4-pin header side of the board, remove the resistor located immediately above the silkscreened SCL marking. Or the diode to the left of it, or cut the trace to one of them. The Elegoo variety comes with it unpopulated and the CR2032 battery, but unless you want to get one of their kits, you have to order it from their website directly.
@scottmc2626
@scottmc2626 5 жыл бұрын
@@xiaomong8 Damaging the battery is the least of your worries when charging a non-rechargeable Lithium-ion battery. Yes, you may not notice any issues, but the thing about Lithium batteries is they are little bombs. They contain metallic Luthium, which spontaneously combusts when exposed to air. Also the natural internal resistance is very low, so an internal short can develop temperatures high enough to start a fire. Recall all the stories about exploding cell phones, and notice how newer cell phones do not have user replaceable batteries. That's because people were buying cheap no-name replacement batteries and then blaming the phone manufacturers when suddenly their pockets we're on fire. So when the other commenter said it's "safest" to disable the charging circuit, he's referring to fire safety, not just equipment failure.
@xiaomong8
@xiaomong8 2 жыл бұрын
Desolder the diode and the resistor on the 4 pin side of the module.
@senger1985
@senger1985 4 жыл бұрын
Hello, may could you tell me what following error means: 'DS3231 clock' redeclared as different kind of symbol I juse this lib: github.com/jarzebski/Arduino-DS3231
@wchen2340
@wchen2340 2 жыл бұрын
namespace issue. fix : find/replace all "clock" with "cl_ck" or something different.
@squalazzo
@squalazzo 7 жыл бұрын
that module has an I2C 32K eeprom, too...
@learnelectronics
@learnelectronics 7 жыл бұрын
squalazzo yes it does. that's where it does the time and date
@scottmc2626
@scottmc2626 6 жыл бұрын
@@learnelectronics Yes, but 32k is a whole lotta memory to store just the time and date. Wonder if it could be used for other stuff.
@carelx7029
@carelx7029 5 жыл бұрын
Not true, it''s a separate EEPROM. The jumpers A0-2 are for adressing this chip, the clock is not adressable.
@SurajGrewal
@SurajGrewal 6 жыл бұрын
Unfortunately, all of mine, drifts a lot. I know, they are fake, cause, all of them were marked using laser.
@jeanpierredaviau7478
@jeanpierredaviau7478 5 жыл бұрын
All about the DS1307RTC
How to install and use a TFTLCD with Arduino
11:24
learnelectronics
Рет қаралды 28 М.
#192 Wakey, wakey! Let the DS3231 RTC wake up your Arduino - easy!
31:53
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
How to use DS3231 RTC module to build OLED clock
15:34
Mario's Ideas
Рет қаралды 36 М.
Arduino Real Time Clock - Using the Tiny RTC
31:29
DroneBot Workshop
Рет қаралды 205 М.
Make: Electronics Book - Experiment 23 Dice Simulation
18:08
Laurence Scotford
Рет қаралды 226
Using EEPROM with Arduino - Internal & External
31:54
DroneBot Workshop
Рет қаралды 200 М.
Using SD Cards with Arduino - Record Servo Motor Movements
31:53
DroneBot Workshop
Рет қаралды 203 М.
(TR)uSDX - Amazing Features, Small Package
18:09
learnelectronics
Рет қаралды 4,1 М.
#5 Arduino compatible Real Time Clock modules (RTC) - DS1307 & DS3231
12:04
TinySA Ultra Spectrum Analyzer
12:05
learnelectronics
Рет қаралды 4,6 М.
Low Voltage Disconnect LVD Module, How It Works and Application.
7:01
JFR ELECTECHNICAL
Рет қаралды 26 М.