Search found 236 matches

by petergebruers
17 May 2018 15:31
Forum: Z-Uno
Topic: Z-Wave Gateway
Replies: 9
Views: 2026

Re: Z-Wave Gateway

Yes, your Z-Uno can implement a relay and/or a dimmer and/or a sensor at the same time. For instance, I have a n RGBW light behind my TV and it also has a CO2 sensor at the same time.
by petergebruers
01 May 2018 20:43
Forum: Z-Uno
Topic: FLiRS - flapping digital pins after wakeup
Replies: 15
Views: 3452

Re: FLiRS - flapping digital pins after wakeup

Hah! the same relay :-)

Your project sounds interesting. I look forward to see your post!
by petergebruers
01 May 2018 19:47
Forum: Z-Uno
Topic: FLiRS - flapping digital pins after wakeup
Replies: 15
Views: 3452

Re: FLiRS - flapping digital pins after wakeup

I did not want to insult you... It is difficult to get to know each other from a few posts. I fully agree, the flapping is an issue! Not for this simple LED, but imagine you want to drive a relay, to switch an appliance... I would work around it this way: first use a bistable relay with 2 coils. The...
by petergebruers
01 May 2018 19:17
Forum: Z-Uno
Topic: FLiRS - flapping digital pins after wakeup
Replies: 15
Views: 3452

Re: FLiRS - flapping digital pins after wakeup

Glad I could help.

I think you underestimate how many times setup() gets called... it is each time the device wakes up, and there are many reasons. It will wake up, for instance, when you "poll" the device because that is a radio transmission. so that will reset the pins and run setup().
by petergebruers
01 May 2018 18:19
Forum: Z-Uno
Topic: FLiRS - flapping digital pins after wakeup
Replies: 15
Views: 3452

Re: FLiRS - flapping digital pins after wakeup

It is not you... wake up is tricky! I see at least one issue... In setup, you have to read NZRAM and set the pins according to that. So, after the devices wakes up, first the pins "flap" as you said, but then in setup you set them to output and also on or off, as indicated by the NZRAM. In my sketch...
by petergebruers
01 May 2018 13:26
Forum: Z-Uno
Topic: Z-UNO based weather Station (German description)
Replies: 8
Views: 2199

Re: Z-UNO based weather Station (German description)

Good luck. I did a quick test, and I have found 2 issues, not related to that solution. The first is you have to use "long", not DWORD for the getter. Otherwise Z-Uno reports only lower 16 bits. The second, I was unable to solve: I have reasons to believe HC2 does not display values above 32767... I...
by petergebruers
30 Apr 2018 23:13
Forum: Z-Uno
Topic: FLiRS - flapping digital pins after wakeup
Replies: 15
Views: 3452

Re: FLiRS - flapping digital pins after wakeup

I'll do some more tests but here is a quick result, wake up tested on pin 9. I use the test sketch at the end of this post. To wake up the device, I pull INT1 to ground. - When the Z-Uno goes to sleep, state is preserved. - When the Z-Uno wakes up, the pin goes to weak pull-up mode after some time. ...
by petergebruers
30 Apr 2018 21:09
Forum: Z-Uno
Topic: FLiRS - flapping digital pins after wakeup
Replies: 15
Views: 3452

Re: FLiRS - flapping digital pins after wakeup

Because the developers haven't answered yet, I decided to do some measurements myself: During reset (press and hold reset), all pins pull-up about 66uA, except: 23 = service (184 uA) 18 = INT1 (97 uA) Service has a 100 k resistor to the 3V regulator plus some additional circuitry. INT1 has a 100 k r...
by petergebruers
30 Apr 2018 18:54
Forum: Z-Uno
Topic: Z-UNO based weather Station (German description)
Replies: 8
Views: 2199

Re: Z-UNO based weather Station (German description)

Thanks for the update... I have not tried this yet, but I have found how to get 0.11 Lux in the lowest range and 100.000 Lux high range. The trick is, to modify the "measurement time registers" of the BH1750 https://gist.github.com/Koepel/b70f81c71a52d8d6d3da86b9fe56d50e Since you mentioned the high...
by petergebruers
28 Apr 2018 15:27
Forum: Z-Uno
Topic: FLiRS - flapping digital pins after wakeup
Replies: 15
Views: 3452

Re: FLiRS - flapping digital pins after wakeup

Quick update... A bit more detail in the ZM5202 datasheet... But this does not explain the "flapping"...

"Some reset methods deliberately leave the state of GPIO pins unchanged, while other GPIO pins are set to high impedance with an internal
pull-up."
ZM5202 reset.png
ZM5202 reset.png (80.91 KiB) Viewed 2534 times