-->
Page 1 of 3

looking for bmp085 sketch

PostPosted: Thu Sep 03, 2015 5:10 pm
by kkozyrev
Hello. I'm looking for working sketch with bmp085. Can somebody post a esp arduinoide sketch?

Re: looking for bmp085 sketch

PostPosted: Fri Sep 04, 2015 12:55 am
by Tia
Hi,
I just tried my BMP180 with the ESP8266 yesterday - you can use the Adafruit BMP085 library and the example sketch, you just have to modify the library a bit.

In the file Adafruit_BMP085.cpp in line 29 the Wire library is started, here you have to pass your SDA and SCL line to get it to work:
Code: Select allWire.begin(SDA_PIN, SCL_PIN);

For example: (should be the pins of a ESP-01, if I donĀ“t mix things up here...)
Code: Select allWire.begin(0, 2);


...you can also change the Adafruit_BMP085 begin( ) function and add two mor parameters to it. By default you can only pass the accuracy that should be used (default is HIGHRES). I extended the function to three import parameters - mode, sda_pin, scl_pin. So that I only have to pass these when calling the begin( ) function instead of hard-coding the pins in the library.

Hope this helps, if not - let me know...

Re: looking for bmp085 sketch

PostPosted: Sun Sep 06, 2015 2:28 pm
by kkozyrev
Thank u. I'll try it these week -)

Re: looking for bmp085 sketch

PostPosted: Thu Sep 17, 2015 1:28 pm
by mrburnette
This looks very promising:
https://www.hackster.io/fablabeu/esp8266-sensor

Have not had time to try it myself, yet.

Ray