esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
292 stars 36 forks source link

Pico W I2C1 not working #4112

Open z-eh opened 1 year ago

z-eh commented 1 year ago

The problem

I try to use an ina219 with my Pico W and ESPHome. It wired to GP6 and GP7 which is the I2C1 on the Pico W. When I configure this in yaml, it stops booting correctly. No usable logs or anything, just simply not start correctly.

Which version of ESPHome has the issue?

2022.12.8

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2023.2

What platform are you using?

RP2040

Board

No response

Component causing the issue

No response

Example YAML snippet

i2c:
  sda: GPIO6
  scl: GPIO7
  scan: true

sensor:
  - platform: dht
    pin: 2
    model: DHT22
    temperature:
      name: "Children's Room Temperature"
      filters:
        offset: -3.0
    humidity:
      name: "Children's Room Humidity"
    update_interval: 60s
  - platform: ina219
    address: 0x40
    shunt_resistance: 0.1 ohm
    current:
      name: "INA219 Current"
    power:
      name: "INA219 Power"
    bus_voltage:
      name: "INA219 Bus Voltage"
    shunt_voltage:
      name: "INA219 Shunt Voltage"
    max_voltage: 4.18V
    max_current: 0.6A
    update_interval: 60s

Anything in the logs that might be useful for us?

No response

Additional information

No response

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

ruben-iteng commented 3 weeks ago

Same with using I2C_1 on GPIO2/3 (SDA/SCL)

ruben-iteng commented 3 weeks ago

same issue probably: https://github.com/esphome/issues/issues/5290

ruben-iteng commented 3 hours ago

@jesserockz this issue is still a big problem for people that are not able to use I2C_0 with default config on the RP2040. I2C is just not working when using the non default configuration sadly.

Please let us know who and maybe how we can fix this.