• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Pin descriptions

Q&A Forum › Category: ESP32 › Pin descriptions
0 Vote Up Vote Down
Robert Fujita asked 5 years ago

How are ADC_1 & ADC_2 defined in pin descriptions? Is there a way to switch between the two?

5 Answers
0 Vote Up Vote Down
Steph answered 5 years ago

Hi Robert,

All the details can be found here :

ESP32 Pinout Reference: Which GPIO pins should you use?

Analog to Digital Converter (ADC)

The ESP32 has 18 x 12 bits ADC input channels (while the ESP8266 only has 1x 10 bits ADC). These are the GPIOs that can be used as ADC and respective channels:

  • ADC1_CH0 (GPIO 36)
  • ADC1_CH1 (GPIO 37)
  • ADC1_CH2 (GPIO 38)
  • ADC1_CH3 (GPIO 39)
  • ADC1_CH4 (GPIO 32)
  • ADC1_CH5 (GPIO 33)
  • ADC1_CH6 (GPIO 34)
  • ADC1_CH7 (GPIO 35)
  • ADC2_CH0 (GPIO 4)
  • ADC2_CH1 (GPIO 0)
  • ADC2_CH2 (GPIO 2)
  • ADC2_CH3 (GPIO 15)
  • ADC2_CH4 (GPIO 13)
  • ADC2_CH5 (GPIO 12)
  • ADC2_CH6 (GPIO 14)
  • ADC2_CH7 (GPIO 27)
  • ADC2_CH8 (GPIO 25)
  • ADC2_CH9 (GPIO 26)

And what do you mean by that?

Is there a way to switch between the two?

Take a look at this tutorial to better understand how to use them:

ESP32 ADC – Read Analog Values with Arduino IDE

0 Vote Up Vote Down
Robert Fujita answered 5 years ago

What does ADC1_ & ADC2_ refer to? Are they set values for every board? I have an Adafruit Huzzah32 board & their ADC1 & ADC2 define different pins. Just wondering if they can be reassigned?

0 Vote Up Vote Down
Steph answered 5 years ago

Adafruit Huzzah32 – ESP32 Feather

Take a look at section GPIO & Analog Pins.

Reassignment is not possible here…
MCU (ESP32) pins are assigned by Espressif.
PCB (Huzzah32) pins are assigned by Adafruit.

0 Vote Up Vote Down
Robert Fujita answered 5 years ago

Thanks for answering my questions. I understand the use of these pins better now.

0 Vote Up Vote Down
Steph answered 5 years ago

My pleasure 😉
Glad you figured that out.

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.