Idea Help, Monitor AC line switch to temporary alternate power
Hey guys,
I am just looking for some ideas on how to accomplish the following:
Project box (we'll call it the parent box from here on in) is plugged in to 120VAC outlet that is controlled by a switch. When the power is switched off I need a small amount of time to in which the parent needs to have enough power to keep the reciever up (3mA), Transmitter (12mA durring transmit) and the pic. Durring this outtage time the parent needs to transmit to another box (child) to signal the turn off. The child box then transmits back acknowledgement of receiving the message to the parent box. If the parent does not get the acknowledgement code back it needs be able to retry a couple of times. Right now the setup is for one child, but it may grow to have a couple more child nodes.
I'd like to avoid using a battery if possible. Can I use a supercap to pull this off. Either way the pic needs to know when we are on altenate power or not. Any ideas would be greatly appreciated.
Thanks,
Nemesis