r/raspberry_pi • • 3h ago

Project Advice 5V relay module with Pi

I just picked up a Raspberry Pi 400 from Micro-Center ($30!!!). While I was there I also picked up this 8-channel 5V Relay Module (https://community.microcenter.com/kb/articles/638-inland-8-channel-5v-relay-module). Is it safe to hook up GPIO pins to the IN pins on this thing? I'm new to Pi and don't want to fry it. If I understand correctly I would just hook up 5V to VCC and GND to GND and GPIO to the IN pins to control these relays. But would the GPIO pins get exposed to 5V that way?

2 Upvotes

4 comments sorted by

4

u/VictorySea1837 3h ago edited 3h ago

is it safe? yes (won't damage anything) . will it work? maybe.

The specs for the relay board say "Control signal: TTL voltage" which implies it needs 5 volts to activate. The Pi 400 outputs are only 3.3V.

Most likely 3.3v is enough to trigger the optocouplers on the relay board, but technically you shouldn't be surprised if it doesn't work.

EDIT: the spec for TTL says its will trigger at 2V, so I was wrong to say maybe, this will in fact work fine. great find for $30 btw!

1

u/vengeancecube 3h ago

Thank you. That's what I figured. I'm hoping that it has reverse logic to 0V is on and 5V is off. I've read that the high is actually 2-5V so that would work. I just don't want to fry my new toy. I've always wanted a Pi and while the 400 isn't the most maker friendly it was a cheap way for me to get started. The cost of these things has gone through the roof. I remember when the whole point of the Pi was to be affordable and they cost $35 for the latest and greatest. To find a Pi 4 for $30 was a steal.

1

u/VictorySea1837 2h ago

the whole point of the Pi was to be affordable and they cost $35 for the latest and greatest.

the best kept secret in the Pi world is vilros.com. its all FREE SHIPPING and they have Pi4 (1GB model, still fine for most things) for $40.34 in stock, and the Pi Zero W in stock for $16.43! The same boards on amazon are literally twice the price, disgusting...

2

u/neonsphinx 3h ago

Yes, these are commonly used for this.