Hi Guys, Could someone pls let me know where can I get information on, PIC (preferably 16877 because I purchased a 16877 Development board from Futurlec.com) Controlled AC relays using a light sensor as an input ? I have searched thru the internet but can seems to find one that is close to what I want. Most of them are related to garden or drive-way lights which will turn on during the night. My objective is, if the light is on, the PIC will switch on 2 of the 4 relays for say 8 seconds while the other 2 relays are in off-position. After 8 seconds, alternate the 2 pairs of relays on/ off position. When the light is off, reduce the on/ off delays from 8 seconds to 4 seconds. I know there will not be an exact project available in the internet but if I can find one that is close, I hope I can make changes to the source code to suit my needs (part of learning). Thanks a zillion. cheers, --------------------------------- Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist