Shop OBEX P1 Docs P2 Docs Learn Events
Finding the level of a can of beer — Parallax Forums

Finding the level of a can of beer

metron9metron9 Posts: 1,100
edited 2005-11-09 15:03 in General Discussion
I would like to make a sensor to find the liquid level of a can of beer.

My first thought is to put at least 4 temperature sensors from the bottom side of the can to the top side of the can so that I can read all four sensors and compare them to each other making the assumption that the top of the can will be warmer than the bottom of the can when there is cold beer in the can. Yes when the can warms up to room temp along with the beer i wont be able to tell the level but that's ok because who wants warm beer anyway.

So my Idea is to mount four http://www.national.com/ds/LM/LM45.pdf sensors to a board strip

Problem is they are sot-23 chips and I am wondering if someone has a part number for a similar sensor and price maby a axial mount or if anyone knows of a sensor array I could use instead of 4 parts. I plan on using a mega48 atmel chip to read the voltage on the outputs with its ADC pins.

Or other thoughts on the subject.

Comments

  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2005-11-05 07:13
    First of all.... Are you serious? smilewinkgrin.gif


    Why not just use a pressure sensor to weigh the can?

    Make a cup holder for your beer that says.....

    "Hey dude your getting low on this beer, you better think about getting another cold one."

    ....Heck, since cold air sinks, you could place a temperature
    sensor in the cup holder as well. Put that against a countdown
    timer that says....

    "Dude! you better drink me before I get too warm or I'm gonna get poured down the sink."

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • Clock LoopClock Loop Posts: 2,069
    edited 2005-11-05 11:24
    Couldn't you use some kinda frequency to determine this? I know that sound travels faster thru liquid than air..

    Mabee making use of PING? I dunno....

    I would imagine weight is the best..

    Just make a PAD, that weighs it. Put in code to know when you took the drink off the pad,(no weight) and then have it re-measure the weight of the drink once its back on the pad.

    Post Edited (BPM) : 11/5/2005 11:27:07 AM GMT
  • ForrestForrest Posts: 1,341
    edited 2005-11-05 12:13
    Well you can keep the beer cool with electronics - such as the Peltier beer cooler at www.grynx.com/index.php/projects/peltier-beer-cooler/

    How about combining a strain gauge transducer (to measure the weight of the beer glass/can) with the Peltier beer cooler.

    I'll have to think about this over a beer...
  • bobledouxbobledoux Posts: 187
    edited 2005-11-05 13:53
    I found an interesting way to find the depth of water in a well, which is just a deep beer container:

    An open ended tube runs down into the well. The tube is slowly pressurized with air until the pressure goes no higher because the gas is bubbling out the end of the tube. The air pressure in the tube is a function of the depth of the water column. You can actually buy gauges equiped with a hand pump to perform this measurement. The gauge is calibrated in "feet of water column."

    For beer I'd replace the air column with a CO2 column.
  • steve_bsteve_b Posts: 1,563
    edited 2005-11-05 16:25
    mmm....just think....a well full of beer!

    Is this supposed to still be useable? Quite frankly, if you're attaching a 'contraption' to a beer can to determine if it's empty or not...well, you're missing the point of having a beer!! haha j/k

    you'd obviously want something that's transparent to the user/drinker!
    If it won't attach to the bottom of the can (where its concave) then anything else would jsut be in the way.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·

    Steve

    "Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2005-11-05 22:59
    Anybody been on a brewery tour?· I have and I found out how they make sure that all the cans get filled properly (and the low cans get set aside -- and sold to the employees, discounted.)· They tell it all on the tour.· And -- it's not by weight or reliance on the filling operation.

    And, yes, BPM, they do use a frequency --·very, very high frequencies.

    They get X-rayed.

    · yeah.gif
    ·
  • ejdarlingejdarling Posts: 24
    edited 2005-11-06 00:12
    Mmm...X-rated beer....

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    thanks for your time,· Eric
  • Guenther DaubachGuenther Daubach Posts: 1,321
    edited 2005-11-06 01:12
    Here come some comments from the country where the beer was invented - Germany:

    IMO, detecting the liquid level in a can of beer is an obsolete project - why ?

    Well - in Germany, we usually use glasses to drink beer, so the glass acts as an instantaneous optical fill level indicator for the beer-glass-operator. I must admit that the precision of this indicator might become less accurate when the beer-glass-operator has already consumed a certain amount of beer.

    Besides this, the full-to empty time ratio of an average German beer glass is relatively short as the average beer-glass-operator has a relatively large beer-sink capability. Therefore, it does not make too much sense measuring the fill level, a simple, digital full-empty signal would be sufficient enough to alert the waiter/waitress to deliver a fresh glass of beer.

    Cheers!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Greetings from Germany,

    G
  • ForrestForrest Posts: 1,341
    edited 2005-11-06 01:45
    "the full-to empty time ratio of an average German beer glass is relatively short as the average beer-glass-operator has a relatively large beer-sink capability."

    LOL

    tongue.gif
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2005-11-06 02:51
    I think beer, in some form, was first made (invented, if you will) in ancient Sumeria nearly 4 millenia BC.·

    It then turned up in large quantities in Milwaukee in the late 19th Century.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-11-06 02:58
    PJ Allen said...(trimmed)
    Anybody been on a brewery tour?· I have and I found out how they make sure that all the cans get filled properly (and the low cans get set aside -- and sold to the employees, discounted.)· They tell it all on the tour.· And -- it's not by weight or reliance on the filling operation.· They get X-rayed.

    PJ,

    ·· Interesting...I've never been to a brewery, but I have been to a winery (A few), and the places out from where I used to live (NY) actually use a method similar to how a gas pump works to tell how much has been put into the bottle.· No X-Rays there.· Seems a little X-treme!· =)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • steve_bsteve_b Posts: 1,563
    edited 2005-11-06 04:21
    At work we use 'weighing' gauges to determine precip amounts.

    In some cases, we use encoders....the newer gizmo's use a 'vibrating wire'.
    A bucket is suspended with a wire tightly connected to the bucket and part of the frame. A given frequency is put on the wire....as precip accumulates in teh bucket, the frequency of the wire increases....

    no doubt a novel idea would be to have a voice or indicator light letting us know we're running low....but unless you can make it unobtrusive....it's a hard item to sell!
    How about an RFID coaster.....put your mug in the 'mount' have the ID read and then the mug weighed....a profile is set up to pour your favorite beer and it stops filling when the 'weight' reaches a given amount!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·

    Steve

    "Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2005-11-06 12:19
    I used to just count the cans the day after. But I guess that is why I haven't learned so much about computers. There were a few hazy years there and some foggy ones after. I was usually gone before it got warm.

    Nonetheless, what seems to be the real question is how to measure liquids of any sort in a large tank of geometric shape [noparse][[/noparse]places that you cannot merely weigh the vessel]. I know that their are problems with ultra-sonic or infrared due to phsyical limitation. Temperature sensors on the exterior are somewhat approximate. Flow meters may be a some use, but require calibration and re-calibration.

    Also, some liquids are a fire hazard, so the question of isolation from electrical spark adds to the challenge. It seems that most of these things still remain in the realm of low technology [noparse][[/noparse]using mechanical floats or dip sticks].

    Also, many producers of liquid product might find it more convienent not to have every drop of yeild tightly accounted for. I can never seem to get a full cup of coffee in Taiwan [noparse][[/noparse]except Starbucks, maybe]. That is really what the 'head' in beer is really all about. You convince the customer that they are getting a greater value while selling them a bit less product. The same with the froth on a latte.

    In sum, actual weight seems to offer the only emprically sound way to resolve things. Particularly in this case, High Tech may just become a cloak for hiding higher yields. An economist once told me that there isn't any system that cannot improve profits by cheating and not getting caught. Engineers and scientist tend to be more interested in the ideal than the rest of the world. The perfect cash register keeps the employees honest, but the tax collector confused.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)

    ······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
  • steve_bsteve_b Posts: 1,563
    edited 2005-11-06 14:00
    As you pointed out...."actual weight seems to offer the only emprically sound way to resolve things."....the head of the beer might give you problems as it's volume or mass is far less then that of the liquid.
    But this only really applies if you are pouring your own beer...not if you're opening a can and checking its status!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·

    Steve

    "Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
  • Guenther DaubachGuenther Daubach Posts: 1,321
    edited 2005-11-06 14:28
    PJ Allen said...
    I think beer, in some form, was first made (invented, if you will) in ancient Sumeria nearly 4 millenia BC.

    It then turned up in large quantities in Milwaukee in the late 19th Century.
    Steve,

    maybe, they invented it in ancient Sumeria but this is such a long time ago that I forgot it smile.gif . In the other hand, I'm sorry - Milwaukee is far behind Germany. In 1516 they already released the German "Reinheitsgebot", a law about the allowed beer ingredients.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Greetings from Germany,

    G
  • John R.John R. Posts: 1,376
    edited 2005-11-06 14:37
    Guenther Daubach said...

    maybe, they invented it in ancient Sumeria but this is such a long time ago that I forgot it smile.gif . In the other hand, I'm sorry - Milwaukee is far behind Germany. In 1516 they already released the German "Reinheitsgebot", a law about the allowed beer ingredients.

    Yes, but what we lack in quality, we (Milwaukee) make (or used to make) up for with quantity! This is also the home of the word famous (?) naked beer slide!

    Side Note to create more noise: Early in the thread there was mention of audio signalling and messages about the beer. The correct phrase when near empty (or warm) should be someting like:

    "Honey, my beer is almost emtpy [noparse][[/noparse]getting warm], could you please bring me another". This should be transmitted via one of the RF units to a portable receiver affixed to, or near by, the significant other of the beer ingester.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    John R.

    8 + 8 = 10
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2005-11-06 14:59
    · I just wanted to tell everybody about how they really check that the cans were "filled."· I don't know how they do bottles.

    · There just isn't time to wait for a strain gauge to settle, vibrations, calibrations,·and all that jazz.· Those cans are just sailing on that conveyor belt, baby; it's all about production, efficiency, time is money.

    · Y'know, when the can "says" 12 fl. oz., then it ought to be at least 12 fl. oz., or you know there's gonna be trouble.· They don't want to undersell or oversell.

    · [noparse][[/noparse] N.B., a cold glass/pitcher/stein and "pouring down the side" go far in minimizing that head of foam.··America is·a cold-beer country and decent barkeeps are dialed-in.· In England and Germany, oftentimes they fill past the top, to over-flowing. ]

    · Hey, does everybody know about exposure to cosmic rays while on jet-airliners, the radiation emitted by all concrete, and the Americium source in smoke detectors (those are "BRC", till you put a bunch in a box)?
  • StarManStarMan Posts: 306
    edited 2005-11-06 17:58
    Peter,

    How many REM's in a bowl of Quisp? burger.gif

    (this thread has gone awry)

    Chris I.
  • Clock LoopClock Loop Posts: 2,069
    edited 2005-11-06 18:19
    I like the radiation method.

    PLUS, when your not using it, the radiation could be used to power your house, especially your beer fridge in the garage.
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2005-11-06 19:23
    How many REMs in a bowl of Quisp?·lol.gif·

    REM is about dosage and exposure (oh, me): time, the strength of the source, and your proximity to it.· So, for REMs, the question would be: How many REMs from a bowl of Quisp?· And the answer would be: That's going to depend on·your serving size and how long you're standing next to it. turn.gif
  • StarManStarMan Posts: 306
    edited 2005-11-06 20:27
    Quake got too close for too long.· Vaporized.
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2005-11-06 21:22
    Yeah, well... when he ditched the hard-hat and started wearing the cowboy hat and the cape...·rolleyes.gif·...I think we were all "concerned."
  • metron9metron9 Posts: 1,100
    edited 2005-11-07 16:10
    At the risk of making a "page II" in this thread, I would like to thank all of the folks that worked so hard on this problem.
    Now if you don't mind I have to check and see how many cans I have left in the box.....

    Thank You.
  • PaulPaul Posts: 263
    edited 2005-11-09 03:52
    hmmm..... If you weighted the beer consumed then weighed the consumer (strain guage in the bar stool) could you get an accurate % blood alcohol level?
  • steve_bsteve_b Posts: 1,563
    edited 2005-11-09 12:03
    Only if you assume everyone has the same amount of blood.....also, there are absorption rates. Not just of individuals, but the more sugar in a drink, the more quickly it's absorbed (learned that on CSI! ha).

    You'd also have an issues subtracting the beer nuts that are consumed too....too many variables to keep track of outside of a lab!



    **OOPS>..sorry guys, I made a 2nd page on this!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·

    Steve

    "Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
  • Guenther DaubachGuenther Daubach Posts: 1,321
    edited 2005-11-09 15:03
    Paul,

    I don't think so - you woould have to weigh the consumer's blood smile.gif .

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Greetings from Germany,

    G
Sign In or Register to comment.