Shop OBEX P1 Docs P2 Docs Learn Events
80-Cent Pedometer as a Pulse/Event Counter — Parallax Forums

80-Cent Pedometer as a Pulse/Event Counter

ercoerco Posts: 20,256
edited 2015-06-24 20:30 in General Discussion
Retasking an Ebay Pedometer (step counter) to count pulses from a BS2. Internal debounce circuitry limits count rate to 4 Hz, but if you need a slow cheap counter w/LCD display and power-off memory using just one I/O pin, it's gonna be hard to beat 80 cents: http://www.ebay.com/itm/151424158305

A simple mod to remove the internal pendulum and make 2 connections:
1) to battery - (wedged wire under button cell) and
2) to the switch contact through a 100K resistor

A 1 ms high pulse is sufficient to count:
FOR B0=1 TO 39
PULSOUT 0,1
PAUSE 220      '  counter starts missing under 220, call it 4 Hz max
NEXT

You could add another wire to let the micro reset the counter if you like.
1000 x 800 - 210K
980 x 770 - 164K

Comments

Sign In or Register to comment.