Help with GPIO

Cousteau666

Community Member
View Badges
Joined
Apr 15, 2023
Messages
69
Reaction score
41
Location
27455
Rating - 0%
0   0   0
My reef pie is being a real pain, as it wont illuminate my led circuit from any of the pins I have configured. My circuit works when I hook straight to 3.3 or 5v but with nothing else. It is illuminating the LED on the relay board but will not engage the relay.

Can anyone advise on what I may be or may NOT be doing to cause this?
 
OP
OP
Cousteau666

Cousteau666

Community Member
View Badges
Joined
Apr 15, 2023
Messages
69
Reaction score
41
Location
27455
Rating - 0%
0   0   0
My reef pie is being a real pain, as it wont illuminate my led circuit from any of the pins I have configured. My circuit works when I hook straight to 3.3 or 5v but with nothing else. It is illuminating the LED on the relay board but will not engage the relay.

Can anyone advise on what I may be or may NOT be doing to cause this?
Bump:crying-face:
 

slythy

Well-Known Member
View Badges
Joined
Aug 3, 2021
Messages
911
Reaction score
822
Location
USA
Rating - 100%
1   0   0
Can you show me a drawing of your setup? I dont have a reefpi but do a lot of arduino projects. A diagram is going to be the best way to get help.
 
OP
OP
Cousteau666

Cousteau666

Community Member
View Badges
Joined
Apr 15, 2023
Messages
69
Reaction score
41
Location
27455
Rating - 0%
0   0   0
Can you show me a drawing of your setup? I dont have a reefpi but do a lot of arduino projects. A diagram is going to be the best way to get help.
Hey, thanks for taking a moment to respond! I shall send a pic and a sketch of what I have tried. One min...
 

robinm

Active Member
View Badges
Joined
Feb 21, 2021
Messages
101
Reaction score
69
Location
Louth
Rating - 0%
0   0   0
It probably doesn't deliver enough power to engage the relay, you could stick a transistor in the circuit so the pi switches the transistor which then engages the relay
 

slythy

Well-Known Member
View Badges
Joined
Aug 3, 2021
Messages
911
Reaction score
822
Location
USA
Rating - 100%
1   0   0
It probably doesn't deliver enough power to engage the relay, you could stick a transistor in the circuit so the pi switches the transistor which then engages the relay

Im betting its one of those prebuilt modules with opto isolators. But of its not… then thats probably it
 
OP
OP
Cousteau666

Cousteau666

Community Member
View Badges
Joined
Apr 15, 2023
Messages
69
Reaction score
41
Location
27455
Rating - 0%
0   0   0
Im betting its one of those prebuilt modules with opto isolators. But of its not… then thats probably it
Thank for takin the time to respond. I wish I replied sooner, but I had to go vacuum my grandparents drip pan on their HVAC as soon as I saw this message. Sucker was like 140F up there, liked to kill me.

Anyway.

This is legit the circuit I'm running. Suuuuper simple, yet I have failed in operating it successfully. The resistor I'm running is not the one in the picture, but is a 470 ohm resistor. Is this at all helpful in troubleshooting my problem?

Raspberry pi #18.png
 
OP
OP
Cousteau666

Cousteau666

Community Member
View Badges
Joined
Apr 15, 2023
Messages
69
Reaction score
41
Location
27455
Rating - 0%
0   0   0
It probably doesn't deliver enough power to engage the relay, you could stick a transistor in the circuit so the pi switches the transistor which then engages the relay
Highly possible as on the 3.3v circuit the LED is woefully dim, it is barely even illuminated. When I try running the LED circuit on the GPIO pins it will not illuminate at all. I also can not detect voltage across the supposed 'on' pins.

I was not expecting to need one as all the instructions I have read did not recommend additional power requirements to engage the relay. Would you mind making a recommendation on which size transistor? I'm happy to provide more info if you find yourself interested in helping further.
 
OP
OP
Cousteau666

Cousteau666

Community Member
View Badges
Joined
Apr 15, 2023
Messages
69
Reaction score
41
Location
27455
Rating - 0%
0   0   0
Im betting its one of those prebuilt modules with opto isolators. But of its not… then thats probably it
It probably doesn't deliver enough power to engage the relay, you could stick a transistor in the circuit so the pi switches the transistor which then engages the relay
Also here are the pics of the relay -> pi set up as I have it configured. Anything immediately jump out as clearly wrong?

Also the brightness of the LED's increased when I switched from the 3.3v to 5v pin.

Pi Relay.jpeg

Reef Pi pic.jpeg
 

robinm

Active Member
View Badges
Joined
Feb 21, 2021
Messages
101
Reaction score
69
Location
Louth
Rating - 0%
0   0   0
At the moment you aren't supplying power to the relays. You can either put a jumper between VCC and JD-VCC which will use power from the VCC connection on the 10 way connector provided that your power supply can deliver at least 700 mA or use a separate power supply connected to the GND and JD-VCC pins. Be aware that these relays are active low i.e. the relay engages when the GPIO pin is low.
 
OP
OP
Cousteau666

Cousteau666

Community Member
View Badges
Joined
Apr 15, 2023
Messages
69
Reaction score
41
Location
27455
Rating - 0%
0   0   0
At the moment you aren't supplying power to the relays. You can either put a jumper between VCC and JD-VCC which will use power from the VCC connection on the 10 way connector provided that your power supply can deliver at least 700 mA or use a separate power supply connected to the GND and JD-VCC pins. Be aware that these relays are active low i.e. the relay engages when the GPIO pin is low.
Ah man, thank you for the response! I will fiddle with it when I get home this evening and see if I can get it to work.
 
OP
OP
Cousteau666

Cousteau666

Community Member
View Badges
Joined
Apr 15, 2023
Messages
69
Reaction score
41
Location
27455
Rating - 0%
0   0   0
No worries, let us know how you get on :)
Is there a clever way to give power to the JDVCC. I sacrificed a usb cable and spliced into some jumpers, but it looks sketch. I'm searching adafruit for something better, but if you are aware of anything, I'm open to suggestions!
 

slythy

Well-Known Member
View Badges
Joined
Aug 3, 2021
Messages
911
Reaction score
822
Location
USA
Rating - 100%
1   0   0
Is there a clever way to give power to the JDVCC. I sacrificed a usb cable and spliced into some jumpers, but it looks sketch. I'm searching adafruit for something better, but if you are aware of anything, I'm open to suggestions!

Is there 120v inside the relays? I assume there is based on all the switching. You could pull the 120 off of the in side on the relays and then use a 120-5v ac/dc converter.

You can use one like
Cheapy converter
 
Back
Top