Yes, you will need a relay, and a 24V supply. The relay will isolate the Pi from the 24V supply. Connect ground from the 24V supply to the grey wire of the LED stack. Connect 24V positive to the centre screw terminal (Common, or C) of the relay output. Connect the normally open (N/O) screw terminal of the relay output to the LED wires (red, yellow, green, etc.)Hello, this is my first time tinkering with a Pi. I have a Pi 4B. I want to control an LED lightstack with the GPIO. I will be using an external 24VDC power supply, but am not sure how this should be wired up to switch the 24V to the LEDs.
This is the light stack I will be using. https://www.amazon.com/Baomain-Industry ... 68&sr=8-3l
I imagine I need a relay board like this https://www.amazon.com/JBtek-Channel-Mo ... 79&sr=8-2l but am not sure how I wire this up to provide 24V to my light stack. Would I connect my GPIO to the IN1, IN2, IN3, IN4 pins of the relay board and then plug 24V from my power supply to VCC and connect GND to either from the Pi's GND or my power supply's 0V?
Now, when a relay closes it will supply power to the part of the LED tower that is connected to that relay.
The relay board is often controversial, because nobody bothers to look into how they work. For that particular design remove the JD-VCC jumper. Connect Pi 5V to JD-VCC, and GND to Pi GND. Connect VCC to Pi 3.3V. Connect INx to GPIO pins of your choice. Controls are active low, so put the GPIO pin high to turn the relay off, and set it low to turn the relay on.
Statistics: Posted by ame — Sat Apr 13, 2024 6:07 am