SIK_circuit13_relays by SparkFun SIK Examples

This is essentially a "blink" example. This demonstrates that a simple digitalWrite() command can control larger devices like relays.
This circuit uses two LEDs which switch back and forth depending on the state of the relay. Relays have a total of 5 pins. The two pins near the top are connected to a coil or electromagnet. When the electromagnet receives current, it pulls on the switch. The switch portion of the relay has three pins - **Normally Open (NO)**, **Normally Closed (NC)**, and a **Common (COM)**. When the relay is "off", the NO pin is not connected to the COM pin. When the realy is "on", the NO pin is now closed and connects to the COM pin. The opposite is true for the NC pin. ![enter link description here](https://raw.githubusercontent.com/sparkfun/Fritzing_Parts/master/kits/12060_sfe_inventors_kit_with_redboard_v32/sik_redboard_circuit_13.png)

Embed This Sketch

Use the following HTML code to embed the sketch code above in your blog or website.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/sketch:77061" frameborder="0"></iframe>

Embed The Serial Monitor

You can also embed the Serial Monitor section! Just use this HTML code.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>