Macro Triggered on Power Failure

Started by Noam, November 29, 2004, 01:26:52 PM

Previous topic - Next topic

Noam

It would be nice to be able to trigger a
macro based on power failure / power
restoration. That way, I can have a macro
that would turn back on certain lights after
a blackout has ended.

[edited subjet to be more descriptive]

happyras

I would like a self induced blackout every
couple of hours (or programable) that would
cut power to the unit (in concept, really
just look for error and reset) for about 10
seconds so I don't have to keep unplugging
it to get the repeating command thing to
stop.

steven r

"It would be nice to be able to trigger a
macro based on power failure / power
restoration."

Great idea! Tied to a conditional or two
you could do a true "power restoration".
BVC let's me tell my camera where to go!
:) Murphy is my beta testing pal. He helps me find problems whether I like it or not. :)

Noam

I'm working on a hardware-based solution,
using a modified plug-in controller (the one
from Radio shack), a timer circuit, and a
relay. It will (hopefully) send a command
(I'll probably use "M1 ON") a few seconds
after being plugged in (or when power comes
back on after a blackout), that would
trigger a conditonal macro to turn lights on
based on the time of day, etc. The delay is
to allow the CM15A to power on and be ready
to receive commands. I'll post the results
when I get some time to complete the
hardware modification.

steven r

Do let us know when you get it working!
BVC let's me tell my camera where to go!
:) Murphy is my beta testing pal. He helps me find problems whether I like it or not. :)

Noam

#5
I'm waiting for my dad's help. He has a much steadier hand with a soldering iron than I do.
I found the plans at the link below, but I'm going to modify them slightly (I don't want to disable the buttons, so I'm going to solder to existing connection points at the chip, or elsewhere on the board. http://www.idobartana.com/hakb/modifying_mini_controller.htm#Turning_the_mini_controller_into_dry_contact_receiver

steven r

Thanks for the link.

The site is getting a lot of hits. I got
this message when I tried to reach it.

"The web site you are trying to access has
exceeded its allocated data
transfer.... ...Access to this site will be
restored within an hour. Please try again
later."

Anyone out there with a web site willing to
mirror this info?
BVC let's me tell my camera where to go!
:) Murphy is my beta testing pal. He helps me find problems whether I like it or not. :)

steven r

"...I'm going to solder to existing
connection points at the chip, or elsewhere
on the board...."

Better to solder at a place "elsewhere on
the board" than "at the chip". If you have
to do it *anywhere* near the chip, use a
heat sink and be quick lest you fry the
chip.
BVC let's me tell my camera where to go!
:) Murphy is my beta testing pal. He helps me find problems whether I like it or not. :)

steven r

Now the link is is giving me "Sorry, the
page you requested was not found."

I hope you printed out the information.
BVC let's me tell my camera where to go!
:) Murphy is my beta testing pal. He helps me find problems whether I like it or not. :)

Noam

The page is back up now.
Also, based on the layout of the board, the
best place to make those connections is at
the pins on the IC, rather than the traces
on the board. The physical connection should
be a bit stronger, and I can still use the
switches that way.

steven r

Noam

How are you handling the power detection?
For it to be reliable, I believe you would
need a delay after power returns. Otherwise
if power flickers it could cause a problem.
It also has to be a momentary connection.

I have an old controller that has a short
in it somewhere. It's a great candidate for
rewiring. I can't use as a regular
controller. Code 1 is 12 etc. and the offs
differ from the ons. I can wire to a known
code for this purpose, however.
BVC let's me tell my camera where to go!
:) Murphy is my beta testing pal. He helps me find problems whether I like it or not. :)

Noam

I haven't quite figured it all out yet. The
first step is turning the controller into a
try contact ransmitter. I tried holding down
the switches, and it doens't send repeated
codes (unless you do this for dim/bright of
course), and it doesn't prevent other codes
from being sent afterwards.
I will have to test by shorting the
contacts, then plugging both the CM15A and
the mini-controller into a power strip, and
turning it on (to simulate both getting
power at the same time). If I need to add a
delay, I can use the timing chip I bought
from Radio Shack for that purpose (it cost
me $1.49 - no big expense). I'll let you
know what happens. I probably won't be able
to modify the controller till this weekend.

steven r

#12
Quote from: Noam on December 01, 2004, 09:07:21 AM
I'm working on a hardware-based solution, using a modified plug-in controller (the one from Radio shack), a timer circuit, and a relay. It will (hopefully) send a command (I'll probably use "M1 ON") a few seconds after being plugged in (or when power comes back on after a blackout), that would trigger a conditonal macro to turn lights on based on the time of day, etc. The delay is to allow the CM15A to power on and be ready to receive commands. I'll post the results when I get some time to complete the hardware modification.

Did you ever come up with a working device?
BVC let's me tell my camera where to go!
:) Murphy is my beta testing pal. He helps me find problems whether I like it or not. :)

Noam

I never could get the advanced circuitry to work correctly. Instead, I bought a PowerFlash module, and connected a short wire between the two terminals. As long as the power goes out for more than a few seconds (I think it needed at least 5 seconds to work), the Powerflash sends the appropriate code when power comes back on, and does so with a slight delay. The CM15A picks up the signal, and runs the appropriate macro (based on day of the week, time of day, etc) to turn on the correct lights. It worked when we had a two-hour outage a few weeks ago.

steven r

Quote from: Noam on April 22, 2006, 09:19:36 PM
...I bought a PowerFlash module, and connected a short wire between the two terminals....

I believe I remember someone suggesting that once. Thanks for testing out the idea. Sure seems like the easiest way detect the power failure.
Does the PowerFlash module only send the code once or is it continuously sending a code while the terminals are shorted and power is on?
BVC let's me tell my camera where to go!
:) Murphy is my beta testing pal. He helps me find problems whether I like it or not. :)

SMF spam blocked by CleanTalk