Skip to content
John McKerrell edited this page Jan 25, 2019 · 1 revision

CoffeeBot

[No longer active]

A weight based measurement of the number of cups of coffee currently available in the kitchen.

A set of bathroom scales lives underneath the coffee machine in the kitchen, connected to an Arduino Ethernet that measures the weight, calculates the number of cups of coffee in the machine and sends the data out to Xively. All the measuring electronics of the scales has been bypassed and the Arduino measures the mass of the water in the coffee machine by reading resistance change from the strain gauges at each corner of the scales, via an INA125 instrumentation amplifer. Detail on connecting the instrumentation amplifier to the Arduino is shown in the ArduinoInstAmp repository in GitHub.

A remote monitor for the scales polls the Xively feed regularly for the latest values of the number of cups and displays the results on a dial gauge in the main room of DoES. While it is possible to find out the amount of coffee available from anywhere there's internet access, the usefulness of the information diminishes as you get further away from the machine. The optimum condition for using the CoffeeBot would be out-of-sight of it, but still in the same building.

While collection of the level of the coffee in the machine is an interesting exercise and it's nice to know if there's coffee available before getting up, there are some more practical uses once the data has been collected. Averaging the number of cups consumed during each day might give guidance on when to stop making coffee in the afternoon, and how many cups to make in the last pot. Tracking total cups made would mean that it's possible to determine how regularly coffee beans need to be purchased so as to keep them available, but still fresh.

Up-to-date and historical information on DoES's coffee usage is available at xively.com/feeds/106284.

ImageLink(http://api.xively.com/feeds/106284/datastreams/number_of_cups/history.png?w=400&h=200&c=2188c5&b=%3Cbr%20/%3Etrue&g=true&t=Cups%20of%20Coffee%20at%20DoES%20Liverpool&s=3&scale=manual&min=0&max=6,https://xively.com/feeds/106284[,width=width[,height=height[,alt=alttag])]]

Setting the Empty Weight

There is now a tare (zero) button on the board, with a red LED. To zero the scales:

  • Take both pots off the coffee machine (doesn't matter if they're full or empty).
  • Press the tare button.
  • Wait for the red LED to come on, this may take a moment of it's in the middle of sending data.
  • Wait 2 seconds for the red LED to turn off. ''Don't touch or knock the machine during this time, this is when the measurement is taking place''
  • Place the pots back on the coffee machine.

☝️ Filter all pages above!
(Full search available on the top of page)

WiFi: DoES Liverpool, password: decafbad00

or

Clone this wiki locally