I am moving from UNO to Adafruit HUZZAH32 ESP32. I am having trouble understanding how to modify my code to deal with the 12-bit versus 10-bit floating point math. Specifically, my Analog Read comes back with the larger number on the ESP32. I understand it’s the difference between 1024 and 4096 steps in the voltage measurement from the sensor. Is there some specific math I need to do?
I’m sorry, but I didn’t understand your question.
In the ESP32, the analog read gives you a higher resolution. This means that an analog sensor will give values between 0 and 4096. If you do any calculations after getting the sensor readings, you need to keep in mind that the maximum value corresponds to a reading of 4096.
Let me know if this answers your question as I’m not sure if I understood your question.