Version 4 (modified by hek, 11 years ago) (diff)

--

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 here

Wire things up

Follow the instructions in ConnectingRadioModule to connect radio module. 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 Single Relay Module

1x Push button

TOTAL SENSOR PRICE: $7.6 (arduino + radio) + $1.6 (relay module) + $1.75 (button) = $11

Attachments