Incorrect ADC values after wake-up

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
jucs
Posts: 35
Joined: 28 Dec 2016 17:56

Incorrect ADC values after wake-up

Post by jucs »

Hi there,

it seems like analogRead() wouldn't work correctly after wake-up from deep sleep mode. This is only the case when the Z-Uno wakes up on its own, the problem does not occur when waking up using the service button / interrupt. The problem persists even when looping "indefinitely" until a correct value is read; a correct value is never read.

Any ideas? Thanks!
michap
Posts: 442
Joined: 26 Mar 2013 10:35
Contact:

Re: Incorrect ADC values after wake-up

Post by michap »

Yes, I can confirm it.
Have seen same issue at weekend - was not sure about it, wanted to recheck at first ;)

Made a METER device - is working fine before changing it to sleeping device.
Could not make it working.

It is simple reproducible - so developers can check it.

Michael
jucs
Posts: 35
Joined: 28 Dec 2016 17:56

Re: Incorrect ADC values after wake-up

Post by jucs »

Thank you very much, I'm glad not to be the only one ;)
User avatar
PoltoS
Posts: 7579
Joined: 26 Jan 2011 19:36

Re: Incorrect ADC values after wake-up

Post by PoltoS »

This week we have found few sever problems with ADC, pins and USB. We will do 2.0.8 very soon. Will be almost no new features, but mostly stability fixes.
jucs
Posts: 35
Joined: 28 Dec 2016 17:56

Re: Incorrect ADC values after wake-up

Post by jucs »

Thanks a lot!
User avatar
PoltoS
Posts: 7579
Joined: 26 Jan 2011 19:36

Re: Incorrect ADC values after wake-up

Post by PoltoS »

Please give it a try on the beta 2.0.8:
viewtopic.php?f=3427&t=24573
michap
Posts: 442
Joined: 26 Mar 2013 10:35
Contact:

Re: Incorrect ADC values after wake-up

Post by michap »

Checked in 2.0.9 - it is working now, thanks!

Michael
Post Reply