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
22
votes
2answers
33k views

Power a 5V relay from GPIO pins

I have a bank of relays (5) that I'm looking to run from my Pi. I'm using 5V TE Connectivity relays, powered by Sparkfun's high power relay kits, which use a NPN transistor to trigger the relay. So ...
1
vote
2answers
986 views

Rpi GPIO Controlling 5V Relay Problem

A am using working on a project that requires a camera analyzing some images and activating the appropriate GPIOs to control a relay board. I currently have a touchscreen display, a Raspberry Pi Cam ...
5
votes
2answers
29k views

Using single 5V relay (jqc-3ff-s-z) - safety advice required

Above is relay I'm using and everything works as expected using diagram below. I will add 1n4148 diode on IN line for safety and will connect VCC to power supply before Pi. Can I use ground (GND) ...
8
votes
3answers
9k views

Powering a 3-12V water pump on raspberry pi

I've got a 3-12V water pump, a raspberry pi, a relay (5V 10A/120VAC, and a breadboard power supply supply 3V-5V. The questions are : Is it possible, to rspi to breadboard power supply usb, and a ...
9
votes
3answers
3k views

GPIO pin voltage is too low to energize relay

I am trying to toggle a small relay on and off. I have connected a GPIO pin and GND directly to the relay. I can hear the relay clicking, when I set the GPIO pin to HIGH. However, the relay only ...
1
vote
2answers
981 views

Relay status led's are blinking but the relay coil is not activating

Devices I am using are: 1) Songle 2 channel relay module - https://www.electronicscomp.com/2-channel-5v-relay-module-with-optocoupler?gclid=...
2
votes
5answers
748 views

Can I Use this Relay Board with pi?

Can I use this Relay Board with the Pi ? Because This board doesn't have Opto-Coupler..can i drive it from 3.3v...will It Cause any Issue for Pi
1
vote
2answers
576 views

Using Pi to control a button on a HDMI switcher

I've been reading about how to use the GPIO to toggle a button on a thing I've taken apart. It's like this: Amazon I watched a video of a guy using an opto-coupler, what are the basics here? I'm ...
1
vote
1answer
1k views

16 channel relay module does not respond to write 0/1 (GPIO.HIGH/LOW) commands

I have received a 16 channel relay module and I'm trying to drive it through my Raspberry Pi. I have connected a 12V power supply to the DC+/- of the board as well as the 2x +5V and 2x GND on the ...
13
votes
2answers
29k views

Properly wiring a solid-state relay to the GPIO pins?

tl;dr — I'd like to connect this relay to the GPIO pins on my Raspberry Pi B+. I'm looking into purchasing a solid-state relay for my Raspberry Pi. After a great deal of searching, I came ...
2
votes
4answers
6k views

Home Automation, Mechanical Relays and Physical Switches

I am currently building and installing a home automation system. I have currently configured centralized audio system with ceiling mounted speakers in each room with a raspberry pi in each room. I ...
5
votes
3answers
9k views

5v Relay will not close (unless using GPIO cleanup)

This seems like it should be really simple, so maybe I am missing something. I am just trying to open and close my relay but all it does it open's and doesnt close. I can use GPIO.cleanup() to make it ...
5
votes
2answers
15k views

Controlling a fan on a relay with python

I have a Raspberry pi Model B revision 2 and I've set up a mini 5v fan on a relay switch which i want to control with python now. I will be running a crontab every hour to check the temperature of the ...
3
votes
4answers
1k views

Wiring a 4 channel relay - is this possible?

After watching many videos and reading, I think I now know how to wire a 4 channel relay to control 4 12V DC Solenoids with my PI. The Solenoids are wired in parallel. Please see picture 1. However,...
1
vote
1answer
140 views

Is a RC snubber required when using the pi with a relay?

I am hoping to use raspberry pi to switch on and off a heating lamp and an aquarium pump via a relay switch. Both devices are plugged into 120V AC normally. The relay tutorials online seem to be ...
1
vote
1answer
1k views

Even setting a pin to output activates the relay

I'm trying to control this relay with my rpi2 b+. The problem is, when I do GPIO.setup(myPinNum, GPIO.OUT) this activates the relay. When I then do GPIO.output(myPinNum, True) or GPIO.output(myPinNum, ...
1
vote
2answers
732 views

can't set gpio to low, trying to control single channel relay (raspberry pi b+)

I am trying to control a relay using a very simple python code: import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(27, GPIO.OUT) GPIO.output(27, GPIO.HIGH) ...
1
vote
2answers
378 views

Can I use GPIO to close a circuit on a RC sender PCB?

I've got an RPi running my OpenRemote2 Controller and want to add some more devices to my arsenal of remote control. These devices are a set of 3 mains switches (for lamps) and a projector screen ...
0
votes
1answer
116 views

Protecting Raspberry Pi from Relays

I took a picture of my mock setup to give a better idea of what I'm working with. Basically, I'm will be using relays connected to my Raspberry Pi that I intend to use to control a series of lights (...
0
votes
1answer
2k views

Sending RF codes to 433 learning relay

I have this RF learning relay https://www.youtube.com/watch?v=QuFzDcIiDxQ this is how relay learns codes. However I don't have remote and want to control it using Pi. I've tried sending various ...
0
votes
1answer
226 views

What things I can use for turning on a relay?

I want to connect a relay to the GPIOs, what are the things a can use to do that? I read it could be transistors or diodes. Can I use resistors too?
0
votes
2answers
4k views

Is 3V3 of Pi enough to power 5V relay

First of all I am asking this question out of curiosity, I have no knowledge of electrical devices other than understanding of few terms that I learned in school. I am planning to work on home ...
0
votes
1answer
172 views

Momentary Switch Auto Activating Pull Up Resisitor

My setup is like so: A Raspberry Pi B+ acting as an airplay audio receiver using shairport. The Pi connects to a 100V line Amp which feeds the audio out to several installed ceiling speakers around ...
0
votes
1answer
869 views

No audible click from 5V relay when using Raspberry Pi Zero W [closed]

I am trying to use a 5v relay (SunFounder Relay Module for Arduino and Raspberry Pi 5V DC Trigger by HIGHLO (HIGH Trigger) to be exact) and I am running into some issues. I have a python script ...
0
votes
2answers
535 views

Raspberry pi 12v relay

I have bought this relay: https://rover.ebay.com/rover/0/0/0?mpre=https%3A%2F%2Fwww.ebay.co.uk%2Fulk%2Fitm%2F262722739443 In the '1 channel 12v relay' variety I am going to be using it to power ...
-1
votes
2answers
2k views

GPIO pin LOW not LOW enough (aka how to ZERO the tension on a low pin?)

This question was asked before here, but there was no answer 1 year ago. I'm facing the same issue: I'm switching the same 5V relay (SONGLE SRD-05VDC-SL-C) using a GPIO on HIGH and this works, but ...