Hey @bassicrob, I did get mine together around July of 2020 and it’s been working since then. However, because I’m trying to run i2c over cat5e run of ~40ft, I’m getting a lot of this:
[08:02:24][W][i2c:086]: Requesting 2 bytes from 0x48 failed!
[08:02:24][W][i2c:086]: Requesting 2 bytes from 0x48 failed!
[08:02:25][W][i2c:086]: Requesting 2 bytes from 0x48 failed!
[08:02:25][W][i2c:086]: Requesting 2 bytes from 0x48 failed!
[08:02:25][W][i2c:070]: Received NACK on transmit of address 0x48
[08:02:25][W][i2c:086]: Requesting 2 bytes from 0x48 failed!
[08:02:25][W][i2c:070]: Received NACK on transmit of address 0x48
[08:02:25][W][i2c:070]: Received NACK on transmit of address 0x48
[08:02:25][W][i2c:086]: Requesting 2 bytes from 0x48 failed!
[08:02:25][W][i2c:070]: Received NACK on transmit of address 0x48
[08:02:25][W][i2c:070]: Received NACK on transmit of address 0x48
[08:02:25][W][i2c:070]: Received NACK on transmit of address 0x48
[08:02:25][W][i2c:070]: Received NACK on transmit of address 0x48
[08:02:25][W][i2c:086]: Requesting 2 bytes from 0x48 failed!
[08:02:25][W][i2c:086]: Requesting 2 bytes from 0x48 failed!
[08:02:25][W][i2c:086]: Requesting 2 bytes from 0x48 failed!
[08:02:25][W][i2c:086]: Requesting 2 bytes from 0x48 failed!
[08:02:25][W][i2c:070]: Received NACK on transmit of address 0x48
[08:02:25][W][i2c:070]: Received NACK on transmit of address 0x48
[08:02:25][W][i2c:070]: Received NACK on transmit of address 0x48
[08:02:25][W][i2c:086]: Requesting 2 bytes from 0x48 failed!
[08:02:25][W][i2c:070]: Received NACK on transmit of address 0x48
Which bothers me greatly. However, the 0x48 is my ads1115 which gathers the data from my analog stuff (for illuminance and weather vane direction) and those do give me good values so I think it’s just lots of reports of noise since the i2c signal is too long. For example:
My analog illuminance sensor reporting
Remote sensor array “production” build
Local sensor array “production” build
Remote sensor array “production” build circuit board bare
I still want to fix this so researching, I have found this article on stackechange and purchased a set of P82B96s. They’re not cheap: about $3 per chip but they work. I’ve bread boarded a new design using these chips and it works with a 50 foot cat5 cable! now I just need to build up the production boards and put it into use.
Bread board mock up using P82B96 chips with 50’ cat5e
I actually got the breadboard done in August 2020 but I haven’t gotten around to actually building the finished product yet. Mainly, because I want to be able to use i2c for everything now including the interrupt on the as3935.
I can put an I/O extender on i2c which would give me access to short distance I/Os on the remote. However, ESPHome does not allow the as3935 interrupt nor pulse_counter inputs to be assigned to IOs on an I/O extender. So, I’ve been stuck.
Error message:
sensor.pulse_counter: [source /config/esphome/weathernew.yaml:119]
platform: pulse_counter
pin: [source /config/esphome/weathernew.yaml:121]
[pcf8574] is an invalid option for [pin]. Please check the indentation.
pcf8574: pcf8574_hub [source /config/esphome/weathernew.yaml:121]
number: 1
mode: INPUT_PULLUP
So, does anyone know how I can go about putting pulse_counter inputs and/or the interrupt for as3935 on an I/O extender using ESPHome?
I actually made a post about this in July of 2020 and didn’t get anywhere with it