-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Closed
Description
Description:
I'm trying to read (input) voltage over a voltage divider. The simplified test code is fairly simple:
int v = analogRead(voltage_pin);
// output value
WiFi.mode(WIFI_AP);
v = analogRead(voltage_pin);
// output value
The second output is always the maximum range value (ie 4095).
The first is a reasonable expected value.
This happens only for lower pin numbers. In my design gpio 27 and lower. It does not happen for higher pins like 35.
This happens for several boards (different manufacturer) and is stable over time.
I'm a little surprised by this side-effect. Did I miss something?
Metadata
Metadata
Assignees
Labels
No labels