Is it possible to calculate the volume 'V'(from the measured height 'h') of a lying cylinder with ESPEasy ?
Has ESPEasy mathematical functions like ARCCOS ?
Formula: V = r²*l*(arccos(r-h/r) - (r-h)*√(2*r*h - h²)/r²)
Volume of lying cylinder
Moderators: grovkillen, Stuntteam, TD-er
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Volume of lying cylinder
No not currently, could you please add it as a feature request on GitHub?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Volume of lying cylinder
Sure...
Re: Volume of lying cylinder
Why not curve fitting in the meantime.
Google for a percentage fill table > curve fit choose adhoc curve fit et voilà accurate enough for at home.
Google for a percentage fill table > curve fit choose adhoc curve fit et voilà accurate enough for at home.
Belgium and land of ESP ... counting 

Re: Volume of lying cylinder
HI need this too? any news about this request?
many Thanks.
Raphi
many Thanks.
Raphi
Re: Volume of lying cylinder
Here's my solution (polynomial function 5. grade instead the ARCCOS-formula):
Device1: JSN-SR04T, Name: Fuellstand, Valuename: WertRelativ, Formula: ([min-cm ]-%value%)/([min-cm]-[max-cm])*100
Device2: Dummy-Device, Name: FuellstandZylinder, ValueName: FuellstandZylinderRelativ
Rule to calcute 0-100% height to 0-100% volume:
The value from the second device is published via MQTT to my OpenHAB-Server.
Device1: JSN-SR04T, Name: Fuellstand, Valuename: WertRelativ, Formula: ([min-cm ]-%value%)/([min-cm]-[max-cm])*100
Device2: Dummy-Device, Name: FuellstandZylinder, ValueName: FuellstandZylinderRelativ
Rule to calcute 0-100% height to 0-100% volume:
Code: Select all
On Fuellstand#WertRelativ do
Taskvalueset 2,1,-0.1428+0.290825*%eventvalue%+0.0285366*%eventvalue%^2-0.000428633*%eventvalue%^3+0.00000356523*%eventvalue%^4-0.00000001419964*%eventvalue%^5
endon
Who is online
Users browsing this forum: No registered users and 21 guests