Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect i2c to GPIO12/13/14 #1

Open
pbanasik opened this issue May 20, 2015 · 0 comments
Open

Connect i2c to GPIO12/13/14 #1

pbanasik opened this issue May 20, 2015 · 0 comments

Comments

@pbanasik
Copy link

Hello,

The driver works fine when using GPIO0 and GPIO2 pins. However, I'd like to use it with the bmp sensor connected to GPIO12/13/14. I've tried different combinations: SDA connected to GPIO 12 & SCL to GPIO 13, SDA to 13 & SCL to 12, SDA to 0 & SCL to 12 and a lot of other combinations. I'm getting either the "BMP180: wanted chip id 0x55, found chip id 0x0" or "slave not ACK" message. The only combinations that work for me are: SDA to 0 & SCL to 2 or vice versa.

Example definitions that I'm using:

define PERIPHS_IO_MUX_GPIO13_U (PERIPHS_IO_MUX + 0x08)

// SDA on GPIO13

define I2C_SDA_MUX PERIPHS_IO_MUX_GPIO13_U

define I2C_SDA_FUNC FUNC_GPIO13

define I2C_SDA_PIN 13

//SCK on GPIO12

define I2C_SCK_MUX PERIPHS_IO_MUX_GPIO12_U

define I2C_SCK_PIN 12

define I2C_SCK_FUNC FUNC_GPIO12

I'm using the ESP-03. Would you have any idea why only pins 0 and 2 work? Are GPIO 12-14 different in any way? How would you try to troubleshoot the problem?

Many thanks in advance,
Regards,
Paweł

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant