-
Notifications
You must be signed in to change notification settings - Fork 7.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conflict Between Wifi & analogRead() in ESP32s #4187
Comments
If I remember correctly, ADC2 pins are not capable of analogread when wifi
is in use. Use an ADC1 pin instead.
Le dim. 19 juill. 2020 7 h 39 a.m., Muhamad Arwin Wijaya <
notifications@github.com> a écrit :
… [image: ESP32-Pinout]
<https://user-images.githubusercontent.com/54936971/87873795-935d8300-c9ee-11ea-9a98-7eafa7cc55d6.png>
I have a problem about esp32s, where when I use the Wifi.h lib some
analogRead () always produces a value of 4095, I try on pin 0 of esp32s, is
there a pin that can be used simultaneously between wifi and analogRead ()?
I attach a picture pinout esp32s Thanks you
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4187>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHBFDCSJAWCDYEXQDVEGH6TR4LLP7ANCNFSM4PBHUIFQ>
.
|
ADC1 pin is IO34, IO35, IO32, IO33 @sansillusion ? |
I would think so, I did not have to use ADC yet, just remember seeing this being a recurrent issue for people here. |
@marwinwijaya all pins above 30 are ADC1. |
thank you @sansillusion and @atanisoft |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions. |
我在用 esp32cam 时,wifi 与 adc2 不能同时使用,使用 wifi 时 adc2 读数一直为0。后来,我尝试交替使用 wifi 与 adc2 ,例如每10秒钟断开wifi一次,读取adc2的值,然后重新连接wifi,使两个功能都能使用,经过测试,能够正常使用。 Arduino 的代码如下:
|
I have a problem about esp32s, where when I use the Wifi.h lib some analogRead () always produces a value of 4095, I try on pin 0 of esp32s, is there a pin that can be used simultaneously between wifi and analogRead ()? I attach a picture pinout esp32s Thanks you
The text was updated successfully, but these errors were encountered: