Trojan Coffee Room Machine Returns
MKalus writes "It seems that when they turned it off it wasn't quite the end to the machine after all. The german magazine "Der Spiegel" bought it and got it repaired. And now it is online again, not in the Trojan room, but the same machine." You just can't keep a good coffee machine down.
It turns out that sensing the amount of water in the pot is quite difficult. If you use a scale, it has to handle heat, humidity, and steam if you put it under the pot. If you put it under the machine, you will also have plenty of water screwing up measurements because it stays in the filter. I thought about bouncing a laser diode over the surface of the water, but that never materialized. I also tried measuring the capacitance of the coffee between two places (more coffee = more conductive dielectric). That didn't work. Coffee and tea are great conductors.
Finally, I took a plastic ruler, drilled holes in it and hooked wires from a ribbon cable up to it, at a regular spacing. The coffee would short between a pin at a certain height (each pin was attached to an R2 ladder) and the ground pin at the bottom. This actually worked reasonably well! (If you could stand a ruler in your coffee pot!)
Oh, I didn't want to figure out how to write a web hit counter CGI script, so I had the stamp store the number of hits in the stamp's EEPROM! Much easier! I still have the code and the hardware lying around, though the coffee machine is long gone (last attached to a DECstation 5000/260, actually).
/ \
\ / ASCII ribbon campaign for peace
x
/ \
At any rate, I'm not quite sure how you would get a measurement out of this. Attach the stick to a loose potentiometer? Not to mention, the stick would have to have a useful range of movement 80 to 90 degrees in order to capture the information that you want. My guess is that it would be less accurate than the ruler, but if you just want a ballpark measurement, it might work fine.
/ \
\ / ASCII ribbon campaign for peace
x
/ \
The advantage of the ruler was that I only had to calibrate it once (the resistors were fixed and outside the coffee machine) and it was easy to remove for cleaning. It also had an obvious failure mode (sometimes it would read -13 cups, then you'd know there was short somewhere).
The point of this project was to have fun, of course, not to make a coffee machine that people would ever drink from. Overengineered? Probably. But it was cool to have an LED flash everytime someone hit the webserver. And hey, doesn't everyone want to know the temperature of their dorm room to within 10 degrees rankine? (yep, it reported kelvin and rankine)
/ \
\ / ASCII ribbon campaign for peace
x
/ \