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

NOTE! This page is no longer updated

You will find the latest information about MySensors here:

http://www.mysensors.org

Arduino Gateway

Installing the Arduino Vera plugin

The latest version of the Vera plugin can be found here.

  1. Download all *_Arduino*.* files and upload them in Vera under APPS->Develop Apps->Luup files (you can skip the subfolders if you don't plan to use these sensors).
  2. To create the Arduino Plugin device go to APPS->Develop Apps->Luup and enter "D_Arduino1.xml" in "Upnp Device Filename" and press "Create Device"
  3. After the usual reload/refresh ritual the Arduino root device should pop up.
  4. If you have your Arduino board plugged into Vera you should now configure which serial device to use. See image to the right. Set baudrate to 115200.

Installing Arduino Gateway Software

Install all Arduino libraries found here in your Arduino IDEs library location.

Download the Arduino sketch for the Serial Gateway version here and download it to your Arduino Nano.

You really don't need to configure anything in this sketch. Just download it and connect the Arduino to your Vera using usb-connector. Please note that only Arduino Nano module have a serial chipset recognized automatically by Vera.

If you prefer the Ethernet Gateway version it's found here. Follow connect instruction in the head of sketch. (See: http://forum.micasaverde.com/index.php/topic,23093.0.html)

Wire & casing things up

gateway case 1 You only need to connect the radio chip to the Arduino. Follow the instructions in ConnectingRadioModule.

As an option you also can connect inclusion button & indicating leds. Pin to be used by button is defined inside SerialGateway? sketch as #define INCLUSION_MODE_PIN 3. Actually it is hard to redefine it because sketch is using the particular interrupt handler. Connect button between +5V and digital pin 3 with a 10k pull down resistor to GND (see image).

There are 3 led types supported - RX/TX/Error. Use them to have a visual feedback during radio activity. Radial 3mm green/yellow/red leds could be a good choice. Your should use 3 resistors 270R-510R. Each led is connected by anode to +5V pin and cathode is connected through a resistor to a digital pins 6/5/4 respectively for RX/TX/Error. Pins can be re-configured inside SerialGateway? sketch at this line:

// Start gateway with include button and led blinking functionality enabled (see documetation)
Gateway gw(9, 10, INCLUSION_MODE_PIN, INCLUSION_MODE_TIME, 6, 5, 4);

There is no special requirement for the casing, you can use any case suitable for your setup. A nice 3d model for 3d printer can be found here http://www.thingiverse.com/thing:159417.

Hardware - Purchase guide

This is the stuff you need to purchase to build the ArduinoGateway. Note that I've provided links to the things I bought during the development. You might find it cheaper somewhere else. Also note that you might need to buy more than 1 product to get the price specified.

1x Arduino Nano with serial interface and usb connector

gateway case 2

8x Dupont female to female jumper cable

1x NRF24L01+ wireless data transmission module 2.4Ghz

TOTAL PRICE: $7,99 + $0.93 + $0,6 = $9.5

Attachments