Smart Home Automation Forum
ESPhome - connect pressure transducer? - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-A8S (https://www.kincony.com/forum/forumdisplay.php?fid=24)
+--- Thread: ESPhome - connect pressure transducer? (/showthread.php?tid=3200)



ESPhome - connect pressure transducer? - Vendril - 08-24-2023

Hi,

Can you please show me where to connect wires for water pressure sensor?

  1. Pressure Sensor - https://www.aliexpress.com/item/1005005510454084.html?spm=a2g0o.order_list.order_list_main.11.c41f1802qhU8yT
  2. Gravity: Analog Water Pressure Sensor (5V) - https://wiki.dfrobot.com/Gravity__Water_Pressure_Sensor_SKU__SEN0257#target_5


RED = 
BLK = can i use any GND?
GREEN = A1?


How to use in ESPhome? I am very confused.


Code:
# Example configuration
# DC 0-5v - ANALOG_A1
  - platform: gpio
    name: "ANALOG_A1"
    id: ANALOG_A1
    pin:
    number: GPIO36



KC868-A8S v1.2


Thanks


RE: ESPhome - connect pressure transducer? - admin - 08-24-2023

yes, i think it's ok. if the sensor output dc 0-5v signal, you can connect with A8S board's A1,A2, because A3,A4 use by 4-20mA analog sensor.


RE: ESPhome - connect pressure transducer? - Vendril - 08-25-2023

Thanks, do you have example ESPHOME configuration file for using A1?

Will this work?


- platform: adc
name: "Filter Pressure"
pin: GPIO36
id: pressure
update_interval: 30s
unit_of_measurement: "PSI"
accuracy_decimals: 2
attenuation: 11db
filters:
- calibrate_linear:
- 0.5 -> 0.0
- 2.5 -> 50.0


--------
Parameters

Measuring range: 0-60Mpa gauge pressure
Accuracy: ±1.0%FS
Output signal: 0.5-4.5V
Supply voltage: 5VDC or 12VDC
Operating temperature: -40~105℃
Compensation temperature: -20~80℃
Operating current: ≤3mA
Temperature drift (zero&sensitivity): ≤±0.03%FS/℃
Long-term stability: ≤±0.2%FS/year
Response time: ≤3ms
Overload pressure: 150%FS
Burst pressure: 300%FS
Cycle life: 500,000 times


RE: ESPhome - connect pressure transducer? - admin - 08-25-2023

this need to test. you can connect with dc 3.3v to analog input port for a test. when value correct, then connect with your presure sensor.