Possible to wake from sleep on both rise and fall?

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
Posts: 3
Joined: 30 Jul 2020 20:53

Possible to wake from sleep on both rise and fall?

Post by solidroot »


I don't have a Z-Uno yet, but the product looks great and I am thinking of buying one to begin with home automation. I don't have too much experience with hardware, but I am a software developer by trade.

Anyways, I am wondering if this is possible:

I will have a simple switch hooked up to the Uno. The Uno will be powered by battery, so efficient use of power is of the utmost importance.

Whenever the switch opens OR closes, I want the device to wake up, and send a message over the Z-Wave protocol. Once it has been sent, the device can go back to sleep.

Theoretically, to my amateur mind this looks to be possible using interrupts (set an interrupt on both rise and fall, then run the code to send the message). However, I don't know what state a sleeping device will be in... The main question is: if the device is put to sleep when the switch is CLOSED, will there be any current flowing through it while asleep, in order to detect a FALL via interrupt?

And as an aside, if anyone has any suggestions for books or online courses etc. in order to better learn the electronics/hardware side of things, I would love to hear them. I've just ordered an Arduino IoT kit (with breadboard, wires, a bunch of resistors etc.) to get some practice, which I hope will translate to Z-Uno.


Post Reply