Changes between Version 91 and Version 92 of WikiStart


Ignore:
Timestamp:
2013-11-04 22:39:05 (10 years ago)
Author:
hek
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v91 v92  
    2222 
    2323The latest version of the Vera plugin can be found here: 
    24  
    25 http://code.mios.com/git_public/mios/arduino-sensor.git/tree/refs/heads/master:/VeraArduino/Vera?js=1 
     24http://code.mios.com/git_public/mios/arduino-sensor.git/tree/HEAD:/VeraArduino/Vera?js=1 
    2625 
    2726[[Image(serial.png, align=right, 300px)]] 
    28 1. Download all files and upload them in Vera under APPS->Develop Apps->Luup files. 
    29 2. To create the new device to to APPS->Develop Apps->Luup and enter "D_Arduino1.xml" in "Upnp Device Filename" and press "Create Device" 
     271. 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). 
     282. 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" 
    30293. After the usual reload/refresh ritual the Arduino root device should pop up. 
    31 4. If you have your Arduino board plugged into Vera you should now configure which serial device to use. See image to the right.  
     304. 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.  
    3231 
    3332== Using the Arduino library  == 
     
    3534All the components developed and compiled here are Open Source. The Vera plugin was inspired by the excellent rfxtrx plugin. I've also written a Arduino library handling all encoding and communication between Arduino sensors and ArduinoGateway. The Vera plugin part automatically creates newly found sensors in Vera. 
    3635 
    37 It should be pretty simple to use the library (some more documentation in [[http://code.mios.com/git_public/mios/arduino-sensor.git/blob/refs/heads/master:/VeraArduino/Arduino/libraries/Vera/Vera.h?js=1|vera.h]]). But here follows the basic usage in your Arduino sketch: 
     36It should be pretty simple to use the library (some more documentation in [[http://code.mios.com/git_public/mios/arduino-sensor.git/blob/HEAD:/VeraArduino/Arduino/libraries/Vera/Sensor.h?js=1|vera.h]]). But here follows the basic usage in your Arduino sketch: 
    3837  
    3938{{{ 
     
    4241#include <SPI.h>   
    4342#include <RF24.h> 
    44 #include <Vera.h>   
     43#include <Sensor.h>   
    4544#include <EEPROM.h> 
    4645 
    47  
    48 // Set RADIO_ID to something unique in your sensor network (1-254) 
    49 // or set to AUTO if you want vera to assign a RADIO_ID for you. 
    50 #define RADIO_ID AUTO 
    51  
    52 // Create RF24 library instance using pin 9,10 which is what I've described how to hook up the radio module in this wiki. 
    53 RF24 radio(9,10);  
    54  
    55 // Create a Vera library instance 
    56 Vera sensors(RADIO_ID, &radio);  
     46// Create a Sensor library instance 
     47Sensor sensors(9,10);  
    5748 
    5849void setup()   
    5950{ 
    60   // Initialize and start up vera library (this also initializes the radio stuff) 
    61   vera.begin(); 
    62  
    63   // Register sensor(s) to Vera (they will be created as child devices when found). The arguments as follows. 
     51  // Initialize and start up vera library (this also initializes the radio stuff and node id) 
     52  vera.begin(AUTO); 
     53 
     54  // Register sensor(s) to Vera (vera must be in include mode to pick up sensor). The arguments as follows. 
    6455  // childId      Each Arduino can have up to 128 child sensors. 0-127.  
    6556  //              Here we register childId 0. 
     
    8677A sketch is a small program that you download to the Arduino boards. To get started download Arduino SDK here: http://arduino.cc/en/Main/Software  
    8778 
    88 Also make sure to install all Arduino libraries I've created and collected here before trying to build the sensor sketches below. http://code.mios.com/trac/mios_arduino-sensor/browser/trunk/Arduino/libraries  
     79Also make sure to install all Arduino libraries I've created and collected here before trying to build the sensor sketches below.  
     80http://code.mios.com/git_public/mios/arduino-sensor.git/tree/HEAD:/VeraArduino/Arduino/libraries?js=1 
    8981 
    9082Follow the description below on how to assemble hardware and configure each type of sensor. I've also tried to link all the hardware necessary to build each sensor [from aliexpress.com].  
     
    9789[[Image(gw.jpg, align=right, 200px)]] 
    9890Acts as a link between Vera and your wireless sensors.  
    99 This is a mandatory sketch that should be downloaded to an Arduino Nano. This nano is then connected to your Vera using a usb cable.   
    100 It is important to use a Arduino Nano board for the ArduinoGateway as it contains a serial usb chipset recognized directly by Vera.  
     91This is a mandatory sketch that must be downloaded to an Arduino Nano. This nano is then connected to your Vera using a usb cable.   
     92It is important to use a Arduino Nano board for the ArduinoGateway because it contains a serial usb chipset recognized by Vera.  
    10193 
    10294[[DallasTemperatureSensor|Dallas Temperature Sensor]] 
     
    183175 
    184176== Changelog  == 
     177 
     178 
     179Planned features: 
     180 
     181=== CHANGES 1.3 (Beta 1) === 
     182Download zip: 
     183http://code.mios.com/git_public/mios/arduino-sensor.git/snapshot/HEAD.zip?js=1 
     184Browse tree: 
     185http://code.mios.com/git_public/mios/arduino-sensor.git/tree/HEAD?js=1 
     186 
     187* More debug info is printed to serial monitor in sensors (can be turned off). 
     188* Nodes that receive messages from vera don't need to busy wait. New API methods. 
     189  See new example code in RelayActuator sketch. 
     190* Increased transfer speed (1MBPS) between radios. 
     191* Sent time to sensors uses vera configured timezone 
     192* Radio protocol updated. from/to/version/crc/binary added in message header. This change requires sensors to update their (1.2) library version. 
     193* Variables in vera only gets updated if changed. 
     194* Increased baudrate between vera gateway and vera.  
     195* Message can be sent between sensors without being processed by vera. 
     196* Vera library is now a subclass of RF24 . 
     197* Remove gateway specific code from vera library. New class hierarchy RF24->Node->Relay->Gateway. 
     198* Preserve memory by placing static strings in PROGMEM 
     199* Inclusion mode. Can be started from the Arduino Vera plugin or by using digital input pin on vera gateway (inclusion button). All found devices during inclusion time will be created at once (no multi vera reload/restart cycle needed anymore). 
     200* ArduinoGateway support blinking leds for RX/TX/ERR and a special blink when inclusion mode is activated. 
     201* Dimmer support 
     202* Lastupdate-variable is set in vera for all changes.  
     203* A new device is created in vera for each physical arduino/radio 
     204  This device will hold info about node, such as library version, battery info 
     205  and relay information. 
     206* Support for message relaying. All nodes can act as relay. This functionality  
     207  can be used for communicating with sensors far away. An relay node forwards 
     208  messages between sensors and vera gateway. Multiple relays (message hops)  
     209  is also supported. 
     210  See RelayActuator sketch for an example how to create an relay node. 
     211* Relay node for a sensor (could be GW) is dynamically located each time a sensor is losing connection. This information is also sent to vera and can be seen in radio node device.    
     212* Unit system can be configured in vera plugin (metric/imperial). Sensors can fetch this setting (isMetricSystem()) and send in data in the correct unit. 
     213 
    185214 
    186215=== CHANGES 1.2 ===