Changes between Version 93 and Version 94 of WikiStart


Ignore:
Timestamp:
2013-11-04 23:02:56 (11 years ago)
Author:
hek
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v93 v94  
    66Arduino is an open source hardware prototype board that have lots of both digital and analog IO pins. There are an enormous amount of different cheap sensors that is compatible with the Arduino hardware. 
    77 
    8 Link Arduino page: http://arduino.cc 
    9 \\ 
    10 Relevant forum thread: http://forum.micasaverde.com/index.php/topic,16170.msg123378.html 
     8Link Arduino page: http://arduino.cc\\ 
     9Relevant forum thread: http://forum.micasaverde.com/index.php/topic,16170.msg123378.html\\ 
     10 
     11All 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. New sensors nodes will automatically find the closest relay node or gateway  and will also be assigned a unique id from vera. So you basically don't need to do any configuration of new sensors. 
     12 
    1113 
    1214== Architecture == 
     
    2022 
    2123 
     24== Arduino Sketches and vera plugins == 
     25 
     26[[Image(sdk.png, align=right, 200px)]] 
     27A 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  
     28 
     29Also make sure to install all Arduino libraries I've created and collected here before trying to build the sensor sketches below.  
     30http://code.mios.com/git_public/mios/arduino-sensor.git/tree/HEAD:/VeraArduino/Arduino/libraries?js=1 
     31 
     32Follow 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].  
     33 
     34You can connect more than one sensor to each Arduino. Each Pro Mini Arduino has 13 digital in/out pins and 5 analog dito. The radio uses 5 pins so there are plenty left for connecting sensors. Some of them (humidity and pressure) actually use one pin but give also give temperature information (for free) without using any extra pins. 
     35When connecting several sensors to one Arduino you'll also have to combine the example sketches below. Also keep in mind that it could be challenging to use interrupts (to be able to sleep most of the time) when several sensors fight for attention and some of them wants to report at a interval.  
     36 
     37[[ArduinoGateway|Arduino Gateway/Vera Plugin]]   
     38 
     39[[Image(gw.jpg, align=right, 200px)]] 
     40Acts as a link between Vera and your wireless sensors.  
     41This is a mandatory sketch that must be downloaded to an Arduino Nano. This nano is then connected to your Vera using a usb cable.   
     42It is important to use a Arduino Nano board for the ArduinoGateway because it contains a serial usb chipset recognized by Vera.  
     43You will also get instructions on how to install the Vera plugin here. 
     44 
     45[[DallasTemperatureSensor|Dallas Temperature Sensor]] 
     46 
     47This is an example sensor sketch that sends in Dallas temperature information and presents it as a temperature devices in Vera. 
     48 
     49[[DistanceSensor|Distance Sensor]] 
     50 
     51Bed occupancy sensor? Or use it in the garage to show when the car has reached the right location. Why not measure your own length every day using your Vera? 
     52 
     53[[HumiditySensor|Humidity Sensor (DHT22)]] 
     54 
     55Sketch that sends DHT11/22 data to Vera which displays them as a humidity and temperature device. 
     56 
     57[[LightSensor|Light Sensor]]   
     58 
     59Sensor sketch that reports light level and displays it in Vera using a light sensor device. 
     60 
     61[[MotionSensor|Motion Sensor]]   
     62 
     63Motion sensor sketch that triggers a motion sensor security device in Vera.  
     64 
     65[[PressureSensor|Pressure/Temperature/Weather forecast sensor (BMP085)]]   
     66 
     67Example sketch showing how to use a BMP085 pressure sensor to create a simple weather station with forecast calculation. Everything is sent and displayed as a barometer and temperature device in Vera. 
     68 
     69[[SoilMoistSensor|Soil Moisture Sensor]]   
     70 
     71Soil moisture sensor that triggers a security sensor device in Vera. 
     72 
     73[[RelayActuator|Relay Actuator]]   
     74 
     75Relay sketch that can be controlled from Vera using a regular binary light switch device in Vera.  
     76 
     77 
    2278== Using the Arduino library  == 
    2379 
    24 All 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. New sensors nodes will automatically find the closest relay node or gateway  and WILL be assigned a unique id from vera.  
    25  
    26 It 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: 
     80It should be pretty simple to use the library (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]]).  
     81An example of basic usage of the sensor library: 
    2782  
    2883{{{ 
     
    60115 
    61116 
    62  
    63  
    64 == Arduino Sketches == 
    65  
    66 [[Image(sdk.png, align=right, 200px)]] 
    67 A 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  
    68  
    69 Also make sure to install all Arduino libraries I've created and collected here before trying to build the sensor sketches below.  
    70 http://code.mios.com/git_public/mios/arduino-sensor.git/tree/HEAD:/VeraArduino/Arduino/libraries?js=1 
    71  
    72 Follow 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].  
    73  
    74 You can connect more than one sensor to each Arduino. Each Pro Mini Arduino has 13 digital in/out pins and 5 analog dito. The radio uses 5 pins so there are plenty left for connecting sensors. Some of them (humidity and pressure) actually use one pin but give also give temperature information (for free) without using any extra pins. 
    75 When connecting several sensors to one Arduino you'll also have to combine the example sketches below. Also keep in mind that it could be challenging to use interrupts (to be able to sleep most of the time) when several sensors fight for attention and some of them wants to report at a interval.  
    76  
    77 [[ArduinoGateway|Arduino Gateway]]   
    78  
    79 [[Image(gw.jpg, align=right, 200px)]] 
    80 Acts as a link between Vera and your wireless sensors.  
    81 This is a mandatory sketch that must be downloaded to an Arduino Nano. This nano is then connected to your Vera using a usb cable.   
    82 It is important to use a Arduino Nano board for the ArduinoGateway because it contains a serial usb chipset recognized by Vera.  
    83  
    84 [[DallasTemperatureSensor|Dallas Temperature Sensor]] 
    85  
    86 This is an example sensor sketch that sends in Dallas temperature information and presents it as a temperature devices in Vera. 
    87  
    88 [[DistanceSensor|Distance Sensor]] 
    89  
    90 Bed occupancy sensor? Or use it in the garage to show when the car has reached the right location. Why not measure your own length every day using your Vera? 
    91  
    92 [[HumiditySensor|Humidity Sensor (DHT22)]] 
    93  
    94 Sketch that sends DHT11/22 data to Vera which displays them as a humidity and temperature device. 
    95  
    96 [[LightSensor|Light Sensor]]   
    97  
    98 Sensor sketch that reports light level and displays it in Vera using a light sensor device. 
    99  
    100 [[MotionSensor|Motion Sensor]]   
    101  
    102 Motion sensor sketch that triggers a motion sensor security device in Vera.  
    103  
    104 [[PressureSensor|Pressure/Temperature/Weather forecast sensor (BMP085)]]   
    105  
    106 Example sketch showing how to use a BMP085 pressure sensor to create a simple weather station with forecast calculation. Everything is sent and displayed as a barometer and temperature device in Vera. 
    107  
    108 [[SoilMoistSensor|Soil Moisture Sensor]]   
    109  
    110 Soil moisture sensor that triggers a security sensor device in Vera. 
    111  
    112 [[RelayActuator|Relay Actuator]]   
    113  
    114 Relay sketch that can be controlled from Vera using a regular binary light switch device in Vera.  
    115  
    116  
    117117== Power Consumption == 
    118118 
     
    167167 
    168168 
    169 Planned features: 
    170  
    171169=== CHANGES 1.3 (Beta 1) === 
    172 Download zip: 
    173 http://code.mios.com/git_public/mios/arduino-sensor.git/snapshot/HEAD.zip?js=1 
    174 Browse tree: 
    175 http://code.mios.com/git_public/mios/arduino-sensor.git/tree/HEAD?js=1 
     170Download zip:\\ 
     171http://code.mios.com/git_public/mios/arduino-sensor.git/snapshot/HEAD.zip?js=1\\ 
     172Browse tree:\\ 
     173http://code.mios.com/git_public/mios/arduino-sensor.git/tree/HEAD?js=1\\ 
    176174 
    177175* More debug info is printed to serial monitor in sensors (can be turned off).