Z-Uno-FLiRS-LED-DEMO: A Battery Operated LED Light (FLiRS)

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
petergebruers
Posts: 255
Joined: 26 Jul 2015 17:29

Z-Uno-FLiRS-LED-DEMO: A Battery Operated LED Light (FLiRS)

Post by petergebruers »

I always wanted to have a battery operated Z-Wave device, which I could control... For Instance, an LED light. Apart from a "Siren" and a certain Remotec IR controller, I could not find any other FLiRS implementation. Well, that was 2 years ago and ... now, in 2017, FLiRS thermostats exist and we have the Z-Uno! I thought it would be cool to have my own battery powered LED light! Just for fun and giggles. With Z-Uno firmware 2.1.1 this is possible! So I wrote this sketch, added lots of debugging over serial and lots of comments. As an LED I use the built-in white LED, so you can try this sketch without adding any hardware. Power consumption is really low. Idle current on my test board is about 100 uA at 3.6 V and around 70 uA at 3.0V. Of course, it still uses 40 mA for at least a second if it wakes up, so you need a good battery with low internal resistance.

This is my second published Z-Uno sketch, so I would really appreciate it if you could have a look at it and give me some feedback.

Features
- FLiRS means it can respond to commands from the controller in 1 second. That is not "superfast" but it is OK for this application.
- Local on/off possible by clicking the "Service button". Reports state change to the controller.
- Comments in source code.
- Debugging output to Serial0 or Serial1. Can be interesting to watch the order of execution.
- Blinks 1,2 or 3 times to give a visual clue about the reason for wake-up. See code for details.


Code and full instructions:

https://github.com/petergebruers/Z-Uno-FLiRS-LED-DEMO
Post Reply