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

wrong i2c address? #285

Open
pdrobek opened this issue Feb 11, 2025 · 1 comment
Open

wrong i2c address? #285

pdrobek opened this issue Feb 11, 2025 · 1 comment

Comments

@pdrobek
Copy link

pdrobek commented Feb 11, 2025

Hi

I am struggling with esphome and pn532. My wemos d1 mini found i2c device on address 0x28 while yaml seeks some device on 0x24. I guess it is main issue why my pn532 was reported as Component pn532 is marked FAILED

[21:34:48][I][app:100]: ESPHome version 2024.12.4 compiled on Feb 11 2025, 21:14:37
[21:34:48][I][app:102]: Project adonno.tag_reader version 1.4

Does anyone know how change i2c address, or show different way to resolve my issues?

[20:50:44][I][i2c.arduino:096]: Results from i2c bus scan:
[20:50:44][I][i2c.arduino:102]: Found i2c device at address 0x28
[20:50:44][C][esp8266_pwm:022]: ESP8266 PWM:
[20:50:44][C][esp8266_pwm:023]: Pin: GPIO13
[20:50:45][C][esp8266_pwm:024]: Frequency: 1000.0 Hz
[20:50:45][C][light:092]: Light 'TagReader LED'
[20:50:45][C][light:094]: Default Transition Length: 1.0s
[20:50:45][C][light:095]: Gamma Correct: 2.80
[20:50:45][C][template.switch:068]: Template Switch 'TagReader Buzzer Enabled'
[20:50:45][C][template.switch:070]: Icon: 'mdi:volume-high'
[20:50:45][C][template.switch:090]: Restore Mode: restore defaults to ON
[20:50:45][C][template.switch:057]: Optimistic: YES
[20:50:45][C][template.switch:068]: Template Switch 'TagReader LED enabled'
[20:50:45][C][template.switch:070]: Icon: 'mdi:alarm-light-outline'
[20:50:45][C][template.switch:090]: Restore Mode: restore defaults to ON
[20:50:45][C][template.switch:057]: Optimistic: YES
[20:50:45][C][restart.button:017]: Restart Button 'TagReader Restart'
[20:50:45][C][restart.button:017]: Icon: 'mdi:restart'
[20:50:45][C][pn532:431]: PN532:
[20:50:45][C][pn532:443]: Update Interval: 1.0s
[20:50:45][C][pn532_i2c:125]: Address: 0x24
[20:50:45][E][component:082]: Component pn532 is marked FAILED

@pdrobek
Copy link
Author

pdrobek commented Feb 11, 2025

after change address to 0x28 :/

i2c:
scan: True
frequency: 400kHz
sda: D5
scl: D6

globals:

  • id: source
    type: std::string
  • id: url
    type: std::string
  • id: info
    type: std::string

pn532_i2c:
address: 0x28

[21:17:33][C][i2c.arduino:072]: SDA Pin: GPIO14
[21:17:33][C][i2c.arduino:073]: SCL Pin: GPIO12
[21:17:33][C][i2c.arduino:074]: Frequency: 400000 Hz
[21:17:33][C][i2c.arduino:086]: Recovery: bus successfully recovered
[21:17:33][I][i2c.arduino:096]: Results from i2c bus scan:
[21:17:33][I][i2c.arduino:102]: Found i2c device at address 0x28
[21:17:33][C][esp8266_pwm:022]: ESP8266 PWM:
[21:17:33][C][esp8266_pwm:023]: Pin: GPIO13
[21:17:33][C][esp8266_pwm:024]: Frequency: 1000.0 Hz
[21:17:33][C][light:092]: Light 'TagReader LED'
[21:17:33][C][light:094]: Default Transition Length: 1.0s
[21:17:33][C][light:095]: Gamma Correct: 2.80
[21:17:33][C][template.switch:068]: Template Switch 'TagReader Buzzer Enabled'
[21:17:33][C][template.switch:070]: Icon: 'mdi:volume-high'
[21:17:33][C][template.switch:090]: Restore Mode: restore defaults to ON
[21:17:33][C][template.switch:057]: Optimistic: YES
[21:17:33][C][template.switch:068]: Template Switch 'TagReader LED enabled'
[21:17:33][C][template.switch:070]: Icon: 'mdi:alarm-light-outline'
[21:17:33][C][template.switch:090]: Restore Mode: restore defaults to ON
[21:17:33][C][template.switch:057]: Optimistic: YES
[21:17:33][C][restart.button:017]: Restart Button 'TagReader Restart'
[21:17:33][C][restart.button:017]: Icon: 'mdi:restart'
[21:17:33][C][pn532:431]: PN532:
[21:17:33][C][pn532:443]: Update Interval: 1.0s
[21:17:33][C][pn532_i2c:125]: Address: 0x28
[21:17:33][E][component:082]: Component pn532 is marked FAILED

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