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.

Filter by
Sorted by
Tagged with
3
votes
5answers
3k 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
1answer
3k views

4 channel relay module reversed? Or is it my code?

So I am designing a simple project where my Arduino reads analog values from a potentiometer, or rotation sensor, as it is called on EBay, and uses that value to determine how many relays to close. I ...
0
votes
1answer
549 views

How to merge two arduino sketches, one for relay's and one for Servo motor?

Recently I uploaded individual codes for relay's and Servo motor seperately, it all worked fine. But when I combined these two codes and dumped in to the loop there is a delay in functioning of the ...
6
votes
5answers
71k views

How to make a 5-volt relay work with NodeMCU?

I have hooked up 2 channel 5-volt relays with NodeMCU v1.0 as shown in the fritzing below. Relay are powered with a different power source than NodeMCU. As of now, I am powering the NodeMCU from my ...
4
votes
1answer
424 views

Switching a Solenoid Using Arduino's 5V Output?

I'm a bit stumped on how to switch on a solenoid using a transistor using my Arduino Nano's 5v Output. The solenoid runs on 12V, so I used an NPN transistor to connect the 12V source to the solenoid ...
9
votes
5answers
17k views

Reasons why it is not OK to connect a relay directly from an Arduino digital pin

After looking into various schematics on controlling a relay via an Arduino, I have noticed that, most of the time, transistors are used to switch the separate supply into the relay coil rather than ...
3
votes
3answers
15k views

Using external power supply to power leds on multiple pins (A0-A5)

I'm totally new to Arduino, and microcontrollers for that matter, so I'm having a hard time figuring out how to connect LEDs to multiple pins, but using a common external power supply... I've created ...
2
votes
1answer
2k views

How to control an 12V 2A Car lamp using relay or MOSFET in Arduino [closed]

I am working with the project controlling an 25W 12V Car lamp. I have a 12V car battery. I want to control it with the Arduino using a relay or MOSFET. Any suggestion for my project would be ...
0
votes
2answers
4k views

How do you wire a ssr relay to a arduino nano

I am trying to wire a fss1-102z 5v ssr relay to my arduino nano but i cant get it to work here is my circuit. It stays stuck on and i cant get it to turn off. Bluetooth control code char val; ...
3
votes
1answer
123 views

Reproduce simulated temperature data with Arduino

I'm starting a test using Arduino to reproduce a set of temperature values in water each three hours and need some help with it. I will use two ds18b20 sensors to control two thermostats connected to ...
1
vote
0answers
576 views

Wemos D1 is not triggering Relay

Update: I realized my relay module was 12V and the current leaving the digitalpin from my Wemos D1R1 is only 3.3V. I bought a 5V relay module that I read in some articles that it could work, but it ...
1
vote
1answer
2k views

Wemos D1 doesnt drive Relay [closed]

I recently bought a Wemos D1 board and tried to connect a relay and test its connection. I got an example server from here and executed. I connected D5 to a Relay's data and 5v and GND from Wemos ...
1
vote
1answer
376 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
3answers
184 views

Problem with Dual Safety Switches Initiating Timed Relay

I have been working on an Arduino project that has me kind of stumped. What it needs to achieve is that two momentary safety switches need to be pushed and held within a specified time frame as ...
0
votes
1answer
639 views

Multiple buttons to control relays

Dears, I have a problem that I could not solve for a while, I tried the code below but it did not work. There will be 4 buttons controlling 4 relays but in a way that button one will turn relays 1&...
0
votes
1answer
79 views

Combining two different coding program into one sketch [closed]

Im working on project that uses a relay module,arduino atmega328 and a 2 motor 12vdc. based on coding i give, the first code is the motor 1 will run based on the input switch. and the second code the ...
0
votes
3answers
100 views

Error while trying to drive relay through the state of a digital input pin in Arduino

I'm trying to change the state of a relay according to the state of a digital input in an Arduino with an ethernet shield. It works sometimes and some other times it doesn't work. My code: const int ...