Go to advanced search

by skvrahul
Mon Jun 02, 2014 1:27 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Controlling Relay Switch using GPIO
Replies: 28
Views: 7858

Re: Controlling Relay Switch using GPIO

I'm not really sure why it says that but the relay came pre-assembled all I did was connect to the Pi using the cables.
by skvrahul
Mon Jun 02, 2014 9:54 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Controlling Relay Switch using GPIO
Replies: 28
Views: 7858

Re: Controlling Relay Switch using GPIO

So would soldering the wires somehow make it work? O.o
Doubting the sufficiency of the RPi voltage I even tried this by connecting VCC & GND on the Relay to a 6v battery pack instead of powering it with the Pi and that did not work either
by skvrahul
Mon Jun 02, 2014 3:44 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Controlling Relay Switch using GPIO
Replies: 28
Views: 7858

Re: Controlling Relay Switch using GPIO

No :/ I tried swapping them and started the Pi again and the LED didn't turn on.I have a strong feeling there's something wrong with the relay.
Once I get a multimeter what could I do to test it?
by skvrahul
Mon Jun 02, 2014 3:28 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Controlling Relay Switch using GPIO
Replies: 28
Views: 7858

Re: Controlling Relay Switch using GPIO

Ooops! That was just while I was setting it up for the photograph nevertheless I shall swap the wires and try once again
by skvrahul
Sun Jun 01, 2014 4:22 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Controlling Relay Switch using GPIO
Replies: 28
Views: 7858

Re: Controlling Relay Switch using GPIO

Do you have a multimeter to test voltages? Was this a DIY kit that you assembled and soldered yourself? I realized that a multimeter would be essential for my project and ordered one off of eBay. Is there anything you suggest I can do to better understand the problem here once I get the multimeter?...
by skvrahul
Sun Jun 01, 2014 4:12 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Controlling Relay Switch using GPIO
Replies: 28
Views: 7858

Re: Controlling Relay Switch using GPIO

Here are pictures of my setup: (To make things easier for picture purposes i removed the power cable while taking the picture however the setup was exactly the same while I was testing) http://i.imgur.com/ACnDy6Z.jpg?1 http://i.imgur.com/hy40hmN.jpg http://i.imgur.com/pv4TZFM.jpg?1 http://i.imgur.co...
by skvrahul
Sun Jun 01, 2014 8:50 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Controlling Relay Switch using GPIO
Replies: 28
Views: 7858

Re: Controlling Relay Switch using GPIO

You should disconnect the GPIO from the RL1 Leave everything else connected. (5V on RPi to VCC at JP3) You can use the 2nd VCC at JP4 and put a jumper wire to connect VCC to RL1. Move jumper to RL2 to test the 2nd relay if you wish. This is the foolproof way to test the relay board. I tried this an...
by skvrahul
Sun Jun 01, 2014 3:12 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Controlling Relay Switch using GPIO
Replies: 28
Views: 7858

Re: Controlling Relay Switch using GPIO

No I did not hear the relay click.
Should I connect RL 1 and VCC on the relay board?
Or should I connect RL 1 to VCC on the Pi(5v0)?
And lastly is there any foolproof way to test if the relay itself is functioning as it's supposed to and isn't faulty?
by skvrahul
Sat May 31, 2014 4:19 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Controlling Relay Switch using GPIO
Replies: 28
Views: 7858

Re: Controlling Relay Switch using GPIO

I just used a simple GPIO code to switch it on:

Code: Select all

 GPIO.setmode(GPIO.BOARD)
 GPIO.setup(7,GPIO.OUT)
 GPIO.output(7,True)

I have also tested this code with an LED directly connected to the GPIO pin and GND pin on the RPi and it worked perfectly!
by skvrahul
Sat May 31, 2014 4:15 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Controlling Relay Switch using GPIO
Replies: 28
Views: 7858

Re: Controlling Relay Switch using GPIO

Firstly I have checked multiple times that the LED is still working and indeed it was, also I connected the +ve terminal of the 9v battery to the Common terminal of the relay, the -ve terminal of the battery straight to the +ve wire of the LED and the NO pin on the relay to the-ve wire of the LED. (...
by skvrahul
Fri May 30, 2014 6:14 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Controlling Relay Switch using GPIO
Replies: 28
Views: 7858

Controlling Relay Switch using GPIO

Hi all, I have recently bought a relay for experimenting a bit with home automation using the raspberry pi,but before I play around wih AC current I thought I'd first try out the relay with DC current Below is a diagram for the relay(given by the manufacturer) and I have connected it exactly that wa...

Go to advanced search