Re: i want to map analog pins on 5volt between 0 to 1023 (10 bit resolution)
Posted: Thu Apr 26, 2018 4:51 pm
You could use both an Arduino and an ESP32, getting the Arduino to transmit data from the Arduino to the ESP32 via SPI or I²C communication. You may need to use voltage dividers or bidirectional level shifters to ensure the ESP32 inputs do not go above 3.3V. For I²C see the options here.
The ESP32 analogue to digital converters do not have a full-scale range of 0V to 3.3V. With reference to this documentation, the programmable attenuator allows full-scale voltage of roughly 1.1V, 1.5V, 2.2V or 3.9V (but input signal must never go above 3.3V). As shown by the graph near the top of that documentation, the range does not quite extend down to zero volts.And ESP32 gives 1023 on 3.3v so i will never get proper output for voltage greater then 3.3.