Replies: 3 comments
-
What chip/board are you using? If it is of the ESP32 family, please check the Espressif documentation if pin 15 is free to use for ADC. For example, pin 15 of the ESP32 belongs to ADC block 2 which should not be used when WiFi is active (see https://docs.espressif.com/projects/esp-idf/en/v4.4/esp32/api-reference/peripherals/adc.html for the ESP32 for ADC limitations). |
Beta Was this translation helpful? Give feedback.
-
Note that |
Beta Was this translation helpful? Give feedback.
-
@bixb922 - You answered it. I am running a ESP32-DevKit1 v1 and by using the ADC on 35 and 39 the issues resolved. Thanks a ton for the help I would have never found that. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Need some assistance with async, I wrote a small program to monitor ADC values and used async to check the voltage values but when ever I enable the part of the function to first connect to wifi the async errors out , if i comment out the wifi connect all is good. When enabled the error is triggered by an ADC.read() call. Not sure if I am missing something obvious here. Thanks for any help. Great work on the project!
The error I get is :
Traceback (most recent call last):
File "", line 7, in
File "uasyncio/core.py", line 1, in run
File "uasyncio/core.py", line 1, in run_until_complete
File "uasyncio/core.py", line 1, in run_until_complete
File "", line 4, in main
File "uasyncio/funcs.py", line 1, in gather
File "uasyncio/core.py", line 1, in run_until_complete
File "", line 4, in check_limit_switches
OSError: [Errno 116] ETIMEDOUT: ESP_ERR_TIMEOUT
Here is the code :
from machine import Pin, ADC
from time import sleep
import uasyncio
import network
Beta Was this translation helpful? Give feedback.
All reactions