Hacking the Virgin Pedometer September 7, 2008
Posted by truthspew in Uncategorized.trackback
Apparently one of my office mates is a very competitive sort. So I have to pull a fast one on him. I setup my Arduino to pulse pin 13 ever 10ms. I then took that output and put it across the magnetic reed switch on the pedometer. I know, I know, I could have done a magnetic coil but what's the fun in that?








Hi there. I’m new to the Arduino (just got an Uno). I have an old pedometer that I’d like to try this on. Did you just set pin 13 to output and the set a loop that set 13 to high then delay for a few ms and then set low and then delay for 10ms? How long did you set it high for? Did you put a resistor in line with it when you connected it to the reed switch? Lastly it seems that the reed switch is normally closed as it reads 2.72V and 0.02A just sitting there. When I push the pendulum down the meter goes to zero. Seems you would need to push the pendulum down while pulsing with the Arduino. I’m a little concerned about the voltage and amperage from pin 13 on the Arduino being so much higher than the voltage I see on the reed switch in its normal state. I don’t want to burn up my Arduino or the pedometer. Pretty cool stuff you have done here and in your other videos. Thank you.
I just ran it straight through and did a 20/10 ratio.
Thanks for the reply. I gave it a whirl and it worked just fine. I was wrong about the normal state of that reed switch though. For some silly reason I thought it was normally closed (which would just drain the battery in no time). I tried different resistors off of the gnd pin on the Arduino just to see how it affected it. The largest resistor that would still allow a step to register seemed to be 270K.
Is there anyway you could go through this step by step for a person who is a total newb? I’d like to get an arduino and do this.
Thanks.
could you post your code? any idea how to do this on a raspberry pi?
The code is simple, just pulse one of the digital ports on 10ms basis.
main pulse(void)
pin 8 high
sleep 10
pin 8 low
Not sure how it could be one on the RasPi –