Last modified 10 years ago Last modified on 2014-03-23 14:05:05

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 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