logo elektroda
logo elektroda
X
logo elektroda

Verification of ESP32 + ADS1115 + 2x SEN0257 circuit - divider, RC filter, capacitors, schematic dia

Vivant 303 2
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 21839518
    Vivant
    Level 6  
    Posts: 3
    Hi.

    I'm building a water pressure sensor on ESP32 (MH-ET LIVE Development Board) ADS1115 (I2C) 2x DFRobot SEN0257 (cable to each sensor ~1m), and I want to take 64 measurements/s and send to Home Assistant (ESPHome) a value every 1 s, counting the median of the said 64 measurements.

    Assumptions and components:
    - SEN0257 powered from 5 V, analogue output 0.5-4.5 V goes to ADS1115 via divider: R1 = 2.2 kΩ (from signal), R2 = 5.1 kΩ (to GND), plus RC filter: C1 = 100 nF (ceramic capacitor, filter marked in orange in the picture) from measurement node to GND (capacitor as close as possible to AIN pin of ADS1115).
    - ADS1115 supplied with 3.3 V from ESP32; on power supply at ADS1115 I give 100 nF (ceramic), 3.3 µF (tantalum) in parallel VDD-GND, following typical practice of decoupling close to power supply pins.
    - at each SEN0257 (at the end of the 1 m cable) I plan 100 nF (ceramic), 3.3 µF (tantalum) between 5 V and GND, to stabilise the power supply on the long cable (marked green in the schematic).

    Questions for verification:
    1. Is the 2.2 kΩ / 5.1 kΩ divider well matched under the ADS1115 3.3 V (also in case of emergency, if 5 V would appear on the input)?
    2. Does C1 = 100 nF make sense at 64 measurements/s, or is it better to give a different capacitance (I am concerned with the trade-off: electrical interference vs fast pressure spikes)?
    3. Does the capacitor placement (bulk 'small' close to the circuits/sensors) and ground routing look OK, or should I change something?

    Please check if my layout for pressure measurement is correct (I paste the schematic below).

    Thank you for your help,
    Viv

    Diagram of ESP32 with ADS1115 and two SEN0257 sensors, R1/R2 dividers and filtering capacitors
  • ADVERTISEMENT
  • #2 21839700
    jarewa
    Level 35  
    Posts: 3104
    Help: 228
    Rate: 516
    Vivant wrote:
    Is the 2.2 kΩ / 5.1 kΩ divider well matched under the ADS1115 3.3 V


    From what you have specified it is.
    Vivant wrote:
    also in an emergency situation if 5 V comes in at the input


    The documentation says the maximum rating is VDD+0.3V so it is within range. Only a voltage of >5.15V will whip the ADC.
  • #3 21839792
    Vivant
    Level 6  
    Posts: 3
    Thanks. So there is nothing left to do but solder :) Do you have any advice on how to distribute the lines or other useful advice?
ADVERTISEMENT