= NOTE! This page is no longer updated = = You will find the latest information about !MySensors here:= http://www.mysensors.org = = [[Image(veraplugin.png, align=right, 200px)]] = Arduino Gateway = == Installing the Arduino Vera plugin == The latest version of the Vera plugin can be found [[https://github.com/mysensors/Vera|here]].\\ [[Image(serial.png, align=right, 300px)]] 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 [[https://github.com/mysensors/Arduino/tree/master/libraries|here]] in your Arduino IDEs library location.\\ Download the Arduino sketch for the '''Serial Gateway''' version [[https://github.com/mysensors/Arduino/tree/master/SerialGateway|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 [[https://github.com/mysensors/Arduino/tree/master/EthernetGateway|here]]. Follow connect instruction in the head of sketch. (See: http://forum.micasaverde.com/index.php/topic,23093.0.html) == Wire & casing things up == [[Image(gateway1.JPG, 200px, align=right)]] 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: [[Image(digital_button.jpg, 300px, align=right)]] {{{ // 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. [[http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&pub=5575069610&toolid=10001&campid=5337426682&customid=&icep_item=130977189883&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg|1x Arduino Nano with serial interface and usb connector]]\\ [[Image(gateway2.JPG, 200px, align=right)]] [[http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&pub=5575069610&toolid=10001&campid=5337426682&customid=&icep_item=380683959475&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg|8x Dupont female to female jumper cable]]\\ [[http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&pub=5575069610&toolid=10001&campid=5337426682&customid=&icep_item=170819069271&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg|1x NRF24L01+ wireless data transmission module 2.4Ghz]]\\ TOTAL PRICE: $7,99 + $0.93 + $0,6 = $9.5