= Relay Actuator With Pushbutton = This example show how an relay controlled locally at the Arduino with an push button. The Relay can also be controlled from Vera. The push button changes of the relay state will also 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://www.jdoqocy.com/click-7319170-10881559?url=http%3A%2F%2Fwww.aliexpress.com%2Fitem%2F5V-One-1-Channel-Relay-Module-Board-Shield-For-PIC-AVR-DSP-ARM-MCU-For-Arduino%2F1209452041.html|Single Relay Module]]\\ 1x [[http://www.dpbolvw.net/click-7319170-10881559?url=http%3A%2F%2Fwww.aliexpress.com%2Fitem%2FELEWIND-12mm-Dome-head-momentary-push-button-switch-PM121B-10-N%2F1342120632.html|Push button]]\\ TOTAL SENSOR PRICE: $7.6 (arduino + radio) + $1.6 (relay module) + $1.75 (button) = '''$11'''