= 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 [[http://code.mios.com/git_public/mios/arduino-sensor.git/tree/HEAD:/VeraArduino/Arduino/libraries/Vera/examples/RelayWithButtonActuator?js=1|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)]]