The Adafruit QT Py provides 4 AI channels. From the Adafruit documentation I crossed it to the ESP32-S3 datasheet and derrived the following table:
My configuration is as follows:
esphome:
name: 15a-battery-charger
friendly_name: 15A Battery Charger
esp32:
board: esp32-s3-devkitc-1
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "wCChDvw1VhKU2Dl0RJrLEx7R4R2WvfojvYObxt3eyrg="
ota:
password: "287d2074acd2415ee5bd552ee6fc0d62"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "15A-Battery-Charger"
password: "C6FyC6fLE3zR"
captive_portal:
#--------------------------------------------------
sensor:
- platform: adc
pin: 24
name: "Analog Input 1"
update_interval: 1s
filters:
- offset: .1
- multiply: 2
- platform: adc
pin: 23
name: "Analog Input 2"
update_interval: 1s
filters:
- offset: .2
- multiply: 2
- platform: adc
pin: 14
name: "Analog Input 3"
update_interval: 1s
filters:
- offset: .3
- multiply: 2
- platform: adc
pin: 13
name: "Analog Input 4"
update_interval: 1s
filters:
- offset: .4
- multiply: 2
When I Install the code I get the following error for Pin’s 23 & 24:
INFO ESPHome 2024.3.1
INFO Reading configuration /config/esphome/15a-battery-charger.yaml...
Failed config
sensor.adc: [source /config/esphome/15a-battery-charger.yaml:35]
platform: adc
The pin GPIO24 is not usable on ESP32-S3s.
pin: 24
name: Analog Input 1
update_interval: 1s
filters:
- offset: 0.1
- multiply: 2
sensor.adc: [source /config/esphome/15a-battery-charger.yaml:43]
platform: adc
The pin GPIO23 is not usable on ESP32-S3s.
pin: 23
name: Analog Input 2
update_interval: 1s
filters:
- offset: 0.2
- multiply: 2
The ESP32-S3 has 20 available AI channels. The board “driver” esp32-s3-devkitc-1 after trial and error does install with Pins 6-10 configured. Am I missing something or is it possible that esp32-s3-devkitc-1 has a bug for Analog Inputs? If it’s the later where is a good spot to report this bug?