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"); } }
@munishdhingra43235 жыл бұрын
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
@navigator40772 жыл бұрын
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
@vishnujayakumar12293 жыл бұрын
How set defferent times of activation in a day?
@Infinity2u4 жыл бұрын
What is the website you used for designing your circuit?
@zacmrochko4365 жыл бұрын
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.
@jonitube46674 жыл бұрын
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
@johnmarksiatriz3725 Жыл бұрын
Every day in will trigger the power on if you set a example 22:40 and it will power off 22:41?
@pretendanought5 жыл бұрын
Is there a minimum duration I.e can I set the relay to close for 30 seconds?
@firaolmekete42013 жыл бұрын
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
@voiceoftruth1O16 жыл бұрын
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
@MisterBPK4 жыл бұрын
www.rinkydinkelectronics.com/library.php?id=73 here you will find exact library
@afroozmampra19904 жыл бұрын
link for the code: www.viralsciencecreativity.com/post/arduino-relay-trigger-at-specific-time-ds3231-rtc-module
@jazijahan28083 жыл бұрын
@@afroozmampra1990 Thank you
@mdafroz41905 жыл бұрын
Can we add multiple time trigger in this project can you plz tell how to I would be. Very helpful to my project
Thank you for this video. Why not sync arduino board time with rtc and set alarm with alarmrepeat ?
@Mathandcodingsimplified3 жыл бұрын
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?
@umer60693 жыл бұрын
how can i adjust the code so that i can triger the relay two times in a day.
@christiangoehl89252 жыл бұрын
Is this trigger working with a specific day of month too? 🤔
@hakanakblk99524 жыл бұрын
How can I get the codes? the url you provided is not working
@Oratazana3 жыл бұрын
Cant make it work, error on " DS3231 rtc(SDA, SCL) "
@nikhilchitroda64095 жыл бұрын
What is the change in the code if i use ds1307 module ?
@howdoescompute11804 жыл бұрын
did you ever get a response? if so could you pm me the code modification?
@sujithmarasinghe6 жыл бұрын
How can I download the DS3231Serial_Easy library.I tried so many times but I couldnt find it.pls help me. thanks.
@lokeshkumarveshala82325 жыл бұрын
download library first
@markvincentquinton42142 жыл бұрын
can you put here my friend the library for ds3231 rtc module
@leanderpereira52574 жыл бұрын
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
@mesquitamk16814 жыл бұрын
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
@beatryondjohnny69823 жыл бұрын
can i get the latest link for this code timer?i cant open that link at discription,..
@sandeepsingh-rt2eu3 жыл бұрын
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....
@kensee99913 жыл бұрын
Hello. Sir how to put 2x day one in morning one in afternoon
@paternocortez78073 жыл бұрын
what if we use it everyday did we change the date??
@nadranasinghe3 жыл бұрын
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.
@Andrea-lf3jq3 жыл бұрын
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?
@mailmahim3 жыл бұрын
can i do this with arduino nano?
@raybright58055 жыл бұрын
Links to code and library not working ... HELP
@MisterBPK4 жыл бұрын
www.rinkydinkelectronics.com/library.php?id=73 here you will find exact library
@cardesign13136 жыл бұрын
Sir which gear motor i used for making power full truck
@PapiJack5 жыл бұрын
What is that software he is using to draw the circuit and where can I get it? Thanks.
@lokeshkumarveshala82325 жыл бұрын
it is arduino software(arduino ide) search directily in goolge as "arduino ide download"
@joelserrao10783 жыл бұрын
its called frtizig, its paid software you can buy from their website
@PapiJack3 жыл бұрын
@@joelserrao1078 thank you very much Joel.
@gzegoszbjencecikjevic28483 жыл бұрын
I have a problem here. I did everything like it is in video, but light runs all the time. Any thoughts?
@step_freeskills101 Жыл бұрын
what is the library used?
@chetankumar61585 жыл бұрын
Which software you will use to design circuit diagram
@hrushikeshbagal6883 жыл бұрын
Hi sir I want to develop 10 auto controll 2 inches valve for farming perpos how to control them
@mrnick1231231235 жыл бұрын
What is that circuit diagram app that he uses? I can’t find anything close to it.
@romanaspr5 жыл бұрын
have you tried to google it...of cause not! fritzing.org
@K_M_M_G4 жыл бұрын
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!!
@Zero0Beats3 жыл бұрын
yeah, and you have to set it in your if-loop
@sakha.2gd2 ай бұрын
how can i make it turns on 2 times a day?
@Nikhilkumar-ci3md6 жыл бұрын
Can we set the time using an android app to this timer code? Is this possible?
@johnsisi89276 жыл бұрын
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 !!!!!!!
@askingmachine88584 жыл бұрын
Have you get solution?
@rameshboina88323 жыл бұрын
Bro please reply --- how to make every hour trigger relay with pic16f1847 ic. Please bro reply me
@juanmolina1742 Жыл бұрын
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
@AhmedAhmed-pt3hi Жыл бұрын
How can I add a condition that works every two days and not daily But at the same time
@isoguy.5 жыл бұрын
Great vid/ tutorial ruined by adding background music
@trentanimations12973 жыл бұрын
Agreed
@lphabravo44646 жыл бұрын
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
@asadulhuq6 жыл бұрын
Use Sonoff basic to do that. Sonoff is Rs 600 and it can remember scheduled on off time even after power failure.
@davkoon3 жыл бұрын
Hi sir, How can we trigger relay weekly?
@suhassalunke78825 жыл бұрын
how to add more 6 relays to the arduino RTC and control each relay at a specific time
@sameexc5 жыл бұрын
Did u found anything for this? Me too want the same functionality for 6 or more relays
@suhassalunke78825 жыл бұрын
@@sameexc no bro
@josuemgs54907 ай бұрын
How can I make it turn on 2 times a day?
@iamrobot3963 жыл бұрын
what happens when board is reset or power cut happens?
@shahidiqbal52732 жыл бұрын
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...?
@angelnevidespinozatoriz86774 жыл бұрын
Hi! Could you please post the link for the code to trigger relay at specific time? Thank you so much
@aathishanmugamkannan18582 жыл бұрын
Sir I need the time unravel every 15 minute on and run 15 minutes and then off.how to modifi the program
@umakalizz47985 жыл бұрын
May I have a circuit and code for automatic water pump to extinguish the flame using relay,flame sensor and esp32.
@bobbytaraantino3 жыл бұрын
How about specific time and DATE? Like 18 days in a month.
@zeemixvideos64855 жыл бұрын
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
@رجلالسلام-خ2و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
@gordondyer63103 жыл бұрын
Nice clear video. What software package do you use to draw the circuit diagrams?
@muhammadshehujaafar43023 жыл бұрын
I think the software he used is ‘Fritzing’
@christiankongsted50846 жыл бұрын
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.
@bhanupriyadagdi6 жыл бұрын
I want to display connect with this circuit then how will be connected please reply..
@yagneshpatel59344 жыл бұрын
Aapke video me aap code ka link de te ho magar ek bhi video ka link nahi chalta...
@ientu80842 жыл бұрын
how to make it run every day?
@katonae82855 жыл бұрын
Hello your video is very helpful and good but the link for the code dont work please make everything
@katonae82855 жыл бұрын
And please write me back
@howtomake55914 жыл бұрын
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.
@GrenPara3 жыл бұрын
Good video, thanks for making it. What software are you using to make the diagram at 58 seconds?
@meFawadIqbal3 жыл бұрын
Fritzing
@GrenPara3 жыл бұрын
@@meFawadIqbal Thanks
@chiranjitkarmakar8383 жыл бұрын
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
@SuperChecho20114 жыл бұрын
Algo pasa con los link, no found
@emaarno1314 жыл бұрын
it's easier than I thought. The code link doesn't work. can you put it again in the comments? than you a lot
@Althu-blog6 жыл бұрын
sooper (am frem india ) am wery happy to waching this video thanks (gog + you) sir
@senger19854 жыл бұрын
Links to code and library not working
@linuxettin4 жыл бұрын
How to use for multiple relays 6 ?
@richardhojstric3 жыл бұрын
Hello, i would like to programming, turn on and off every 10minutes, how can i do this ? Thanks "
@karansikarwar36913 жыл бұрын
Yes you can
@johnkg7026 жыл бұрын
Good day sir Cannot find code and schematic Link not working Pls upload the code and schematic Thanks
@Inspireunltd5 жыл бұрын
Hello I need your help for this Ardinou
@jeenageorge86835 жыл бұрын
yes what help you require at present to build this?
@ravirajgaonkar69374 жыл бұрын
It's showing error when I click on the link for code and circuit diagram.
@rudyhenderson50026 жыл бұрын
Please fix the code link bro. (best to just post it here)
@shifty2125 жыл бұрын
Just go to his website in the description.
@johnroo16075 жыл бұрын
@@shifty212 The code is there but not the library
@renren90073 жыл бұрын
I need liblary
@karthikonline49743 жыл бұрын
This project power online correct working but power resart project not working this probleam alive PLZ
@sanjeebanmaji86124 жыл бұрын
Great 👍👍
@yenrajan6 жыл бұрын
Sir, when the code and circuit link is clicked the browser shows "Not found" Kindly help
@kunalmankar16624 жыл бұрын
hey brother, please update the link of CIRCUIT and CODE for this project please,...,,..,..,,.,..,.,.
@thambirajahpathmanathan70802 жыл бұрын
Nice how to make 24 Hour timer cintroll
@leanderpereira52574 жыл бұрын
Can i have two serial begins
@ปอค้าบ-ฦ6ฬ2 жыл бұрын
how to set day bro
@رجلالسلام-خ2و4 жыл бұрын
How to set time automatically with DS3231 RTC using computer time and date?
@med17394 жыл бұрын
the link of cod it id not good
@keesjanweeda93415 жыл бұрын
really weird problem: i got this delay between my DS3231 time and my t.Hour/t.Min of 23 seconds constant. example: time 10:11:00,000 = 10 Hour(s) 10 Minute(s) 10:11:23,000 = 10 Hour(s) 11 Minute(s) 10:12:00,000 = 10 Hour(s) 11 Minute(s) 10:11:23,000 = 10 Hour(s) 12 Minute(s) does anyone know how to fix this, because i print the DS3231 real time to a display and it is verry annoying to have a 23 second delay on my on/off funciton. i could use the delay time to adjust the on/off settings but something doesn't feel right about that.
@captwig3 жыл бұрын
What about the second code? Could you send me it, please?
@nishant15gupta4 жыл бұрын
this code seems to be not showing anything in serial monitor
@ekdilipkumar5 жыл бұрын
Unable to display code, reads 404 error on page. Please reload the link
@steelkarthi6 жыл бұрын
Hi sir Can you send code for digital clock with P10 LED module
@رجلالسلام-خ2و4 жыл бұрын
Thanks for the great video
@tssolutionara15573 жыл бұрын
Kya bhai description me to kuchh attache hi nahi kiyo ho only show kar raho ho
@mnunez61536 жыл бұрын
you mean to say: uploading 2 different codes at different times on the same board? wouldn't the later overwrite the former? aren't you just confusing us newbies? I'll try combining them... I;m having a project of same concept but I'm still having few errors. Here's the link on my current project: kzbin.info/www/bejne/nWOxZpKPjrGcp9U
@Tanel845 жыл бұрын
I think he is setting just the time to time module with first code. So it will keep tracking time indpendently from that point on.
@shaku125 жыл бұрын
how can i set multiple activation times?
@samuelgonzalez3175 жыл бұрын
I've got the same issue, I need to trigger relay 10 minutes every hour
@waqarzarandawaiskhanvlogin48245 жыл бұрын
Kidly sir code link was not working reupload a code link for progrees
@TomHanke3 жыл бұрын
If there is a power failure at the time when the relay is to be closed. After the power supply is restored, the relay no longer closes according to the written code, very bad code.