Hi, i’m getting error defining ADC pins available in seeed_xiao_esp32c3 board:
esphome:
name: clamps-my
platformio_options:
board_build.flash_mode: dio
esp32:
board: seeed_xiao_esp32c3
variant: esp32c3
framework:
type: esp-idf
sensor:
- platform: adc
pin: GPIO2
attenuation: auto
accuracy_decimals: 5
id: adc_sensor_ct1
- platform: adc
pin: GPIO3
attenuation: auto
accuracy_decimals: 5
id: adc_sensor_ct2
- platform: adc
pin: GPIO4
attenuation: auto
accuracy_decimals: 5
id: adc_sensor_ct3
- platform: adc
pin: GPIO5
attenuation: auto
accuracy_decimals: 5
id: adc_sensor_ct4
So, the last one (GPIO05) it’s showing ESP32C3 doesn’t support ADC on this pin. , but the reference pins shows me that GPIO05 it’s available.
So, how can use GPIO05 as ADC?,Thanks ofr your support!
nickrout
(Nick Rout)
2
Try it without variant:
- it is optional and I think will be implied by board: seeed_xiao_esp32c3
nickrout
(Nick Rout)
3
Looking further, the supported adc’s for esp32c3 seem to be defined here
Note that they are all ADC1. However according to the docs here https://files.seeedstudio.com/wiki/Seeed-Studio-XIAO-ESP32/esp32-c3_datasheet.pdf gpio5 is on ADC2 (see 2.2 Pin Description).
Don’t know if it is fixable for you, but maybe an issue on github might get you more info.
1 Like