These chips came to mind... built in photodiodes (1x visible, 1 x infrared)= , ADC,=20 drive external LED with programmable current (the Si1143 can drive 3 x LEDs= =20 independently). http://www.silabs.com/products/sensors/Pages/default.aspx --=20 Brent Brown, Electronic Design Solutions 9 Titoki Place, Pukete, Hamilton 3200, New Zealand Ph: +64 7 849 0069 Fax: +64 7 849 0071 Cell: +64 27 433 4069 eMail: brent.brown@clear.net.nz --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .