Comments on: Guide for Relay Module with Arduino https://randomnerdtutorials.com/guide-for-relay-module-with-arduino/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Fri, 05 Jul 2024 01:53:14 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Jon Bray https://randomnerdtutorials.com/guide-for-relay-module-with-arduino/#comment-934213 Fri, 05 Jul 2024 01:53:14 +0000 http://randomnerdtutorials.com/?p=29723#comment-934213 In reply to Rui Santos.

One thing I found with my relay board was that some of the contacts on the back of the board run at 240v (I had made the somewhat silly assumption that the only bits I had to worry about not touching were the 240v terminals, and grabbed the back without even thinking about it, fortunately with one dry dry hand.

]]>
By: Jon Bray https://randomnerdtutorials.com/guide-for-relay-module-with-arduino/#comment-934212 Fri, 05 Jul 2024 01:49:06 +0000 http://randomnerdtutorials.com/?p=29723#comment-934212 In reply to SaltyBrains.

Can you go a little more into why this is a good idea please? I built an arduino and an array to control garden watering cycles (so I can do it or not based on the weather forecast) and sometimes it seems like the arduino resets when it flips the relay. Would opto-isolation be likely to stop this happening (if so, I guess I need to use another power supply to go to the relay?

]]>
By: umar https://randomnerdtutorials.com/guide-for-relay-module-with-arduino/#comment-798287 Sat, 19 Nov 2022 20:12:53 +0000 http://randomnerdtutorials.com/?p=29723#comment-798287 made an clap switch using an arduino uno and 5v relay sigle channel but the relay channel is not working with 9 volt batteries although my light is also 9v but its not working.. can you please tell me how to solve it

]]>
By: rezk mattar https://randomnerdtutorials.com/guide-for-relay-module-with-arduino/#comment-784672 Tue, 20 Sep 2022 05:19:06 +0000 http://randomnerdtutorials.com/?p=29723#comment-784672 Amazing site, please don’t stop it.

]]>
By: Kelum https://randomnerdtutorials.com/guide-for-relay-module-with-arduino/#comment-775360 Sat, 13 Aug 2022 06:39:22 +0000 http://randomnerdtutorials.com/?p=29723#comment-775360 Hi,
Interesting project. I need a help from you regarding the following;
Instead of PIR sensor I need to send a signal to Arduino via PC serial/COM port using jQuery script to activate the light. Can you help me for this? Many thanks.

]]>
By: Pupi https://randomnerdtutorials.com/guide-for-relay-module-with-arduino/#comment-750475 Fri, 20 May 2022 04:03:21 +0000 http://randomnerdtutorials.com/?p=29723#comment-750475 In reply to SaltyBrains.

From what I can tell, the relay board has optocouplers on it and there is no connection that circumvents those. Therefore I don’t know what you are talking about.

]]>
By: Charles Harris https://randomnerdtutorials.com/guide-for-relay-module-with-arduino/#comment-730916 Wed, 09 Mar 2022 00:21:36 +0000 http://randomnerdtutorials.com/?p=29723#comment-730916 Hi Sara
I want to do something similar but using a dual coil relay to switch 12 volt dc.
Is there a sketch to suit a dual coil relay ?
Can the code be modified to suit. It is just the dual coil bit that I need to know about.
Thanks

]]>
By: John https://randomnerdtutorials.com/guide-for-relay-module-with-arduino/#comment-670645 Sat, 18 Sep 2021 15:36:31 +0000 http://randomnerdtutorials.com/?p=29723#comment-670645 In reply to Sara Santos.

Hi! When I pass in front of the sensor the relay turns on. And then when I get far from the sensor range the the relays turns off. But sometimes, not always, the relay does not turn off when I get far from the sensor range, instead it keeps turning on and off sometimes 2, 3, 4 times. Sometimes It does not stop, just when I get close to the sensor again. I changed the code in: long debounceDelay = 10000; to 2000 (2 seconds).
The rest of the code is the same.
Could it be because of that? Or what could it be?
Thanks for answering! Kind regards!

]]>
By: Sara Santos https://randomnerdtutorials.com/guide-for-relay-module-with-arduino/#comment-670309 Fri, 17 Sep 2021 22:06:49 +0000 http://randomnerdtutorials.com/?p=29723#comment-670309 In reply to John.

Hi.
Can you provide more details? That’s a weird behavior.
Regards,
Sara

]]>
By: John https://randomnerdtutorials.com/guide-for-relay-module-with-arduino/#comment-670196 Fri, 17 Sep 2021 15:35:44 +0000 http://randomnerdtutorials.com/?p=29723#comment-670196 Hi! Excellent tutorial! Thank you! Just one question. Sometimes the relay stays turning on like a loop and does not stop. Do you know why this happens? I just changed the delay to 2000. Thank you! Kind regards!

]]>