OctoPrint Enclosure plugin + Relay

Hello everybody.
Could not figure out why my Relay in OctoPrint Enclosure plugin does not work...
My setup: Relay conected to 5V, GND and GPIO23
Output Type: Regular IO; IO Number: 23; (other boxes unchecked)
Advanced options: checked only "Use SUDO"


Relayclick only ONCE when I change "Use Board Pin #", change apropriate GPIO number and click save.
Thanx for any suggestions

SOLVED: relay does not have JD_VCC function, I connected relay with that function and it works...

1 Like

Great you found it. So could you please:

Done. :blush: Thank you for noticing me!

1 Like

I'd like to do something similar but am stuck on wiring relay module. I have read that JD-VCC is used to supply power to the relays. Do you literally remove the jumper and run 5v to the JD-VCC pin?

No, I just left jumper in place. When I removed it, relay stops working. Tested on three different relays.

Hi I want to control light and power with a double relay the ones I have, have JD_VCC function. I have put them on test and found the io signal pins would have to supply a ground not 5v as I was expecting, could you tell me what the io pin you use is doing please?

@Jan_Reich Thanks for getting back to me. I did a google around and it seems is you leave the jumper in place, everything (relays, opto and drive transistors) fom the Vcc pin. Did you put 3.3v or 5v on the Vcc pin?

@Quad_Mc_Jellydrone Now I'm completely confused (but then again I confuse easily).

Found this it helped .

In my case:
– JD-VCC leave jimper in place
– VCC -> 5V
– GND -> gound
– Signal -> I used GPIO 23 (see photo)

3,3V was not enough for my relay, which is rated for 5V.
So I user 5V :slight_smile:

Agreed but if you use 5v for the logic but Pi uses 3.3v for it's logic, isn't that risky? Also aren't you risking pulling the 3.3v rail down or putting noise on it? From the video Quad.... posted it looks like

JD-VCC 5v
Gnd Gnd
VCC 3.3v
Signal GPIO whatever

@Quad_Mc_Jellydrone Thanks for the post.

To be honest, I have no idea :slight_smile:
My setup works for me. VCC from relay to 3.3V did not.

Since you are only sending a 3.3V signal FROM the grip pin to activate the relay it is no problem. Also, many of those relay modules are optically isolated, so extra safety factor there.

My understanding is that you want activate the relay by pulling the GPIO pin to ground. It will float at 3.3v which is high enough to be "high" for 5V logic.

Thanks all, time I actually fired up the relay modules I have and actually see whats happening. Still unclear re. how much current I can draw before 3.3V line gets sucked down or even worse kills the onboard regulator.