Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 21st November 2003, 06:15 AM   (permalink)
New Member
jahan is on a distinguished road
Default back up power supply for a microcontroller(sensor)

can anyone pls give information about how to sense a power failure within nanoseconds so as to interrupt the microcontroller using the sensor and so that the microcontroller can activate a backup battery supply through the corresponding interrupt service routine so that the microcontroller makes itself work continuously even during an event of a power failure without getting reset.
jahan is offline   Reply With Quote
Old 21st November 2003, 01:23 PM   (permalink)
New Member
Miguel Gonzalez is on a distinguished road
Send a message via MSN to Miguel Gonzalez
Default

I do it in the following way: A transformerless power supply and a back up battery (square battery with a zener diode to rectify it to 5 volts) to feed a pic12c508 then, I detect the Zero crossing and time the duration of the Zero crossing and you take it from there. Microchip.com has many free samples and design ideas. This is the cheapest way to control a crydom relay(or any other relay) to perform a task after a power failure. Remember that a Half cycle on a 60 Hz is 8.33ms and a zero crozzing every 180 degrees. Good Luck!!
__________________
\"Energy and Persistance conquer all things\" BF.
Miguel Gonzalez is offline   Reply With Quote
Old 21st November 2003, 06:26 PM   (permalink)
New Member
jahan is on a distinguished road
Default some doubts

thank u miguel but i have some doubts
first is that when we are using a dc supply how do we get time for half cycle or zero crossing
by power failure i mean the dc supply of 5 volts or so drops to zero like it does when switched off and the requirement is that b4 it falls to zero the sensor senses the power failure and interrupts the microcontroller which activates the backup power supply battery so that it gets uninterrupted power supply
pls help
jahan is offline   Reply With Quote
Old 22nd November 2003, 12:59 AM   (permalink)
Experienced Member
 
motion is on a distinguished road
Default

The 5V shouldn't drop to zero instantanously because there are filter capacitors. And if you monitor the unregulated voltages, you would have enough headstart to turn ON the batteries before the voltage regulators stop working.
__________________
"Having to do with Motion Control"
motion is offline   Reply With Quote
Old 4th December 2003, 03:13 AM   (permalink)
New Member
tabassman is on a distinguished road
Send a message via AIM to tabassman
Default

we are attempting to do a similar thing for our senior project. would anyone recommend using a microcontrller supervisor circuit. something like this. http://www.datasheetcatalog.com/data.../ADM690A.shtml

we will need this backup power for more than just the microcontroller. ie any other chips will need to be powered as well.
tabassman is offline   Reply With Quote
Old 5th December 2003, 12:57 PM   (permalink)
New Member
stef is on a distinguished road
Default

I think what Miguel is trying to say is that you should use a switch mode supply; the output is still present for about a second or so after the mains is switched off.

If you monitor the AC side of the PSU, you can monitor the the average time it takes for the AC signal to pass through zero and get back to supplying a voltage that would yield the required output. If the "zero time " is longer than normal, you have a power failure (zero time shouldn't be longer than 5ms on 50Hz or 4ms on 60 Hz; zero is @ 180deg, AC should peak again at 270deg which is a 1/4 of a cycle, thus 4 or 5 ms)

Thus if the mains is zero for longer than 5ms, switch your back-up PSU on. You should have the required output from the back-up before the output of the SMPS dies.
__________________
Stef
stef is offline   Reply With Quote
Old 13th December 2003, 10:00 PM   (permalink)
New Member
Velvet Leopard is on a distinguished road
Send a message via MSN to Velvet Leopard Send a message via Yahoo to Velvet Leopard
Default I have done that before.

Hi, I have had the problem of power failures before. I cured it once by making a printed circuit board that controled a small fixed relay reversed so it would latch on when the power is abscent. I designed it to turn the relay on (off in reverse) when the power is first turned on, then if the power goes off the relay switches and applies the backup power. It also output a signal to the controller so it would know. That is about all I know about the power thing. LOL
Velvet Leopard is offline   Reply With Quote
Old 6th April 2005, 10:03 AM   (permalink)
New Member
sellb is on a distinguished road
Default Another Datasheet Site !

http://datasheet4u.com

http://it.datasheet4u.com
sellb is offline   Reply With Quote
Old 16th April 2005, 05:28 AM   (permalink)
New Member
sellb is on a distinguished road
Default Another Datasheet Site !

http://www.datasheet4u.com
sellb is offline   Reply With Quote
Old 16th April 2005, 10:31 AM   (permalink)
Exo
Experienced Member
 
Exo is on a distinguished road
Send a message via ICQ to Exo
Default

http://www.electro-tech-online.com/v...ic.php?t=11908
Exo is offline   Reply With Quote
Old 16th April 2005, 06:59 PM   (permalink)
Experienced Member
 
bonxer is on a distinguished road
Send a message via AIM to bonxer
Default

Yes you all are way overengineering this thing, as can be seen with the simple solution in Exo's link. All you need to use are diodes. Just make sure your power supply is greater than the battery you are using. That way the diode is nonconducting and the battery is unaffected while the device is plugged in and getting power. As soon as main power is lost, the diode becomes active and the battery powers the circuit.
__________________
There\'s no graphic in my signature.
I don\'t know your IP, and I\'m not trying
to hax0r you. You\'re welcome.
bonxer is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes




All times are GMT. The time now is 02:12 PM.


Electronic Circuits  |  Radio Controlled
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.