You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Board: ESP32 Dev Module
IDE name: Arduino IDE
Flash Frequency: 80Mhz
Upload Speed: 115200
Description:
I am trying to read analog value from some sensors using ESP32 and that values are needed to be viewed in a browser, for that I have made ESP32 as AP, but after setting it as AP the only raw analog read value that I get is 4095.
Above is a test code to verify this issue after setting the ESP32 as AP the analogRead function only returns a value of 4095 only, otherwise it gives correct values.
I don't know whether I am missing out anything. Please help me out with this problem.
Thanks.
The text was updated successfully, but these errors were encountered:
/** Pin number for LDR analog input pin */int ldrPin = 36;
/** LDR light value = 0 if not updated */long newLDRValue = 0;
voidsetup(void) {
// Initialize analog port for LDRpinMode(ldrPin,INPUT);
adcAttachPin(ldrPin);
analogReadResolution(11);
analogSetAttenuation(ADC_6db);
}
voidloop(void) {
// Read analog value of LDR
newLDRValue = analogRead(ldrPin);
}
I made a list of ADC channel pin assignments in my WiKi
Hardware:
Board: ESP32 Dev Module
IDE name: Arduino IDE
Flash Frequency: 80Mhz
Upload Speed: 115200
Description:
I am trying to read analog value from some sensors using ESP32 and that values are needed to be viewed in a browser, for that I have made ESP32 as AP, but after setting it as AP the only raw analog read value that I get is 4095.
Test code:
Above is a test code to verify this issue after setting the ESP32 as AP the analogRead function only returns a value of 4095 only, otherwise it gives correct values.
I don't know whether I am missing out anything. Please help me out with this problem.
Thanks.
The text was updated successfully, but these errors were encountered: