-
Notifications
You must be signed in to change notification settings - Fork 7.6k
OTA and analogRead #474
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
Comments
I do not see why OTA would mess with anything. It's only network and flash access. |
I don't understand it to, but it's not working. |
Hey @szerwi since you said you have OTA code I'm assuming you obviously have WiFi on. |
yup... I was confused at thinking it was the other ADC that would go off |
So all ADC10+ pins belong to ADC2? Thare are only 6 pins that belong to ADC1? And is there any way to use ADC2 pins while OTA enabled? I need at least 7 analog pins for my project :/ |
I think it is a design limitation that ADC2 will not work, I do not know the specifics of why, but ADC0-ADC7 is 8 Analog pins, is that not enough? |
@Raienryu97 but there's no ADC1_1 and ADC1_2, or am I blind? |
I realised that two sensors can be connected to digital pins, so I think 5 analog pins are enough. Will pins that are ADC2 work as digital pins properly when WiFi enabled? |
As digital pins, they should work. |
Ok. Thanks for help. It's stupid that while WiFi enabled, this analogs don't work... :D |
I've connected sensor to ADC1 pin and I'm calculating something. With OTA disabled the result is -0.9, but with OTA enabled the result is -1.2. Any ideas? :D |
Sometimes when the ESP is turning on, and when OTA is enabling I have an error: Guru Meditation Error of type IllegalInstruction occurred on core 0. Exception was unhandled. Backtrace: 0x400fbf44:0x3ffd0ab0 0x4010318f:0x3ffd0b00 0x4010395c:0x3ffd0bd0 0x40093a04:0x3ffd0bf0 0x400952de:0x3ffd0c40 CPU halted. But it's only from time to time, not always... |
Use the esp exception decoder and paste your backtrace there, that should give you an idea :) |
There are 3 different errors that are shown randomly: 0x4010bd87: rc_get_trc at ?? line ? 0x4008c5ce: write_txrate_power_offset at ?? line ? 0x400fbf44: ieee80211_parse_beacon at ?? line ? |
seems to be bad power? |
@me-no-dev my power module gives 500mA or 1A, so it is enough. |
it really depends on many many things. Cable, actual output power, voltage drop at current spikes. Random errors like those usually mean that |
Hi,
When I have OTA enabled in my code, the analog reads are always 4095. I use pins 14, 4 and 2 and all of them aren't working.
The text was updated successfully, but these errors were encountered: