Arduino Real Time Clock - Using the Tiny RTC

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 เม.ย. 2024
  • Today we will add a Real-Time Clock to an Arduino. I’ll show you how the Tiny RTC is hooked up and how to use two ways, including with interrupts. We will also construct a temperature and humidity clock.
    Full article at dronebotworkshop.com/real-tim...
    More articles and tutorials: dronebotworkshop.com
    Join the conversation on the forum: forum.dronebotworkshop.com
    Subscribe to the newsletter and stay in touch: dronebotworkshop.com/subscribe/
    The Arduino is a very versatile platform with many features, however, one thing it cannot do is tell the time. In order to do that you will need a real-time clock module.
    A real-time clock is essentially a digital clock that you can interface with a computer or microcontroller. The module we are going to use is the popular Tiny RTC, which interfaces with the Arduino using the I2C bus.
    The Tiny RTC is based upon the DS1307 real-time clock chip. This chip provides readings of the second, minute, hour, day, day of the week, month, and year. It adjusts for leap years and has a battery backup. And its available from several sources and it is very inexpensive.
    I’ll show you how to hook up the Tiny RTC and how to set and read the time. We will then look at a more advanced method of using the Tiny RTC, using interrupts.
    Here is the Table of Contents for today's video:
    00:00 - Introduction
    02:19 - Tiny RTC Module
    05:15 - Hooking it up
    06:03 - Setting the Time
    09:43 - Reading the Time
    12:30 - Creating Interrupts
    19:58 - RTC with Temperature and Humidity
    As always there is an article on the DroneBot Workshop website with all of the code you’ll need to duplicate these experiments. You’ll find it at dbws/tinyrtc
    While you are on the website please subscribe to the DroneBot Workshop newsletter. It’s my way of keeping in touch with you to let you know what projects I’m working on.
    And please subscribe to the TH-cam channel if you haven’t already. That way you won’t miss out on any of the videos.
    Thanks and I hope you enjoy the video!
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 191

  • @konturgestalter
    @konturgestalter 5 ปีที่แล้ว +24

    your shop is so scarily clean and beautifully arranged.

    • @SpaceParanoidX
      @SpaceParanoidX 3 ปีที่แล้ว +1

      There's one screwdriver in the background which is not fitted right, and it's triggering my OCD. ;)

    • @parallaxggyt
      @parallaxggyt 3 ปีที่แล้ว +2

      SpaceParanoidX oh god why would you point that out

    • @dr7615
      @dr7615 3 ปีที่แล้ว

      @@SpaceParanoidX ha ha...

  • @jezebabe
    @jezebabe 5 ปีที่แล้ว +7

    Another excellent video Bill. Thank you very much for all of your hard work.

  • @musaadejoshuaibuopaluwa1712
    @musaadejoshuaibuopaluwa1712 5 ปีที่แล้ว +4

    I am a fan of this channel.
    I have always watched your videos.
    Keep up these good works of yours.
    I shall be looking forward to the day you will make a video on Arduino/GSM modules.
    Thank you now and always.

  • @BrettMartin84
    @BrettMartin84 3 ปีที่แล้ว

    Thanks for sharing this clever way to use an RTC to update the clock. I knew there must be a simpler and more accurate way to get the time from my RTC.

  • @gwmoon8596
    @gwmoon8596 5 ปีที่แล้ว +3

    Thanks for another great informative video. I was hoping you were going to finish the video with the addition of a digital readout.

  • @JerryEricsson
    @JerryEricsson 2 ปีที่แล้ว

    Thanks, always nice to review the basic modules.

  • @rodnussbaumer2398
    @rodnussbaumer2398 4 ปีที่แล้ว

    Very nicely produced and easy to follow along with clear explanation and good pace. One nit that jumped out at me is the misuse of the term accuracy, where you really meant precision. The*precision* of the RTC is 1 second. As others have noted, the *accuracy* is off for two reasons. The time & date used to set the clock will have a slight skew due to the lag between running the clock-setter and the compile time. Also, many people seem to find the accuracy of the clock frequency is poor, resulting in increasing differences between date & time of the RTC & and actual time and date. I immediately wondered whether the is some way to trim the frequency of the crystal to achieve better accuracy.

  • @stompreaper
    @stompreaper 5 ปีที่แล้ว +4

    I really like how you introduced the module and the developed the ideas in this video. It was a good progression from module to project. I'm looking forward to the robot series.
    I do like the two camera set up for seeing the projects on the bench or when you showing a module or part. I'm not a fan of the look left look right camera switching for the explanations/narration. It's quite jarring and doesn't feel like it adds to the presentation. I can see what you are going for with respect to keeping interest in the visuals but I think some editing cutting with stills or change of framing would work better than seeing you physically turn to look from one camera to the other with no obvious purpose.
    Keep up the great videos!

  • @AztecWarrior69
    @AztecWarrior69 4 ปีที่แล้ว +2

    Thank you very much for this. It saved me (some time). LOL I did have trouble since I have a DS3231 and not a DS1307. It kept putting the seconds 8 seconds behind. I ended up having to add 8 seconds to the time when it retrieved the time from the PC. Thanks again!

  • @harryohanson
    @harryohanson 2 ปีที่แล้ว

    Love your teachings!! Thank you!!

  • @franciscoj.r.gomezduran8014
    @franciscoj.r.gomezduran8014 4 ปีที่แล้ว

    A very well done teaching video, congratulations.

  • @acadman4322
    @acadman4322 5 ปีที่แล้ว

    Most of these 'micro-puter-ese' videos put me to sleep- but not yours. You have such good structure and flow, it moves me right along. Great job, Bill- as usual. I do not know how you find the time (Pun on purpose!).

  • @AngryRamboShow
    @AngryRamboShow 5 ปีที่แล้ว +5

    I always can make time for DroneBot Workshop. Thanks again teacher.

  • @rogersfigueira
    @rogersfigueira 5 ปีที่แล้ว

    Thank you very much for all of your hard work

  • @nimasalehi5197
    @nimasalehi5197 5 ปีที่แล้ว

    I love your style . another great job.

  • @MrFTW733
    @MrFTW733 4 ปีที่แล้ว

    From gears to circuits.
    I love engineering.

  • @jaikishan0218
    @jaikishan0218 5 ปีที่แล้ว

    Thank you for such a detailed video, please give a video on Daisy connections and how to use it with Arduino

  • @donsuttie3758
    @donsuttie3758 3 ปีที่แล้ว

    Excellent tutorial, thank you.

  • @ignaciomora8317
    @ignaciomora8317 3 ปีที่แล้ว

    Bill Thanks FOR EVERYTHING.

  • @samuelsungstabtu7527
    @samuelsungstabtu7527 3 ปีที่แล้ว

    I love the way the info presentation flows. Pretty structured and informative. So I've to visit your website for more static info on this topic. However, I found on the website (similar to this video) the description for the DS pin on the TinyRTC module "DS - Device Select, this allows you to enable or disable the device.". I did more research online and found that DS was actually meant for the temperature readout from the DS18B20 tempearture sensing module that can be optionally soldered to the board next to the battery (if its not already there). And it is also recommended to have a pullup resistor to the DS pin conenction when in use.

    • @samuelsungstabtu7527
      @samuelsungstabtu7527 3 ปีที่แล้ว

      The DS18B20 temperature sensor is independent of the DS1307 RTC hardware on the board. The only shared resources between the two are the VCC and GND rails on the TinyRTC board...

  • @davibrasil1576
    @davibrasil1576 5 ปีที่แล้ว

    It would be really interesting if you made a voice recorder with arduino for house automation, if you say “turn lights on” the arduino reads it and the relay activates the light bulb. Great videos by the away, I’m a really big fan.

  • @djneon12
    @djneon12 5 ปีที่แล้ว +7

    the DS signal is a 1-wire signal used for the DS18B20 temperatuur sensor that you can add to the board and is not a device select!
    here is the schematic: www.fabtolab.com/image/data/Accessories/RTC/DS1307ckt.jpg
    and if you use a CR2032 (non rechargeble battery) you need to change some stuff because those boards are designed to use a LIR2032 (rechargeable battery).
    to do this remove R5, D1, R4 and R6. then wire a jumper on R6. other wise you try to charge a non chargeabe battery and that is going to kill the battery.

  • @PaulLascari
    @PaulLascari 5 ปีที่แล้ว +5

    Great video... my only comment is be careful of the difference between "accuracy" and "resolution". The clock may be resolute to a second, but it's accuracy (how much it may drift) may be better or worse after some period of time.

  • @electronic7979
    @electronic7979 5 ปีที่แล้ว

    Useful video 👍 Thank you

  • @TheJPhotos
    @TheJPhotos 5 ปีที่แล้ว

    Nice one! Plz make a video showing how to use gps and sim card modules. There are not many good videos on how to make an alram/tracking device that updates you with sms. Also, your new project building a real robot is very interesting. Looking forward to it. :)

  • @yashindian4233
    @yashindian4233 3 ปีที่แล้ว

    Excellent videos to learn.!

  • @REDACT3D
    @REDACT3D 5 ปีที่แล้ว

    beauty bud keep up the good work!

  • @dismaldunc
    @dismaldunc 4 ปีที่แล้ว

    enjoyed that thanks!

  • @SpeccyMan
    @SpeccyMan 5 ปีที่แล้ว +6

    One small but important point regarding your LED blink on interrupt code. It is not a very good idea to use digitalWrite within an interrupt service routine because it is very slow and, as you rightly pointed out, the routine should execute as quickly as possible. It is much better to use direct port manipulation (in this case PORTB bit 5) to flip the LED state.

  • @sportilight3005
    @sportilight3005 5 ปีที่แล้ว +17

    Awesome tutorial on Using the Tiny RTC
    thanks teacher...
    will really appreciate it if you could do a tutorial on how to Setup interrupt from RTC DS3231. In such a way that at a particular time specified. RTC will put my arduino to sleep mode and also at a specified time it will wake it up....USING RTC DS3231 module.
    thanks so much Sir, I really appreciate you and celebrate you.
    HEZEKIAH 4rm 🇳🇬🇳🇬🇳🇬NIGERIA . 🤗

  • @Inertia888
    @Inertia888 4 ปีที่แล้ว +1

    There is also a 16 pin "DS3231SN" RTC. This is the first I have heard of the DS1307 Tiny, but it sounds like they both do the same. Unfortunately I don't have the pinout in front of me or I would share.
    Pretty cool little chips.

    • @3maisons
      @3maisons 4 ปีที่แล้ว

      The DS1307 has no alarm function built in and no temperature built in; the DS3231 has two built-in alarms, and can be programmed to interrupt when the clock time matches the alarm time in seconds, or minutes and seconds, or hours minutes and seconds, or days hours minutes and seconds, etc. The DS3231 also has an on-chip thermometer. (I bought the DS1307, and was disappointed that I could not interrupt once per hour.)

  • @KenHeinrich
    @KenHeinrich 5 ปีที่แล้ว +1

    One other thing you could do with this project is monitor the rtc backup battery and alarm if it is low so the user knows when to change it.

  • @MarcRidders
    @MarcRidders 5 ปีที่แล้ว +15

    You might want to use the qualifier "volatile" for the variable ticks, so the declaration should read "volatile int ticks= 0;". This is a compiler directive which results in code that reads the value of ticks from RAM instead of from a register in order to avoid conflicts when using concurrent processes and/or interrupts with global variables.

    • @stefanmoser4348
      @stefanmoser4348 5 ปีที่แล้ว +3

      this also I wanted to suggest, but you were quicker :-)
      when the values of variables are changed in interrupt service routines (ISRs), they have to be defined 'volatile', otherwise they could behave oddly

  • @dave_dennis
    @dave_dennis 2 ปีที่แล้ว

    I noticed that as the serial monitor was listing out the time, temp, humidity that occasionally there were would be two consecutive time displays with exactly the same reading in the seconds place. I thought this would update the display once per 1 Hz tick, so I don't follow how you could ever have a duplicate time displayed. What am I missing?
    Thanks! I love your style. It is so very easy to follow.

  • @patrickmclaughlin6013
    @patrickmclaughlin6013 3 ปีที่แล้ว

    that led toggle is interesting ^1

  • @PhG1961
    @PhG1961 5 ปีที่แล้ว

    Excellent !!

  • @falabimayode250
    @falabimayode250 5 ปีที่แล้ว

    Great video!
    I saw a video you used rf 433 module to send data
    I am currently stuck trying to use it to send data from an accelerometer to a dc motor, can you help with that

  • @perinoveriza1658
    @perinoveriza1658 3 ปีที่แล้ว

    Best teacher 👍👍👍

  • @LeonardoPJ
    @LeonardoPJ ปีที่แล้ว

    Very good video, i was need know to make interrupt with RTC, thanks. But the pin DS i think that is for temperature sensor, and not for device select, i also verified in datasheet.

  • @dsarkrise
    @dsarkrise 5 ปีที่แล้ว

    It would be really nice if you could make a detailed video of MPU9250 and ESP8266 for making a pedometer. I am really looking forward to this!

  • @alisalam171
    @alisalam171 5 ปีที่แล้ว

    fantastic

  • @aleks_mag
    @aleks_mag 4 ปีที่แล้ว

    you are incredible

  • @manofmesopotamia7602
    @manofmesopotamia7602 3 ปีที่แล้ว

    I believe this module is suitable for projects that deals with calendar, such as smart irrigation system in agriculture, or deals with time such as smart home 🏠 light

  • @nixo0077
    @nixo0077 2 ปีที่แล้ว

    Doskonałe wideo, pozdrawiam

  • @paranormalitcresearch
    @paranormalitcresearch 3 ปีที่แล้ว +2

    Module’s Hidden Feature - DS18B20
    There’s a provision on our DS1307 RTC module that often goes unnoticed. It allows us to install DS18B20 temperature sensor.
    The 3 holes in the top corner right next to the battery holder(labled as U1) is where the DS18B20 is installed.
    Once you install the DS18B20, you will be able to get temperature readings from DS pin. These readings can further be used to compensate for temperature based time drift in code.
    So there is no need to install a Temp Sensor, since its already at the Tiny RTC / DS1307.

  • @tookitogo
    @tookitogo 4 ปีที่แล้ว

    I completely agree with the other commenters who say to use the DS3231 instead. (Especially the DS3231SN, which is the quartz crystal version, rather than the DS3231M, which uses a less accurate MEMS oscillator.) The DS1307 can be so inaccurate that it's just not worth the effort. I've gotten some clock kits based on the 1307 that were so bad they literally were useless (a clock that loses or gains several minutes per day is simply not usable). The DS3231 is superb.

  • @omgurudev0
    @omgurudev0 2 ปีที่แล้ว

    Hello Guru, I have recently subscribed to DroneBot Workshop and like your way of teaching with detailed explanations and have become your fan. I request you if possible to append this video for interfacing this with 6 nos 8x8 Matrix Display in configuration as Digital clock display. Although you did mention that there are cheap Digital clocks available. If you have this on your website please do inform.

  • @azayles
    @azayles 5 ปีที่แล้ว +1

    This'll be massively helpful in my future projects involving time keeping :D
    Thanks, Bill!

  • @alibehrouz9833
    @alibehrouz9833 5 ปีที่แล้ว

    great nice job

  • @chiavenato1
    @chiavenato1 5 ปีที่แล้ว

    Hi Bill, Great lesson! I´m anesthesiologist and became very interest in arduino. Im trying to build an apparatus very similar to this one but instead an AM2320 i was trying to use a BMP280, to obtain de atmospheric pressure (it´s important to calibrate some capnographers! It will be very useful to me!), watched some videos and at the end i fried my sensor! Can you help me? Best regards from Brazil!

  • @pilarsurya3831
    @pilarsurya3831 2 ปีที่แล้ว

    Terimakasih atas ilmunya

  • @MrHoangphan73
    @MrHoangphan73 3 ปีที่แล้ว

    good... thanks you.

  • @cameramensandy
    @cameramensandy 4 ปีที่แล้ว +1

    5:50 wire rtc to arduino
    6:04 About Library

  • @trueindia808
    @trueindia808 3 ปีที่แล้ว

    Nice information sharing with us. thanks. sir if any have best arduino project for bike?

  • @iieenedelectronics1814
    @iieenedelectronics1814 3 ปีที่แล้ว

    Sir your videos are very helpfull..Sir make video on lora module.. plz sir....

  • @jeffmerlin2580
    @jeffmerlin2580 5 ปีที่แล้ว

    Wouldn't the output on pin 13 be half the frequency of the input as the interrupt is triggered on one flank only?

  • @christiaan2500123
    @christiaan2500123 4 ปีที่แล้ว

    Hello DroneBot Workshop
    I followed the tutorial with my arduino mega 2560 up to the point where the external LED pin would trigger on each falling edge of the RTC. Unfortunately the LED just stays on, either staying high all the time or the frequency is too high to detect the blinking. The code that was used is identical to yours.
    Any tips or suggestions will be appreciated.
    Thank you.

  • @robertb2350
    @robertb2350 4 ปีที่แล้ว

    Like other videos from this channel, the constant change in camera angles during discussion is VERY painful to watch. I would suggest using camera 1 for intro and conclusion while using camera 2 for all other discussions on the subject at hand. As far as the information being discussed, I give it an A+.

  • @EvileDik
    @EvileDik 4 ปีที่แล้ว

    Kind of tangentially related, but a lot of people are using now ESP32/ESP8266 based 'Arduinos', as they are much more powerful and have WiFi/Bluetooth, and are generally cheaper.
    Obviously with the WiFi connection is the possibility to use NTP (network time protocol) to get the accurate time from a time server, the ESP even has functions built into it's ROM for registering which time server you want to use, so require almost no code to set up.

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

    My tiny rtc module with eeprom only shows the i2c address for the eeprom 0x50 and so application can't see the RTC at 0x68

  • @123ABC20
    @123ABC20 4 ปีที่แล้ว

    Thanks alot Sir For your Excellent Work.One Request Please display thenames of Component used Names &Circuit Diagram.With Regards

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

    How do you ever get those RTC modules to work? I got 6 of them from Amazon and can't get any of them to work since the 32 KHz crystal doesn't oscillate and the ds1307 doesn't do anything! The Ground pin was not even connected on the pc board but jumping a wire to the neg. on the board didn't help, although it's getting power now it still doesn't do anything. I tried replacing the crystal on one of them but that didn't make any difference. I wonder if they were all made with counterfeit clock chips or what is going on with them?

  • @emmanueltakpal9331
    @emmanueltakpal9331 ปีที่แล้ว

    Please lectures on fingerprint module

  • @andywylie287
    @andywylie287 2 ปีที่แล้ว

    Excellent vid! This might be a strange question but I cant seem to be able to follow the links you provided for your website. Has something changed or is it me?

  • @RalphWLundvall
    @RalphWLundvall 2 ปีที่แล้ว

    Airports update their barometric pressure reading hourly at my nearby Paine Field Everett WA. I log my BME280 the same. Humidity readings more often are unneeded.

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

    It seems that assigning the square wave to pin 2 or 3 of the Uno comes with the disadvantage that it is an interrupt. The controller stops when the wave is down.
    Why not assigning to a non-interrupt digital input pin and then check for change of state (of the square wave)? This would avoid interrupting the controller.
    Also, do the statuses of the I/O change to zeros (off) during an interrupt, or are they frozen (maintained) during an interrupt? Thanks

  • @TuttleScott
    @TuttleScott 5 ปีที่แล้ว +1

    thing that confused me a lot when I first started using an RTC was that the compiler hard codes the time into your clock set program and you have to recompile and upload asap to have the current time.

    • @hafizamrahman2163
      @hafizamrahman2163 4 ปีที่แล้ว

      how you set your time using your currency/place/country ?

  • @s.u.5285
    @s.u.5285 4 ปีที่แล้ว

    Just something I read on google about DS1307. "The main difference between the DS3231 and DS1370 is the accuracy of time-keeping. DS1307 comes with an external 32kHz crystal for time-keeping whose oscillation frequency is easily affected by external temperature. This usually results with the clock being off by around five or so minutes per month." so maybe the DS3231 is better.

  • @isoguy.
    @isoguy. 5 ปีที่แล้ว +1

    Ive seen a few I2C projects that need a resistor on the dataline to ground, is this required for this project?
    Great vid, thanks for sharing.

    • @typematrix5038
      @typematrix5038 5 ปีที่แล้ว +2

      If you have multiple devices , interference or your I2C nodes are a long distance from each other you may need pull-up resistors.

    • @isoguy.
      @isoguy. 5 ปีที่แล้ว +1

      @@typematrix5038 thanks for explanation, greatly appreciated.

  • @MikeNewham
    @MikeNewham 5 ปีที่แล้ว

    Always looking forward to Bill's videos. Keep up the good work !

  • @bazrazin1
    @bazrazin1 2 ปีที่แล้ว

    i made a raw ds1302(found from another ready clock) dot pcb module & connected the crystal & backup batterym wired it to A4 & A5, nothing is showing on serial monitor, using nano, do i have to use pull up resistors & what to do with the CE pin.

  • @sanjaynahata3374
    @sanjaynahata3374 5 ปีที่แล้ว

    hi Sanjay Here I have one suggestion why dont you move to stm32f103X blue pill or ESP8266(nodemcu)

  • @xfran70
    @xfran70 3 ปีที่แล้ว

    19:20 the square wave is 1Hz but because of the software the LED flashes at 1/2 Hz

  • @VideoTiglathIII
    @VideoTiglathIII 4 ปีที่แล้ว +1

    Hi Bill, Great video and very informative. Unfortunately I could not download the associated code files for the interrupt example, so I copied the code from the video. I could not get the LED to flash from that code until I noticed that the command Wire.begin() was missing from the setup() function. If you put this in right after the call to Serial.begin(9600) it all magically works.

    • @mikze123
      @mikze123 4 ปีที่แล้ว

      Thanks! I had same problem.

  • @raedbishtawy1
    @raedbishtawy1 ปีที่แล้ว

    can you please explain what a preamble value means? what is necessary for?

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

    Can the square wave pin of one RTC be tied to two Arduino controllers by wires, e.g. one Uno and one Nano? For me, only the Uno needs the real time; the nano needs only the square wave digital input.

  • @elirhodeestrella5907
    @elirhodeestrella5907 5 ปีที่แล้ว

    can you make a video about using android phone connected to wifi to control home equipment and appliances??

  • @alfredsivanzire3552
    @alfredsivanzire3552 4 ปีที่แล้ว

    Now you can make a load cell video for us or a gps video.

  • @artemyevtushenko8722
    @artemyevtushenko8722 3 ปีที่แล้ว

    Unfortunately, the links in the description aren't working!
    (Great video as always)

    • @mohammedyasarshaikh4501
      @mohammedyasarshaikh4501 3 ปีที่แล้ว

      yes,
      This site can’t be reached
      Check if there is a typo in dbws.
      If spelling is correct, try running Windows Network Diagnostics.
      DNS_PROBE_FINISHED_NXDOMAIN

  • @joeydelmarsjr.646
    @joeydelmarsjr.646 2 ปีที่แล้ว

    i have a MSM9004-02 in my car that is severed from the stock radio, so it doesnt work. Can i some how make it into a stand alone clock? I have located the pin out of the chip to 10pin connector vcc 5v and LCD voltage, rest, load, clock, and ground. what do i need to make it work independently?

  • @C3lt1cbl00d
    @C3lt1cbl00d 3 ปีที่แล้ว

    Cool and simply video... but can you tell me How to programming a alarm time . I wish to use a ESP8266, with a relai to switch on /off the current wo will start and stop a radio. Have allready buy a DS3231 to have anytime the right time but don t find a solution to programming the alarm time . Can you help me please ? thanks in forwards

  • @matthewward5892
    @matthewward5892 5 ปีที่แล้ว

    Ace video again

  • @paulkirchhof9546
    @paulkirchhof9546 3 ปีที่แล้ว

    What’s about start and stop the RTC-Chip? Is this Bit set by settiing the time?.

  • @InvertLogic
    @InvertLogic 5 ปีที่แล้ว +3

    Very nice! but I think the DS3231 is better and precise than DS1307. what you think

    • @MrJohnnaz
      @MrJohnnaz 5 ปีที่แล้ว +3

      3231 is far more accurate. You can also solder it directly to some of the Arduino clones as they have an additional
      header that just happens to align with the pins on the 3231 RTC. I had a 3231 running for over 2 years, have not had to adjust the time yet.

    • @binarybox.binarybox
      @binarybox.binarybox 5 ปีที่แล้ว

      Always well made videos. The DS1307 is a great intro to I2C use but for accuracy, the DS3231 is a lot better. I have built both.

  • @sunaydjelali9269
    @sunaydjelali9269 ปีที่แล้ว

    Hello pls Made video how work whit DS3231 I'm having a lot of trouble with this module

  • @mohammedyasarshaikh4501
    @mohammedyasarshaikh4501 3 ปีที่แล้ว

    For full article there is an error,
    This site can’t be reached
    Check if there is a typo in dbws.
    If spelling is correct, try running Windows Network Diagnostics.
    DNS_PROBE_FINISHED_NXDOMAIN

  • @xacompany
    @xacompany 5 ปีที่แล้ว

    Really enjoy your videos thanks!

  • @IceSliceVR
    @IceSliceVR 4 ปีที่แล้ว

    what kind of battery does it use

  • @marshallwoodson
    @marshallwoodson 2 ปีที่แล้ว

    I get an error when I try to navigate to the article on DroneBot Workshop. Is the article still available?

  • @hppatelmaths
    @hppatelmaths 3 ปีที่แล้ว

    How can I turn on a bulb using a simple mobile phones alarm clock ..
    Please help me in this .
    Is this possible .

  • @MichaelTaylor-ed8dw
    @MichaelTaylor-ed8dw 4 ปีที่แล้ว

    the link to the article doesn't seem to be working?

  • @Yash-Gaikwad
    @Yash-Gaikwad ปีที่แล้ว

    I am trying to make a pet feeder. I am looking into clock modules which would run on low power like cmos cell or aaa battery, and not required to have a microcontroller attach or running . I found out clock modules like ds3231etc runs on cmos cell for months. But I realized it can only trigger two alarm daily. Is there any other module with at least around 6-10 alarms capability daily or any way to increase alarms capability of ds3231. So that I can amplify the alarm signal and use it trigger motor or servo that will dispense the treat/food. I was unsuccessful in finding such module, I also tried to find cheap circuit board of a commercial pet feeders on amazon. Still nothing.
    Thanks in advance.

  • @MD4564
    @MD4564 5 ปีที่แล้ว

    Awesome, but an we use Arduino Nano ?

    • @stefanmoser4348
      @stefanmoser4348 5 ปีที่แล้ว

      hi MD4564,
      if you mean 'can we use...' I can assure you: Yes, we can :-)

  • @tigrafrog
    @tigrafrog 5 ปีที่แล้ว +9

    1. DS pin is for ds18b20 -- there is a place for it for battery holder side.
    2. You ABSOLUTELY MUST modify module for using standard non-rechargable battery. This module will try to re-charge battery and will damage it. Not safe.
    Use modules based on DS3231N -- much more stable, not required any modifications, allows to change I2C address, and have additional functionality. A bit more expensive, but much better overall.
    You also never mention that module have EEPROM as well.
    Please research modules and their issues more carefully, can be lots of traps like that.

    • @AngryRamboShow
      @AngryRamboShow 5 ปีที่แล้ว

      Wax on, wax off? That's a disaster. You should know better than trying to school the master.

    • @SpeccyMan
      @SpeccyMan 5 ปีที่แล้ว +1

      @@AngryRamboShow They are actually correct in what they say.

    • @AngryRamboShow
      @AngryRamboShow 5 ปีที่แล้ว

      @@SpeccyMan "They?" Who?

    • @bornach
      @bornach 5 ปีที่แล้ว +2

      This module was intended to be used with an LIR2032 and not a CR2032. Martyn Davies channel shows which components to desolder in order to use a non-rechargeable battery.
      There's another cheap RTC module using a DS3231 and it also has the same issue of being wired to recharge an LIR2032 so will also require modification to swap in a CR2032

    • @techi602
      @techi602 5 ปีที่แล้ว +3

      I have to agree. I used DS1307 and it skipped 3 days! within a one year :) DS3231N can measure temperature therefore adjust crystal frequency based on temperature. You can measure temperature from the sensor as well :)

  • @shashankbagda6970
    @shashankbagda6970 3 ปีที่แล้ว

    How can i add 12c screen or 16×2 lcd with arduino and tiny rtc... Please share me pinout and code for that...

  • @dimitriosa8tsipouras953
    @dimitriosa8tsipouras953 4 ปีที่แล้ว +1

    When i use i2c scan i found 2 adress 0x50 and 0x68, from the library they use the 0x68.
    Did anyone know what the use of 0x50 adress?

    • @oqibidipo
      @oqibidipo 3 ปีที่แล้ว

      The module has a 24C32N EEPROM chip (4 kilobytes).

  • @neilausten9404
    @neilausten9404 5 ปีที่แล้ว +1

    The link to the full article doesn't seem to be working.

    • @mnsenocak
      @mnsenocak 4 ปีที่แล้ว

      dbot.ws/tinyrtc is the correct address, I think the author made a typo :-)

  • @pareshmhatre4019
    @pareshmhatre4019 2 ปีที่แล้ว

    what should one do for 12 hour format setting?

    • @pareshmhatre4019
      @pareshmhatre4019 2 ปีที่แล้ว

      I found a little piece of code for 12 hour format
      void ampm(int Hour){ //ampm function takes the hour value 0-23
      if(Hour==0){ //if it's 0 it becomes 12
      Hour=12;
      a=true; //true if it's am, false otherwise
      lcd.print(Hour);
      }
      else if(Hour>0 && Hour12){
      Hour=Hour-12; //substract 12 to bring it back to 1,2,3,...
      a=false;
      lcd.print(Hour);
      }
      }

  • @feelvlog8458
    @feelvlog8458 2 ปีที่แล้ว

    What is the use of this module on Arduino

  • @LEO-xo9cz
    @LEO-xo9cz 4 ปีที่แล้ว

    Next trick how do I connect a home made led clock to it?