Questions tagged [relay]

Electrical device which, when energised by a small electrical current (low-power, control circuit), safely switches a larger electrical current (controlled circuit).

Filter by
Sorted by
Tagged with
1
vote
2answers
33 views

Connecting my raspberry pi to latching relay

I am struggling with the same latching relay featured here: Command/control latching relay using gpio pin only Edit: somehow there's been confusion, I'm trying to activate this, the latching relay ...
0
votes
1answer
44 views

Drive a 24V relay with RPI3 B+

I need the RPI3 B+ GPIO to drive a 24V relay that turns on an AC resistive load. Update:I hope the block diagram I attached earlier is now showing. part numbers listed, but the mosfet is not working ...
1
vote
1answer
28 views

Increase GPIO Voltage

I need to dock the 12V relay when giving the command via software, however, the GPIO provides only 3.3V not being enough to arm the relay. My idea is to use a voltage booster (Step-up Mt3608) to raise ...
1
vote
1answer
62 views

Raspberry PI GPIO protection

I'm designing a PCB to mount and interact with a raspberry pi4. One of the things I need it to do is drive a 24V relay. This circuit has worked great with some controllers I've used where the outputs ...
1
vote
1answer
21 views

Unable to trip Relay with Raspberry Pi 3+

I am trying to utilize my RPi 3+ to trip a SPDT Bosch Automotive 12VDC relay in order to activate chicken water heaters when temp below 34 degrees. The program code works well on other, non relay ...
2
votes
0answers
44 views

First steps into controllers and circuits (NOOB ALERT). Why does relay module works only if connected to 5v pin but not with external 5V source?

As title states, I am taking my first steps into electric circuits and microcontrollers, so I apologize in advance if my question is not clear or does not make much sense. I am trying to control ...
0
votes
1answer
34 views

connect an digital gpio output to a digital gpio input

I want to use a GPIO-out to talk to a GPIO-in... two different programs running on the same pi. The program with the GPIO-in can be activated by either a button, or the other program... with the GPIO-...
0
votes
0answers
18 views

GPIO change state record

I'm looking for a way to record Datetime and state of GPIO, but just want a record when the state change. I have this in my code: temp_def = 30.0 while True: print(read_temp()) if(read_temp() &...
0
votes
2answers
37 views

Raspberry Pi 4 GPIOs are constantly on, even after restarting and cleaning up GPIOs

So, I got a Raspberry Pi 4 Model B, and I'm trying to make a project using relay boards. Turns out, when I turn on my Pi, one of the pins is already active and the indicator turned on partially. I ...
-1
votes
1answer
40 views

Relay provides power contineously

I have set up a Pi-Zero which controls several relay switches. The Schematic is positioned below. import time import board import busio import digitalio from board import * from datetime import date ...
1
vote
0answers
50 views

GPIO output high not turning of relay

I am trying to turn a relay on and off using a python script. The below script is realy simpel, turn the relay on and after 5 seconds turn it off. The thing is, it dooesn't turn off. i thought it did ...
3
votes
1answer
60 views

Wiegand wiring guidance on Pi 4 with voltage step-down

Ok so following on from my previous post here. I have decided to start with the Wiegand wiring interface. I've drawn a diagram below to illustrate how I plan to wire everything up. Would appreciate if ...
1
vote
2answers
61 views

Relay no longer works on GPIO ports

I'm french excuse me for my english language, i works on a industrial vision processing device. I use the following components : Picaméra Raspberry Pi 3B + Relay : SRD-05VDC-SL-C I work on a python ...
0
votes
1answer
86 views

16 module relay board connection to RPi Zero W

I am using raspberry pi zero W for a home automation project. I am using 5V 16 channel relay board and using all the 16 relays as part of the project. I have not connected a separate 5V power supply ...
1
vote
0answers
28 views

SSR or Opto-Coupler relay only works if shorted

I have a SSR 4 channel relay and an Opto-Coupler one channel relay. Both where specified to work on 3.3V signals. I wrote a quick test program on my raspberrypi zero w and tried both relays with my ...
5
votes
1answer
634 views

Sainsmart 12V, 16 Channel relay module connected to RpiZW has unwanted triggering when booting

I'm trying to get the hydrosys4 open source irrigation control software to work with my 16 channel relay board and raspberry pi zero w. When the pi boots up the relay is triggered multiple times, ...
1
vote
1answer
27 views

Need script to make scheduled 8 channel relay outputs [closed]

This script fires my relays, but I don't know how to change duration and need it to fire daily to run pump and ozonator for an iso float tank. I'm currently only using GPIO 9 and 10 #!/usr/bin/python ...
1
vote
3answers
370 views

12v 4 channel relay pinout and explanation

I am kind of dipping my toe in this lake. Not a hardware/electronics person, more of a software guy (programmer). I am not able to easily find information about the 12V 4 Channel Relay (duinotech). I ...
0
votes
5answers
624 views

Raspberry Pi , RFID , Relay Module and Magnetic Door

I have used the code from github and in that code i am implementing the raspberry pi and the RFID and relay module with magnetic door unlock. Everything is working Okay , the RFID , the Relay module ...
0
votes
1answer
648 views

How to control raspberry pi 4 GPIO pins by running android application in the rpi and in mobile?

I am trying to build a project based on IoT. My goal is to trigger relays connected to GPIO pins in rpi4 by using an android application running in rpi4 itself which can be accessed with an official ...
0
votes
1answer
71 views

Use Pi to control power to usb-connected device

I have a digital microscope connected to my pi (usb) that you can use in a browser with a java web app that I have written. The microscope is also powered through the usb. There is no on or off switch,...
0
votes
2answers
108 views

Do I need additional protection when using a 5V relay module with the raspberry Pi?

Noob here, I have purchased a relay module (see pic below), and was wondering if I needed to add any other protection components to the Pi. Through my limited research, I found that using a diode, ...
0
votes
0answers
38 views

3.3v Relay switches on/off/on - off fails 2nd switch off

This 3.3v .relay, link to the the >>> Datasheet As the title mentions works fine until I try to switch it off the second time round, I see the red LED turning on (it looks a touch dim) ...
-1
votes
2answers
582 views

5V Relay only works if VCC is 3.3V

I am very new to all of this, so please excuse if this is a very basic question. I am trying to power a tiny water pump with my raspberry pi. For that I need the 3.3V or 5V output, because the GPIO ...
0
votes
2answers
180 views

RPi 3 B+, set defaults for GPIO pins on boot and shutdown

I am using Raspberry Pi 3 B+ with Linux raspberrypi 5.4.83-v7+ #1379 SMP Mon Dec 14 13:08:57 GMT 2020 armv7l GNU/Linux to control a set of relays. I set: gpio mode 7 output gpio mode 0 output gpio ...
1
vote
2answers
346 views

Using Relays to Power off then Cut power to Pi Zero

I have a raspberry pi zero that I am running off a battery for remote logging reasons. There is a low battery shut off module I have connected to the battery in case the battery gets below a certain ...
1
vote
2answers
153 views

How to detect if an external Relay is ON or OFF

I want to know the state of an external Relay connected to my Raspberry-Pi. Basically if there is current flow or not in A-B. A-B should be connected to R-Pi. I am not sure how to proceed even though ...
0
votes
2answers
37 views

How to drive two 3v relays safely from Raspberry PI?

I use PI 4 to power two 3v relays. One is controlling 5v dc, another 12v dc. And about once a minute I am switching each relay signal state to On/Off So each relay is connected to 3v pin, ground pin ...
0
votes
1answer
300 views

Using GPIO to control 5v relay module not working

so this is my first time trying to use a Raspberry pi and I wanted to automate a motor using a 5v relay module. I'm using a Raspberry Pi Zero W. I am using a 5v 2amp power supply to power the ...
1
vote
4answers
1k views

Using single 5V relay module (jqc-3ff-s-z) - Asking for help

I have a developer background missing the electronics background. I read some threads with great interest: Using single 5V relay (jqc-3ff-s-z) - safety advice required and 5V relay (jqc-3ff-s-z) I ...
0
votes
0answers
52 views

Raspberry PI and 8 module relay board

I have a raspberry pi 2 and an 8 module relay board (http://nettop.gr/index.php/en/hlektronika/relay/8-channel-5v-relay-module-with-light-coupling-5v.html). Between the relay board and the raspberry I ...
0
votes
1answer
46 views

DockerPi relay is wired backwards from others?

First off, apologies if I should have posted this elsewhere (such as under general electronics, etc.) I have two relays (JBTek, DockerPi relay hat) I have been experimenting with to control input ...
2
votes
1answer
2k views

Can you use a 5V Relay Module with the Pi?

Can you use a 5V Relay Module or similar with the Pi?
2
votes
0answers
78 views

Wiring 12V 5 pin relay (without a module/board) for usage with Raspberry Pi

I'm trying to setup an automated garden as a quarantine project for my mother and I can't really figure out how to properly wire a 12V 5-pin relay module as every tutorial online only shows the ones ...
1
vote
0answers
347 views

relay switch switches ON but never switches OFF [closed]

I connected my FL-3FF-S-Z two channel relay board to my Raspberry Pi 3, with gpio 0 and gpio 1 (numbers are from to $ gpio readall). Following some guide, as GPIO generates only 3.3v I have removed ...
0
votes
1answer
410 views

Relay Active HIGH

I am building an irrigation system, and to make it short, I need to decouple the electric-valve to the Raspberry. I am so using the following relay. It works fine, but it is active LOW, for my use ...
0
votes
1answer
419 views

5V Relay module working but LED not turning on - How to wire? [closed]

I'm trying to control a relay from Raspberry Pi that will switch an LED on/off. The relay is working (lightning up and clicking), but the LED doesn't turn on. Here is how I wired everything: VCC - 5V ...
0
votes
1answer
68 views

Raspberry Pi - Activate relay by phone [closed]

I'd like to set up a system to control a relay via land line. My goal is to somehow run a landline to the Raspberry Pi unit and have it trip a relay when the number is called and a DTMF sequence is ...
0
votes
1answer
33 views

using 2 pins to power the same relay

I have relay that requires 20mA to operate, which is a bit more than the pi can give from one pin. I as wondering if t was safe to connect 2 GPIO pins together to power the relay. I would use a diode ...
0
votes
2answers
541 views

How I can control an AC 220v with a relay and a Raspberry Pi 3B [closed]

I'm a newbie in this topics. I love electronics and I love the power of the boards like Raspberry Pi and I want to learn to use it by myself learning in internet, but I have a lot of lacks of ...
-1
votes
2answers
279 views

Problems with the rpi zero and relay [closed]

I Have a problem... (above the relay-coil Datasheet) I want to control a single relay with my pi zero, but it seems that it doesn't have enough power. the 3.3V pin of the rpi (measured to 3.19V) works ...
1
vote
2answers
869 views

How to turn off relay when RPi shuts down

I have connected a relay to BCM 14 and by setting its output to HIGH I can turn it on, making a 220V bulb to turn on. I use for that the following python instructions: GPIO.setmode(GPIO.BCM) GPIO....
0
votes
3answers
740 views

How can Rpi python control a 5V relay module, opto-isolated, with a JDVcc jumper? [closed]

Just starting to explore python, Raspberry and a relay. I want to control my 2-channel relay with a button. This is my test code: import RPi.GPIO as GPIO import time import requests from datetime ...
0
votes
0answers
42 views

Relay is behaving differently from tutorial

Given: Raspberry Pi3 Sunfounder 2 channel relay plugged into 3.3v plugged into ground plugged into pin 18 import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(18, GPIO.OUT) GPIO....
0
votes
0answers
196 views

GPIO Power off on shutdown with retropie

i asked this question before but i have added a diagram to explain it more clearly. I am building a retropie arcade machine with a raspberry pi. I have added a shutdown / startup button to shutdown ...
1
vote
0answers
252 views

How to cut power to gpio pins on shutdown

I am working on a project where i am using a pi running retropie to make a homemade arcade machine. i have wired and coded a startup/shutdown button. i would like to set up the pi n such a way i can ...
1
vote
1answer
224 views

Running pump & servo - Relay needed?

simulate this circuit – Schematic created using CircuitLab So I am working on a project that will require both a servo motor plus a small water pump. Both run on 3.7 -6v and I am going to use ...
0
votes
1answer
110 views

no output from 8 channel relay when i run the python script below

# import GPIO and datetime import RPi.GPIO as GPIO import datetime # set GPIO numbering mode and define output pins GPIO.setmode(GPIO.BOARD) GPIO.setwarnings(False) GPIO.setup(37,GPIO.OUT) #Relay 1 ...
1
vote
0answers
683 views

RPi.GPIO + single channel relay + solenoid lock

I'm working on my first python/hardware project and I want to create a simple (or at least I thought it was simple) cabinet lock, which will lock/unlock when certain RFID tags are approached to the ...
2
votes
4answers
113 views

Why is my relay switching on automatically when I start my program?

I'm building a little automated hydroponics system using a raspberry pi zero, a 5 volt relay, a pump and a soil moisture sensor from adafruit. So far everything is working, I can pull the pin to high ...

1
2 3 4 5