Rudolf
Rudolf
  • 4
  • 14 835
Learn everything about the DS3231-SN Real Time Clock | Use without Arduino Library
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-practice/tree/main
มุมมอง: 3 461

วีดีโอ

True Random numbers with the ATECC608B and ESP32
มุมมอง 9568 หลายเดือนก่อน
In this video we use the Microchip ATECC608B cryptographic Co-Processor to generate True Random numbers. This IC has a lot to offer, from Key Storage, Sign, Verify, Key agreement, encrypted communication, Secure Boot, and much more. In this video, we will use the IC to get True Random Numbers. We use a ESP32 to get the random numbers from the IC, and then show the numbers on a PCB with 48 seven...
PID controlled Noctua PWM fan Clock| Learn how to control a PWM fan with an Arduino
มุมมอง 6599 หลายเดือนก่อน
Use a Noctua pc fan to drive a seven-segment clock! In this video, I show a clock whose heartbeat comes from a PID-controlled Noctua fan. It's a Noctua NF-A4x10 5v PWM fan. We use 2 Atmega328p microcontrollers. One 328 to control the fan speed very accurately with PID algorithm and one 328 to drive an OLED screen which shows an RPM gauge and the setpoint of the fan. The seven-segment display is...
Shift Register 74HC595 with and without ATtiny-85 micro-controller | add in-/outputs to your project
มุมมอง 10K10 หลายเดือนก่อน
In this video, you'll learn how to utilize the powerful 74HC595 Shift register! We begin by introducing this integrated circuit (IC) and explaining its functionality. Next, we demonstrate the IC's usage on a breadboard, starting with manual input. Later on, we enhance the setup by incorporating an ATtiny-85 microcontroller to control the IC, enabling us to add unlimited additional inputs and ou...

ความคิดเห็น

  • @unclerojelio6320
    @unclerojelio6320 5 วันที่ผ่านมา

    Let me know when the LFSR video comes out. I’m fascinated by those things.

  • @prebengranberg2971
    @prebengranberg2971 11 วันที่ผ่านมา

    Great interesting video, well done, understandable 😊 You write at 11:30 inside the video that you want to give an example of setting DS3231 to: 11:23:47 PM October 2023 as well as alarm-1: 11:50:00 pm 28th each month, but without github the code, can I get it from you, you are really good at packaging the code to a minimum, thanks

  • @starasowa320
    @starasowa320 19 วันที่ผ่านมา

    Super extra video. I would like to ask for a video of the readings

  • @elektron2kim666
    @elektron2kim666 3 หลายเดือนก่อน

    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.

  • @GregCoonrod
    @GregCoonrod 5 หลายเดือนก่อน

    You put a lot of work into this video. Thank you!

  • @alielectronics17
    @alielectronics17 5 หลายเดือนก่อน

    Nice tutorial

  • @elsayedayman7003
    @elsayedayman7003 5 หลายเดือนก่อน

    Great video Keep on 🥰🥰

  • @ganeshsharma24894
    @ganeshsharma24894 6 หลายเดือนก่อน

    Excellent content.

  • @Bigtbone205
    @Bigtbone205 6 หลายเดือนก่อน

    Or you can use Intel's built in true random number generator on chip without going to an external device. See RDRand library

  • @iot-software-developer
    @iot-software-developer 6 หลายเดือนก่อน

    Nice! Playing with the ATECC608 now

    • @Rudolf-B
      @Rudolf-B 6 หลายเดือนก่อน

      It's such a cool little IC! Almost everyone who sees it on my desk becomes hypnotized for a minute😀

    • @iot-software-developer
      @iot-software-developer 6 หลายเดือนก่อน

      @@Rudolf-Bwhere did you found the actual API for the IC? Are you using “Trust Platform” for code examples ?

  • @cbs1710
    @cbs1710 7 หลายเดือนก่อน

    Don't use clickbait-face thumbnails.

  • @garymucher4082
    @garymucher4082 7 หลายเดือนก่อน

    Oh yes, the older 7400 series of Chips were fun to build things with. Bread board them and you can make most anything you can dream up! Thumbs Up!

  • @paulmeynell8866
    @paulmeynell8866 8 หลายเดือนก่อน

    I wanted to understand this but too little explanation. No idea what was going on with the at tiny or how it was controlling the inputs. 🥲

    • @Rudolf-B
      @Rudolf-B 8 หลายเดือนก่อน

      Thank you for the feedback. I see what you mean, and I should have gone more in-depth with the explanation of the code for the ATtiny. There will be more projects coming featuring the ATtiny85. In the meantime, if you have specific questions about this project, please let them know. Thanks.

  • @ChrisAthanas
    @ChrisAthanas 8 หลายเดือนก่อน

    Music is distracting and not useful after the intro

    • @Rudolf-B
      @Rudolf-B 8 หลายเดือนก่อน

      Thanks for the feedback! After rewatching, I do agree and will do it differently in my upcoming videos.

  • @hidoHido-vm4en
    @hidoHido-vm4en 8 หลายเดือนก่อน

    i try to random using one 7 segment drive by 8-bit shift register using Micro-Python but i got LEDs on off randomly some times it give me a character or a number some times only some randomly light, i use this code on Raspberry Pi Pico: from machine import Pin import random import utime pin_D = Pin(3, Pin.OUT) # Data pin_5 pin_STR = Pin(4, Pin.OUT) # Strob pin_6 pin_CP = Pin(5, Pin.OUT) # Clock_Pulse Pin_7 Pause = 0.25 def CLOCK_Pulse(): utime.sleep(Pause) pin_CP.value(1) utime.sleep(Pause) pin_CP.value(0) utime.sleep(Pause) pin_CP.value(1) utime.sleep(Pause) pin_CP.value(0) def RELOAD(): print("Ready, Set, Go!") bit_data = random.randint(0, 1) CLOCK_Pulse() pin_D.value(bit_data) utime.sleep(Pause) pin_STR.value(1) print(str(bit_data)) pin_STR.value(0) utime.sleep(Pause) while True: RELOAD()

  • @santiagosalinasuy
    @santiagosalinasuy 8 หลายเดือนก่อน

    Very cool

  • @LikerPic
    @LikerPic 8 หลายเดือนก่อน

    Thanks! It's useful!

  • @HanWechgelaer
    @HanWechgelaer 8 หลายเดือนก่อน

    Nice project! are the PCB gerber files available ?

    • @Rudolf-B
      @Rudolf-B 8 หลายเดือนก่อน

      Thanks! I added a download link for the Gerber files in the description.

  • @dimitribeshkov706
    @dimitribeshkov706 9 หลายเดือนก่อน

    Great stuff here. Keep it up.

  • @luzookiipcbway
    @luzookiipcbway 9 หลายเดือนก่อน

    Heyy there. We found your videos so rewarding, and were wondering if any prototype services may help? Such as custom PCBs, 3DP, CNC etc. If so, would love to supply freely and reach any YT collab together! (PCBWay luz)

  • @isaacclark9825
    @isaacclark9825 9 หลายเดือนก่อน

    One cannot help but notice that there is a precise time standard on board that could easily be used instead of the Rube Goldberg method of using the real-time clock to measure motor speed, so that you can try to regulate an inherently unstable source of rotation. The microcontrollers also have their own precision oscillators. Okay. I am being silly. Learning about PID is the goal here. Nice lesson

    • @Rudolf-B
      @Rudolf-B 9 หลายเดือนก่อน

      You caught me red-handed with my Rube Goldberg motor speed measurement technique! 😄 It is a little silly device. But it is the feeling and thought that there is so much action going on to just display the time that makes it oddly satisfying to watch while playing around with the fan speed and watching it recover! And for the RTC, I just wanted to give him a chance to shine and feel important!🏆 More crazy (but useful) PCB’s are on the way! Thanks for watching!

  • @MsFireboy2
    @MsFireboy2 9 หลายเดือนก่อน

    Thanks for posting.

  • @CallousCoder
    @CallousCoder 9 หลายเดือนก่อน

    Coal miner English ;) You must be Dutch :D Hoi hallo!

  • @davydbar
    @davydbar 9 หลายเดือนก่อน

    Excelente! una buena manera de sacar provecho al ATtiny

  • @mlann2333
    @mlann2333 10 หลายเดือนก่อน

    Really neat !