>I'm starting to think that this is getting a >bit overkill, seeing as Peter's bridge-rectifier/ >opto seems neater.. I know that this arrangement is used to detect the presence of a train in a block on model railways. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist