ESP8266 Developer Zone The Official ESP8266 Forum 2017-01-20T13:20:16+08:00 https://bbs.espressif.com:443/feed.php?f=66&t=3198 2017-01-20T13:20:16+08:00 2017-01-20T13:20:16+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3198&p=11142#p11142 <![CDATA[Re: ADC Feature request.]]> Statistics: Posted by Guest — Fri Jan 20, 2017 1:20 pm


]]>
2017-01-14T16:37:54+08:00 2017-01-14T16:37:54+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3198&p=11112#p11112 <![CDATA[Re: ADC Feature request.]]>
I would like to stay on the NON OS SDK. Also, I would like to maintain a WiFi connection while reading the ADC. I have tried forcing modem sleep for power savings, I was automatically disconnected from the access point every time. Your post got me thinking about this in a new way.

Since I am asking for a feature, I don't expect this change to be high priority. It would be nice if Espressif developers would consider this request.

I am used to working with 8 bit microcontrollers that generates an interrupt when the ADC finishes an acquisition. I think the ADC is used by the modem when connected to an access point. This would make it risky to control the ADC directly. That is why I am requesting a callback function.

Thank you

Statistics: Posted by MackPI — Sat Jan 14, 2017 4:37 pm


]]>
2017-01-13T14:55:05+08:00 2017-01-13T14:55:05+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3198&p=11110#p11110 <![CDATA[Re: ADC Feature request.]]> This process will reduce overhead for CPU but will not be effective for low latency ADC sampling, i.e. the time between you decide to measure a sample and the time when you actually read the ADC will be in micro-seconds. Long lag! But ok for tasks like regular sampling.

If you need to sample the ADC when the system enters automatic sleep mode between Wi-Fi activity, you can create an idle task hook in the RTOS SDK and use that for ADC sampling. I have not tested this but the ESP8266 enters modem sleep when idle task is executed. So that is where you go for the ADC!
Let me know that helps (should work on RTOS SDK).

Statistics: Posted by Guest — Fri Jan 13, 2017 2:55 pm


]]>
2016-12-17T06:31:11+08:00 2016-12-17T06:31:11+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3198&p=10915#p10915 <![CDATA[ADC Feature request.]]>
I would like to request an ADC sample, The system would wait until the modem is ready to sleep, starts a fast read.
Then when the result is ready I would like a callback that will pass on the results.

I don't know if this is possible, but I think it could reduce a lot of overhead when sampling the ADC often.
Also by taking advantage of the modem sleep cycle, maybe the values could be more accurate.

I am currently using the NON-OS SDK version 2.0.0

Thank you.

Statistics: Posted by MackPI — Sat Dec 17, 2016 6:31 am


]]>