On Sat, Aug 15, 2009 at 7:55 PM, Olin Lathrop wr= ote: > A reed switch is not a good choice. =A0This is usually done with a perman= ent > magnet between two spokes of the back wheel as far radially outward as > possible and a pickup coil on the frame. =A0A little analog electronics a= nd > you get a pulse into the PIC once per wheel rotation. Good idea, but the analog electronics part is wayyyyy too complicated for me. But I'm going to go for it as I can already see an advantage with the analog solution: if I were to use a reed switch, it may rapidly switch on and off if the magnet stalls near the switch. However, with a coil, it is possible to filter that out. This approach also raises a few more questions: * What kind of coil would need to be used? Thickness? Resistance? * Would a coil pulled out of an analog clock work? (Was formerly used in the clock to move the seconds hand.) * How much coil is needed and how will it be configured physically? Will it be wrapped around a pencil, for example? * I'll look at the signal produced by the coil through an oscilloscope, but what other electronics is needed to isolate the wanted signal? Or can a PIC alone and it's A to D converter tackle the task? I'll have to do some reading on analog filter design. -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist