Arduino Project: Real time clock (RTC) and temperature monitor using the DS3231 module.

preview_player
Показать описание
Arduino Project: Real time clock (RTC) and temperature monitor using the DS3231 module.

In this video we build a Real Time Clock using the DS3231 chip.

Want to learn to code?
Рекомендации по теме
Комментарии
Автор

Fantastic tutorial on the D3231 RTC. This is the only code and wiring that I could get working. Thank you SO much! 

RonnieTucker
Автор

thanks for posting this. Just to say to other users that if you get an error at line 135 then change "boolean flags [5]' to 'byte flags[5]' at lines 135 and 146 then it works (found on Arduino forum)

robertrobert
Автор

I wrote a small function to help create the time string:

String setTime(String year, String mon, String day, String dW, String hour, String minute, String sec){

String dT =

if(dT.length() > 16 || dT.length() < 16){
return ("Incorrect Format!");
}else{
return dT;
}

}

So when calling parse_cmd its a lot easier to the eyes

parse_cmd(setTime("2016", "02", "08", "1", "21", "51", "00"), 16);

BRUCE
Автор

Dear friends,

I recently found your video about RTC modules, I followed the instructions and the module worked fine.
But I modified the original code, in order that the display also shows the day of the week, for this I added the printDay function who works in the same way that the printMonth function:

void printDay(int wday)
{
  switch(wday)
  {
    case 1: lcd.print(" Mon ");break;
    case 2: lcd.print(" Tue ");break;
    case 3: lcd.print(" Wed ");break;
    case 4: lcd.print(" Thu ");break;
    case 5: lcd.print(" Fri ");break;
    case 6: lcd.print(" Sat ");break;
    case 7: lcd.print(" Sun ");break;
    default: lcd.print(" Error ");break;
  } 
}

 The problem is that the value of the  wday variable is always 2.
I made a test setting different values for the wday in parse_cmd function, but the display always shows Tuesday.
I tried to find the bug in the code, but I'm just a beginner. if you could help I would be very grateful.
Thanks and best regards,

Angel M. Muñoz
Madrid, Spain

angelm.
Автор

Συγχαρητήρια για την τρομερή δουλειά σου φίλε

dotgr
Автор

thank you for video well done! i have only one question, I am using arduino uno r3 how will you connect the time module? Thank you for your reply.

valakatz
Автор

Thanks for this easy instruction! Its very easy to rewrite your code if you have a I2C display.

xXOMwtfFGXx
Автор

Nick, as always great presentation. I got all the necessary parts, will finalize this project tomorrow, God willing. Will post follow up. Thanks again.... Your code worked for my df mp3 Sketch in the other Tutorial.

karimismail
Автор

Very nice version with code I can follow and utilize . Thanks for sharing ! I have been looking for a reliable RTC and this looks like it will do the trick .
Bob

bobdurk
Автор

Greetings sir. Thanks for your coding, I was able to make use of it to my final year project. However, there's one thing I need to ask you with, since I'm really not good on coding.

It's about how to insert alarm clock coding to your coding. There's few more codings out there, but I feel like using yours instead, since you use almost similar components like mine.

By the way, I'm using Arduino Mega, RTC DS3231, LCD 16x2 with I2C, and a buzzer.

Thank you in advance. Your attention is appreciated.

psicaliph
Автор

Hy.
i have 2 questions:
1.Can i use DS3231 module ic2 communication with arduino nano?
2. in my project, i just need get time and get hour. There are other module with fewer resources?
Thank you for share with us! nice video =)

fabiojesus
Автор

Great job and presentation. How do i interface a keypad for setting incubating periods that will be displayed on the LCD. And a reminder with GPS

edwinkhaled
Автор

Thank you bro. Regarding temperature issue. i wonder how is it working? using ADC or digital sensor inside. i mean what kind of signal. I am reading datasheet now and see :"Temperature conversion current". If i am wright, this one have 2 digital ICs, one is timer and one is temperature and communicated by I2C. Thanks

thanhngo
Автор

Muy bueno el tutorial, me gusto mucho.perfectamente explicado
Tengo una duda
Se podría controlar un relé con este RTC para hacer ciclos de ON/OFF cada 12h(O cada X tiempo)?
tengo unos conocimientos muy muy básicos de programación y buscando no encontré muchos codigos que pueda utilizar
Muchas gracias de antemano

Sergio-leuf
Автор

I RECIBE AN ERROR: rtc:19:17: error: 'DS3231_INTCN' was not declared in this scope
ANY SUGGESTION? THANKS

fabianpucciarelli
Автор

Hi, nice video, but I had some problem, could you help-me? I have an error "DS3231_INTCN' was not declared in this scope", how to solve this?
Thanks.

cristianojanuario
Автор

Hello, can you store and recall a temperature with the date and time of the mesurement or you need a log with sd card? Thanx

davidederosi
Автор

Code worked perfectly. Thanks a lot! Can the buttons on the shield be incorporated into the function of this device? If so what lines of code would I add?

nickx
Автор

Thanks for the video. I was wondering.... I wrote a sketch that uses a waterproof thermistor to activate a relay while showing the temp on the I2C 16x2. How hard would it be to adopt this code to do that and activate another relay based on time (like a lamp timer)?

user
Автор

you always done good job
could you please make a tutorial on clock without RTC and that can be set manually by buttons waiting for valuable response
Thanks for the efforts

LUCKY