The
image to the left is a diagram of my binary marble counter. I built two
so far - one with four bits, one with five bits - with a wooden base
and metal hooks.Each round unit traps a marble with its hook. When a second marble
rolls from the
top, the hook swings to release the first marble and it shunts the
second
marble down a hole. That's a bit - first count to one, then
overflow into the next bit. Simply cascade as many as you need
to count as high as you desire. In the diagram, units 1 and 2 have
trapped a marble and unit 4 has released its marble and is ready to
trap another.
For the purpose of counting, each unit is worth 2 raised to the
power of the number of units above it. The first unit is worth
2^0: 1. The second,
2^1: 2. Then 4, 8, 16, 32, 64. To find the number the machine is
currently showing you simply add the values of each unit that has a
trapped
marble.
This is a
photo of my five-bit mechanical counter. It can count quite high
- the five binary traps count all the way to 2^6 - 1 or 31. After that
you multiply the number of marbles in the bottom bin by 32 and add that
to the value of the bits. Since the bottom bin holds eight marbles,
this machine counts to 8*32 + 31 = 287.