

This a project that I am particularly proud of. It
receives daily use, and is one of the few projects to have a
"real" purpose. This points calculator is a super handy
tool to keep track of your points, and a powerful tool for calculating
points from dietary information (versus using a slide).
Your daily points and flex points are stored in the
calculator, and when you use points, simply enter the number of points
used and your remaining points are automatically calculated.
The calculator also has a points calculator feature
which allows you to determine the points value of any food with dietary
information (really handy when grocery shopping). Below is a
sequence of photographs showing the points calculation for some random
food.
The unit is turned on:

Points calc. button is pressed. The calculator asks for the
calories:

The calories are entered:

The calculator asks for the fat grams:

The fat grams are entered:

The calculator asks for the dietary fiber:

The dietary fiber is entered:

The points:

The points are calculated by using the Weight Watchers points
formula:
Points = (Calories / 50) + (Fat Grams / 12) + Minimum( Dietary Fiber,
4) / 5
The points calculator is driven by a PIC 16F876 running at 4 mhz.
Here are some pictures of the inside of the calculator. The code
was written in Mbasic Pro.



