On 6/26/07, Miguel Reznicek wrote: > Friends: > > Does someone know of a PIC chip circuit that will monitor the 220 VAC mains > and use them to run, but that can automatically switch to a battery power > when the mains fails? I need to make an alarm for when the power fails. > > Thanks in advance, > > Miguel Reznicek > mreznicek@pretensa.com I have a design here http://www.vscp.org/wiki/doku.php?id=rockhampton Here The voltage sense is used to check the status for some lamps (really relay outputs). For power a 12V power source and a 12V SLAB connected to a charge is used. A standard 110V/230V switching relay is used that switch between battery vs. power supply as the design can live with power going away as long as the system goes up again. Cheers /Ake -- --- Ake Hedman (YAP - Yet Another Programmer) eurosource, Brattbergavagen 17, 820 50 LOS, Sweden Phone: (46) 657 413430 Cellular: (46) 73 0533 146 Company home: http://www.dofscandinavia.com Kryddor/Te/Kaffe: http://www.brattberg.com Personal homepage: http://www.dofscandinavia.com/akhe Automated home: http://www.vscp.org -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist