Тёмный

Building a Digital Clock with Arduino Uno Rev4 WiFi's RTC and LED Matrix 

Mario's Ideas
Подписаться 13 тыс.
Просмотров 14 тыс.
50% 1

Join this channel to get access to perks:
/ @marios_ideas
In this video I will look at the built-in RTC module. I will show you how to use it.
I will attept to create the digital clock using built-in RTC module and built-in LED matrix.
Link to the code:
www.hackster.i...

Наука

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

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 59   
@californiakayaker
@californiakayaker 9 месяцев назад
This is the second project I've seen using the R4 . The first one showed access to I believe Wifi with a phone. This one shows more, such as RTC use. Little by little people are doing projects. Each one adds a sketch which expands our tools. Thanks.
@JerryEricsson
@JerryEricsson 7 месяцев назад
This is cool to the max! I love it, have it installed on my R-4 right now. I have ordered a new RTC battery for an old DELL I am fixing up for my daughter to use to play pinball games on using an emulator, when I ordered the battery, I ordered 4 as I always order a few extra to save on shipping and stash a few extras in a drawer. On of them is going to hook to the RTC battery pin on the Uno R4 to keep the clock time up when I disconnect it from the power. I have dozens of old home built digital clocks around the house, this one will make a nice centerpiece for the clock shelf which is next to my AM transistor radio shelf containing all the old Transistors I got off Ebay and rebuilt to working order using Caps I got in a box of misc caps from electronic gold mine out of Arizona.
@x_CrossHair_x
@x_CrossHair_x 3 месяца назад
Arduino needs Dump the 12x8 LED Matrix to have an OLED Display on the up an coming (REV-5) Just a suggestion (And Request) if Arduino is reading this.. 👍👍👍👍😎.. Thanks for sharing your "Ideas"
@dimebag2486
@dimebag2486 16 дней назад
very good job
@TruthWielders
@TruthWielders Месяц назад
In the code, why don't you go "secondsON_OFF = 1-secondsON_OFF ;" Instead of "secondsON_OFF ? secondsON_OFF = 0 : secondsON_OFF = 1;" The later seems less efficient (a bit) ? The ?: construct is cute but not always the best option ! Or am I missing something ? Thanks a lot ! I've put the blinking colon at the right of the hour instead of left of seconds ! Can I stop the little yellow led blinking on the board each time the display changes ?
@maxking7
@maxking7 9 месяцев назад
Excellent tutorial congratulation, is it possible to connect a buffer battery and keep the time even when turned off ?
@marios_ideas
@marios_ideas 9 месяцев назад
Yes, absolutely 3,3v coin battery needs to be connected to VRTC pin
@uengel5755
@uengel5755 11 месяцев назад
Freue mich schon auf Teil2 mit NTP-Server. Wann wird denn der Teil2 erscheinen? Viele Grüße
@fernandoagf100
@fernandoagf100 8 месяцев назад
In case I run out of power, how can I don't lose date and time? How do I connect a external battery? Thanks.
@JerryEricsson
@JerryEricsson 7 месяцев назад
The pins for the RTC Battery are broken out on the power side of the unit, you can hook a 1.5 to 3.5 volt battery to the 3 pin header, one for power, one for ground and one for OFF (I have no idea what the off pin is all about) I hooked a 2032 coin cell to mine, according to the data on other RTC setups, the cell should last about 17 years although I have never owned a RTC module for that long that still has a battery in it, I would guess it would depend on the quality of the cells themselves, but they should last a lonnnnnnnng time.
@uengel5755
@uengel5755 11 месяцев назад
Hello, nice project. Where can I find the description of the project and the code including the NTP server?
@marios_ideas
@marios_ideas 11 месяцев назад
Hi. I will try to add the code shortly
@marios_ideas
@marios_ideas 11 месяцев назад
I have now included the link to the code. Please consider supporting my channal
@uengel5755
@uengel5755 11 месяцев назад
@marios_ideas Ich würde als Dank gerne eine Spende schicken. Aber ich will nicht meine Kreditkartendaten ins Internet geben. Gerne per PayPal
@marios_ideas
@marios_ideas 11 месяцев назад
Would be very kind of you:)www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7PD67JWZ9S3EJ&source=url @uengel5755 @@uengel5755
@kavrishtalbindco.8346
@kavrishtalbindco.8346 10 месяцев назад
how to change the time on this
@marios_ideas
@marios_ideas 10 месяцев назад
As it is now you can set the time by reloading the code. I will eventually make video how to conenct this Arduino module to the internet and synchronise the time this way
@waynefitkin1104
@waynefitkin1104 7 месяцев назад
The RTC in the Uno R4 is so inaccurate it is not useable
@dougs_trains
@dougs_trains 8 месяцев назад
Interesting that it takes the time at compilation and not reset. I would have thought that when reset it would get the current time off the PC again.
@Volker-Dirr
@Volker-Dirr 11 месяцев назад
About 13:43: If you just use an bool instead of a byte, then you even don't need an if-command nor the binary conditional assignment operator.
@engineer2you
@engineer2you 9 месяцев назад
thanks for your video. I have a question, your Arduino IDE install on Windows 11 or 7? I can't make UNO connected with Windows 7 because lack of driver, even i try to find althrough internet. If you have driver, could you share?
@1977visa
@1977visa 7 месяцев назад
Is there a 12 hour way of writing this, rather then just 24 hour?
@marios_ideas
@marios_ideas 7 месяцев назад
Not sure I understand your question
@joshuaoduroadu5376
@joshuaoduroadu5376 11 месяцев назад
Splendid video. I really like the various iterations you used to explain the process involved in obtaining the time in different formats and displaying it. Most of all you kept it simple and concise. Thank you for sharing. ❤
@marios_ideas
@marios_ideas 11 месяцев назад
Glad you like it. Consider supporting my channel.
@davidgari3240
@davidgari3240 9 месяцев назад
... and I thought setting the clock on my VCR was complicated ... (What's a VCR, Daddy? - Later, Dear.)
@Volker-Dirr
@Volker-Dirr 11 месяцев назад
About 04:28: hmm.. isn't it better to just add a delay(1000) instead of the if-command, because in that case the CPU has maybe less to do and can save some power (if the delay function is coded good and/or compiled well by the compiler; i didn't checked that).
@SirWolf2018
@SirWolf2018 8 месяцев назад
When you write: `secondsON_OFF ? secondsON_OFF = 1 : secondsON_OFF = 0;` That is a less conventional use of the ternary operator. Typically we return a value based on a condition, not use it rather for its side effects. Better alternatives are: 1. ` secondsON_OFF = 1 - secondsON_OFF;` 2. `secondsON_OFF = secondsON_OFF ? 0 : 1;` Remember, too smart code is not clean code. Clean code is what you can easily understand.
@SirWolf2018
@SirWolf2018 8 месяцев назад
Or yeah you can also do what @Volker-Dirr said (use a bool).
@Hulk2008New
@Hulk2008New 6 месяцев назад
Is it possible to connect a MAX7219 8x8 LED matrix to Arduino® UNO R4 WiFi to show the clock?
@marios_ideas
@marios_ideas 6 месяцев назад
It is. You need to read time components from the RTC module merge them into a single text like "12:45:34" So you will also be able to squeeze seconds there. And then display that text on the matrix. i have a separate video which shows how to do this. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-oZDFh95Tt_E.html. I mean this video shows how to display the text only.
@jbwalkey
@jbwalkey 9 месяцев назад
I keep getting #include error
@zeugsman
@zeugsman 7 месяцев назад
Running Light
@lammatt
@lammatt 8 месяцев назад
theres a pin for powering the RTC should have mentioned that
@marios_ideas
@marios_ideas 8 месяцев назад
In the wrap up I mentioned that I would do the follow up and there I was planning to powering RTC module from external 3,3V. I have started doing it but got dragged to few different projects:(
@TheUnofficialMaker
@TheUnofficialMaker 7 месяцев назад
great project
@dpl4563
@dpl4563 11 месяцев назад
Hello Mario, can you build an LED arcade button into an enclosure so that any time the button is pressed it lights up and makes a buzzing noise?
@marios_ideas
@marios_ideas 11 месяцев назад
I can advice but I will not build it for you. Still I am not 100% sure what you are trying to do
@dpl4563
@dpl4563 11 месяцев назад
@@marios_ideas there is an LED push button switch, I need to have it mounted into an enclosure and for the button to light up when it is pushed. I was told I need a 12V power adapter but I’m not sure how that connects to the power switch
@marios_ideas
@marios_ideas 11 месяцев назад
I have a separate tutorial on LED switchs . Not sure if this is going to help you ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-vNmPSkAG2XI.html@@dpl4563
@markgreco1962
@markgreco1962 Год назад
Nice work
@uengel5755
@uengel5755 10 месяцев назад
Hallo, ghibt es schon einen Part 2 mit NTP-Lösung? VG ULLI
@marios_ideas
@marios_ideas 10 месяцев назад
I will do this video this year. But I have commitment to do 2/3 more videos before that. So stay tuned to my channel
@johneagle4384
@johneagle4384 Год назад
Pretty interesting, as always.
@marios_ideas
@marios_ideas Год назад
Thanks:) This is one of few videos on New Uno Rev4 WIFI I will be making. Stay tuned:)
@hansjurgenharthausen5236
@hansjurgenharthausen5236 11 месяцев назад
The RTC is very inaccurate, 1 second per minute advance
@marios_ideas
@marios_ideas 11 месяцев назад
For me that was a fun project just to prove that this can be done. But it is weird why would they put such an inaccurate RTC on this board. I have to admit I did not leave it running for a long time. I will give mine a test
@DougLynch-xp6zl
@DougLynch-xp6zl 10 месяцев назад
I got this board for the WiFi and RTC all in one. Learned very fast the RTC is not worth using. A lot of complaints about it online, always runs FAST.
@marios_ideas
@marios_ideas 10 месяцев назад
​@@DougLynch-xp6zl You are a second person that points it out. I will mention it in the follow up video. Thanks
@JerryEricsson
@JerryEricsson 7 месяцев назад
Last check, the RTC module for arduinos are on sale for a couple of bucks, they are easy to use, and you can build them into most any arduino modules you want, or esp32 or 8266, they come with a spot to mount a battery, some have add on slots where you can put a light sensor, or perhaps a temp module should you wish, many have on board memory so you can store info on them as well. I have one that runs a clock for me and hides my password info in spreadsheet format for those days when my brain is foggy and I need to sign into HULU or Netflix. Handy and pretty much hidden from prying eyes who are not aware that such functions are useable in a digital clock kit.@@DougLynch-xp6zl
@markgreco1962
@markgreco1962 8 месяцев назад
Will there be a part 2?
@marios_ideas
@marios_ideas 8 месяцев назад
There will be . But I cannot promise when. Thjis channal is just a hobby and my work is keepeing me very busy right now:(
@markgreco1962
@markgreco1962 8 месяцев назад
@@marios_ideas thank you Mario
@uengel5755
@uengel5755 11 месяцев назад
Hallo, ich bekomme eine Fehlermeldung beim Kompellieren in der Zeile: getcurTime(timeStamp,&dayofWeek,&month,&dayofMon,&hours,&minutes,&seconds,&year); Meldung: Compilation error: 'getcurTime' was not declared in this scope
@uengel5755
@uengel5755 11 месяцев назад
Dasnke für den Code. Funktioniert bestens
@uengel5755
@uengel5755 11 месяцев назад
Freue mich schon auf Teil 2 mit NTP-Server
@marios_ideas
@marios_ideas 11 месяцев назад
The function name is getCurTime it is case sensitive
Далее
ДЕНЬ УЧИТЕЛЯ В ШКОЛЕ
01:00
Просмотров 1,2 млн
Дикий Бармалей разозлил всех!
01:00
Ford RS gauges with Arduino UNO
45:38
Просмотров 330 тыс.
I took the #1 Tech Exam and it was BRUTAL
18:28
Просмотров 1,3 млн
Arduino UNO R4: Nice upgrade or troublemaker?
11:30
Просмотров 19 тыс.
NEW Arduino Uno R4 Boards - Minima & WiFi
57:40
Просмотров 109 тыс.
Arduino Uno R4 Review - Best Arduino Board Ever?
9:16
iPhone Standby mode dock, designed with @overwerk
0:27
iPhone 16
0:20
Просмотров 12 млн
The force of electromagnetic eddy currents
0:31
Просмотров 13 млн