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
0
votes
0answers
41 views

I am new to Arduino, can someone help me make this code compile and upload, it would be greatly appreciated [duplicate]

I am trying to control 16 relays with Arduino Uno and ESP8266 wifi Module, using xlight software, and after 5 days of trying I just can't get the code to compile or upload. assistance would be greatly ...
1
vote
0answers
46 views

Control relays with ESP8226 WIFI module and Arduino Uno

I am new with Arduino and I am using an Arduino Uno, could someone help me make this code work or tell me what's wrong with it? I am trying to control relays with ESP8226 WIFI module and Arduino This ...
1
vote
2answers
66 views

Back EMF from Relay causing trigger on INPUT pin

I am wiring up a light show for my pickup truck. I have installed various high power spotlights and light bars into a dedicated relay/fuse box in the engine bay. These relays are wired into a switch ...
1
vote
0answers
60 views

Eleminate noise from a Relay in ArduinoFFT

I have built a circuit with an Arduino Nano to measure frequency from my music, it's basically this schema but I changed the code a little bit to fit my needs. My problem is I want to add a Relay (I ...
1
vote
0answers
34 views

USB and LM7805 both to power Arduino

I have high current usage For my circuit as you can see below (link): I like to power Arduino when it is not connected to PC by USB Connection, So I want to add one external power supply and connect ...
2
votes
1answer
91 views

Error trying to simulate temperature dynamically

I'm trying to simulate dynamic temperature using a small set of data with ESP32. I've just realized that the relay doesn't change the status if there is some variation of the temperature upper or ...
0
votes
2answers
101 views

Arduino Uno - Raspberry PI - Float Sensors - Water pumps

I am experimenting with Aquaponics and since I am a software developer I found it "smart" to use arduino/raspberry in order to control the water flow and not simply use a water pump with ...
1
vote
0answers
47 views

Can anyone suggest me a way to efficiently power my relay module using batteries? [closed]

I hve a very simple project where I have a ttp233 touch sensor which I'm using to control my relay module which inturn switches my fans on and off. The problem here is whenever there is a power loss ...
1
vote
0answers
40 views

Help building a digital relay board [closed]

I am looking make my own version of theses digital relay/FET controllers so I can have more usability and matrixes. Switch pro sp9100 it looks like to me they send a serial signal to the controller ...
1
vote
0answers
40 views

Can anyone help me with my project? [closed]

I'm trying to use Node MCU and NTP time turning on a relay 2 times a day and for only 10 minutes like at 6am 10 minutes and at 6pm 10 minutes. The problem is my electricity is unreliable and node MCU ...
0
votes
2answers
69 views

2 way switch with Arduino?

Hey I'm working on a home automation system where I can replace one of my 2 way switches to an Arduino Or node MCU controlled one but I want to avoid normal relays because as of what I know they can ...
0
votes
1answer
84 views

NodeMCU vin pin(5v) is not working

I'm a newbie on Arduino and NodeMCU so now I'm trying to run my relay module trough the NodeMCU v3 and so far I have wired them all respectively as the instruction below: NodeMCU 5v Relay D2 + ...
1
vote
0answers
31 views

Is it possible that a 12V transformer is creating EM interference that's coupling onto a long antenna cable?

I have an Arduino Mega, Adafruit RFM96W 433MHz LoRa Transceiver Breakout and 2 Channel OptoCoupler Relay Module. https://www.adafruit.com/product/3073 https://www.amazon.co.uk/SUNFOUNDER-2-Channel-...
0
votes
0answers
39 views

HC-05 bluetooth module short range

I have started learning about arduino and just bought a bluetooth module, HC-05. From where i bought, it says it has range of approx.10 meters. I made hc-05 connection with arduino in below described ...
1
vote
1answer
36 views

NodeMCU and relay with VIN power

Have read a lot of different things online, and I just ain't sure yet. I'm trying to hook up a NodeMCU to control some relays. And want to power the NodeMCU by the VIN pin. Anyone know if this setup ...
1
vote
1answer
96 views

Digital pins are no longer outputting enough to click a relay

I've been working on a project for awhile now, and I ran into a problem a week ago I couldn't solve. I'm using an Arduino uno R3. My project involves the use of 4 relays triggered by the digital pins. ...
0
votes
0answers
25 views

relay not working

i tested 6 and none work. #include "Wire.h" #include "LCD.h" #include "LiquidCrystal_I2C.h" #include <Keypad.h> #define A0 A0 #define A1 A1 #define A2 A2 #...
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 ...
2
votes
1answer
49 views

Arduino changing output based on wire voltage

I’m new to arduino and I want to build myself smart switch that can be turned of both manualy and via wifi, is there any way to change position of relay based on if another wire is live or not? Im ...
1
vote
1answer
43 views

Control DC motor in both directions with two relays

I am using an Arduino and two relays to control 12V DC motor. I need to rotate the motor in both directions. For the first trials it worked fine. Finally one next switching fried my Arduino. I think ...
0
votes
0answers
25 views

My motor works for a while but then stops

I have a simple motor automatization system. It only uses adapter, arduino, relay and motor nothing else. It works for 15 seconds and stops for 3 seconds. It works properly for 1 minute but then stops ...
2
votes
1answer
71 views

digitalRead() function of Arduino doesn't read Input value sent by sensor after detecting the object

I'm trying to turn ON the LED(inbuilt/PIN13) when photoelectric proximity sensor(12v) senses any object. Sensor is connected on pin 2. Assigned pin 2 as INPUT, I've got a 12v spdt relay for switching. ...
1
vote
1answer
82 views

Driving 5V relay with ESP-01

I'm trying to drive a 5V relay with 3.3V ESP-01 with schematic below. I programmed the ESP to start a portal through which I can derive the relay by triggering GPIO-0 & GPIO-2. However when I ...
0
votes
1answer
48 views

How to close humidity sensor at specific humidity

I am using dht humidity and temperature sensor on arduino and i would like to add relay and buzzer on the system. What I would like to do is to close it via buzzer and on 65% humidity run buzzer. The ...
1
vote
0answers
110 views

I'm desperate and need help with MFRC522 (stops working randomly)

I've made a light switcher that switches lights on for 15s after a correct tag is presented, and also when door is opened for 6 seconds (its for outside) so i can see a keyhole after leaving for a ...
1
vote
1answer
55 views

Help with NodeMCU based smart switch

The project I'm planning is to use a NodeMCU at each electrical board in house to control lights and fans via relays. Each MCU will communicate via MQTT over WiFi to a Raspberry Pi 4 from where I can ...
1
vote
0answers
24 views

error ph meter cant show the data [duplicate]

im using ph meter DFROBOT v1.0 at i compiled the code from the DFROBOT web this is the code * # This sample code is used to test the pH meter V1.0. # Editor : YouYou # Ver : 1.0 # Product: ...
1
vote
0answers
40 views

Peculiar relay behavior from POST

I am trying to toggle on/off between two separate HTTP request. One submit button to turn it on, and another separate submit button to turn it off. I expect the device to launch in the off/low 0V ...
0
votes
2answers
62 views

Turn on relay for amount of time by continuous input

I have a project having two input status first the input is not continuous the output buzzer relay will be on for 10 seconds and then turned off or it can be off directly by push button the second ...
0
votes
2answers
73 views

How to use a push button & transistor as a kickstarter for power supply?

My goal is to save energy, and I intend to do so by powering a chip with itself, and cut power whenever unnecessary. The best image I can have is of a startled monkey who jumps on the branch, screams ...
1
vote
0answers
40 views

What Kind of relay module to use if i want to turn on or off high voltage appliances like AC? [closed]

What kind of relay module to use if i want to turn on or off my AC (which is a 1.5 ton bluestar) using arduino. Like we use a 5v relay for small appliances like fan and lights, what to use if i want ...
1
vote
0answers
28 views

Relay module works reverse [closed]

16 channel Relay module led is ON when pin is LOW and OFF when pin is HIGH, how to reverse that? Could you please help me
0
votes
0answers
42 views

Can I Make a Radio Frequency Remote with Arduino

Im doing a project where i'm using arduino with a RF Receiver 433MHz. Where i press a button on a RF remote to make the lights or anything that i connect to the relay modules which in turn are ...
0
votes
1answer
153 views

Can i connect in pin of relay module to Analog pins of arduino instead of digital pin?

Im a complete beginner Im making a project using relay modules and arduino. but all the digital pins of my arduino are filled. I wanted to ask if i can use the analog pins to connect my relay module ...
2
votes
1answer
464 views

Which relay module to buy and what is the difference between 1 channel and 2 channel relay boards

I wanted to d a simple circuit using Arduino to control the lights in my house. But i do not know which relay module to use my house runs on standard 220v ac. Can anyone tell me weather this relay ...
0
votes
1answer
67 views

how to stop the relay after it is getting on and let the sensor get the result

I want to provide a delay in the following iteration reading so that the sensor can read the condition after the pump starts. void loop() { //-------------Fungsi Read sensor----------- // ...
2
votes
1answer
56 views

Relays just switch ON and OFF on delay(), not on millis()

I use fuzzy logic for the running time of relays, but the relays just switch ON and OFF at the interval of the delay() I put at the end of loop. This is my code: void loop () { ph = -180/100.0; ...
0
votes
1answer
58 views

Remove a sudden pulse on pin d3 of nodemcu when powering it up [duplicate]

I am using node mcu and a 2 channel relay connected to the motor via pin d3. When I power on the circuit, it shoots a pulse to the relay and i think it will damage the motor. Please suggest me how to ...
1
vote
2answers
119 views

controlling 2 sensor and 3 pump using millis

i make a 3 pump for output and im using millis for it, i want to stop if rach the intervalm now in my code its still looping not realy stop for it thx int pump1 = 5;//pin D5 int pump2 = 6;//pin D6 int ...
0
votes
2answers
35 views

Module that can both detect Voltage (12V) and Control current [closed]

I need a module for ARDUINO that can both detect Voltage (12V) and Control current between 2 pins (12V), like a relay on another device I have found relay modules to control pins and another module ...
2
votes
2answers
457 views

Connect 5V relay to ESP32 WROVER B board

I need to use a ESP32 WROVER B based MCU board with a standard (cheap) one-channel 5V relay (e.g. to switch on a mains-power appliance). Attempted removal of excess solder around the headers ...
2
votes
2answers
87 views

Digital pin output voltage fall down when driving a relay

I'm trying to trigger 8 different 5V relays using arduino atmega 2560. the relays (70Ohm coil) are powered by an external 5V source, and im trying to trigger them through a driving stage which ...
0
votes
2answers
79 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 ...
3
votes
1answer
128 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
52 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
139 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
62 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
57 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
34 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
203 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 ...

1
2 3 4 5
7