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!
Incorrect ADC values after wake-up
Re: Incorrect ADC values after wake-up
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
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
Thank you very much, I'm glad not to be the only one
Re: Incorrect ADC values after wake-up
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
Please give it a try on the beta 2.0.8:
viewtopic.php?f=3427&t=24573
viewtopic.php?f=3427&t=24573
Re: Incorrect ADC values after wake-up
Checked in 2.0.9 - it is working now, thanks!
Michael
Michael