-->
Page 1 of 7

Anyone managed to hook BMP180 to ESP8266?

PostPosted: Tue May 19, 2015 6:44 am
by dayzman
Does anyone know if anyone has had success driving a BMP180 with an ESP8266? I've found a few posts about BMP180 + ESP8266, but they didn't sound successful. Personally, I'm really not sure how to get I2C to work.

Thanks

Re: Anyone managed to hook BMP180 to ESP8266?

PostPosted: Tue May 19, 2015 9:48 am
by Mikejstb
Yes, it certainly can be done.
Here's a thread about it
http://www.esp8266.com/viewtopic.php?f=19&t=1896
I don't remember the details, I remember that I used Lua.
I have it monitoring temp and pressure, logging both via mqtt.
It's been running for a couple of months now.

Re: Anyone managed to hook BMP180 to ESP8266?

PostPosted: Tue May 19, 2015 10:05 am
by dayzman
I'm trying to use this driver https://github.com/reaper7/esp8266_i2c_bmp180 but I can't quite tell which pins SCL and SDA should be connected to. Any idea?

Thanks

Re: Anyone managed to hook BMP180 to ESP8266?

PostPosted: Tue May 19, 2015 10:47 am
by j0hncc
dayzman wrote:I'm trying to use this driver https://github.com/reaper7/esp8266_i2c_bmp180 but I can't quite tell which pins SCL and SDA should be connected to. Any idea?

Thanks


Looks to me like that library uses an underlying i2c_driver library that includes these defaults:

#define I2C_SDA_MUX PERIPHS_IO_MUX_GPIO2_U
#define I2C_SDA_FUNC FUNC_GPIO2
#define I2C_SDA_PIN 2

#define I2C_SCK_MUX PERIPHS_IO_MUX_MTMS_U
#define I2C_SCK_FUNC FUNC_GPIO14
#define I2C_SCK_PIN 14