Peripherals; Analog-To-Digital Converter (Adc) - Espressif Systems ESP Faq

Table of Contents

Advertisement

Chapter 4. Software framework

4.4 Peripherals

4.4.1 Analog-to-Digital Converter (ADC)

What is the resolution of ESP8266 ADC?
• The 10-bit ESP8266 ADC has a theoretical resolution of 2
• After connected to a router, the ESP8266 will enter Modem-sleep mode from STA mode, causing the change
of the reference value inside the chip. Therefore, the ADC could measure the data change.
• If you expect an accurate result, please read the ADC value using function system_adc_fast_read after
turning off Wi-Fi.
How to get the Bitmap information of the ADC register?
Since the ADC of ESP8266 is highly integrated with the internal RF circuit, the Bitmap and register
information is not opened. Please contact
How many channels does ESP32 ADC have? What is the sampling rate and significant digit?
• The ESP32 ADC has 18 channels.
• If you stop Wi-Fi and use ADC DMA, the sampling rate does not exceed 2 MHz theoretically. However, we
recommend you to use a smaller sampling rate in practice.
• Its sampling rate can reach 1000 times per second with Wi-Fi.
• The internal significant digit of ADC is 12 bits.
When calling the API adc_read_fast() with ESP8266, will it cause a Wi-Fi disconnection?
• Please turn off Wi-Fi and interrupts first before calling adc_read_fast(). Please refer to the
of this API.
• Since the API adc_read_fast() performs continuous acquisition and the ADC is partially coupled
internally with Wi-Fi RF, so it is not possible to call this function with Wi-Fi turned on.
• Please use adc_read() for ADC acquisition when Wi-Fi is on. To ensure data stability, you need to use
function esp_wifi_set_ps(WIFI_PS_NONE) to turn off Wi-Fi Modem-sleep mode.
Note: ADC sampling rate: can reach 100000 times per second with Wi-Fi turned off, and 1000 times per second
with Wi-Fi turned on.
Espressif Systems
10
sales@espressif.com
62
Submit Document Feedback
= 1024.
if you have any special needs.
Specification
Release master

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP and is the answer not in the manual?

This manual is also suitable for:

Esp32Esp8266Esp32-s2Esp32-c3Esp32-s3

Table of Contents