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
1
vote
1answer
21 views

Can I control solid state relay directly from arduino digital pin?

I want to switch on/off some AC device using solid state Omron G3MB relay I know that for magnetic relay there should be transistor and flyback diode, but what about SSR? Can I connect it directly to ...
2
votes
1answer
27 views

Ultrasonic Sensor(HC-SR04) recording random distance

I am am trying to make a code which automatically controls relay on basis of ultrasonic sensor measurements. I am using a nodeMCU as a microcontroller rather than an arduino. The relay and the ...
1
vote
1answer
32 views

How do I control a conveyor to start and stop in same location using optical rotary encoder

I am a complete novice at arduino. I just want to know if this is possible before I start investing in components. I need to start and stop a chain drive conveyor {can't slip} powered by a 12 volt ...
2
votes
1answer
60 views

Detect 2 wire thermostat output

I have a 2 wire thermostat. R is +24VAC, W is Heater. I have no Ground wire (C), and I cannot open the thermostat. When the heater goes on, the thermostat internal relay gets powered and connects R ...
0
votes
0answers
21 views

XH-M131 Photoresistor Relay Module NC position

I have purchased XH-M131 Photoresistor Relay Module to automatically light my outdoor yard at sunset and turn it off at sunrise. I'ts working as it is supposed to, However, if I power off the relay, ...
2
votes
1answer
35 views

Relay starts trigger about 6 times when connecting arduino to laptop

I have a fairly simple code to turn a relay on-off every 2 seconds When i attach the USB of the arduino Uno to the laptop, it goes into a frenzy and the relay triggers on off for 6 times within 3-4 ...
1
vote
1answer
32 views

Sequencing air pistons proble - Help please?

I am a beginner trying to activate 2 sets of 3 air pistons sequentially by going through the YouTube Tutorials... Help, please, pretty please?? :-) There are 3 sets of 2 pistons, each set working in ...
1
vote
0answers
102 views

Unable to hear the click sound from the relay [closed]

I am using a 5v 2 channel relay module with arduino nano to turn on and off using RTC. I am able to see the LED on the relay turn on but unable to hear the click sound and the relay does not turn my ...
0
votes
2answers
50 views

What is the proper wiring for relay module?

I want to know the recommended wiring for relay. I am setting it up as NO. Where should I connect the relay, the hot wire or the ground wire? Where should I connect the wire going to bulb, NO or C ...
-2
votes
1answer
59 views

Most Efficient & Cost Effective Home Automation Setup

I managed to build a system using Wemos D1 R1 connected to my website to retrieve data to power on or off a 5V relay. Now I would like to expand the project to control all my house outlet. Assuming I ...
1
vote
2answers
149 views

Controling 5V relay with Wemos D1 R1

I would like to control a 5V relay with Wemos D1 R1 module through webserver. I'm using the following modules: Tongling 5vdc Relay Wemos D1 R1 I'm using the following schematic: and here is the ...
4
votes
1answer
157 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 ...
0
votes
0answers
32 views

What would you change to make this circuit safer and more efficient?

I have a 24v battery bank and need to power a 24v pump for a duck pond. In my existing setup, I have a submersible pump with, effectively, a 100% duty cycle but this pump is not submersible and while ...
0
votes
0answers
37 views

Relay with NodeMCU is not working

I'm using a Relay Channel and NodeMCU(8266-WIFI). When i trigger the connection, LED Turns ON in Node MCU But the Relay connection is not working. I'm not sure what is the issue, Please help to fix it....
-1
votes
1answer
75 views

How to prevent flickering relay upon waking from deep sleep using ESP01 board?

I have a cheap ESP01 relay module and am using it with ESPEasy. I soldered the GPIO pin 16 to RST to allow deep sleep and that all works great. However when the unit wakes up the relay flickers quite ...
0
votes
1answer
44 views

Relay + Arduino uses too much power for battery to handle. Which solution is best?

You can see in my crumby schematic that I am using a Non-latching relay to turn on a 3A circuit (one of them arc lighters), which is powered by a 25C (supposedly) lipo battery. That same battery also ...
1
vote
1answer
37 views

Connecting a time on/off circuit and my adafruit neopixel light strip

I'm new to programming and hardware so be gentle. I've used this tutorial https://www.instructables.com/id/Arduino-Ultra-Mega-Timers/ to create a time on/off circuit. I'm attempting to connect some ...
1
vote
1answer
52 views

EMI resets atmega on switching ON relay with inductive load like a 230v fan

I am making an automation device. I am using an atmega8a to control 6 relays. The setup is standard, 220v load, 5v dc coil, flyback diode and an NPN transistor to trigger with atmega pin. The problem ...
1
vote
1answer
39 views

Using Arduino to control a high voltage DC device

I am an amateur hobby electronics enthusiast , and given the situation , I too am trying to make a contactless hand Sanitizing system like everyone else. My project requires a 36V DC solenoid valve to ...
0
votes
1answer
28 views

DH11 and uno relay controle fridge

I want to control my bar fridge with temp sensor and relay, This is my first project with code, i copied this: https://robojax.com/learn/arduino/?vid=robojax-DHT22_11_TM1637_relay But I want some ...
-1
votes
1answer
78 views

Atmega 328pu as stand alone

I am used atmega 328pu as stand alone.i used 7805 as regulator. I regulated from 12 VOLT 2 amp smps. When I connect my dc 12 VOLT pump in between 12 VOLT and ground dc motor working fine but Atmega ...
0
votes
1answer
24 views

activate a relay with two esp8266 -12e pins

I have an esp8266-12e that I want to activate the reset side of a latching relay. The problem is that the 12e only puts out 12mA/pin and the relay needs more than that. I am using a transistor on ...
2
votes
2answers
198 views

Arduino 5V pump digital pin

I am trying to control a 5V pump with arduino and ultrasonic sensor however i can't make it work with the pump connected to a pin. I saw on the forum that you need transistor or relay but i don't ...
0
votes
1answer
43 views

How to set a timer for a function and be able to reset it in the middle of the process?

Hello me and my friend have to do an assignment for school but we need some help. We have to make a LED turn on and of with a button and a relay. But when I press the button the LED should be on for ...
0
votes
2answers
51 views

5V on HIGH Digital Pins, Only While Using USB Power

So I have a small problem with my Arduino Pro Mini here. May be worth noting that it is a clone, but otherwise this is still some weird functionality. I have done some experimenting so I'll just set ...
1
vote
1answer
85 views

ESP8266 reseted due to relay / AC plugged

My Wemos card is reseting for unknown reason. For example, the pump plugged on the relay works fine till 1am and then the pump stop. After a few research I figured out the ESP should reset because all ...
-2
votes
2answers
267 views

To control the relay switching in nextion using esp32 Microcontroller

I have developed the code to control the relay switching on/off using nextion display and esp32. But whenever I press my dual state button in the nextion display there is some delay and I need to ...
0
votes
0answers
35 views

Noob here.. Need help with a thermostat controlled relay

So After trying several sketches for a LM35 and none working I finally found one that was giving me accurate results. The problem is the code is way over my head. I was able to modify it enough to get ...
0
votes
0answers
40 views

Desmos D1 + Numpad + relay can't put D15 pin on HIGH

So I basically have the following setup: This schema is not %100 accurate, since the tool I used to generate this did not allowed me to express exactly what I wanted, so some clarifications: The CPU ...
1
vote
1answer
23 views

Help, I want to turn relay constantly on until a difference is detected, but triggered only one instead

Help, I want to use arduino to control relay for electricity, i get data from a sensor and when a value is detected it should be constantly on until another detection triggered again, i can get the ...
0
votes
1answer
43 views

Driving an enable pin low via arduino

I have the following V regulator, that has an enable pin that i'd like to control via an arduino: https://www.pololu.com/product/2582 I tried using a relay (ELEGOO Relay Module 4 Channel DC 5V with ...
0
votes
0answers
34 views

Use esp-01 relay with Nodemcu possible?

I'm building a simple mobile controlled relay switch. however, I'm out of relay modules, but I do have these esp-01 relays: https://ae01.alicdn.com/kf/HTB1VIKLeJLO8KJjSZFxq6yGEVXaW.jpg I'm wondering ...
0
votes
1answer
27 views

srd-05vdc-sl-c and coil operating time

I'm using Arduino UNO to control an imatic relay board with 16 relays model srd-05vdc-sl-c. I use all the relays to control some linear actuators and everything is working fine. My only question is: ...
0
votes
0answers
66 views

Arduino code does not function when relays are powered

I have a mega arduino, which is supposed to to power 4 relays using 4 touch sensors TTP 223, the relays are 5V coil and 220V. the arduino is powered by a 5 V adapter "mobile phone charger" and it ...
0
votes
1answer
419 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
0answers
132 views

Made a light controller for the holidays

I am a new the world of Arduino. I found on YouTube, how to build a light controller (https://www.youtube.com/watch?v=WvG9c84ApFA&t=39s). I follow every step but it doesn't work. Here are some ...
2
votes
2answers
1k views

Control 5V from ESP8266 Wemos D1 mini

I am making a simple heater with the help of ESP8266 wemos d1 mini. Heaters will use 12V DC power suply and ESP8266 must turn the heater on and off with the help of 5V DC relax. I want to avoid the ...
0
votes
2answers
211 views

control 3 relays with 1 button

Is there a way to control 3 relays with 1 button? My idea is: There are 3 modes; mode 1 for relay 1, mode 2 for relay 2 and mode 3 for relay 3. With a long press you switch between modes (After 3 ...
1
vote
1answer
176 views

Connect 5v 30a relay with Arduino Uno

I have previously connected 5V 10A relay switches to my Arduino. But for my new project I need to use a 5V 30A relay switch with my Arduino. In 10A relay switches, we make connection with Arduino ...
0
votes
4answers
96 views

Detect if laptop is on or not?

How would I safely connect an Arduino so that it can detect if a laptop is on or off? The Arduino would be powered separately by a normal USB charger, since it needs to be turned on even when the ...
0
votes
1answer
71 views

Adding WiFi to my Arduino Keypad Lock

I'm a really passionate beginner with arduino and electronics and I've built a Keypad lock for my room's door (inside the house). I've used an arduino that activates a motor using a transistor to ...
0
votes
1answer
1k views

Timer Countdown to control relay (multiple functions in void loop)

I'm trying to build this project with a simple code. Object is to hit up button to increment minutes or down to decrement minutes then hit start to start countdown, while its counting relay will turn ...
0
votes
1answer
132 views

How to code 4 relays to go off in intervals and not in sequence? [closed]

Code : //FOR AEROPONIC SYSTEM WITH ROOM TEMPERATURE AND HUMIDITY SENSOR //AND 4 GROW CHAMBERS WITH DIFFERENT SPRAYING TIME // RELAY CONTROL #define RELAY1_PIN 2 #define RELAY2_PIN 3 #define ...
0
votes
1answer
2k views

NodeMCU keeps disconnecting

I have made a home automation system consisting of a NodeMCU, 4 channel relay board running on Blynk and IFTTT. At the moment I'm only controlling a string of fairy lights and two LED strips from it, ...
1
vote
1answer
148 views

The current direction for digital output pins

I am new to Arduino. The digital pins can be configured as output (https://www.arduino.cc/en/Tutorial/DigitalPins) for triggering some sensors. I am now setting a digital (output pin), say no. 7,which ...
0
votes
1answer
735 views

Activating a Relay with Wemos D1

I have a problem similar to these questions: Wemos D1 doesnt drive Relay Wemos D1 is not triggering Relay I got this BC548B transistor from an old apparatus I scratched. The transistor saturation ...
1
vote
0answers
219 views

Can I use the NodeMCU ESP12 5v pin and control it with a relay?

This question might be a little esoteric, but I cannot find any answer for it. Situation: I want to have more than 8 Analog sensors on a NodeMCU ESP32. Unfortunately due to SPECTACULARLY poor design ...
0
votes
1answer
81 views

New to arduino, help wiring relay

I am new to arduino and need some help. I just baught light bars for my jeep and wiring harnesses with them, the harnesses come with buttons and I wanted to replace the button and have them controlled ...
0
votes
1answer
49 views

Esp and blynk app

It is possible to control one relay using Blynk app and also using an atmega? To a better understanding think at a relay that will turn on a fan when you use the blynk app. but when you don;t have the ...
-1
votes
1answer
53 views

LED array flashes once before being lit

I've built this simple Arduino controlled led-array. The Arduino sets a 5v pin on a relay to connect the high current power supply to a led array. However, just before the led array is being fully ...

1
2 3 4 5 6