This relay draws 66mA current in total when it is ON. So it will have no affect on Arduino at all.
@mihirthanekar14824 жыл бұрын
Works fine...
@albertvaldez26694 жыл бұрын
The limit for the Arduino pin is only 40mA. Not good.
@advisedpotato89834 жыл бұрын
Albert Valdez pretty sure it’s 90mA according to google
@eduardomeller69263 жыл бұрын
The official arduino website say that "DC Current per I/O Pin: 20 mA". What to do now?
@eduardomeller69263 жыл бұрын
Just found out that the 5V regulator of my arduino mega was not working anymore. I have a 12V power supply hooked on it, but the arduino only worked when the usb was hooked as well. I have to confess that I am not 100% sure it was the relay module the responsible for the broken 5V regulator, but as soon as I hooked it up the arduino started behaving strange. The problem with this relay module in particular is that it has no optocoupler. If I can give one advice to everyone is the following: DO NOT USE A RELAY MODULE WITHOUT OPTOCOUPLER WITH ARDUINO.
@viveknayar86773 жыл бұрын
Tutorial should be like this Short Straight to the point Correct explanation Intersting Thnx a lot sir for such a wonderful video.
@randywetzler59762 жыл бұрын
Thanks for sharing as I was scratching my head getting it to work. I was writing the Arduino code to write the pin as "high" instead of "low". Worked great after that!
@robojax2 жыл бұрын
Excellent!
@BJ-uncensored3 жыл бұрын
Outstanding video. I loved the code split screen. Very good explanations, too! The reason I clicked is because it is the shortest video on arduino relays. It's taken me longer to thank you, than to watch and understand your video. Amazing! Thanks again.
@robojax3 жыл бұрын
I am glad you. It helped. Please check my other videos related to relay or other stuff. Please subscribe and share 👍
@benjaminhoward98017 жыл бұрын
This is exactly what I was looking for. Informative, fast and concise. Just brilliant. Thank you so much kind Sir, greatly appreciated.
@robojax7 жыл бұрын
you are welcome. :-)
@filipistee8854 жыл бұрын
Ok to be honest, i got this for christmas and didnt understand it. Thanks for helping me understand!
@darcostoianov1864 жыл бұрын
Bro, i searched this for days. Love it! Good tutorial 😁
@robojax4 жыл бұрын
I am glad you found it and it helped. and here is the version where you control AC bulb kzbin.info/www/bejne/nWfOaaaGf96cnJo
@tonyb54696 жыл бұрын
One of the best, if not THE best tutorials I have seen. Subscribed. Now looking at all your others. I hope you have done, or will consider doing a mosfet tutorial. Being able to control low and high power devices is what the Arduino is all about.
@jeffflowers54897 жыл бұрын
N.O. = Normally Open (off) and N.C. = Normally Closed (on)
@robojax7 жыл бұрын
Yes. Thanks for pointing and correcting.
@munawerhussain23045 жыл бұрын
Exactly
@onkarshikhare315 жыл бұрын
When ever I connect relay by default my led attached to out put should be off .but I tried it shows on . What do I do
@timeorspace7 жыл бұрын
Thanks for the video, it helped me troubleshoot my relay problems-I had previously grayed-out "//" my code line for specifying my output pin's mode. Now it works!
@robojax7 жыл бұрын
You are welcome. I am glad you found the issue.
@sarimbinwaseem6 жыл бұрын
That was simple and easy to understand man ..... Nice Edit: Subscribed....!
@robojax6 жыл бұрын
thank you very much.
@BluPrint8344 жыл бұрын
Great explanation; in a simple video. thanks
@robojax4 жыл бұрын
Glad it was helpful!
@Unixxx_213 жыл бұрын
thank you so much for this I figured something out for my project!
@anushangapavith92784 жыл бұрын
Very useful. I was finding such video. ❤️❤️
@robojax4 жыл бұрын
Glad it was helpful!
@dairemacmeiric66876 жыл бұрын
Thank you for this demo, it showed me exactly what I needed to know
@robojax6 жыл бұрын
you are welcome.
@lot10games6 жыл бұрын
Best exemple found on youtube. Nice presentation!
@robojax6 жыл бұрын
Thank you.
@kp_kovilakam4 жыл бұрын
Thank you for the simple explanation brother👍
@robojax4 жыл бұрын
Glad it was helpful!
@mohamadhabibhomeidi56345 жыл бұрын
The green and red led is on but the relay not switch what the mistak? Is the currnt low?
@viswanathav96202 жыл бұрын
Very nice and explained in detail with easy method 👌
@robojax2 жыл бұрын
Hello, this a better video with wiring diagram from my course kzbin.info/www/bejne/hF7bk6uqfKyiftk
@mohfa180610 ай бұрын
But how the LOW signal makes the relay on ??
@ineffige4 жыл бұрын
you've just got a new subscriber. Great video!
@robojax4 жыл бұрын
Thank you.
@kaushalyalakshitha9682 Жыл бұрын
thanx for your support ...!😀🥰🥰
@SuryamTT2 жыл бұрын
Thank u sir .excellent .this is the one I looking for . Thank u so much
@sosscs2 жыл бұрын
Is the signal/control pin connected directly to the base of the transistor?
@palmy10552 жыл бұрын
Thank you for this video. I am wanting to turn a 5v DC pump on every 24 hours for a few minutes, what is the delay I can programme on a Mega 2560. Thanks
@robojax2 жыл бұрын
Hi, welcome. Arduino Mega or UNO does not make any difference. If are new to relay, then this video from my course will help you better as it has full wiring diagram kzbin.info/www/bejne/hF7bk6uqfKyiftk for timing we have Real-Time clock (or RTC) module we can use to control something at exact time and date. here is one full video to use RTC kzbin.info/www/bejne/naucqaSsh9eiers to make either a clock or just use it as Alarm to control a load. My Arduino Step by Step course that starts here kzbin.info/www/bejne/Y2fUhKV6iqZol5o
@56213463 жыл бұрын
very well done sir! i learned a lot!
@AlexJoneses3 жыл бұрын
If I connect the 5vdc to both the vcc and signal, and gnd to gnd, will the relay be activated every time it receives power?
@robojax3 жыл бұрын
yes it will.
@ser7ser7i5 жыл бұрын
Ooooooo first time i see you :) Thank you for all the good work.
@robojax5 жыл бұрын
You are welcome. Nice to have you on my channel.
@mikerodgers90697 жыл бұрын
Great job !! Simple, fully explained. Thank you
@robojax7 жыл бұрын
You are welcome.
@lottalava2 жыл бұрын
hello, how could this relay be melted into a abs board?
@hummingbird25203 жыл бұрын
Can we do input of 3 volt
@ArbyCreations5 жыл бұрын
Could something like this be used to trigger a garage door or similar where it just expects a button press and no voltage throughput?
@robojax5 жыл бұрын
This is just a relay so you can turn ON or OFF a larger load. If you are looking for a push button control of relay, please see this video kzbin.info/www/bejne/bXSmhIWpasepfpI
@TinoushGTR3 жыл бұрын
Hi there, thanks for this video but i couldn't find a answer. I want my 12 fan go on when raspberry pi is turned on. So using the USB port as a trigger. Using just 5v and ground from USB. Is it possible?
@robojax3 жыл бұрын
Hi, this video has nothing to do with USB. You could have searched for USB in my channel . Here is the video kzbin.info/www/bejne/aGe7eZWVmNWcd6M
@tanzixing38412 жыл бұрын
Hi,i want to ask if i want the relay module to connect with 12V dc led, which type of relay module i should use?
@robojax2 жыл бұрын
Hi, relay is just a switch which connect and disconnects the wire. Doesn’t matter if you connect 12V load or connect 220V
@tanzixing38412 жыл бұрын
@@robojax ok thank you so much
@nuenoir5 жыл бұрын
really simple and easy to understand! keep up the good work bro
@robojax5 жыл бұрын
Thank you.
@donaldklopper Жыл бұрын
NC = Normally Closed NO = Normally Open So the one is a NOT of the other Perfect video otherwise, nice, thank you!
@benardopoku35382 жыл бұрын
Hello sir will this same relay work with dc solenoid valve ?
@robojax2 жыл бұрын
Hello, relay is just a switch and it work like normal switch with anything
@MrAbcdefgh19896 жыл бұрын
Hello, can I use this type of relay (+ board) self-standing also? I was thinking it for a personal project, commanded by my usb port, when I switch my smart-tv on (to automatically switch some external speakers on). Would it work? can I connect the command + supply powers together? thanks
@robojax6 жыл бұрын
Yes you can use it without Arduino. Just need the input to be 5V. I have video showing how to control relay using USB kzbin.info/www/bejne/aGe7eZWVmNWcd6M or simple module kzbin.info/www/bejne/fquvdJ6wjZqkadk
@prudvi014 жыл бұрын
Excellent video! Thank you so much
@robojax4 жыл бұрын
You're very welcome!
@PreetKaur-os8gc7 жыл бұрын
Very nice demo👍
@robojax7 жыл бұрын
thank you.
@muhammadhassim58622 жыл бұрын
Good tutorial thankyou sir!
@robojax2 жыл бұрын
here is the better version of this video with wiring diagram and details from my course kzbin.info/www/bejne/hF7bk6uqfKyiftk
@_hadisalame7 жыл бұрын
Hi dear, I want to know if the ac power is available or not to read an input signal in the arduino.
@robojax7 жыл бұрын
Hi, you can read values between 0v to 5v. If your values are in between 0-5 volts you can read it. So to measure AC voltage, just use resistor voltage divider to reduce it by 10 time or 20 times and then measure. If you want to know how to read voltage, watch this video kzbin.info/www/bejne/ipOvlXSHpapnoKc
@younesakakba10346 жыл бұрын
hello sir , i did the same thing by using LED ( it's working well '' two state On/Off '' ) but when i use the same relay module switch it stuck in one state '' On '' ?
@robojax6 жыл бұрын
did you update the code or used exact code? it should turn ON and OFF. Share your code on this website codeshare.io/ once you pasted your code, you will have a unique URL (web address) and then send it to me to look at it. Please reply to this comment here so I can find your comment.
@younesakakba10346 жыл бұрын
@@robojax codeshare.io/GLbAlK ( i'm using Nodemcu esp8266)
@contravetile6 жыл бұрын
Good Demo ☺
@robojax5 жыл бұрын
Hi, KZbin made new tools so I can check which comments I have not replied and here I found you. Sorry I missed your comment. Thank you.
@micaelantunes70556 жыл бұрын
What happen if you disconnect the trigger input when the gate is on? Will it stay closed forever?
@robojax6 жыл бұрын
No. It will turn OFF and stays OFF.
@rodriguezfranco38396 жыл бұрын
Can someone tell me if a ssr can be used for 5v direct current? would be to control an injector in a fuel injection project managed by arduino
@robojax6 жыл бұрын
watch my video on Solid State Relay kzbin.info/www/bejne/bGWxkqeCmqyml6c
@gizem89533 жыл бұрын
Hi I have relay but not like this it's not relay module just relay piece can I still connect this to arduino or raspberry?
@robojax3 жыл бұрын
Hi, please watch this video then to learn how to drive a relay kzbin.info/www/bejne/hF7Jd55rZqqVbtU
@gizem89533 жыл бұрын
@@robojax thank you
@davetaylor30677 жыл бұрын
Hi , I have just followed your instructions and on my relay a red led is flashing in time to the on/off code instruction but when I put my multimeter onto the CPM and NO pins on the relay I am not getting a "buzz" can you help please ?
@davetaylor30677 жыл бұрын
I have tested the input voltage to the relay and I am getting a 5V feed from the Arduino and the green pwr light is on
@robojax7 жыл бұрын
the "buzz" is where the relay doesn't get enough power. Is the relay 5V? some times they put 12V relay.
@gadriel00006 жыл бұрын
Woah thankyou very much! This is so helpful.
@robojax6 жыл бұрын
You are welcome. I am glad you found it useful.
@alanmcrae85943 жыл бұрын
I got two of these for an Arduino project. They work okay, but there are no mounting holes! Anybody have any suggestions on how to mount them in a plastic project box enclosure along with other active electronics components?
@robojax3 жыл бұрын
adding mounting holes will make the size larger. you can either use acrylic to make your own box using glue or 3D print. you may also be able to find larger relay modules which holes on Amazon or eBay.
@tharukagunasekara38077 жыл бұрын
That was very helpful. Thanks a lot.
@robojax7 жыл бұрын
you are welcome.
@debabratasikder94487 жыл бұрын
Strong basic & helpful ......thanks a lot.........
@robojax7 жыл бұрын
You are welcome. 👍
@noodysamy32044 жыл бұрын
can i connect 5v 1 channel relay to a 3.3v vcc?
@robojax4 жыл бұрын
no. it will not work.
@Abbici4 жыл бұрын
Hi. Sorry for the bother but... I need your help really!!! is there a big difference between JQC-3FF-S-Z and SRD-05VDC-SL-C? Thank...
@robojax4 жыл бұрын
Hi, no problem. Big difference, NO. The module shown in this video is not just relay, but it is a module with other components. this is LOW level trigger. if it is like a module, then both should be the same. but electrically they should have different characteristics like internal resistance, turn-ON current etc. The better and latest video of this video is here kzbin.info/www/bejne/nWfOaaaGf96cnJo and here is the HIGH level trigger module video kzbin.info/www/bejne/a2m7iIl6o6dqidU
@Abbici4 жыл бұрын
@@robojax Ahaaaa... THANK YOU!!!
@robojax4 жыл бұрын
you are welcome.
@amirulsiddiq77647 жыл бұрын
that was a very clear explanations.. thanks
@robojax7 жыл бұрын
You are welcome. Thank you for your subscription and thumb up.
@veilixakawaii99197 жыл бұрын
Hi , this relay same with the relay with the keyes ?
@robojax7 жыл бұрын
Yes it is. the same relay is just soldered on the board here.
@veilixakawaii99197 жыл бұрын
thnks :)
@sanjaykumar-vr3fh5 жыл бұрын
Can this relay trigger 12v motor from 12v battery power supply?
@claudiosus5 жыл бұрын
No. Only 10 A.
@claudiosus5 жыл бұрын
See on the relay 10 A on DC et AC
@robojax5 жыл бұрын
Yes you can if the amount of current for your motor is less than the rated current of your relay . see this for calculating relay power snag.gy/UDJMCg.jpg
@sanb35865 жыл бұрын
Thanks dude you help me alot
@robojax5 жыл бұрын
You are welcome.
@kranthieee4 жыл бұрын
Hello sir, what is the max voltage i can give it as an input to the relay
@robojax4 жыл бұрын
it says 5V. Higher voltage will not turn it OFF. Thank you for not skipping the ads and keep watching it. This will help me a lot.
@darwinlim48373 жыл бұрын
is it ok to use 220V AC pump on this?
@robojax3 жыл бұрын
does not matter what. as long as the current rating of relay is respected, it should work.
@PT_Mohamed_Alaa4 жыл бұрын
Good and easy examble
@Almonds74 жыл бұрын
Hey Robojax, I wrote the code you have on Arduino int touchPin = 2; int val = 0; int relayPin = 8; void setup() { pinMode(relayPin OUTPUT); } void loop() { digitalWrite(relayPin, LOW); delay(500); digitalWrite(relayPin, High); delay(500) } ...and the arduino gave an error saying "too few arguments to function 'void pinMode(uint8_t, uint8_t)" what do you think is wrong I've followed everything you video have mentioned..please help Robojax. Much appreciated and thank you.
@robojax4 жыл бұрын
Hi, you forgot the comma in pinMode(relayPin OUTPUT); just before the OUTPUT
@Luganjahkinghe7 жыл бұрын
Why high and low have inverted result on relay? With High is off, with low is on. Can i use it for 1200w device? ( 220v)
@robojax7 жыл бұрын
It is because you have connected your wires like that. You have 3 terminal (let's call it ABC) to connect your 220v. You have connected One to center (B) and one to the other side (A) . Simply keep the center wire (B) and change the position of wire (A) to (C) which means move it to the terminal which were empty and it will inverted now.
@Luganjahkinghe7 жыл бұрын
RoboJax Videos I did not connect the output, I'm talking about green light
@98694153786 жыл бұрын
I have the same question. Why does the green light on relay turn on(i.e. the relay turns on) when a LOW is written to the relay??
@kingdavid44634 жыл бұрын
Thank you man
@maciejskiba76063 жыл бұрын
Well explained
@robojax3 жыл бұрын
Thank you. Please subscribe. I appreciate it and helps my channel grow. Thank you
@valor36az7 жыл бұрын
Great tutorial
@robojax7 жыл бұрын
Thank you.
@Dean.Michael.Winchester2 жыл бұрын
Why my motor still works when I connected to NO? Does the relay works when the circuit have no electricity? I mean, I use 2 sources, from USB and from 9v battery, the relay doesn't light up if the electric from USB not connected and the board is not online, but the motor still works as it use the battery source
@robojax2 жыл бұрын
Yes it does turn something ON when it has not power. You can use it to turn OFF something or turn ON. You may need to watch this video which is part of the course kzbin.info/www/bejne/hF7bk6uqfKyiftk
@Dean.Michael.Winchester2 жыл бұрын
@@robojax so, it doesn't matter if I use relay or not, the connection will always be ON? Even if I connect to Normally Open? I though relay is just the same as the switch with NO and NC hmm
@Dean.Michael.Winchester2 жыл бұрын
@@robojax my bad, I connected it to NC instead of NO, I just checked it lmao, thanks dude
@robojax2 жыл бұрын
you are welcome. Please watch this video kzbin.info/www/bejne/hF7bk6uqfKyiftk which has better details and all videos have wiring diagram.
@The_Uberfly4 жыл бұрын
Yeaaaah i love the Paint way!
@robojax4 жыл бұрын
😊 .
@hippohop67154 жыл бұрын
Thank you kind sir
@robojax4 жыл бұрын
You're welcome
@Giat_W2H6 жыл бұрын
i used your example on my project but my relay continuously still on both sketch condition (high & low) and not blinking why
@robojax6 жыл бұрын
is the red LED ON? if not check the power. When the red LED is one, try to connect the input (IN pin) of relay to 5V and then to connect to GND. You should hear click and green LED on. if this fails, the module is BAD.
@snvkgram6 жыл бұрын
I am facing one issue! The switching at relay is not working!! Although the LED on Relay blinks, the bulb is never powered-on. I have tested the power line is fine. But when the relay is turned on, the bulb does not get power. I don't see voltage at NO when relay is on. I tried with NC. Then the bulb is powered-on but it never gets switched-off. It is always on. Thanks in advance.
@robojax6 жыл бұрын
do 2 things. first. the two wire that you connect to relay, connect them together (to switch it ON) and then (carefully without touching it) connect the power to the bulb to make sure it turns ON. 2-using continuity tester on multimeter (which buzzes when you connect two prob) or if you don't have this option, use it as ohm meter and check the two terminal of relay where you connect the bulb. you should read zero OHM. there can't be anything else. you should find problem either in step 1 or in step 2. There is no more help I can offer.
@rozamaevillaraza11787 жыл бұрын
hello sir! im new to arduino. I have a question I am using arduino mega 2560 and my pin 8 is occupied. Is it okay if i put the input in relay to pin 7 or 10? because pin 9 is also occupied. thanks
@robojax7 жыл бұрын
Yes you can. in this line int relayPin = 8;, just change 8 to another pin.
@rozamaevillaraza11787 жыл бұрын
Sir, I have another question. Can I connect a 12v solenoid to a 5vrelay. then a relay is connected to arduino? cause in some videos I see they use transistor. thanks
@robojax7 жыл бұрын
I am sorry I missed your question. yes you can. Relay is completely isolated (separated electrically) so you can connect any device that the relay can handle. If relay can handle 10A, then you can connect any device with up to 10A. Be careful if you work with any voltage over 50V to have proper protection and insulation.
@rozamaevillaraza11787 жыл бұрын
Thank you for the response Sir. Now I connected the 5vrelay to arduino but my 12v solenoid which is connected to my relay doesnt work.. Maybe theres something wrong with my code. by the way i connected the wires of solenoid to COM and NC..
@robojax7 жыл бұрын
do you hear click sound? does the LED on the relay module turns OFF or ON?
@sulskull4 жыл бұрын
Some tutorials have a diode connected too, why is that? Sorry if the question is stupid, I’m a beginner
@robojax4 жыл бұрын
no question is stupid. You have a valid question. I have video on that here kzbin.info/www/bejne/hF7Jd55rZqqVbtU
@sulskull4 жыл бұрын
@@robojax do I need a transistor if it's a relay module?
@robojax4 жыл бұрын
that's why I sent you the video. Watch it and you will get all your answers.
@personalaccount33325 жыл бұрын
If the relay is trigger to n/o that means it break the circuit ryte
@robojax5 жыл бұрын
N/O means Normally open (disconnected). so when relay if OFF, it is OPEN. When relay is ON, it is closes the switch. Watch this video kzbin.info/www/bejne/nWfOaaaGf96cnJo
@personalaccount33325 жыл бұрын
@@robojax actually i want to connect relay to motorbike hand starter.. If the voltage pass through the relay.. How to make the relay back to n/c
@robojax5 жыл бұрын
This is video is for that. or the other video. Use your bike instead of the bulb.
@yogeshpatel6177 жыл бұрын
Can the same can cut 12 volt ?
@robojax7 жыл бұрын
the relay can connect and disconnect any voltage up to 230V.
@tonymac967 жыл бұрын
..how many mAmps can this relay consumes from the 5 volts ???
@robojax7 жыл бұрын
I just measured it and it draws 66mA current in total when it is ON.
@tonymac967 жыл бұрын
Excellent!!!! Thanks!!!
@youssefvictor80887 жыл бұрын
Can I use it safely with 220v device without worrying about self induction ?
@robojax7 жыл бұрын
yes you can. it is made for that purpose. But, make sure the relay can handle that amount of current (amper). So check the relay current rating usually 10A or more. and then check the 220v device power. Example if you connected 440W device, then 440÷220=2A
@youssefvictor80887 жыл бұрын
RoboJax Videos Thnaks for reply I saw videos using normal relay ( not module ). They used diode for protecting arduino, Should I use diode with normal relay and not necessary with module ?
@robojax7 жыл бұрын
Yes the diode is necessary to protect the circuit. This module has the protective diode so you don't have to worry.
@tropicaljantie7 жыл бұрын
good explanation/demo. can a 220 device be controlled with this?
@robojax7 жыл бұрын
Yes it can as long as the power of the device is not above the 10A. So the deice should be under 2000W. Ready the current your relay can handle. it should show 10A or 5A. then multiply Voltage (V) x Current(A)=Power (Watt)
@manoramranavlogs7286 жыл бұрын
From where can i get low level trigger
@robojax6 жыл бұрын
Amazon, ebay.com or AliExpress.com
@manoramranavlogs7286 жыл бұрын
Thanks
@robojax6 жыл бұрын
You are welcome.
@muhammednabasheerbasheer78994 жыл бұрын
Can a 12v relay work on 5v Arduino
@muhammednabasheerbasheer78994 жыл бұрын
I want to use the relay to connect to a 12v motor. I tried doing it, but it won't work
@robojax4 жыл бұрын
if 12V relay module. yes. When we say module, it means Relay with other components on the PCB.
@muhammednabasheerbasheer78994 жыл бұрын
@@robojax but I connected the relay to the Arduino and then connected a 12v motor to it. But it is not switching. The Led placed instead of the relay is working, but the relay doesn't work.
@robojax4 жыл бұрын
It seems you haven' understand it. see this video kzbin.info/www/bejne/nWfOaaaGf96cnJo
@deqdanandi69276 жыл бұрын
Can I know why whe want to give 5v to relay..the coding needed LOW
@robojax6 жыл бұрын
I have explained this in video. watch it again.
@zeguyy5 жыл бұрын
what relay did you use?
@robojax5 жыл бұрын
it is shown in the video. "relay module arduino" is the keyword you search.
@electronicsolutionindia35386 жыл бұрын
very nice
@robojax6 жыл бұрын
Thank you.
@mrutyunjayashiremath55895 жыл бұрын
thank u new experience this video
@robojax5 жыл бұрын
You are welcome.
@neopumpkin52245 жыл бұрын
Sir, can you make a water dispenser by using relay, sensor, air pump and arduino..
@robojax5 жыл бұрын
I will make video that many people need. Water dispenser I never heard and it seems very few people might want it.
@neopumpkin52245 жыл бұрын
@@robojax Ok, sir. Thank you for replying my comment. ^_^
@robojax5 жыл бұрын
You are welcome.
@nishanthsinceborn5 жыл бұрын
Super sir
@robojax5 жыл бұрын
Thank you .
@mohamedirfan28164 жыл бұрын
ThankYou Somuch...
@robojax4 жыл бұрын
You are welcome
@mohamedirfan28164 жыл бұрын
@@robojax hey I am programming a sanitizer dispenser with IR sensor, Arduino Nano,Relay module I want a timer limit for each dispensing (I mean, even if someone puts hand under IR sensor for a long time continuously it should only dispense for 4 seconds) I wrote void setup() { pinMode(8, INPUT);// set pin as input for IR sensor module pinMode(9, OUTPUT); // For relay module } void loop() { bool isON = false; int detect = digitalRead(8);// read obstacle status and store it into "detect" if(detect == LOW && !isON){ isON = true; digitalWrite(9,HIGH); delay(2500); digitalWrite(9,LOW); }else{ digitalWrite(9,LOW); } } But it's not stopping after 2.5 seconds even if put my hand for long time Is there any mistakes in my program Please help me....I am stuck I hope you will help me please...
@mohamedirfan28164 жыл бұрын
@@robojax please help me...
@mohamedirfan28164 жыл бұрын
@@robojax please...
@Pinolissimo6 жыл бұрын
thank you!
@robojax6 жыл бұрын
You are welcome.
@tulea956 жыл бұрын
Hello! Does anyone have this relay module for fritzing? Where can I find it to import it in fritzing?
@niloflora43164 жыл бұрын
thank you
@robojax4 жыл бұрын
You're welcome
@SundayOwens2 жыл бұрын
awesome
@robojax2 жыл бұрын
thanks. here is the better video with wiring diagram and more stuff kzbin.info/www/bejne/hF7bk6uqfKyiftk
@zeeshankhan-gw2lv2 ай бұрын
Thanks
@xristoskaiti6 жыл бұрын
thanks!
@robojax6 жыл бұрын
You are welcome.
@googleuser42035 жыл бұрын
And I thought there is something wrong with my relay, turned out LOW signal makes it on and HIGH signal disconnects it.
@robojax5 жыл бұрын
Good to hear you find the issue.
@googleuser42035 жыл бұрын
@@robojax Yeah, thanks. Love your channel btw, keep the good work.
@maqeelqureshi7 жыл бұрын
Thanks
@robojax7 жыл бұрын
you are welcome.
@indrianto86497 жыл бұрын
hallo bro, are you have coding relay for cvavr bro? need help please :(
@robojax7 жыл бұрын
sorry bro, I have no experience of CVAVR. will look into it.
@pallavis60687 жыл бұрын
sir i getting exit status 1 error
@robojax7 жыл бұрын
It could be your Anti Virus real time protection. Disable "real time protection" and it should work. Watch this video kzbin.info/www/bejne/oZOTmJucirRld6c
@munawerhussain23045 жыл бұрын
NO: is Normally open sir. Not Normally ON.
@robojax5 жыл бұрын
Yes. It is but I has been recorded and can't edit it.
@shasikumar72576 жыл бұрын
8chennal 5v relay connection
@robojax6 жыл бұрын
did you search my channel for this?
@harshchaturvedi42186 жыл бұрын
You also have a Arduino Uno clone😂😂, i buyed it by mistake.
@robojax6 жыл бұрын
Arduino has a main chip which is made by ONE manufacturer MICROCHIP. No matter where you get your Arduino, you ill have the chip from Microchip. Arduino is open source and anyone can make it . There is no clone or authentic. Just different manufacturer. In this case you could say it is not made by Arduino.cc