Content-Type: text/plain X-MIME-Autoconverted: from 8bit to quoted-printable by khi.comsats.net.pk id TAA 20299 Hi Luis and PICERs, Consider using Hall Effect Sensors. Although a bit more expensive, but at a later stage you could measure the level of activity also, including on/off. I attach this document for your perusal. Regards Aurangzeb Haque ---------- > From: Luis Fernandez > To: PICLIST@MITVMA.MIT.EDU > Subject: Detecting AC power line on/off > Date: Thursday, April 23, 1998 9:00 PM > > Hi list, > > Would like to know your opinion in how to detect activity (power on) of > devices connected to mains power supply (220V 50Hz here) in order to provide > a clear input into a PIC I/O pin. > > Goals are: Isolation from power line, Reliability, Low cost and low size > > Relays with 240V AC coil are usually big because they are made to switch > heavy loads, so expensive and the coil can fail. The samallest I could find > was a 24V AC relay + resistor, but still not very reliable. > > What about using a neon lamp and some kind of optical detector > (fototransistor) and may be an RC network to integrate the pulsing light of > the neon. What kind of optodetector can be used with this arrangement ?. > Any other idea ? > > > > > Luis Fernandez Cormenzana > RadioBit Sistemas, S.L. > Sistemas de control de rondas > Patrol presence controllers > Control de patrullas y veh’culos > Patrol vehicle fleet control > http://www.dragonet.es/users/radiobit > Tel/Fax: +34-96-5856457 Content-Type: application/octet-stream; name="applicationhalleffect.htm" Content-Description: applicationhalleffect (Internet Document (HTML)) Content-Disposition: attachment; filename="applicationhalleffect.htm" Attachment converted: wonderland:applicationhalleffect.htm (????/----) (00005771)