💬 Relay
-
greetings, i have an idea to use a 12volt fan to move some air from one room to the room next to it (the first room has a stove for heating).
and i was thinking a relay would do the trick so i dont manually have to start it (and a nice script in domoticz that uses the data from the temp sensor + the ability to manually turn it on/off in domoticz).
now to my question: which relay should i get?
I looked at the ones in the store but it seems they are either for 230VAC or 5VDC -
Can you show converted sketch with 2 buttons and 2 relays ? I dont know how convert this sketch bersion with buttons...
@pepson Have a look at this thread for some ideas to get you started.
-
Cam I use an arduino pro mini 3.3V 8 Mhz to trigger the relay - or do I need a 5v arduino?
-
Cam I use an arduino pro mini 3.3V 8 Mhz to trigger the relay - or do I need a 5v arduino?
@Puneit-Thukral - it depends on the relay.
If you read the datasheet for intended relay you will see what is needed. Most relays i have seen requiers 5v and a good current (which Arduino sometimes fail to deliver). -
@Puneit-Thukral - it depends on the relay.
If you read the datasheet for intended relay you will see what is needed. Most relays i have seen requiers 5v and a good current (which Arduino sometimes fail to deliver).@sundberg84 I used a 3904 transistor between the relay and arduino and it works just fine with 3.3 V Arduino pro mini 8 HMz.
(2N2222 also works, but I have many pieces of 3904 and just a few 2N2222, hence using 3904) -
I have my gateway and my relay, I believe is working fine, I just want to know what set of caracters do I need to send in the serial monitor to turn on the relay? I will like to use the info in order to use a controller like Vantage or C4, is that possible? Regards
-
I have my gateway and my relay, I believe is working fine, I just want to know what set of caracters do I need to send in the serial monitor to turn on the relay? I will like to use the info in order to use a controller like Vantage or C4, is that possible? Regards
@Javier-Rubio I m not an expert- a complete novice.
I would suggest one of the following - trigger the relay through a controller or use one the the arduino relay example sketch in which relay is programmed to turn on and off every 1 second. This would help you validate if your wiring is correct or not. -
I tried the relay sketch on my arduino mini pro (5v), step down converter for the NRF module and a two channel relay. It's conecte to a Raspi GW wirh the 2.0.0 beta and FHEM as controller. The switching works as expexted. but the relay switches continuisly on and off on its own after a certain time. I tried removing the loop-block but with no effort. Is there anything i can do to get a stable state? Thanks
-
I tried the relay sketch on my arduino mini pro (5v), step down converter for the NRF module and a two channel relay. It's conecte to a Raspi GW wirh the 2.0.0 beta and FHEM as controller. The switching works as expexted. but the relay switches continuisly on and off on its own after a certain time. I tried removing the loop-block but with no effort. Is there anything i can do to get a stable state? Thanks
-
@Gizmoh sounds like the relays are not receiving enough power to remain on. How are you powering all this?
-
@korttoma
I'm powering this with 6 x AA Batteries into the RAW Input from the Arduino and the 5v output from Arduino to the Relay.@Gizmoh ok so it seems like the voltage regulator on the arduino cannot handle the load the relays produce when activated. You need to power the relay board directly from your batteries either trough another 5V regulator or if your relay board already can handle a higher voltage you can connect it directly.
-
@Gizmoh ok so it seems like the voltage regulator on the arduino cannot handle the load the relays produce when activated. You need to power the relay board directly from your batteries either trough another 5V regulator or if your relay board already can handle a higher voltage you can connect it directly.
-
hello one doubt
if a use this sketch: /mysensors/MySensorsArduinoExamples/examples/RelayWithButtonActuator/RelayWithButtonActuator.inowhen i press the button home assistant knows if switch was turned or off? its change the stat?
-
Hi,
First of all Merry Xmas to all of you!
I want to use this sketch with three LEDs to present the status of the alarm at home, so with a multicolored LED I have a green status, a red and a blue status, but I just want one color at a time, is there a way to alter the code a little to make sure that is a color is activated, the other one is turned off?
-
Hi,
First of all Merry Xmas to all of you!
I want to use this sketch with three LEDs to present the status of the alarm at home, so with a multicolored LED I have a green status, a red and a blue status, but I just want one color at a time, is there a way to alter the code a little to make sure that is a color is activated, the other one is turned off?
@riochicken yes, but I wouldn't recommend relays for controlling a led. It can be controlled directly from the Arduino pins.
Look at the code for these:
https://www.openhardware.io/view/21/RGBW-LED-Controller#tabs-source
https://www.openhardware.io/view/74/OH-MySensors-RGBW-Controller#tabs-source -
@mfalkvidd : I have directly soldered the LED's to the board, would be a waste of relays.. :) Thanks I will look into the examples you just gave...