Skip to content

ptwz/bedscale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages