# Spark Relay Shield Weirdness

**URL:** <https://community.particle.io/t/spark-relay-shield-weirdness/5382>\
**Category:** Troubleshooting\
**Created:** [June 27, 2014, 2:58am UTC](https://community.particle.io/t/spark-relay-shield-weirdness/5382 "2014-06-27T02:58:42Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![james211](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/james211/32/20744_2.png) [@james211](https://community.particle.io/u/james211)\
**Post date:** [June 27, 2014, 2:58am UTC](https://community.particle.io/t/spark-relay-shield-weirdness/5382/1 "2014-06-27T02:58:42Z")

</div>

I had this problem before and I thought I had solved it, clearly I didn’t. I’m using relays 1 & 2 only 3 & 4 are not being used. When I apply power to the shield, even if a spark core isn’t attached relay 3 is triggered. I hear it click and the red light is on. Any thoughts on why this might be happening?

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [June 27, 2014, 3:16am UTC](https://community.particle.io/t/spark-relay-shield-weirdness/5382/2 "2014-06-27T03:16:38Z")

</div>

They input signal is pulled-down and should not be behaving that way.

Can you monitor the Voltage on D2 (which controls relay 3) and see if there was a voltage change during boot up?

![](https://sea2.discourse-cdn.com/flex026/uploads/particle/2431/b50d7bdb4d789c1a.png)

---

<div class="post-metadata">

**Author:** ![james211](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/james211/32/20744_2.png) [@james211](https://community.particle.io/u/james211)\
**Post date:** [June 27, 2014, 10:53am UTC](https://community.particle.io/t/spark-relay-shield-weirdness/5382/3 "2014-06-27T10:53:28Z")

</div>

D2 or D5? I don’t see a D2 on the schematic.

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [June 27, 2014, 10:56am UTC](https://community.particle.io/t/spark-relay-shield-weirdness/5382/4 "2014-06-27T10:56:09Z")

</div>

It goes like

Relay 1 - D0  
Relay 2 - D1  
Relay 3 - D2  
Relay 4 - D3

---

<div class="post-metadata">

**Author:** ![Hootie81](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/hootie81/32/2879_2.png) [@Hootie81](https://community.particle.io/u/Hootie81)\
**Post date:** [June 27, 2014, 10:58am UTC](https://community.particle.io/t/spark-relay-shield-weirdness/5382/5 "2014-06-27T10:58:36Z")

</div>

Ive read this on the forum somewhere before.. i just cant remember where! when the core powers up the pins aren't initialized until the users program runs.. after it connects to the wifi and cloud.

This guy has a interlock so nothing gets effected during power off and boot up.

> **[Completed Garage Door and Web Interface - Schematic and Code included](https://community.particle.io/t/completed-garage-door-and-web-interface-schematic-and-code-included/4121/2)**
>
> Awesome! Cmon…we need some pictures and video of the Garage door 😃 Wow… codepen.io looking cool…

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [June 27, 2014, 11:01am UTC](https://community.particle.io/t/spark-relay-shield-weirdness/5382/6 "2014-06-27T11:01:10Z")

</div>

@Hootie81,

like i mentioned in the previous post, there is a pull-down resistor on all the input to the relay signal.

So there’s no reason for a random trigger since the pull-down is available.

That’s why, i’m suggesting to monitor the voltage on the input pin during power up. 😉

---

<div class="post-metadata">

**Author:** ![Hootie81](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/hootie81/32/2879_2.png) [@Hootie81](https://community.particle.io/u/Hootie81)\
**Post date:** [June 27, 2014, 11:41am UTC](https://community.particle.io/t/spark-relay-shield-weirdness/5382/7 "2014-06-27T11:41:59Z")

</div>

Sorry i didn’t read the question properly… or your reply… just trying to help while still half asleep!

If its happening without the core in the shield its very strange… maybe R9 is faulty or has a dry joint?

---

<div class="post-metadata">

**Author:** ![james211](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/james211/32/20744_2.png) [@james211](https://community.particle.io/u/james211)\
**Post date:** [June 27, 2014, 11:53am UTC](https://community.particle.io/t/spark-relay-shield-weirdness/5382/8 "2014-06-27T11:53:38Z")

</div>

Ha! Clearly no one sleeps around here. I’ll check the voltage either tonight or over the weekend and let you know.

---

<div class="post-metadata">

**Author:** ![BDub](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/bdub/32/5137_2.png) [@BDub](https://community.particle.io/u/BDub)\
**Post date:** [June 27, 2014, 5:06pm UTC](https://community.particle.io/t/spark-relay-shield-weirdness/5382/9 "2014-06-27T17:06:16Z")

</div>

Power the relay shield without a Spark Core attached. If any relay turns on, try grounding all relay input signals one at a time (D0, D1, D2, D3). If any relay is on solid after this, the NPN transistor is probably shorted… or there could be a solder short on the board near that component.

---

<div class="post-metadata">

**Author:** ![james211](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/james211/32/20744_2.png) [@james211](https://community.particle.io/u/james211)\
**Post date:** [June 29, 2014, 4:04pm UTC](https://community.particle.io/t/spark-relay-shield-weirdness/5382/10 "2014-06-29T16:04:29Z")

</div>

Well I’m not really sure what to do, I powered it up without today to test it out and relay three stayed off this time. It seems to happen mostly when I start messing with the board. Once my next spark core gets here I’ll be able to play without having to remove this board.
