computer science and mathematics

Controlling Halloween decorations with an Arduino Uno, an Ethernet Shield, and a Relay Shield.

We had a few Halloween decorations with push button switches that we networked via an Arduino Uno. Three of the relays from the relay shield were used to activate a Grim Reaper and two sets of skulls. The push button from each decoration was cut and discarded. One of the wires coming from a decoration was connected to the common and the other to the normally open contact of a relay.

An Arduino Uno, an Ethernet Shield, and a Relay Shield

The Arduino sketch delivers a web based interface and parses incoming requests to evaluate which relay should be activated. The sketch is provided below.