Learn everything about the DS3231-SN Real Time Clock | Use without Arduino Library
ฝัง
- เผยแพร่เมื่อ 28 เม.ย. 2024
- The DS3231-SN is a very useful and precise Real Time Clock (RTC).
It comes in handy for all your projects in need of accurate timekeeping.
Learn how to use the DS3231 on your Arduino (or any other microcontroller) without the use of extra RTC libraries! This way you can customize as you like and save precious memory on your microcontroller to do other tasks!
A visual representation of the registers with LED's makes it easy to understand how the IC works and how to use it properly.
We look at how to use Bitwise OR operation, Two’s compliment, and much more.
I hope you enjoy the video!
If you use the affiliate links below, you don't pay extra but I may receive a small commission to help my channel grow!
Amazon.com general: amzn.to/3QXBwYP
DS3231-SN: amzn.to/3sx6KN5
DS3231-SN: amzn.to/478YUs4
DS3231-M: amzn.to/49up8ad
Beginners Oscilloscope: amzn.to/49Dfwd2
Arduino Nano: amzn.to/46c7lSk
Arduino Mega: amzn.to/3MEgigf
00:00 - Intro DS3231
02:13 - Temperature-controlled RTC (TCXO)
02:56 - General info
03:46 - What to buy?
04:07 - SN vs M version
05:07 - Rechargeable battery on breakout board
06:05 - Pinout on the DS3231SN
09:00 - Connect to Arduino
09:35 - Coding
10:15 - Time/Date registers setup
12:55 - Binary Coded Decimal (BCD)
15:54 - Bitwise OR in Hours register
19:45 - ALARM
23:01 - Extra Settings
25:09 - Two's Compliment
29:05 - Extra info/tips
GitHub code: github.com/Rudolf-B/DS3231-pr... - วิทยาศาสตร์และเทคโนโลยี
You put a lot of work into this video. Thank you!
Super extra video. I would like to ask for a video of the readings
Nice tutorial
Great video
Keep on 🥰🥰
Excellent content.
I like those. Have a couple of Pico's running MMBasic with a DS3231 attached. The temperature "quarters" in register 18 worries me. The integer number in register 17 gives the full number in Celsius directly. Typing RTC getreg 17,a and print a will give 19 (or whatever) degrees and RTC getreg 18,a and print a gives 64 which could mean 0.75 and it's weird to test, but I got to see another number. If it's 64,32,16 then it's still weird.
Edit: You answered it to be bit 6 and 7 in the end of the video. The code you showed bit moved (>>) down to 0/1/2/3 as a reading and x 0.25, so I figure it out.