How can I detect a power outage with a microcontroller?

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have the following power supply configuration: AC MAINS -> UPS -> 24V POWER SUPPLY -> 5V VOLTAGE REGULATOR -> PCB (microcontroller). What's the best solution to detect the power outage on the mains with the microcontroller? I also need to detect the zero-crossing so that I can control the speed of an AC motor.

Last Edited: Thu. Jul 21, 2016 - 02:42 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Look at the power led, when it's off then you have lost power.

 

Or is this just spam for Kynix?

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It is always hard to answer to superlatives...define what "best" means in your particular case.  Lowest cost; lowest part count; lowest size; fastest; ...

 

Anyway, a couple thoughts:

 

-- js tossed out the "look at the LED" idea.  Indeed, one could use a light pipe and an appropriate sensor. ;)  But perhaps there is a UPS model with an output signal?

 

-- If you are going to do zero-cross anyway as part of the app, then a simple dead-man timer on the zero cross:  if you don't get a hit in a few AC cycles then there is no AC, right?

 

-- The UPS in there is interesting -- is that AC-out?  So you keep your motor and rest of the app running when no mains power?
 

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I was going to suggest using a MID400 as a power loss detector, until you said ZCD.   If you have one of those, then just timeout when you don't see ZC after some set number of cycles......      How hard is that?

 

 

Jim

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ki0bk wrote:
How hard is that?

Re-reading the OP, I'm guessing that it is the AC-out of the UPS that needs to have the ZCD.  But the other need is to detect loss of "raw" mains?  (maybe some kind of low-power mode or such...)

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

js wrote:
Or is this just spam for Kynix?

Cynic in me says "yes" ;-)

 

(I wouldn't pour too much effort into this until we here from OP again and he confirms he's not just a "1 post" spammer).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have deleted and banned 3 others with the same link, so am not inclined to wait for the OP. Will lock it instead out of courtesy to those that have already gone to the trouble of replying.

Ross McKenzie ValuSoft Melbourne Australia

Topic locked