Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ESPhome - connect pressure transducer?
#1
Hi,

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

  1. Pressure Sensor - https://www.aliexpress.com/item/10050055...1802qhU8yT
  2. Gravity: Analog Water Pressure Sensor (5V) - https://wiki.dfrobot.com/Gravity__Water_...7#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


Attached Files Image(s)
   
Reply
#2
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.
Reply
#3
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
Reply
#4
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.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)