= NOTE! This page is no longer updated = = You will find the latest information about !MySensors here:= http://www.mysensors.org = = = Relay Actuator With Pushbutton = This example show how to control an relay from Vera and also locally with a push button connected to the Arduino. Local status changes of the relay state will be transmitted to Vera. == Software == You can download the Arduino sketch [[https://github.com/mysensors/Arduino/tree/master/libraries/MySensors/examples/RelayWithButtonActuator|here]]\\ == Wire things up == Follow the instructions in ConnectingRadioModule to connect radio module. [[Image(digital_button.jpg, width=250px, align=right)]] Connect the IN1 of relay to digital pin 4 of Arduino board.\\ Connect Relay VCC to +5V of the Arduino board. GND to GND.\\ Connect push button between +5V and digital pin 3 with a 10k pull down resistor to GND (see image). == Hardware - Purchase guide == To build this sensor you'll need one arduino + radio specified in the base kit found here:\\ http://code.mios.com/trac/mios_arduino-sensor/wiki/WikiStart#Buyingguide\\ With the following additional parts:\\ 1x [[http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&pub=5575069610&toolid=10001&campid=5337426682&customid=&icep_item=251383404102&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg|Single Relay Module]]\\ 1x [[http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&pub=5575069610&toolid=10001&campid=5337426682&customid=&icep_item=350655486065&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg|Push button]]\\ TOTAL SENSOR PRICE: $7.6 (arduino + radio) + $1.6 (relay module) + $1.75 (button) = '''$11''' [[Image(relay.JPG)]]