ESP32 and Uart Soundboard help

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
phando
 
Posts: 38
Joined: Wed Apr 11, 2018 1:01 am

ESP32 and Uart Soundboard help

Post by phando »

My current project is using an ESP32 and a Adafruit Audio FX Sound Board. No matter what I do, the sound board is always 'not found'. Do you have an ESP32 and Soundboard example? I have been trying the sample from the Adafruit site as well as examples from the EspSoftwareSerial library. The initial reset always returns the following error.

Code: Select all

E (103) gpio: gpio_set_level(226): GPIO output gpio_num error
E (107) gpio: GPIO can only be used as input mode
[   115][E][esp32-hal-gpio.c:130] __pinMode(): GPIO config failed
I have tried using various TX/RX pins, but that doesn't seem to make a difference.
I have tried using the builtin Serial1 as well as the EspSoftwareSerial library. Should I be using a different SoftSerial library?

Any help would be much appreciated as I am closing in on finishing this project. Thanks!

User avatar
adafruit_support_carter
 
Posts: 29483
Joined: Tue Nov 29, 2016 2:45 pm

Re: ESP32 and Uart Soundboard help

Post by adafruit_support_carter »

What ESP32 based board are you using?

User avatar
phando
 
Posts: 38
Joined: Wed Apr 11, 2018 1:01 am

Re: ESP32 and Uart Soundboard help

Post by phando »

Thank you for the response.

The TTGO Lora Oled V2.
My last attempt was to go into the HardwareSerial.cpp and change the TX1 and RX1 pins. I have ensured that my UG is going to ground as well.

User avatar
adafruit_support_carter
 
Posts: 29483
Joined: Tue Nov 29, 2016 2:45 pm

Re: ESP32 and Uart Soundboard help

Post by adafruit_support_carter »

Yep, make sure the UG pin on the Sound FX board is tied to ground for UART mode:
https://learn.adafruit.com/adafruit-aud ... ns-1386544

Are you making sure to connect TX to RX and RX to TX? And not TX to TX / RX to RX?

User avatar
phando
 
Posts: 38
Joined: Wed Apr 11, 2018 1:01 am

Re: ESP32 and Uart Soundboard help

Post by phando »

Back in action!
I updated the TX and RX pins in HardwareSerial.cpp. Next I moved to Serial2 in leu of Serial1. Lastly and I think what was key is moving my rest pin from 35 to 25. I saw some code in the libraries limiting how high the pin numbers could be.

Thanks for looking.

User avatar
phando
 
Posts: 38
Joined: Wed Apr 11, 2018 1:01 am

Re: ESP32 and Uart Soundboard help

Post by phando »

Final solution....
Rolled back the changes in HardwareSerial.cpp and declared RX2 and TX2 in my platform.ini

Code: Select all

-D RX2=14 
-D TX2=12

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”