8 ms·
The professor for my software engineering course in college posed a problem with a non-tech answer similarly. You have a cabin in the woods, with electricity a
by T-hawk 15y ago
The professor for my software engineering course in college posed a problem with a non-tech answer similarly.
You have a cabin in the woods, with electricity and a freezer. You go hunting and bag a deer with much more meat than can be used in one visit, so you freeze it for use on a future visit. But you want to know while you are away if the electricity fails for any length of time so that the meat may have thawed and spoiled.
After the class spent most of a period arguing over remote monitoring systems and temperature sensors and the like, the professor revealed the simple answer. Freeze a block of ice in the freezer and mark its height. If it is shorter when you return, the power was out so some of it melted.
- stonemetal 15y agoIce evaporates, how do you tell the difference between evaporation and power outage? Sure there should be more loss in the case of an outage but you don't know the exact evaporation rate to expect. Your computer has a setting on whether or not it should turn back on after power loss, build a low cost circuit that does the same(turns off in case of power loss) and you are done.
- starwed 15y agoYou probably don't care if power is only out for a few seconds, though. Ice evaporates, but a large block will take quite a while.
- Splines 15y ago.. and the nice thing is that it's a close representative of what you're trying to measure. If it's warm enough to melt a significant portion of ice, it's warm enough to spoil your food. I was thinking of some sort of canary that would trip if power turned off, but that would only tell you if the power ever went off, not how long it was off. No sense wasting a fridge full of meat if the power was off for a few seconds. A clock that requires electricity but displays the time mechanically with a date on it would also suffice, as you could measure the delta between what it displays and what the time really is (accounting for normal inaccuracies).
- billswift 15y agoA weakness of the clock idea is that the power could be off multiple short periods; too short to allow the meat to spoil, but enough in sum to make the clock pretty far off.
- dkersten 15y agoBattery-backed microcontroller logging all power off events and temperature changes :) If the battery has run out, then there has been enough long power outages that the meat is probably spoiled. If the battery hasn't run out, you have a nice log of what happened when. Not that I think its better than the ice solution, but theres certainly techie options that you could build for $10 or so.
- m_eiman 15y agoPlace something like a coin on top of the ice. If the ice melts, the coin will submerge and be inside the ice if it re-freezes. (Assuming you put the ice in a container).
- stonemetal 15y agoThat is interesting because you could tell how long the power had been off by how deep the coin was in the refrozen ice.
- coolgeek 15y ago"Ice evaporates" Actually, ice sublimates
- artmageddon 15y agoHis answer is a clever one that is very cheap and effective, but personally I'll be the first to admit that I would've been among that group talking about going the more complicated route because I figured: 1) A block of ice will occupy room that could've been used for more deer meat(I suppose the size wouldn't matter, of course) 2) A temperature sensor would let you know right away if the power failed, instead of finding out after the fact and forcing you to clean out a freezer full of rotting meat 3) The sensor may also act as a silent alarm system. If the temperature changes suddenly then goes back to normal, it's possible that an intruder opened it up looking for money / food / valuables. I realize that misses the point of the discussion since the professor was going for the easiest possible solution, but we're hackers here :)
- ssharp 15y agoThere is an anecdote I've read a few times: "During the space race back in the 1960's, NASA was faced with a major problem. The astronaut needed a pen that would write in the vacuum of space. NASA went to work. At a cost of $1.5 million they developed the "Astronaut Pen". Some of you may remember. It enjoyed minor success on the commercial market. The Russians were faced with the same dilemma. They used a pencil." The idea is to show outcome-oriented thinking. The desired outcome wasn't to use a pen, but rather, to simply write or record.
- quanticle 15y agoThat anecdote, by the way, is an urban legend: http://www.snopes.com/business/genius/spacepen.asp http://www.snopes.com/business/genius/spacepen.asp
- wazoox 15y agoBut the Italians say Si non è vero, è ben trovato. I've read a book from a former astronaut though, that tend to prove there's some truth to the legend; it was about the vacuum cleaner used in Mir. The NASA devised a sophisticated way to clean up the Space Shuttle; the Russians simply used an ordinary vacuum cleaner from the nearest supermarket.
- wazoox 15y agoWhy the downvotes? I've checked, this story is in Patrick Baudry's book : "conquête spatiale, la déroute". ( http://www.patrick-baudry.com/bibliographie/patrick-baudry-auteur/ http://www.patrick-baudry.com/bibliographie/patrick-baudry-a... )
- wazoox 15y agoI've dug out the book :) p. 99 it says (rough translation): "I remember an anecdote from 1982. That year, the vacuum cleaner used in the saliout 7 station failed. I had the opportunity to admire the simplicity and efficacy of the Russian method. An ordinary vacuum cleaner was bought from Star City supermarket, sent to Baïkonur via the next plane and loaded into the next Progress cargo ship. Once aboard the station, it was plugged in, and worked perfectly. Problem solved. The whole operation costed 5 rubles (1 US $)".
- btilly 15y agoI have an even better answer. Cover the deer with crushed ice. If it is still covered when you get back, the meat is still good. Even if the power was out for a while and some of the ice melted. (A large freezer filled with meat and ice will stay cold for quite a while. Even if some of the ice melts and refreezes, the temperature stayed freezing.)
- jws 15y agoI think a prolonged thaw and a refreeze will burst your freezer with all that water in it. Probably just as well, you won't want it with the putrified carcass in it. (I keep a ziploc baggie of icecubes in my freezer. It lets me know if my food is going to kill me, and I can use it as ice if I run low!)
- T-hawk 15y agoThis and many other posts are all good answers, but the point of the problem was simply to be able to think non-technologically and non-computer, not always an easy task for a class of computer science college students naturally disposed to think that code and clean code is the solution to all the world's problems. The precise best way to set up a telltale with ice is not the main concern. :)
- jsight 15y agoWith a sufficiently large block of ice, a few blackouts may not even be a problem.
- anigbrowl 15y agoPlug an electric analog clock on the same circuit as the freezer. If it is wrong by more than a minute or two (normal inaccuracy) then you know the power was off and for roughly how long. If the power was off for an exact multiple 12 hours you'd have a problem, but a) that's unlikely and b) you could get a slightly fancier clock with a date as well as a time component.
- Jach 15y agoWhere do you get this block of ice? (Admittedly pretty easy to acquire/make if it's smallish.) And where would the students get their electric gadgets? Assuming you took a truck hunting, get rid of the problem altogether. Stick the meat in the freezer and stick the freezer in your truck and take it home with you where you can not only monitor it personally, but still enjoy the meat whenever you want. The only concerns then are keeping the freezer interior cold enough for the trip back (pretty easy) and the space at your place.
- RobertKohr 15y agoI did something similar for a deep freezer I had in my garage. I drank half a small bottle of water then froze it sideways. After it was frozen, I put it upright and in a place it can't fall over. If the water goes flat to the bottom, then I know the freezer was powered off.