Replies: 3 comments 3 replies
-
Hi Tom, |
Beta Was this translation helpful? Give feedback.
1 reply
-
I think it should report "Pressure" and the scale units...PSI, Bar ect...
~~ _/) ~~~~ _/) ~~~~ _/) ~~~~ _/) ~~
Tom Lafleur
…On Sat, Oct 9, 2021 at 7:59 AM sfromis ***@***.***> wrote:
I suppose that the docs could be amended with examples of AdcParam usage
for such pressure sensors, including the small difference between unit psi
or bar. Of course, the unit would not be included in the JSON payload or
the web page display, with the latter generally being seen as "not for
daily usage".
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#13310 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABC4EK4U7ZNGHENLW6FX4S3UGBKGHANCNFSM5FVIXERQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
if Pressure is reported in the analog space, I don't this it would be an
issue....
"ANALOG": {
"Range": 4236,
"Pressure": 234
},
~~ _/) ~~~~ _/) ~~~~ _/) ~~~~ _/) ~~
Tom Lafleur
…On Sat, Oct 9, 2021 at 9:18 AM Barbudor ***@***.***> wrote:
Let's imagine an extension of AdcParam 6with an optional name argument:
AdcParam 6, adcMin, adcMax, rangeMin, rangeMax [, name]
AdcParam 6, 50, 1024, 0, 100, Pressure
could return: {...,"ANALOG":{"Pressure":1}}
But the unit may be a problem as Tasmota reports already temperature and
pressure units for sensors like in below:
{
"Time": "2021-10-09T18:10:10+02:00",
"Charging": "ON",
"Charged": "OFF",
"ANALOG": {
"Range": 4236
},
"BME280": {
"Temperature": 17.1,
"Humidity": 100.0,
"DewPoint": 17.1,
"Pressure": 1006.8,
"SeaPressure": 1028.1
},
"TSL2561": {
"Illuminance": 114.2,
"IR": 7377,
"Broadband": 14993
},
"PressureUnit": "hPa",
"TempUnit": "C"
}
Would giving the unit in the name enough ? {...,"ANALOG":{"Pressure
(PSI)":1}}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#13310 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABC4EK3RQXJ2VRJRUZ6TAQLUGBTO5ANCNFSM5FVIXERQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Another sensor type that could easily be added to the “Analog Group” is a pressure sensor.
They are available from many sources, from China, Amazon, eBay, and other commercial retailers. They can be used for many applications from monitoring water pressure to oil or gas pressure.
I use them for measuring water pressure from the local utility, on pool pumps, and for well pump pressure.
One can get them with a full-scale reading of a few PSI to well over 1000 PSI (or Bar..)
As an example:
"Pressure Range: 0-100 psi Material : Stainless steel Output: 0. 5V - 4. 5V linear voltage output. 0 psi outputs 0. 5V, 50 psi outputs 2. 5V, 100 psi outputs 4. 5V Working Temperature: -40-+125C;. Works for oil, fuel, water, or air pressure. Can be used in oil tank, gas tank, etc. Accuracy: 1%FS; Thread: 1/8"-27 NPT"
They all have a standard 3 wire interface, +5v, Sensor out, and Gnd. (there are some 12V versions available, but they are not common)
Adapting to the “Analog Group” would require,
Some of the above functions are already available in the Analog sensor code.
Beta Was this translation helpful? Give feedback.
All reactions