Тёмный

Arduino Relay Trigger at specific time | DS3231 RTC Module 

Viral Science - The home of Creativity
Подписаться 157 тыс.
Просмотров 126 тыс.
50% 1

Hey friends in this video we will learn how to make an arduino triggered relay for specific time.
This project can be used to supply water to plants, gardens everyday automatically. This is one of the example to use this.
Visit my Website to Download Codes and Circuit Diagrams:-
www.viralsciencecreativity.co...
Materials:-
Arduino UNO
DS3231 RTC Module
Relay Module
Breadboard
Follow me on:-
Facebook:- / viralscience20
Facebook:- / viral.dodhia.73
Instagram:- / viral_dodhia_
Twitter:- / viral_science_
snapchat:- viraldodhia20
--------- VIRAL SCIENCE © ----------

Наука

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

 

9 мар 2018

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 201   
@althuelectronics5158
@althuelectronics5158 5 лет назад
sooper (am frem india ) am wery happy to waching this video thanks (gog + you) sir
@user-tr6co8mw4j
@user-tr6co8mw4j 4 года назад
Thanks for the great video
@cariagajoy8253
@cariagajoy8253 5 лет назад
thanks for this video.......
@sanjeebanmaji8612
@sanjeebanmaji8612 3 года назад
Great 👍👍
@ItaloLima
@ItaloLima 6 лет назад
Very Cool ! Like !
@navigator4077
@navigator4077 Год назад
The video and explanation is great...but the code should be little more vast in considering the fact that if power goes out in between the specified time and the time to be on has gone past then the relay wont be on unless it is the on time in the next day....still working on that part
@navturn
@navturn 2 года назад
Thank you for this video. Why not sync arduino board time with rtc and set alarm with alarmrepeat ?
@munishdhingra4323
@munishdhingra4323 4 года назад
from where can I get the library for RTC DS3231 which works with SDA and SCL pin projects. It's not in examples of Arduino. Please suggest ASAP
@pretendanought
@pretendanought 5 лет назад
Is there a minimum duration I.e can I set the relay to close for 30 seconds?
@mesquitamk1681
@mesquitamk1681 3 года назад
cool, very good. it has like with just one button whenever it is pressed it resets the count ... and for another project of a soldering iron with vibration sensor I turn it off in 30 minutes if it is not used .. asables I forget and my lining stays on overnight. ..suggest a video with attny85 and a relay or mosfet triggered for 30 minutes-- ok thanks
@cardesign1313
@cardesign1313 6 лет назад
Sir which gear motor i used for making power full truck
@firaolmekete4201
@firaolmekete4201 2 года назад
thanks for sharing bro. god bless you. i have one question/ could you tell me bro,,. in 24 hour how to programed double opening the relay in 24 hr and sunday up to sunday
@shiroeschulz4515
@shiroeschulz4515 4 года назад
I don't know anything about arduino but i tried to add this code and it works. try this if you want to add seconds and multiple time trigger. #include int Relay = 4; DS3231 rtc(SDA, SCL); Time t; const int OnHour = 1; const int OnMin = 14; const int OnSec = 20; const int OffHour = 1; const int OffMin = 14; const int OffSec = 50; const int OnHour1 = 1; const int OnMin1 = 16; const int OnSec1 = 20; const int OffHour1 = 1; const int OffMin1 = 16; const int OffSec1 = 50; void setup() { Serial.begin(115200); rtc.begin(); pinMode(Relay, OUTPUT); digitalWrite(Relay, LOW); } void loop() { t = rtc.getTime(); Serial.print(t.hour); Serial.print(" hour(s), "); Serial.print(t.min); Serial.print(" minute(s)"); Serial.print(t.sec); Serial.print(" second(s)"); Serial.println(" "); delay (1000); if(t.hour == OnHour && t.min == OnMin && t.sec == OnSec){ digitalWrite(Relay,HIGH); Serial.println("LIGHT ON"); } else if(t.hour == OffHour && t.min == OffMin && t.sec == OffSec){ digitalWrite(Relay,LOW); Serial.println("LIGHT OFF"); } if(t.hour == OnHour1 && t.min == OnMin1 && t.sec == OnSec1){ digitalWrite(Relay,HIGH); Serial.println("LIGHT ON"); } else if(t.hour == OffHour1 && t.min == OffMin1 && t.sec == OffSec1){ digitalWrite(Relay,LOW); Serial.println("LIGHT OFF"); } }
@K_M_M_G
@K_M_M_G 4 года назад
Greatly appreciate the tutorial, if I wanted the relay to be triggered in seconds would I add “const ins onSec =“ & “const ins offSec =“? Thank you!!
@Zero0Beats
@Zero0Beats 3 года назад
yeah, and you have to set it in your if-loop
@umakalizz4798
@umakalizz4798 5 лет назад
May I have a circuit and code for automatic water pump to extinguish the flame using relay,flame sensor and esp32.
@Infinity2u
@Infinity2u 4 года назад
What is the website you used for designing your circuit?
@chetankumar6158
@chetankumar6158 5 лет назад
Which software you will use to design circuit diagram
@nadranasinghe
@nadranasinghe 3 года назад
Hi. I'm very new to this. will you be able to share the same setup but with 4 channel relay module. Because in my greenhouse I have 4 water lines. My AC water motor is not powerful enough to pressure all 4 lines at the same time. my plan is to open one line with motor in 15min intervals. Will you be able to help me with the coding.
@vishnujayakumar1229
@vishnujayakumar1229 3 года назад
How set defferent times of activation in a day?
@gordondyer6310
@gordondyer6310 3 года назад
Nice clear video. What software package do you use to draw the circuit diagrams?
@muhammadshehujaafar4302
@muhammadshehujaafar4302 3 года назад
I think the software he used is ‘Fritzing’
@bhanupriyadagdi
@bhanupriyadagdi 6 лет назад
I want to display connect with this circuit then how will be connected please reply..
@anirbanmandal3123
@anirbanmandal3123 6 лет назад
Have already built the thing to keep the school at time
@mediabox8280
@mediabox8280 Год назад
I know I'm like crazy late to the party here, but I was wondering which library you're using for the DS3231 as the one I'm using isn't compatible with your code. Thx!
@ictbacktest
@ictbacktest 2 года назад
I have a project... A board with 10 leds each representing the subjects on a time table for a class... How can this project be modified to light up just one led at a time when the time for the subject is due and to switch it off after the lesson period is over and then switch on the next LED until it circles through the ten subjects(LEDS)... I will really appreciate if I'm being replied?
@rajendrachauragade8381
@rajendrachauragade8381 6 лет назад
Which software u r using
@leanderpereira5257
@leanderpereira5257 3 года назад
Hey bro i have made Bluetooth voice home automation system using arudino uno amd two channel relay how do i integrate this time system in it what will be the changes in the code plz help me
@Nikhilkumar-ci3md
@Nikhilkumar-ci3md 5 лет назад
Can we set the time using an android app to this timer code? Is this possible?
@hrushikeshbagal688
@hrushikeshbagal688 3 года назад
Hi sir I want to develop 10 auto controll 2 inches valve for farming perpos how to control them
@johnsisi8927
@johnsisi8927 5 лет назад
Thanks for your video. Can you please let me know, In irrigation system " Is it posible to set specific month for watering ? ie, In my case every year November to May last irrigation system works daily 2 times (AM & PM) for 1 hour daily and June to October last only need daily 1 or 2 times for only 5 Minutes. Kindly please advise ? Please help me !!!!!!!
@askingmachine8858
@askingmachine8858 4 года назад
Same query
@johnmarksiatriz3725
@johnmarksiatriz3725 Год назад
Every day in will trigger the power on if you set a example 22:40 and it will power off 22:41?
@thambirajahpathmanathan7080
Nice how to make 24 Hour timer cintroll
@davkoon
@davkoon 3 года назад
Hi sir, How can we trigger relay weekly?
@mdafroz4190
@mdafroz4190 5 лет назад
Can we add multiple time trigger in this project can you plz tell how to I would be. Very helpful to my project
@shiroeschulz4515
@shiroeschulz4515 4 года назад
try this #include int Relay = 4; DS3231 rtc(SDA, SCL); Time t; const int OnHour = 1; const int OnMin = 14; const int OnSec = 20; const int OffHour = 1; const int OffMin = 14; const int OffSec = 50; const int OnHour1 = 1; const int OnMin1 = 16; const int OnSec1 = 20; const int OffHour1 = 1; const int OffMin1 = 16; const int OffSec1 = 50; void setup() { Serial.begin(115200); rtc.begin(); pinMode(Relay, OUTPUT); digitalWrite(Relay, LOW); } void loop() { t = rtc.getTime(); Serial.print(t.hour); Serial.print(" hour(s), "); Serial.print(t.min); Serial.print(" minute(s)"); Serial.print(t.sec); Serial.print(" second(s)"); Serial.println(" "); delay (1000); if(t.hour == OnHour && t.min == OnMin && t.sec == OnSec){ digitalWrite(Relay,HIGH); Serial.println("LIGHT ON"); } else if(t.hour == OffHour && t.min == OffMin && t.sec == OffSec){ digitalWrite(Relay,LOW); Serial.println("LIGHT OFF"); } if(t.hour == OnHour1 && t.min == OnMin1 && t.sec == OnSec1){ digitalWrite(Relay,HIGH); Serial.println("LIGHT ON"); } else if(t.hour == OffHour1 && t.min == OffMin1 && t.sec == OffSec1){ digitalWrite(Relay,LOW); Serial.println("LIGHT OFF"); } }
@yigidosivas499
@yigidosivas499 4 года назад
@@shiroeschulz4515 thanks dude, very useful.
@sunilbute4012
@sunilbute4012 4 года назад
@@shiroeschulz4515 very nice 👍🙏👍 thanku
@steelkarthi
@steelkarthi 5 лет назад
Hi sir Can you send code for digital clock with P10 LED module
@Naked4FunTV
@Naked4FunTV 2 года назад
nice job, unfortunally I cannot find the example code for DS3231 in my arduino example program :(
@beatryondjohnny6982
@beatryondjohnny6982 3 года назад
can i get the latest link for this code timer?i cant open that link at discription,..
@izza8050
@izza8050 3 года назад
where can i download the library ds3231.h ?
@markvincentquinton4214
@markvincentquinton4214 2 года назад
can you put here my friend the library for ds3231 rtc module
@Andrea-lf3jq
@Andrea-lf3jq 3 года назад
In the circuit diagram it shows two jumper wires connecting to the 5V on the arduino UNO ? you can only fit one of the jumper wires in there Does one of them connect to the 3.3V?
@sandeepsingh-rt2eu
@sandeepsingh-rt2eu 3 года назад
sir.. i want to run this code for esp32.. but its giving compiling board error... but when i select arduino board. your code works propely.... kindly help it out!!.... do i need to change the header files....
@BordyTube
@BordyTube 6 лет назад
Bro make automatic fish feeder
@linuxettin
@linuxettin 4 года назад
How to use for multiple relays 6 ?
@sujithmarasinghe
@sujithmarasinghe 6 лет назад
How can I download the DS3231Serial_Easy library.I tried so many times but I couldnt find it.pls help me. thanks.
@lokeshkumarveshala8232
@lokeshkumarveshala8232 5 лет назад
download library first
@zacmrochko436
@zacmrochko436 4 года назад
Good video! Three questions: 1. Is there a separate code for the DS3231 board? 2. How do you add the DS3231 library? What is the EXACTE library name? I cannot find the "DS3231_Serial_Easy" library. 3. I'm building a circuit relay switch for a school bell system. How do I add multiple times? I only want the relay to be triggered for 3-5 seconds.
@jonitube4667
@jonitube4667 4 года назад
how did your project go? I am trying the same project now and I would appreciate it if you would help me out. yonatayakob52@gmail.com
@umer6069
@umer6069 2 года назад
how can i adjust the code so that i can triger the relay two times in a day.
@kensee9991
@kensee9991 2 года назад
Hello. Sir how to put 2x day one in morning one in afternoon
@GrenPara
@GrenPara 2 года назад
Good video, thanks for making it. What software are you using to make the diagram at 58 seconds?
@meFawadIqbal
@meFawadIqbal 2 года назад
Fritzing
@GrenPara
@GrenPara 2 года назад
@@meFawadIqbal Thanks
@christiangoehl8925
@christiangoehl8925 Год назад
Is this trigger working with a specific day of month too? 🤔
@yenrajan
@yenrajan 6 лет назад
Sir, when the code and circuit link is clicked the browser shows "Not found" Kindly help
@gzegoszbjencecikjevic2848
@gzegoszbjencecikjevic2848 3 года назад
I have a problem here. I did everything like it is in video, but light runs all the time. Any thoughts?
@hakanakblk9952
@hakanakblk9952 3 года назад
How can I get the codes? the url you provided is not working
@paternocortez7807
@paternocortez7807 3 года назад
what if we use it everyday did we change the date??
@mailmahim
@mailmahim 3 года назад
can i do this with arduino nano?
@iamrobot396
@iamrobot396 2 года назад
what happens when board is reset or power cut happens?
@rameshboina8832
@rameshboina8832 3 года назад
Bro please reply --- how to make every hour trigger relay with pic16f1847 ic. Please bro reply me
@johnkg702
@johnkg702 6 лет назад
Good day sir Cannot find code and schematic Link not working Pls upload the code and schematic Thanks
@raybright5805
@raybright5805 5 лет назад
Links to code and library not working ... HELP
@MisterBPK
@MisterBPK 4 года назад
www.rinkydinkelectronics.com/library.php?id=73 here you will find exact library
@anokhautomation4453
@anokhautomation4453 3 года назад
If we can change the time with out uploading sketch each time the project is more useful
@arinzk
@arinzk 2 года назад
You can use an SD card reader. Arduino will then read the needed numbers from a text or a json file. You can easly update that file.
@anokhautomation4453
@anokhautomation4453 2 года назад
It is not a easy practical way 😝
@lphabravo4464
@lphabravo4464 5 лет назад
Please help me! i set the OnHour=13 and OnMin=10 and OffHour=15 and OffMin=15 i worked well but after the OnTime when power disconnected and again powered on then it dose not ONN the relay as at that time the time is between ON and OFF but not equal to OnTime
@asadulhuq
@asadulhuq 5 лет назад
Use Sonoff basic to do that. Sonoff is Rs 600 and it can remember scheduled on off time even after power failure.
@step_freeskills101
@step_freeskills101 9 месяцев назад
what is the library used?
@juanmolina1742
@juanmolina1742 9 месяцев назад
Gracias a migo por los videos, me podias ayudar por favor con la libreria , no puede compilar el codigo, me sale error .. por favor una ayuda
@angelnevidespinozatoriz8677
@angelnevidespinozatoriz8677 4 года назад
Hi! Could you please post the link for the code to trigger relay at specific time? Thank you so much
@anokhautomation4453
@anokhautomation4453 2 года назад
ru-vid.com/show-UCn2vKKPk3aLN2S-iDbjxbxg
@SuperChecho2011
@SuperChecho2011 4 года назад
Algo pasa con los link, no found
@ravirajgaonkar6937
@ravirajgaonkar6937 3 года назад
It's showing error when I click on the link for code and circuit diagram.
@nikhilchitroda6409
@nikhilchitroda6409 4 года назад
What is the change in the code if i use ds1307 module ?
@howdoescompute1180
@howdoescompute1180 4 года назад
did you ever get a response? if so could you pm me the code modification?
@sangnguyenthe5112
@sangnguyenthe5112 6 лет назад
hey boss, You can make a robot car with the camera module ov7670
@lokeshkumarveshala8232
@lokeshkumarveshala8232 5 лет назад
i can make it but it costs a lot
@AhmedAhmed-pt3hi
@AhmedAhmed-pt3hi Год назад
How can I add a condition that works every two days and not daily But at the same time
@voiceoftruth1O1
@voiceoftruth1O1 5 лет назад
Sir. your link was broken. please this download link that will be so easy. otherwise it's very difficult to write. We are waiting for your code and diagram link. Thanks
@MisterBPK
@MisterBPK 4 года назад
www.rinkydinkelectronics.com/library.php?id=73 here you will find exact library
@afroozmampra1990
@afroozmampra1990 3 года назад
link for the code: www.viralsciencecreativity.com/post/arduino-relay-trigger-at-specific-time-ds3231-rtc-module
@jazijahan2808
@jazijahan2808 3 года назад
@@afroozmampra1990 Thank you
@Oratazana
@Oratazana 2 года назад
Cant make it work, error on " DS3231 rtc(SDA, SCL) "
@howtomake5591
@howtomake5591 4 года назад
In the middle starting and ending time if i power disconnect for 5 sec the arduino. Then it is not on again after the power.Please solve the problem.
@zeemixvideos6485
@zeemixvideos6485 5 лет назад
hello bhai english nahe aate pata nahe tumhay urdu aate hai ya nahe lekin agar mein yahe module use karna chahoon aur date k elawa relay ko 4 gantay baad off karna chahoon to ho sakta hai please help
@christiankongsted5084
@christiankongsted5084 5 лет назад
Hey guys, the code and where he gets it turns out to be on rinkydinkelectronics . com (probably more places too, but I found it there), where you can find it under ds3231. I hope that helps.
@josuemgs5490
@josuemgs5490 2 месяца назад
How can I make it turn on 2 times a day?
@chiranjitkarmakar838
@chiranjitkarmakar838 3 года назад
How to set the time Morning 2 hour light on then evening 2 hour light on (my specific time) Can you create the arduino code
@rizkifirdaus7151
@rizkifirdaus7151 5 лет назад
please fix the link, I can't download the code
@mrnick123123123
@mrnick123123123 4 года назад
What is that circuit diagram app that he uses? I can’t find anything close to it.
@romanaspr
@romanaspr 4 года назад
have you tried to google it...of cause not! fritzing.org
@Inspireunltd
@Inspireunltd 4 года назад
Hello I need your help for this Ardinou
@jeenageorge8683
@jeenageorge8683 4 года назад
yes what help you require at present to build this?
@aathishanmugamkannan1858
@aathishanmugamkannan1858 Год назад
Sir I need the time unravel every 15 minute on and run 15 minutes and then off.how to modifi the program
@shahidiqbal5273
@shahidiqbal5273 2 года назад
How to resume conter if power goes off....counter sould not start from start..... It should keep the last value stored in memey... Ones power comes back... It should start from the the last value when power got switched off... Can you write me a code for that...?
@karthikonline4974
@karthikonline4974 2 года назад
This project power online correct working but power resart project not working this probleam alive PLZ
@dannyt2341
@dannyt2341 4 года назад
Great video, what program did you use to design the circuit?
@sameerk12982
@sameerk12982 4 года назад
fritzing.org/home/
@ientu8084
@ientu8084 2 года назад
how to make it run every day?
@bobbytaraantino
@bobbytaraantino 2 года назад
How about specific time and DATE? Like 18 days in a month.
@user-tr6co8mw4j
@user-tr6co8mw4j 4 года назад
How to set time automatically with DS3231 RTC using computer time and date?
@isoguy.
@isoguy. 5 лет назад
Great vid/ tutorial ruined by adding background music
@trentanimations1297
@trentanimations1297 3 года назад
Agreed
@emaarno131
@emaarno131 3 года назад
it's easier than I thought. The code link doesn't work. can you put it again in the comments? than you a lot
@user-tr6co8mw4j
@user-tr6co8mw4j 4 года назад
I try your code does not work DS3231 rtc(SDA, SCL); exit status 1 'DS3231' does not name a type; did you mean 'CS21'? This message comes to me
@askingmachine8858
@askingmachine8858 4 года назад
If it for 3 time a day and last for 5 minute and exactly same time next day and so on.
@ekdilipkumar
@ekdilipkumar 4 года назад
Unable to display code, reads 404 error on page. Please reload the link
@senger1985
@senger1985 4 года назад
Links to code and library not working
@PapiJack
@PapiJack 5 лет назад
What is that software he is using to draw the circuit and where can I get it? Thanks.
@lokeshkumarveshala8232
@lokeshkumarveshala8232 5 лет назад
it is arduino software(arduino ide) search directily in goolge as "arduino ide download"
@joelserrao1078
@joelserrao1078 3 года назад
its called frtizig, its paid software you can buy from their website
@PapiJack
@PapiJack 3 года назад
@@joelserrao1078 thank you very much Joel.
@nikdano
@nikdano 6 лет назад
Your link not working sir!
@suhassalunke7882
@suhassalunke7882 4 года назад
how to add more 6 relays to the arduino RTC and control each relay at a specific time
@sameexc
@sameexc 4 года назад
Did u found anything for this? Me too want the same functionality for 6 or more relays
@suhassalunke7882
@suhassalunke7882 4 года назад
@@sameexc no bro
@katonae8285
@katonae8285 4 года назад
Hello your video is very helpful and good but the link for the code dont work please make everything
@katonae8285
@katonae8285 4 года назад
And please write me back
@kunalmankar1662
@kunalmankar1662 3 года назад
hey brother, please update the link of CIRCUIT and CODE for this project please,...,,..,..,,.,..,.,.
@med1739
@med1739 4 года назад
the link of cod it id not good
@rameezkoya007
@rameezkoya007 5 лет назад
DS23231.h: No such file or directory How to fix this error
@munishdhingra4323
@munishdhingra4323 4 года назад
Correct even I could not find it in examples
@shaku12
@shaku12 5 лет назад
how can i set multiple activation times?
@samuelgonzalez317
@samuelgonzalez317 5 лет назад
I've got the same issue, I need to trigger relay 10 minutes every hour
@manjujain5991
@manjujain5991 6 лет назад
Good video👍 Please can you make this without Arduino and by using 9V battery?? Please do reply.... Waiting for your reply...
@mnunez6153
@mnunez6153 6 лет назад
you can use IC4060 with few passive electronic components....The drawback is: no clock involve. you can utilize the device through its ON and OFF intervals, depending on resistor-capacitor combinations. you can google it.
@rudyhenderson5002
@rudyhenderson5002 5 лет назад
Please fix the code link bro. (best to just post it here)
@shifty212
@shifty212 5 лет назад
Just go to his website in the description.
@johnroo1607
@johnroo1607 4 года назад
@@shifty212 The code is there but not the library
@renren9007
@renren9007 3 года назад
I need liblary
Далее
Arduino Timer Control Relay Devices
6:34
Просмотров 100 тыс.
Arduino and DS3231 Real Time Clock Tutorial
3:59
Просмотров 452 тыс.
Breadboarding tips
20:16
Просмотров 426 тыс.
Control High Voltage Devices - Arduino Relay Tutorial
7:30
iPhone socket cleaning #Fixit
0:30
Просмотров 17 млн