# OnOff Shim Problem?

**URL:** <https://forums.pimoroni.com/t/onoff-shim-problem/14154>\
**Category:** Support\
**Created:** [June 5, 2020, 1:45pm UTC](https://forums.pimoroni.com/t/onoff-shim-problem/14154 "2020-06-05T13:45:40Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![PhilipL](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@PhilipL](https://forums.pimoroni.com/u/PhilipL)\
**Post date:** [June 5, 2020, 1:45pm UTC](https://forums.pimoroni.com/t/onoff-shim-problem/14154/1 "2020-06-05T13:45:40Z")

</div>

Just added OnOff Shim to RPi4 which has an adafruit GPS. Checked the connections.

The RPI will only start up when I keep the button wires held together (ie not momentary). When I do that, it then starts to shut down.

There seem to be other posts about this. Is the device faulty do you think?

---

<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:** [June 5, 2020, 6:21pm UTC](https://forums.pimoroni.com/t/onoff-shim-problem/14154/2 "2020-06-05T18:21:49Z")

</div>

The on off shim uses the following GPIO pins

> **[OnOff SHIM at Raspberry Pi GPIO Pinout](https://pinout.xyz/pinout/onoff_shim)**
>
> A power switch for the Raspberry Pi

If the GPS uses any of those pins (other than power and ground) that may be your issue.  
How is the GPS module wired up?

---

<div class="post-metadata">

**Author:** ![PhilipL](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@PhilipL](https://forums.pimoroni.com/u/PhilipL)\
**Post date:** [June 5, 2020, 7:37pm UTC](https://forums.pimoroni.com/t/onoff-shim-problem/14154/3 "2020-06-05T19:37:10Z")

</div>

The gps hat sits on top of the OffOn Shim which sits on the RPi. The OffOn Shim is soldered to a header with long pins which allows the adafruit gps header to be pushed into place. That is, the Shim is sandwiched between the gps and RPi.

My reading of the description of the Shim is that it works with Hats. Maybe not all hats?

---

<div class="post-metadata">

**Author:** ![PhilipL](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@PhilipL](https://forums.pimoroni.com/u/PhilipL)\
**Post date:** [June 5, 2020, 7:38pm UTC](https://forums.pimoroni.com/t/onoff-shim-problem/14154/4 "2020-06-05T19:38:58Z")

</div>

Sorry - just got your point. Yes, they do share Pin 7.

Does that mean they cannot work together?

---

<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:** [June 5, 2020, 9:11pm UTC](https://forums.pimoroni.com/t/onoff-shim-problem/14154/5 "2020-06-05T21:11:32Z")

</div>

The two sharing pin 7, GPIO 4 is likely your issue. What does the GPS use pin 7 for?

---

<div class="post-metadata">

**Author:** ![PhilipL](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@PhilipL](https://forums.pimoroni.com/u/PhilipL)\
**Post date:** [June 5, 2020, 9:44pm UTC](https://forums.pimoroni.com/t/onoff-shim-problem/14154/6 "2020-06-05T21:44:41Z")

</div>

Ah! Adafruit say: " GPS’s can output a ‘pulse per second’ for synchronizing the time. We have a breakout for this and a closed jumper that connects it to **GPIO#4** - if you do not need PPS and want to use #4 for something else, just cut the little connection on the PPS PCB line."

---

<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:** [June 5, 2020, 9:53pm UTC](https://forums.pimoroni.com/t/onoff-shim-problem/14154/7 "2020-06-05T21:53:20Z")

</div>

Ok, I have an older version of the Adafruit Ultimate GPS breakout. It uses UART or a serial to USB adapter. I’ve used it both ways on a Pi. I can’t find a link to the one I have though? Only the newer version 3 one. Is that the one you have?

EDIT: You must have the hat version? Mine is a breakout that doesn’t plug directly into the Pi’s GPIO. I would cut that jumper with an exacto knife. You can always just solder it back in place if the GPS stops working.

---

<div class="post-metadata">

**Author:** ![PhilipL](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@PhilipL](https://forums.pimoroni.com/u/PhilipL)\
**Post date:** [June 6, 2020, 4:24am UTC](https://forums.pimoroni.com/t/onoff-shim-problem/14154/8 "2020-06-06T04:24:39Z")

</div>

Yes, it’s the hat version. Thanks for the advice - will give it a go.

This is mine: [https://learn.adafruit.com/assets/21931](https://learn.adafruit.com/assets/21931)

---

<div class="post-metadata">

**Author:** ![PhilipL](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@PhilipL](https://forums.pimoroni.com/u/PhilipL)\
**Post date:** [June 6, 2020, 2:36pm UTC](https://forums.pimoroni.com/t/onoff-shim-problem/14154/9 "2020-06-06T14:36:33Z")

</div>

Just to confirm that your suggestion was correct - I cut the jumper and the Shim is now working perfectly. Many thanks.

It’s for a navigation system on a boat. I just need to work out how to automatically start the nav program (OpenCPN) and connect to an onboard web server which is sending out AIS signals (Yakker).

---

<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:** [June 6, 2020, 4:31pm UTC](https://forums.pimoroni.com/t/onoff-shim-problem/14154/10 "2020-06-06T16:31:44Z")

</div>

That’s good to hear, moving forward not backward. I run some python files on boot up via crontab. Many different ways to do it, that’s just what works for me.
