if there is any ambient light leakage a ir sensor like SEN-19018 would be better than a photo diode, with the bonus of making
led modulation unnecessary too.
Here you will find snippets of working code that will help save you time. Please help add to our collection of examples by contributing code that you have written.
Re: InfraRed ramblings
You can also use a hall effect IC and a small magnet. The hall effect ic's come in a 3 pin TO-92 package and are easy to interface to your micro.
mark_s Today, 00:16For example
...