# 5V device NOT 5V logic - Pi Automation Hat

**URL:** <https://forums.pimoroni.com/t/5v-device-not-5v-logic-pi-automation-hat/17629>\
**Category:** Support\
**Created:** [August 4, 2021, 5:45pm UTC](https://forums.pimoroni.com/t/5v-device-not-5v-logic-pi-automation-hat/17629 "2021-08-04T17:45:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MNeimeyer](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/mneimeyer/32/8072_2.png) [@MNeimeyer](https://forums.pimoroni.com/u/MNeimeyer)\
**Post date:** [August 4, 2021, 5:45pm UTC](https://forums.pimoroni.com/t/5v-device-not-5v-logic-pi-automation-hat/17629/1 "2021-08-04T17:45:33Z")

</div>

I have a Raspberry Pi 3 B+ and I have a device that uses 5V… Can I put a Pimoroni Automation Hat Mini (PIM487) “between” them and control the one with the relay on the other?

Everytime I Google I keep running across things that tell me about 5V logic controlled relays and that I shouldn’t use them with the 3.3V logic controlled Pi.

The specs I can find on the Automation Hat say “relay that can tolerate up to 2A at 24V” but I wanted to make sure before I dived in.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [August 4, 2021, 6:32pm UTC](https://forums.pimoroni.com/t/5v-device-not-5v-logic-pi-automation-hat/17629/2 "2021-08-04T18:32:20Z")

</div>

The Raspberry Pi uses 3.3V logic. And has a limit on how much current a GPIO pin can supply. It would never be able to turn on a 5V relay if directly connected to a GPIO pin.  
It will also likey damage that GPIO pin. Also, if you feed a 5V signal into a GPIO it will damage the Pi  
Your plan to use the Automation Hat sounds to me like a good idea. You can either use the onboard relay, or one of the sinking outputs to ground / turn on the relay you have now.

---

<div class="post-metadata">

**Author:** ![MNeimeyer](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/mneimeyer/32/8072_2.png) [@MNeimeyer](https://forums.pimoroni.com/u/MNeimeyer)\
**Post date:** [August 4, 2021, 6:42pm UTC](https://forums.pimoroni.com/t/5v-device-not-5v-logic-pi-automation-hat/17629/3 "2021-08-04T18:42:23Z")

</div>

To be clear, I don’t have any relays now. Just that when I searched for a relay that could control a 5V device all I found was “horrors” about using a relay designed for Arduino with the Pi.

Since this is a Pi Hat I _assumed_ it would be safe for the Pi but I wanted to be sure that “up to 24V” meant I could still control something that used a MUCH lower voltage (which, again, is coincidentally the same voltage as an Arduino which generated a lot of “white noise” in my search results)

Thanks!

---

<div class="post-metadata">

**Author:** ![ahnlak](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/ahnlak/32/5610_2.png) [@ahnlak](https://forums.pimoroni.com/u/ahnlak)\
**Post date:** [August 5, 2021, 8:46am UTC](https://forums.pimoroni.com/t/5v-device-not-5v-logic-pi-automation-hat/17629/4 "2021-08-05T08:46:52Z")

</div>

When it comes to relays, “up to 24V” means just that; you can run 0.5V through it if you like.

That said, it depends what sort of control you’re looking at; I suspect trying to do PWM through a relay will result in Bad Things :-)

---

<div class="post-metadata">

**Author:** ![MNeimeyer](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/mneimeyer/32/8072_2.png) [@MNeimeyer](https://forums.pimoroni.com/u/MNeimeyer)\
**Post date:** [August 5, 2021, 2:20pm UTC](https://forums.pimoroni.com/t/5v-device-not-5v-logic-pi-automation-hat/17629/5 "2021-08-05T14:20:23Z")

</div>

I’m replacing the Time Clock from “yesteryear” that we still used to control the bells on the production floor. Apparently someone didn’t think it should stay on the wall and ripped it down.

So a Pi, the Automation Hat and a cron job that triggers a script that doesn’t really do anything but wait a few seconds between “relay on” and “relay off” should be all I need.

Thanks!
