Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By dayzman
#17845 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
User avatar
By Mikejstb
#17860 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.
User avatar
By j0hncc
#17865
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