-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Pressure Transducer Sensor support #6000
Comments
Perhaps the support for ADC in Tasmota would work for this, I just have to figure out how to use it. Thanks |
Github issues are meant for Tasmota Software Bug Reporting. Please check the Contributing Guideline and Policy and the Support Guide. Thanks. Support InformationSee Wiki for more information. |
@Jason2866 Thanks BB |
Hi, For explanations on how to connect electrically the the ADC pin for your sensor, please, address this to the Tasmota Support Chat. Tasmota has the ADC pin enabled by default in latest version (dev branch) so, you only have to attach the sensor to the esp8266 and give the proper electrical connection. No extra config needed. |
Thank you @ascillato That's exactly what I needed, support for ADC, flashed the latest dev and set A0 to Analog and can see it. Thanks a bunch |
Hi @badabing2005 , i just have had the same issue with exact the same sensor... |
@VR1985 |
Well in the meantime i crafted a pressure test station (very rudimental) and measured the output voltage from zero to two bar.. |
This is pretty high up in the Google results, so I'll leave some info here. These sensors are for pressure, just putting them in a glass of water won't do anything. You need to connect them to system that has pressure. They fit standard 1/4 NPT fittings, which makes them pretty handy. They work on both water and gas (I use them to measure CO2 pressure). They seem to be pretty reliable and don't need calibration. I have had one fail due to getting wet on the outside and then rusting, but continuous exposure to water where it's supposed to be is not a problem. I have 2 that are 4 years old now operating in 90% humidity with no issues. They are meant to work at 5 volts, so you need a simple voltage divider to get them down to the 1 volt needed by the ESP's analog pin. I process the output back to PSI using the following formula:
I do this processing in Node-Red but you could probably use a formula in Tasmota for it. |
Yeah, I'm aware of all the details, I had it connected to my pool pump and not sitting in a glass of water The formula I used is slightly different as when there is no pressure, the output from the transducer is 0.5 v, which would give a reading of 113.77 All that to say, while the pump pressure was steady, the reading of A0 was all over the place. Perhaps I had a defective transducer. Cheers |
I have 3 of these deployed, one controlling a CO2 system and the other 2
connected to a watering system where they tell me if the system is running
or not. All 3 are extremely consistent.
For all of them, I am using an LM2596 to step 12v down to 5v to power an
ESP12-E. The pressure transducer is powered from the 5v with the yellow
wire connected to A0 and a voltage divider. The voltage divider reduces
the voltage from 5v to 1v. I don't remember the exact resistors I used, but
if anyone needs that, give me a mention and I can document this stuff more
completely.
I am extremely happy with the pressure transducers, the readings have been
very consistent and accurate (double checked against an analog gauge) as
far as I can tell.
…On Tue, Oct 20, 2020 at 9:25 AM badabing2005 ***@***.***> wrote:
Yeah, I'm aware of all the details, I had it connected to my pool pump and
not sitting in a glass of water
The Pressure Transducer Sensor takes 5V and depending on the pressure (0 -
80psi)
It outputs 0.5v - 4.5v
I'm used D1 Mini for this GPIO A0 which takes maximum of 3.3v
At 3.3v the reading in Tasmota was indeed 1024
ADC pin on ESP takes maximum of 1v, which means that there is a voltage
divider built into D1 Mini to drop 3.3v to 1v
I needed to add additional resistance on the A0 pin to drop max 4.5V from
the transducer to 3.3v of A0
With my calculations (taking into account the internal voltage divider) I
had to add 130K Ohm resister
The formula I used is slightly different as when there is no pressure, the
output from the transducer is 0.5 v, which would give a reading of 113.77
All that to say, while the pump pressure was steady, the reading of A0 was
all over the place.
At the time I used Tasmota 6.5.0.16 from Dev builds as support for it was
only available in Dev builds.
Perhaps I had a defective transducer.
I'll try again next spring with the latest Tasmota, I'll also try with
ESPHome to determine if there is an issue with the transducer.
Cheers
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#6000 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARBU3SWK5Z3W6YVD574SIOTSLWFVPANCNFSM4H4M5WEA>
.
|
It would help the community to share the details, what puzzles me with your setup is that you're feeding A0 maximum of 1v Is my understanding wrong? |
I believe that the ESP's A0 has a max voltage of 1v. The board I have definitely maxes out at 1 volt. I found a thing that says some boards might have a built in voltage divider, so that is a possibility. What I can tell you for sure, is that the following works for me. I have a couple different voltage dividers on different ESPs, but they all work about the same.
Here is a highly technical diagram with labels. In case it helps, an unlabeled version (pardon the bad soldering, I swear I have gotten better since I built this). This will give you some number between 0 and 1024 which needs to be converted to PSI, which I do in Node Red: I am pretty sure that these work accurately, I compared them against an old analog gauge I have kicking around. Here is a chart of my CO2 pressure. Green is PSI, yellow is the solenoid that lets CO2 flow. |
I think we're both right I'll give it another shot for sure next spring. |
Have you look for this feature in other issues and in the wiki?
yes
Is your feature request related to a problem? Please describe.
No, just lack of sensor support
Describe the solution you'd like
Would prefer to use Tasmota over ESPHome
Describe alternatives you've considered
ESPHome
Additional context
I couldn't find any Pressure Transducer Sensor support in Tasmota, is there one that I missed?
If not, and it makes sense for the masses, this ticket can act as the feature request.
Example of such Sensor:
Input 5V Output 0.5-4.5V / 0-5V Pressure Transmitter for Water Gas Oil(0-80PSI)
https://www.amazon.ca/gp/product/B07KJHJNFQ
Alternative suggestion is to use ADC sensor in ESPHome
https://community.home-assistant.io/t/how-to-use-pressure-transducer-sensor/115880
Project planned for (but using D1 Mini)
https://www.instructables.com/id/Wireless-Pool-Filter-Pressure-Sensor/
Thanks
BB
The text was updated successfully, but these errors were encountered: