Not being a power user I did strike a similar issue.
With the esp8266 nodemcu you need to define the pins you are using to be acceptable to the i2c.
I can’t tell you how as I quickly moved on from 8266 devices to the more powerful and widely accepted esp32 devices.
Most of my deicsion to go this way was guided by the guy with swiss accent. check him out - bit of an esp guru
Since there is very little information for setting up this specific sensors, and I haven’t found any that includes both wiring and yaml setup, I used this solution here for wiring. Since the original user confirmed that it works for him, I have no particular reason to doubt it either, but if someone has experience, you can review it. Useing a pressure sensor in combination with ESP D1 mini /ads1115/level converter
my yaml which should be adapted to this wiring is here but obviously, something must be wrong
Hello @catdogmaus I have ADS1115 set up with 8286 and all working fine. I would suggest check with multimeter you have correct supply to ADS1115 Vin. And switch around D1 and D2 wires after you have confirmed you have correct power. I have used different pins because I was short on pin space. Let me know how your error hunting goes.
The level shifters are digital (on or off). So they won’t work with a device that puts out an analog voltage based on pressure. A simple resistor network will step down the voltage without loss of resolution…
I found the following pressure sensor, which gives an i2c output apparently. I confirmed it with the seller. Is it preferable over the (admirable) process described on this otherwise very useful thread?
So I tried to find a cheaper one and found this model which is quite cheaper (around 18€ vs 30€) and supporting multiple protocols including I2C : https://s.click.aliexpress.com/e/_oBhNvet
Output signal: 0.5-4.5V / 0-5V / 1-5V / I2C / 0.4-2.4V,Offers multiple output signals including 0.5-4.5V, 0-5V, 1-5V, I2C, and 0.4-2.4V for versatile applications.
Measuring range: 0-300bar gauge pressure, High-precision measuring range of 0-300bar gauge pressure for accurate pressure readings.
Description reads:
Output signal : Default 0.5-4.5V, other(0-5V, 1-5V, 0.4-2.4V, I2C)
I wonder if there is a user defined parameter or if it’s factory defined.
Update 2025-01-31 : I got feedback from seller and purchased the XDB401 which is around 28€. However there are a couple coupons available currently (expire 2025-02-08 08:59 GMT+1) :
25LD30 for 30$ out of 239$
25LD20 for 20 / 159
25LD08 for 8 / 69
25LD03 for 3 / 29 : This is the one I used as I ordered a single sensor a few other unrelated items
Yes that’s the plan, using I2C makes it way easier to use multiple sensors.
However I haven’t yet had the time to play around with it (mostly as I need to do the piping work to adapt the sensor).