Version 13 (modified by hek, 11 years ago) (diff) |
---|
Pressure/Temperature/Weather forecast sensor (BMP085)
Software
You can download the Arduino sketch here:
http://code.mios.com/git_public/mios/arduino-sensor.git/tree/HEAD:/VeraArduino/Arduino/libraries/Vera/examples/PressureSensor?js=1
This sensor sleeps most of the time. You can change the sleep interval by updating SLEEP_TIME define at the top of the file.
This sensor requires you to upload the following device files to Vera as well.
http://code.mios.com/git_public/mios/arduino-sensor.git/tree/HEAD:/VeraArduino/Vera/barometer?js=1
D_BarometerSensor1.xml
D_BarometerSensor1.json
S_BarometerSensor1.xml
Wire things up
Follow the instructions in ConnectingRadioModule to connect radio module.
To connect the BMP085 sensor to the Arduino board follow these instructions:
Connect VCC of the BMP085 sensor to 3.3V (NOT 5.0V!)
Connect GND to Ground
Connect SCL to i2c clock - on 168/328 Arduino Nano/Uno/Duemilanove/etc thats Analog 5
Connect SDA to i2c data - on 168/328 Arduino Nano/Uno/Duemilanove/etc thats Analog 4
EOC is not used, it signifies an end of conversion
XCLR is a reset pin, also not used here
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 BMP085 Pressure sensor
http://www.aliexpress.com/item/Free-shipping-BMP085-Altimeter-Atmospheric-Pressure-Module-for-Arduino/961254477.html
TOTAL SENSOR PRICE: $7.6 (arduino + radio) + $3.8 (BMP085) = $11.4