Page 1 of 1

Incorrect ADC values after wake-up

Posted: 10 Jan 2017 04:19
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!

Re: Incorrect ADC values after wake-up

Posted: 10 Jan 2017 11:24
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

Re: Incorrect ADC values after wake-up

Posted: 10 Jan 2017 12:32
by jucs
Thank you very much, I'm glad not to be the only one ;)

Re: Incorrect ADC values after wake-up

Posted: 10 Jan 2017 22:35
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.

Re: Incorrect ADC values after wake-up

Posted: 10 Jan 2017 23:47
by jucs
Thanks a lot!

Re: Incorrect ADC values after wake-up

Posted: 28 Feb 2017 00:00
by PoltoS
Please give it a try on the beta 2.0.8:
viewtopic.php?f=3427&t=24573

Re: Incorrect ADC values after wake-up

Posted: 15 Mar 2017 15:43
by PoltoS

Re: Incorrect ADC values after wake-up

Posted: 17 Mar 2017 12:32
by michap
Checked in 2.0.9 - it is working now, thanks!

Michael