# Help needed with code for a Relay Shield project

**URL:** <https://community.particle.io/t/help-needed-with-code-for-a-relay-shield-project/9512>\
**Category:** Troubleshooting\
**Created:** [January 21, 2015, 10:14am UTC](https://community.particle.io/t/help-needed-with-code-for-a-relay-shield-project/9512 "2015-01-21T10:14:13Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![bko](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/bko/32/20704_2.png) [@bko](https://community.particle.io/u/bko)\
**Post date:** [January 21, 2015, 12:52pm UTC](https://community.particle.io/t/help-needed-with-code-for-a-relay-shield-project/9512/4 "2015-01-21T12:52:21Z")

</div>

Hi @roomman

You might want to look at this thread where I helped another user with his relays controlling aquarium pumps. Both firmware code for the core and HTML are provided. For this application, the user wanted the durations in seconds rather than minutes or hours:minutes, but it could be easily changed.

> **[Looking for some help to control spark via web](https://community.particle.io/t/looking-for-some-help-to-control-spark-via-web/4419/29)**
>
> OK guys I have something working, but it is not quite where I wanted it to be. I wanted to have the current values automatically refresh from the core, but it is just not stable and I don’t know what is wrong. So for now, you have to hit a...

---

_[View the full topic](https://community.particle.io/t/help-needed-with-code-for-a-relay-shield-project/9512)._
