Hello,
I built a level sensor to find the amountof liquid in a tank. I am using a float to measure the hight of oil in a tank.The thank is in the shape of an obround. It holds around 275 gallon and thedimensions are approximations width a depth of 48", height = 70",Length 60". The top and bottom are semi circular. I used r^2arcCos((r-h)/r)-(r-h)sqrt(2*r*h-h^2)were r = radius and h is height to find the coard. The sensor can be locatedanywhere along the apex of the tank. The float is a ball tether to take up reelattached to this take up reel which in turn is attached to gear. Each time atooth from the gear passes a hall fixed effect sensor it sends a pulse to amicroprocessor, when the liquid increases or decreases. And from the count Ican now determine the volume in the tank, if the tank is level. What I amlooking is to find volume of liquid if the tank ins't level. If the tank off onthe x axis or the z axis (or both the both x and y axis). The formula I amlooking for is to find out the actual volume in the tankif it's off level. I'veattached a PDF drawing that may help in what I am trying to do. If anyone can'thelp me or point me in the right direction, I would be most appreciative. I amout of depth on this. I'm in my mid fifty's and math never came easy to me. Soany help in any way would be appreciated. Does anyone have a formula for this?
Thank you for any and all help,
Ken
P.S. I have two sensors, One X and one Z
I built a level sensor to find the amountof liquid in a tank. I am using a float to measure the hight of oil in a tank.The thank is in the shape of an obround. It holds around 275 gallon and thedimensions are approximations width a depth of 48", height = 70",Length 60". The top and bottom are semi circular. I used r^2arcCos((r-h)/r)-(r-h)sqrt(2*r*h-h^2)were r = radius and h is height to find the coard. The sensor can be locatedanywhere along the apex of the tank. The float is a ball tether to take up reelattached to this take up reel which in turn is attached to gear. Each time atooth from the gear passes a hall fixed effect sensor it sends a pulse to amicroprocessor, when the liquid increases or decreases. And from the count Ican now determine the volume in the tank, if the tank is level. What I amlooking is to find volume of liquid if the tank ins't level. If the tank off onthe x axis or the z axis (or both the both x and y axis). The formula I amlooking for is to find out the actual volume in the tankif it's off level. I'veattached a PDF drawing that may help in what I am trying to do. If anyone can'thelp me or point me in the right direction, I would be most appreciative. I amout of depth on this. I'm in my mid fifty's and math never came easy to me. Soany help in any way would be appreciated. Does anyone have a formula for this?
Thank you for any and all help,
Ken
P.S. I have two sensors, One X and one Z
Attachments
Last edited: