Difference between revisions of "BarometricSensor"

From Let's Control It
Jump to navigation Jump to search
Line 16: Line 16:
  
 
== Design considerations ==
 
== Design considerations ==
The standard pins for I2C are Do not use GPIO015 as an input for the DHT11/22. During startup of the ESP8266, this pin must be Low for proper operation.
+
Only use 3.3 volt BMP085/180 boards. The ESP pins are not 5 volt tolerant.
It is better to avoid using GPIO00 as an input as well. This pin must be High at startup, unless program mode is required.
+
Depending on the make of the BMP085/180 board, pull-up resistors on SDA and SDC may be absent. 4k7 types are fine.
The data pin of the DHT11/22 needs a pull-up resistor. A value of 4k7 - 10k proves to be sufficient.
+
When more I2C devices are being used, only one set of pull-up resistors is required or even allowed.
 +
With ESPEasy, the standard pins for I2C are GPIO04 for SDA and GPIO05 for SDC. In the Hardware tab, this can be changed.
 +
Do not use GPIO015 for this purpose and be reluctant towards the use of GPIO00. At startup, these require specific levels.
 +
It may be necessary to add a ceramic 100nF capacitor across the power lines, close to the BMP085/180 board.
 +
Please keep in mind that NodeMCU give other names to the pins than for example Huzzah or ESP8266.
  
 
= Software =
 
= Software =

Revision as of 13:03, 18 October 2015

Introduction

The ESP module can read a BMP085 temperature/Barometric pressure sensor using the I2C protocol.

The DHT sensor needs to be connected to a the I2C pins on the ESP module. These pins can be configured on the hardware tab.

Hardware

The BMP085 sensor can be connected directly to an ESP module by using the two pins SDA and SCL.


BMP085.png NodeMCU-BMP085.jpg


Use 3.3V break boards only. Sometimes, it could be necessary to add a 100nF ceramic capacitor across the power terminals of the BMP085/180

Design considerations

Only use 3.3 volt BMP085/180 boards. The ESP pins are not 5 volt tolerant. Depending on the make of the BMP085/180 board, pull-up resistors on SDA and SDC may be absent. 4k7 types are fine. When more I2C devices are being used, only one set of pull-up resistors is required or even allowed. With ESPEasy, the standard pins for I2C are GPIO04 for SDA and GPIO05 for SDC. In the Hardware tab, this can be changed. Do not use GPIO015 for this purpose and be reluctant towards the use of GPIO00. At startup, these require specific levels. It may be necessary to add a ceramic 100nF capacitor across the power lines, close to the BMP085/180 board. Please keep in mind that NodeMCU give other names to the pins than for example Huzzah or ESP8266.

Software

Custom Sketch

ESP Easy

The BMP085/180 communicates with the ESP8266 through the I2C interface, so first use the Hardware tab in the web interface of ESP Easy to find out what pins are being used for SDA and SDC. They can be altered if required.

Next use the device tab on the ESP Easy webinterface and create a new task by editing one of the available tasks. Select "BMP085 Barometric Sensor" from the dropdown box.

EasyConfigBMP.png

Enter the IDX found in the Domoticz device page. That should be all.

Optional settings

Use of formulas

Use of value names

ESP Connexio

Syntax: BMP085Read "var"