01-03-2023, 07:56 AM
Hi admin,
I tried above config but it was stuck not working...the motion is not detected..but when I connect the same sensor with ESP 32 mcu board it works.
Do I need to change the Input_IIC_address 0x39
as per your below post?
some of KC868-A16 V1.5 hardware version, PCF8574 address is changed. (if you have seen PCB is V1.5 and have GREEN label, you need to use new address value)
before is :
Relay_IIC_address 0x24
Relay_IIC_address 0x25
Input_IIC_address 0x21
Input_IIC_address 0x22
new is :
Relay_IIC_address 0x3C
Relay_IIC_address 0x3D
Input_IIC_address 0x39
Input_IIC_address 0x3A
if you don't know your PCF8574 address, you can use this "I2C scan" arduino IDE source code to scan address, it will print value by serial port.
here is source code:
i2c-scan-a16.zip (Size: 645 bytes / Downloads: 61)
I tried above config but it was stuck not working...the motion is not detected..but when I connect the same sensor with ESP 32 mcu board it works.
Do I need to change the Input_IIC_address 0x39
as per your below post?
some of KC868-A16 V1.5 hardware version, PCF8574 address is changed. (if you have seen PCB is V1.5 and have GREEN label, you need to use new address value)
before is :
Relay_IIC_address 0x24
Relay_IIC_address 0x25
Input_IIC_address 0x21
Input_IIC_address 0x22
new is :
Relay_IIC_address 0x3C
Relay_IIC_address 0x3D
Input_IIC_address 0x39
Input_IIC_address 0x3A
if you don't know your PCF8574 address, you can use this "I2C scan" arduino IDE source code to scan address, it will print value by serial port.
here is source code:
i2c-scan-a16.zip (Size: 645 bytes / Downloads: 61)