Posts: 17
Threads: 4
Joined: Aug 2023
Reputation:
0
Hello, the inputs on my a8s v2 dont work.
If i short the gnd with any of the input pins nothing happens.
All the relays work fine. Im using I2C address 0x22 for input pcf8574.
Im using the board with esphome.
Code snipet for input
binary_sensor:
- platform: gpio
name: input1
ID:”input1”
pin:
pcf8574: pcf8754_hub_in
number: 0
mode: INPUT
Please advise
Thank you
Posts: 6,314
Threads: 808
Joined: Oct 2020
Reputation:
154
you can test with KCS firmware, if can't work , tell me.
Posts: 6,314
Threads: 808
Joined: Oct 2020
Reputation:
154
sorry, i can't download video file from Apple iCloud. when you config by ESPHome. after download firmware, can you check the i2c bus after scanned, which device i2c address have found by ESPHome LOG? maybe it's not 0x22, we can change address for you.
Posts: 17
Threads: 4
Joined: Aug 2023
Reputation:
0
06-19-2024, 01:24 PM
(This post was last modified: 06-19-2024, 01:26 PM by milan.net.)
Sorry couldn't test sooner
result of scan:
C][i2c.arduino:071]: I2C Bus:
[C][i2c.arduino:072]: SDA Pin: GPIO4
[C][i2c.arduino:073]: SCL Pin: GPIO5
[C][i2c.arduino:074]: Frequency: 50000 Hz
[C][i2c.arduino:086]: Recovery: bus successfully recovered
[I][i2c.arduino:096]: Results from i2c bus scan:
[I][i2c.arduino:102]: Found i2c device at address 0x22
[I][i2c.arduino:102]: Found i2c device at address 0x24
[C][pcf8574:021]: PCF8574:
[C][pcf8574:022]: Address: 0x24
[C][pcf8574:023]: Is PCF8575: NO
[C][pcf8574:021]: PCF8574:
[C][pcf8574:022]: Address: 0x22
[C][pcf8574:023]: Is PCF8575: NO
If needed I can upload the video to a different platform just recommend one
Posts: 6,314
Threads: 808
Joined: Oct 2020
Reputation:
154
add whatsapp number: +86-15381188302 we use ANYDESK remote control your computer to help you.