Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [relay]

A relay is a part that acts like a switch that can be controlled by an Arduino. They usually are powered by sending current through a coil, which moves a piece of metal to touch a contact within it. (Note there are also solid state relays which act more like a transistor.) The moving parts is why some devices make a "clicking" noise when they turn on/off a light or another device attached to it.

1
vote
4answers
55 views

Fan regulator control from Arduino

I'm trying to control my ~230 V fan from the Arduino. Can anyone say the best possible ways to design a fan regulator that can be controlled by the Arduino using a low cost design.
0
votes
2answers
39 views

Why is my relay not triggering?

I have a 4 channel relay for my Arduino. Here's an image: From what I can tell, it's rated for 5V direct current because of the big 05VDC at the bottom, but please tell me if I'm wrong? If I'm wrong, ...
0
votes
2answers
19 views

Can the 'Adafruit Non-Latching Mini Relay FeatherWing' be used with an Arduino microcontroller such as an Arduino Mega 2560?

Can this relay found here: https://www.adafruit.com/product/2895 Be used with an Arduino Mega? The description given seems to specify that you should hook it up to their dedicated 'Featherwing Board'...
0
votes
2answers
43 views

Arduino and Solenoid Water Valve

I use Arduino UNO and two SPST Relay (Wemos Mini D1 Relay) to make the reverse polarity circuit. I use this circuit to open and close the Solenoid Water Valve (SWV), which work with 9 to 12 volt. The ...
0
votes
2answers
68 views

Esp8266 Vin pin

I've read that Vin pin is directly connected to usb cable in esp8266 (which is 5V). I wonder if I can power a relay 5V and a servo motor Sg90 with this pin? And is there any danger of doing that ?
-1
votes
1answer
32 views

L293D with arduino's 5V

I am trying to use L293D with relay to power a 12V DC motor. Can I use arduino's 5V to provide L293D inputs 4 and 8 such as in the drawing? Or do I need to use a separate source, e.g. a power module?
0
votes
1answer
30 views

Too little current to trigger a relay?

I try to use this relay with a Arduino Mega. I connected with jumper cables 5V pin to DC+, GND to DC- and Digital Pin 13 (because its a lucky number) to IN. The power LED from the relay is lighting ...
0
votes
1answer
60 views

Normally-Open opto-coupler board

I'm looking for a Normally-Open optocoupler board for arduino. I need to control power of a device (DC 12v, 500mA). I tried to use TLP281 board, which works, except that it inverts the output: device ...
0
votes
0answers
26 views

Rfid stops scanning after wrong card scanned

My Rfid reader stops scanning cards after scanning the wrong rfid card. It doesn't scan it anymore after turning off the relay. *It turns on the relay if my rfid card is the right one #include <...
-1
votes
1answer
47 views

12 V relay using Arduino [closed]

I want to control a 12 V relay using an Arduino 5 V signal, but due to some unknown reason the relay does not work. I am using a BC548 transistor as a switch for relay. Please suggest where I go wrong....
0
votes
0answers
21 views

Voltage to keep my board safe

I have recently made a home automation system using node mcu and relay module and i am powering both together using my 5V ,2A dc adapter and i am scared that if I'll keep using it for very long hours ...
1
vote
3answers
85 views

How to initialize digital output pin as low

I need to define a pin as output for relay module but when i do it in setup section, relay is activated (low - 0) automatically then i deactivated immediately with coding digitalWrite(pin, 1) but this ...
0
votes
0answers
29 views

Stuck Arduino Relay?

I am looking for a relay which stays on/NC (Normally Open), and when I send a new signal switches to off/NO (Normally Open). So the relay doesn't consume any power while being in a specific position. ...
0
votes
1answer
50 views

Do all pins of Arduino Uno output 5V?

I am currently working on a project which uses PIR motion sensor and 5V relay. Since you might be familiar that both the motion sensor and the relay requires a 5V connection. My problem is, I don't ...
-1
votes
2answers
86 views

What is the state of Arduino pins when the arduino is unpowered?

I'm building a control box to provide logical control of power outlets. I'm using a 4 channel 5V optically isolated relay system to control 4 separate outlets. To use optical isolation you connect ...
0
votes
1answer
57 views

Replace mechanical switch with electrical switch or relay

I have a remote controller for a portable heater, and working on a small project to be able to control the fan on/off from an arduino with Bluetooh HM-10 module. I thought a solenoid might work by ...
1
vote
1answer
33 views

How do I use a 5v/120v relay that is not mounted on a board [closed]

I bought an arduino kit, and it came with, amongst other things, a 5v relay to control 120-220v. The relay is only that, there is only the 5 pin relay, and it's not on a board on which one can ...
0
votes
1answer
49 views

Failsafe Arduino

I want to read an RFID tag using an Arduino, which controls some relais. This is easy. For me the more complex part is to build it fault-tolerant. So I thought I could use the watchdog. The tricky ...
0
votes
1answer
93 views

5V 10A 4 channel relay to 2 lights15W light in series in 220V AC supply

I am trying to setup my first relay module with live environment. I have attached the relay module image below. Which I am using to control 4 devices in my switch board as follows: Fan (working ...
1
vote
2answers
147 views

Is it okay to short IN and GND pins of relay module with controller ground? [closed]

I have this relay module that is attached to an ESP8266 (Wemos D1 Mini). Currently, I operate the relay by shorting the IN and GND pins to ground (relay module uses low state to energize) with a ...
0
votes
0answers
37 views

Garbage output/ not running at start up nodemcu

I have a nodemcu acting as a thermostat home office. The wall heating element is controlled with a solid state relay on D2. If i have it connected, I cannot program the board from the arduino ide. I ...
0
votes
1answer
23 views

Relay 24 V appliance [closed]

I want to use a switch and an Arduino to "power" a 24 V DC appliance and I am not really sure what relay to use for this. So I need the relay to be able to switch it on and off, but I have not really ...
0
votes
0answers
180 views

Wemos D1 mini with relay shield (why does D1 not operate relay but D5 does)?

I connect gnd>gnd, 5v>5v and d1>d1 - nothing works with relay blink code I change connection to d5 on wemos (still d1 on relay) and it works fine with code change to d5 Any ideas, as at present I ...
2
votes
1answer
64 views

Digital Input using a button doesn't work properly when using it to control a relay

I'm trying to control a relay both via Bluetooth and using a switch. The problem is that, when the LED is off, I can turn it on with the switch but then if I turn off the switch the relay will stay on....
0
votes
1answer
152 views

nodemcu esp8266 does not boot up when 5V pin is connected as a VIN source

Whenever I boot up the esp8266 or flash code via usb ,I have to remove vin pin otherwise it does not boot up. If I remove vin pin then flash and boot up happens and then i am able connect vin with 5 ...
2
votes
1answer
64 views

Newbie question - Biltong Box Project [closed]

I am a newbie to electronics, but I do have experience working with electrical wiring in the UK, so I am comfortable working with 240V reasonably safely. I have also built a camper including all the ...
0
votes
1answer
86 views

Using mills() in place of delay() on relays not getting solid switch over

I know I should post some code that maybe cleaner but really I am just in need of a answer to a problem I seem to run into a lot when using mills() in place of delay(), whilst making a Christmas light ...
0
votes
2answers
69 views

Voltage Regulator getting too hot

I have an Arduino mega that is being used to control relays and ultrasonic sensors. The relays that I am using is a 4 DPDT Signal Relay Module Model: D-256 Series and the other is a 4 channel Single ...
0
votes
1answer
473 views

Arduino UNO + ESP8266 WiFi Relay by LC Technology

I have Arduino Uno, and recently obtained ESP8266 WiFi Relay by LC Technology. I tried to look up some information about that on the net, but all the answers / suggested solution didn't work for me. ...
1
vote
1answer
105 views

esp8266 + octocoupler relay: WDT reset when using AC current

I'm trying to switch on bulb via 4 channel 5V optocoupler relay controller from ESP8266 using WIFI Access point. All my connections looking fine and i can able to connect WIFI SoftAP and send signal ...
0
votes
1answer
165 views

Shift register with relay board behaving erratically

I have a nodemcu connected to a shift register(https://www.amazon.de/gp/product/B07CHBYR7Z) to control an 8 channel relay board (https://www.amazon.de/Elegoo-Relaismodul-Optokoppler-Arduino-Raspberry/...
0
votes
2answers
70 views

8relay module asks more than specs

I have a 8 relay module that should use not more than 20 mA per relay. Altough when measuring it asks around 70. If I use 6 relays, that would be more than an Arduino Mega can give. (I already lost 1 ...
0
votes
1answer
129 views

Frequent ON OFF in SSR

I am working on a project on Arduino OLED MAX6675 thermocouple and SSR for my oven. My problem is when my SSR goes in LOW or HIGH state it turn ON and OFF several times before going to permanent HIGH ...
0
votes
1answer
67 views

Are these relays connected correctly?

I currently have limited electronics experience. I am planning to use mains power through relays for climate control, so considering the risk, I would like to check to see if these relays are ...
1
vote
1answer
72 views

How to detect when intercom is ringing?

For my apartment, I need to check when intercom is ringing and call an API in that case. I was thinking about using an AC input / DC output relay, since the buzzer signal is an AC signal. Is there an ...
0
votes
2answers
258 views

shift register 74HC595 enable specific pin

Its driving me crazy for some couple of days now and i don't get the answer. I'm busy to setup a irrigation system with a shift register 74HC595 and a 8 channel relay board. I see a lot of sketches ...
2
votes
0answers
48 views

Project: Relay is ticking, but not actually switching [closed]

I'm trying to make an automatic planter for herbs etc. I finally got everything 3D printed and wired together. But for some reason, the relay I'm using refuses to switch or enable certain connections. ...
1
vote
0answers
69 views

Correct wiring?

I'm doing some Home automation and am currently trying to automate my intercom system. My overall aim is to be able to detect when someone has pressed the buzzer and then to be able to open the door ...
-1
votes
3answers
97 views

Monitoring the state of AC relay, design considerations

I want to use a sensor and relay as a safety device to allow/deny power to an AC mains-powered electrical unit. If the wall power is disconnected I loose the state of the relay which is stored in a ...
-1
votes
1answer
202 views

Relay Module for water pump [closed]

I want to switch on/off my water pump by using arduino nano, I have 2 channel relay module. Is this module safe for controlling pump? Specifications pump: power = 746 watt (1HP) single phase, voltage =...
1
vote
3answers
686 views

Push button control of multiple relays

I'm new to arduinos and have not been able to find/create a working bit of code for my project. I'd like to control several different relays (standard 5v optical relays) with push buttons. I want one ...
0
votes
1answer
531 views

Problems with NodeMCU and Relay

I've connected the MCU to a cheap chinese 24/12v to 5v car phone charger and hooked some wires to a relay.When I try to program doesn't matter if the pin is set to high or low , as soon as I touch the ...
0
votes
3answers
164 views

Can multiple Arduinos be connected to a single relay?

I have a 16 channel relay that will basically manage 16 different contacts. However, each channel in the relay needs to be controlled by an individual Arduino. So in total I would have 16 different ...
1
vote
1answer
73 views

Safely powering a relay from same source as attiny/arduino?

My project involves using ATTINY to control a 5v relay (specifically JZC-11F and will be ground triggered) in an automotive setting. I keep seeing the warnings of powering a relay from the same ...
0
votes
2answers
20 views

Relay does not trigger

Its my first attempt to work with relay I tried to test my relay with this simple code int Relay = 2; void setup() { // put your setup code here, to run once: Serial.begin(115200); pinMode(...
0
votes
2answers
428 views

5v relay module

I'm using NodeMCU with 5v relay module. my problem is that when the output of NodeMCU is high the relay is off. Which means that the relay module work in an inverted way so how can I treat this issue ...
1
vote
3answers
169 views

Touch Sensor - Determining Pressing/Hold Length and Modifying Program Flow Accordingly

The code below is used for controlling a relay with an Arduino. Pressing the touch sensor connects and disconnects the relay. If the user presses/touches/holds their finger on the touch sensor for ...
0
votes
1answer
354 views

Arduino Uno Motor control using 2 Relays, 2 Limit switches and Bluetooth. Forward Reverse Stop

Modified existing project from this link: Problem : Trigger limit switch to stop DC motor I modified this code to control two relays which are wired to motor poles for Forward or Reverse movements ...
0
votes
1answer
101 views

“Active LOW” relay board Pin configuration [duplicate]

I bought a 5 V Relay Board: LINK (Aliexpress) and just realised it's "Active LOW". I want to control a water pump via a Arduino Micro. I tested it and as far as i understand the workings of this ...
-2
votes
1answer
303 views

Controlling two-pole contactor using Arduino [duplicate]

I am working with Packard C230C contactor to develop own EVSE. For a simple start i just want to toggle contactor using Arduino. OpenEVSE is already doing it. Just want to know how do they do it and ...