Hope someone can help me. I have an esp32-cam connected to home assistant. I want to connect a dfplayer mini to the esp32-cam module. My question is - which pins can I use for the uart tx connection? I can’t get my yaml file below to work, so can only think I have used the wrong pin to send commands to the dfplayer. I know it plays the mp3 file by manually triggering it. My yaml code is
api:
reboot_timeout: 0s
ota:
esp32_camera:
external_clock:
pin: GPIO0
frequency: 20MHz
i2c_pins:
sda: GPIO26
scl: GPIO27
data_pins: [GPIO15, GPIO18, GPIO19, GPIO21, GPIO36, GPIO39, GPIO34, GPIO35 ]
vsync_pin: GPIO25
href_pin: GPIO23
pixel_clock_pin: GPIO22
power_down_pin: GPIO32
resolution: 640X480
name: camera.doorbell
# DFplayer configs
uart:
tx_pin: GPIO15
baud_rate: 9600
on_press:
then:
- dfplayer.set_volume: 25
- delay: 150ms
- dfplayer.play: 1
- switch.turn_on: led1