Тёмный

Arduino Tutorial 35- Real Time Clock using DS1302 RTC Module 

Enjoy Mechatronics
Подписаться 22 тыс.
Просмотров 82 тыс.
50% 1

In this episode, we explain the DS1302 RTC Module and use the LCD Display to show the Real-Time!
● LCD Display: • Arduino Tutorial 24- C...
● Arduino Keypads: • Arduino Tutorial 34- H...
● Part 2: • Arduino Tutorial 36- C...
● Project Files: github.com/Enj...
--------------------------------------------------------------------
Best Arduino Starter Kit 👇
✅ amzn.to/3TUro3o
✅ amzn.to/3VfGNM1
👉 amzn.to/3L7gPpw
--------------------------------------------------------------------
✅ My current Productivity Setup 👇:
● Gaming Headset: amzn.to/3HyXgp2
● Gaming Mouse: amzn.to/3ni4Ygp
● Best Webcam: amzn.to/44pVUqw
● Keyboard: amzn.to/3ALXB3M
● GPU: amzn.to/42mylNt
● CPU: amzn.to/44lOBjs
--------------------------------------------------------------------
FOLLOW ME:
● Github Projects: github.com/Enj...
♥ Never Click This! bit.ly/3jvI8g6
● Facebook: / enjoymechatronics
--------------------------------------------------------------------
► All content by Enjoy Mechatronics is 100% free. I believe that education should be freely available to everyone.

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

 

4 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 63   
@adrianpineda2955
@adrianpineda2955 2 года назад
thankyou very much sir you save us from our prelim examination
@incrediblestoriesfromdharm5738
@incrediblestoriesfromdharm5738 2 года назад
I appreciate your help bro you explained so perfectly I wish I can subscribe as many times as I feel 🙏👍👍👍👍
@Commenter1-w3x
@Commenter1-w3x Месяц назад
Are you the actual dhar mann
@Commenter1-w3x
@Commenter1-w3x Месяц назад
my first time seeing "Dhar Mann" in my favorite video of arduino
@kkrokingkiller456
@kkrokingkiller456 9 месяцев назад
WOW THIS WAS THE ONLY VIDEO WHICH EXPLAINED EVERYTHING **PERFECTLY** SO UNDERATED
@EnjoyMechatronics
@EnjoyMechatronics 9 месяцев назад
Thanks 😊
@chebyy94
@chebyy94 5 месяцев назад
muchas gracias, esta super bien explicado, lo entendi hasta yo que casi no entiendo el idioma, que gran contenido.
@AFKMaker
@AFKMaker 8 месяцев назад
Really good tutorial, thanks
@EnjoyMechatronics
@EnjoyMechatronics 8 месяцев назад
Glad it was helpful!
@saeidmohammadzadeh9056
@saeidmohammadzadeh9056 5 месяцев назад
Thank you so much for your video. The analog pins that were used for the LCD, are it not possible to use them again for another module? Because I need more analog pins for my moisture modules.
@RodionRosin
@RodionRosin 3 месяца назад
You can change the date & time?
@malikthetalentmaker6001
@malikthetalentmaker6001 2 года назад
Yeah boiiiii
@zxnwqr
@zxnwqr 8 месяцев назад
thank youuuuuu❤
@EnjoyMechatronics
@EnjoyMechatronics 8 месяцев назад
No worries 👍
@valentincorrea3211
@valentincorrea3211 Год назад
gracias boliviano :D
@gabrieldejesusriveracarden9036
you can do it with a 7 segment display PLEASE
@hoku_ar
@hoku_ar Год назад
In the video you said the DS1302 would take the time and date from the computer but my clock sometimes says "Enter year" and sometimes "Date: 165/165/21" "Time 37:65:85" + in the .zip that you put there's a picture called "keypad-circuit.jpg" and the code has the keypad library
@africantech5
@africantech5 9 месяцев назад
This happens when RTC module partially connected
@brincxx4917
@brincxx4917 3 месяца назад
have the same problem, have you fixed it?
@PCKFLS-wy2es
@PCKFLS-wy2es 4 месяца назад
The code doesn't match with the video. I asked chatGPT to write a code for setting up the reat time clock with the same pins as the pins this video used. Just change some codes like Serial.print to lcd.print. #include #include // Define the pin numbers #define PIN_ENA 8 #define PIN_CLK 6 #define PIN_DAT 7 // DS1302 RTC instance Ds1302 rtc(PIN_ENA, PIN_CLK, PIN_DAT); void setup() { Serial.begin(9600); // Initialize the RTC rtc.init(); // Test if clock is halted and set a date-time to start it if (rtc.isHalted()) { Serial.println("RTC is halted. Setting time..."); Ds1302::DateTime dt = { .year = 24, // Set the year to 2024 .month = Ds1302::MONTH_MAY, // Set the month to May .day = 19, // Set the day to 19 .hour = 21, // Set the hour to 21 .minute = 9, // Set the minute to 9 .second = 41, // Set the second to 41 .dow = Ds1302::DOW_SUN // Set the day of the week to Sunday }; rtc.setDateTime(&dt); } } void loop() { // Get the current time Ds1302::DateTime now; rtc.getDateTime(&now); static uint8_t last_second = 0; if (last_second != now.second) { last_second = now.second; // Print the date and time in the format "YYYY/MM/DD HH:MM:SS" Serial.print("20"); Serial.print(now.year); // 00-99 Serial.print('/'); if (now.month < 10) Serial.print('0'); Serial.print(now.month); // 01-12 Serial.print('/'); if (now.day < 10) Serial.print('0'); Serial.print(now.day); // 01-31 Serial.print(' '); if (now.hour < 10) Serial.print('0'); Serial.print(now.hour); // 00-23 Serial.print(':'); if (now.minute < 10) Serial.print('0'); Serial.print(now.minute); // 00-59 Serial.print(':'); if (now.second < 10) Serial.print('0'); Serial.println(now.second); // 00-59 } delay(100); }
@mohamedkouihal4080
@mohamedkouihal4080 Год назад
How to introduce alarmes plz?
@2933182
@2933182 Месяц назад
HOW MUCH IS A DS1302 RTC COST IN SRI LANKA
@sanjaykhurana3400
@sanjaykhurana3400 Год назад
1307. Use. Honga ki nahi. 1302 se.
@juancarlosodulio5413
@juancarlosodulio5413 Год назад
why your codes are the same in your project files?
@glitch8482
@glitch8482 10 месяцев назад
why doesnt it show the keypad library? am i supposed to delete that one?
@austinbasso2694
@austinbasso2694 Год назад
How do I get a Parts list??
@CircuitCreator
@CircuitCreator 2 года назад
PIN 1 》GROUND PIN 2 》POSITIVE PIN 3 》10K POT PIN 4 》A12 PIN 5 》GROUND PIN 6 》A11 PIN 11 》A5 PIN 12 》A4 PIN 13 》A3 PIN 14 》A2 PIN 15 》220Ω PIN 16 》GROUND
@EnjoyMechatronics
@EnjoyMechatronics 2 года назад
Thanks
@meltusegwumba5092
@meltusegwumba5092 10 месяцев назад
Please, how do you include multiple alarms?
@thien8662
@thien8662 2 года назад
can you simulate proteus , please
@vladsebastian27
@vladsebastian27 9 месяцев назад
the code says it uploaded but nothing changes on the lcd, any ideas? I am sure the com is right
@EnjoyMechatronics
@EnjoyMechatronics 9 месяцев назад
Try to rotate the potentiometer
@suchy.chomik
@suchy.chomik 9 месяцев назад
what potenciometer @@EnjoyMechatronics
@jacobstech1777
@jacobstech1777 Год назад
which library?
@adrianpineda2955
@adrianpineda2955 2 года назад
sir can I ask why my time and date is wrong
@kitkirkyen2002
@kitkirkyen2002 Год назад
Sir, what is the time format, is it in the military time?
@JuanManuel123ify
@JuanManuel123ify 2 года назад
Dear Friend: First of all, thank you very much for sharing your knowledge. Please, would there be a possibility of facilitating the program of said project? Waiting for your news, receive a cordial greeting from the Canary Islands (Spain)......
@EnjoyMechatronics
@EnjoyMechatronics 2 года назад
Thanks for your comment I've create a more updated version of this project ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-c40S3z0OcuE.html
@haizen9233
@haizen9233 Год назад
RtcDateTime currenTime = RtcDateTime(_DATE_ , _TIME_); Rtc.SetDateTime(currentTime); this is an error for me pls help :(
@m0kcun
@m0kcun Год назад
RtcDateTime currentTime = RtcDateTime(__DATE__, __TIME__); Rtc.SetDateTime(currentTime);
@m0kcun
@m0kcun Год назад
make sure same spelling....Yours is currenTime & currentTime there
@jaimedomingoalopez1537
@jaimedomingoalopez1537 Год назад
i used two time module...why my 1st module displays only the 0/0/2000 0:0:0 and the other module is 165/165/2165 and 37:165:85
@EnjoyMechatronics
@EnjoyMechatronics Год назад
Check out this video in which we've added a Keypad to set the date and time manually ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-c40S3z0OcuE.html
@rem18051987
@rem18051987 9 месяцев назад
I had this problem too (0/0/2000 0:0:0). You need to check the wiring pin (7, 6, 8); // DAT, CLK, RST
@Guus8666
@Guus8666 Год назад
I can’t see my time, help me pls?
@hoku_ar
@hoku_ar Год назад
I can't either
@THD_Roblox
@THD_Roblox Месяц назад
My code is not working
@zeusolympus1664
@zeusolympus1664 28 дней назад
Skill issue mate
@THD_Roblox
@THD_Roblox 28 дней назад
@@zeusolympus1664 🗿
@sigamingyt6488
@sigamingyt6488 2 года назад
Bro please sent this audino code
@Guus8666
@Guus8666 Год назад
You’re welcome if I’m not to late
@ThangNguyen-dh7yt
@ThangNguyen-dh7yt Год назад
Can you share your codes, please?
@EnjoyMechatronics
@EnjoyMechatronics Год назад
● Project Files: github.com/Enjoy-Mechatronics/Arduino-RTC
@jocellelabicani8848
@jocellelabicani8848 11 месяцев назад
bro it said here can't open sketch main file missing from sketch
@johncarlodequina8095
@johncarlodequina8095 3 месяца назад
Bro please this code for 2024
@CarltzyJc21
@CarltzyJc21 4 месяца назад
Bro please send this cose
@Wiktorstarczewski-sz1n
@Wiktorstarczewski-sz1n 6 месяцев назад
clickbait
@jyothishetty6250
@jyothishetty6250 2 года назад
Can u pls send code
@EnjoyMechatronics
@EnjoyMechatronics Год назад
github.com/Enjoy-Mechatronics/Arduino-RTC
@danixx9979
@danixx9979 10 месяцев назад
but there is some matrix keypad @@EnjoyMechatronics
@angokun6214
@angokun6214 7 месяцев назад
okay
@edprokop5231
@edprokop5231 Год назад
Is
Далее
I Built a SECRET Lamborghini Dealership!
33:02
Просмотров 10 млн
小路飞嫁祸姐姐搞破坏 #路飞#海贼王
00:45
НЕ БУДИТЕ КОТЯТ#cat
00:21
Просмотров 638 тыс.
How to use DS3231 RTC module to build OLED clock
15:34
Arduino Real Time Clock - Using the Tiny RTC
31:29
Просмотров 202 тыс.
HOW TRANSISTORS RUN CODE?
14:28
Просмотров 458 тыс.
ESP32 Project - Digital Clock with LCD Display At Home
12:04
I Built a SECRET Lamborghini Dealership!
33:02
Просмотров 10 млн