Тёмный

Arduino Real Time Clock - Using the Tiny RTC 

DroneBot Workshop
Подписаться 600 тыс.
Просмотров 200 тыс.
50% 1

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 RU-vid 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!

Хобби

Опубликовано:

 

25 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 191   
@jezebabe
@jezebabe 5 лет назад
Another excellent video Bill. Thank you very much for all of your hard work.
@musaadejoshuaibuopaluwa1712
@musaadejoshuaibuopaluwa1712 5 лет назад
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.
@konturgestalter
@konturgestalter 5 лет назад
your shop is so scarily clean and beautifully arranged.
@SpaceParanoidX
@SpaceParanoidX 4 года назад
There's one screwdriver in the background which is not fitted right, and it's triggering my OCD. ;)
@parallaxggyt
@parallaxggyt 4 года назад
SpaceParanoidX oh god why would you point that out
@dr7615
@dr7615 3 года назад
@@SpaceParanoidX ha ha...
@JerryEricsson
@JerryEricsson 2 года назад
Thanks, always nice to review the basic modules.
@BrettMartin84
@BrettMartin84 4 года назад
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 лет назад
Thanks for another great informative video. I was hoping you were going to finish the video with the addition of a digital readout.
@AztecWarrior69
@AztecWarrior69 4 года назад
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 3 года назад
Love your teachings!! Thank you!!
@AngryRamboShow
@AngryRamboShow 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
@stompreaper
@stompreaper 5 лет назад
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!
@nimasalehi5197
@nimasalehi5197 5 лет назад
I love your style . another great job.
@franciscoj.r.gomezduran8014
@franciscoj.r.gomezduran8014 4 года назад
A very well done teaching video, congratulations.
@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.
@donsuttie3758
@donsuttie3758 3 года назад
Excellent tutorial, thank you.
@djneon12
@djneon12 5 лет назад
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.
@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!).
@sportilight3005
@sportilight3005 5 лет назад
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 . 🤗
@ignaciomora8317
@ignaciomora8317 3 года назад
Bill Thanks FOR EVERYTHING.
@PaulLascari
@PaulLascari 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.
@jaikishan0218
@jaikishan0218 5 лет назад
Thank you for such a detailed video, please give a video on Daisy connections and how to use it with Arduino
@electronic7979
@electronic7979 5 лет назад
Useful video 👍 Thank you
@yashindian4233
@yashindian4233 3 года назад
Excellent videos to learn.!
@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.
@REDACT3D
@REDACT3D 5 лет назад
beauty bud keep up the good work!
@SpeccyMan
@SpeccyMan 5 лет назад
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.
@dismaldunc
@dismaldunc 4 года назад
enjoyed that thanks!
@MrFTW733
@MrFTW733 4 года назад
From gears to circuits. I love engineering.
@PhG1961
@PhG1961 5 лет назад
Excellent !!
@azyfloof
@azyfloof 5 лет назад
This'll be massively helpful in my future projects involving time keeping :D Thanks, Bill!
@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...
@MarcRidders
@MarcRidders 5 лет назад
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 лет назад
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
@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. :)
@nixo0077
@nixo0077 3 года назад
Doskonałe wideo, pozdrawiam
@Inertia888
@Inertia888 5 лет назад
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 лет назад
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.
@perinoveriza1658
@perinoveriza1658 3 года назад
Best teacher 👍👍👍
@paranormalitcresearch
@paranormalitcresearch 3 года назад
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.
@aleks_mag
@aleks_mag 4 года назад
you are incredible
@MikeNewham
@MikeNewham 5 лет назад
Always looking forward to Bill's videos. Keep up the good work !
@alisalam171
@alisalam171 5 лет назад
fantastic
@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
@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!
@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
@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.
@alibehrouz9833
@alibehrouz9833 5 лет назад
great nice job
@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.
@patrickmclaughlin6013
@patrickmclaughlin6013 3 года назад
that led toggle is interesting ^1
@xacompany
@xacompany 5 лет назад
Really enjoy your videos thanks!
@MrHoangphan73
@MrHoangphan73 3 года назад
good... thanks you.
@pilarsurya3831
@pilarsurya3831 2 года назад
Terimakasih atas ilmunya
@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.
@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.
@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.
@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!
@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+.
@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?
@iieenedelectronics1814
@iieenedelectronics1814 4 года назад
Sir your videos are very helpfull..Sir make video on lora module.. plz sir....
@TuttleScott
@TuttleScott 5 лет назад
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 ?
@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.
@cameramensandy
@cameramensandy 5 лет назад
5:50 wire rtc to arduino 6:04 About Library
@1958abc
@1958abc 4 года назад
Thanks alot Sir For your Excellent Work.One Request Please display thenames of Component used Names &Circuit Diagram.With Regards
@matthewward5892
@matthewward5892 5 лет назад
Ace video again
@trueindia808
@trueindia808 3 года назад
Nice information sharing with us. thanks. sir if any have best arduino project for bike?
@DeepCM
@DeepCM 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.
@VideoTiglathIII
@VideoTiglathIII 4 года назад
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.
@RalphWLundvall
@RalphWLundvall 3 года назад
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.
@alfredsivanzire3552
@alfredsivanzire3552 4 года назад
Now you can make a load cell video for us or a gps video.
@isoguy.
@isoguy. 5 лет назад
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 лет назад
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 лет назад
@@typematrix5038 thanks for explanation, greatly appreciated.
@elirhodeestrella5907
@elirhodeestrella5907 5 лет назад
can you make a video about using android phone connected to wifi to control home equipment and appliances??
@sanjaynahata3374
@sanjaynahata3374 5 лет назад
hi Sanjay Here I have one suggestion why dont you move to stm32f103X blue pill or ESP8266(nodemcu)
@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.
@xfran70
@xfran70 3 года назад
19:20 the square wave is 1Hz but because of the software the LED flashes at 1/2 Hz
@paulkirchhof9546
@paulkirchhof9546 3 года назад
What’s about start and stop the RTC-Chip? Is this Bit set by settiing the time?.
@C3lt1cbl00d
@C3lt1cbl00d 4 года назад
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
@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?
@InvertLogic
@InvertLogic 5 лет назад
Very nice! but I think the DS3231 is better and precise than DS1307. what you think
@MrJohnnaz
@MrJohnnaz 5 лет назад
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.
@emmanueltakpal9331
@emmanueltakpal9331 2 года назад
Please lectures on fingerprint module
@raedbishtawy1
@raedbishtawy1 2 года назад
can you please explain what a preamble value means? what is necessary for?
@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?
@Ic3Editz
@Ic3Editz 4 года назад
what kind of battery does it use
@hppatelmaths
@hppatelmaths 4 года назад
How can I turn on a bulb using a simple mobile phones alarm clock .. Please help me in this . Is this possible .
@woodensurfer
@woodensurfer Год назад
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.
@tigrafrog
@tigrafrog 5 лет назад
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 лет назад
@@AngryRamboShow They are actually correct in what they say.
@AngryRamboShow
@AngryRamboShow 5 лет назад
@@SpeccyMan "They?" Who?
@bornach
@bornach 5 лет назад
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 лет назад
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 :)
@sunaydjelali9269
@sunaydjelali9269 Год назад
Hello pls Made video how work whit DS3231 I'm having a lot of trouble with this module
@stevec5000
@stevec5000 11 месяцев назад
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?
@woodensurfer
@woodensurfer Год назад
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
@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.
@dimitriosa8tsipouras953
@dimitriosa8tsipouras953 4 года назад
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).
@marshallwoodson
@marshallwoodson 3 года назад
I get an error when I try to navigate to the article on DroneBot Workshop. Is the article still available?
@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); } }
@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...
@MichaelTaylor-ed8dw
@MichaelTaylor-ed8dw 4 года назад
the link to the article doesn't seem to be working?
@Graham1904
@Graham1904 5 лет назад
Why has this pcb got two ic on it?
@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
@midlandernc7403
@midlandernc7403 10 месяцев назад
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
@feelvlog8458
@feelvlog8458 3 года назад
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?
@jstagzsr
@jstagzsr 4 года назад
That website doesnt work.. and there is no ds13rtc library in the arduino ?manage libraries" tab..
@johnibbertson2960
@johnibbertson2960 2 года назад
bill im new to all this and its baffling , but can you help , ive built a coloured digital clock a cheap chineese job , it works but GAINS TIME about a minute a day , is there a way round this, thanks, john.
Далее
It seems Sonya's choice was obvious! 😅 #cat #cats
00:20
Flo Rida - Whistle НА РУССКОМ 😂🔥
00:29
Просмотров 692 тыс.
How to use DS3231 RTC module to build OLED clock
15:34
Getting started with ESP32 Deep Sleep
13:36
Просмотров 9 тыс.
Forget WiFi! This Wireless Method is WAY Better?
12:14
Просмотров 515 тыс.
Using EEPROM with Arduino - Internal & External
31:54
Просмотров 193 тыс.
Hacking a weird TV censoring device
20:59
Просмотров 3 млн
Using Servo Motors with Arduino
43:06
Просмотров 1,4 млн
Lesson 19 - DS3231 RTC Module
37:46
Просмотров 44 тыс.
СЕРЕГА ЕЛЫ ПАЛЫ СКОНЧАЛСЯ!!!
0:59
20 июля 2024 г.
0:58
Просмотров 3,5 млн
Будни пекаря. Часть 6
0:59
Просмотров 1,2 млн