ptwz / bedscale

A digital scale to be integrated in furniture e.g. beds

Home Page:http://peter.turczak.de/content/projects/scale/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bed Scale

This implements a bed scale as explained on http://peter.turczak.de/content/projects/scale/ . Basically it gives you means of keeping track of several peoples weight sharing the same bed (i.e. families).

Arduino Code

The Arduino software depends on the modified HX711 library from the "parallel" brach of https://github.com/ptwz/HX711 .

Python Code

The python code needs some initialization in order to work properly. You will have to tell it the peoples weight is is supposed to log. Everyone not in the people shelve will not be monitored and their weight discarded.

$ python

>>> import shelve

>>> people=shelve.open("people.shelve")

>>> people['him']=...

>>> people['her']=...

>>> people.close()

Where you would fill the ellipsis by you and e.g. your wifes weight. This way the algorithm has start values to work from.

For running host_process.py, redirect its output to a log file.

$ python host_process.py > waage.log

For analyzing the weight changes over time of the previously initializes household members, run extract_data.py like so:

$ python extract_data.py > result.dta

The result.dta can then be processed using a spreadsheet or gnuplot.

About

A digital scale to be integrated in furniture e.g. beds

http://peter.turczak.de/content/projects/scale/

License:MIT License


Languages

Language:Python 88.2%Language:Arduino 11.8%