Hi PICsters, I have a really interesting problem that I wish someone could help me with. I have constructed a watering system controller for my grandmother which is supposed to eliminate the need for her to water the garden. All I am doing is looking for sunlight through an photodiode, counting a number of delays that would equate to around 5 hours, set a bit that corresponds to the water valve ( this in fact turns on a relay that activates the 24vDC water valve), waits for half an hour, turns off the valve then does nothing at all until it sees night and does the whole thing all over again the next day. Simple is it not? The code is even simpler and when I have shortened the delays to minutes instead of hour it works fine. Power supply seems O.K, (12 watts), PIC is 16C84 and the whole thing sits under an acrylic dome. Anyone hear of heat or light affecting the PICs as it seems to be latching up not turning off the water valve. I don't think it would ever get more than 40 or 50 on a hot day ( degrees C ). Any ideas?? John -----Original Message----- From: Emil Hristov [mailto:e_hristov@YAHOO.COM] Sent: Friday, 10 March 2000 4:23 To: PICLIST@MITVMA.MIT.EDU Subject: Help! 24C16 to 16F877 Hi all, I try to write and read to/from EEPROM but I don't succeed. If anyone have more experience of I2C EEPROMs and 16F877 let me know. Thanx in avdance. Emil __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com