![]() Serial. Serial.println("Serial Rxd is on pin: "+String(RXD2)) Serial.println("Serial Txd is on pin: "+String(TXD2)) Void printDetail(uint8_t type, int value) ***********Notice and Trouble shooting***************ġ.Connection and Diagram can be found hereĢ.This code is tested on Arduino Uno, Leonardo, Mega boards. Like all peripherals, the pins for the UARTs can be logically mapped to any of the available pins on the ESP32. This example shows the all the function of library for DFPlayer.īy [Angelo Lesser General Public License.Īll above must be included in any redistribution You can just use one of them: Serial0: RX0 on GPIO3, TX0 on GPIO1 Serial1: RX1 on GPIO9, TX1 on GPIO10 (+CTS1 and RTS1) Serial2: RX2 on GPIO16, TX2 on GPIO17 (+CTS2 and RTS2) You don't need the Software Serial Port, since the ESP32 can unconfigurate internally the Serial port pin to other pins. Thank you for your time reading this post. The code is the example from the DFRobotDFPlayerMini library install except that I edited the the SoftwareSerial to use HardwareSerial and #defined pins so I could try initializing the HardwareSerial to different pins to try out. I am also using ESP32 Arduino IDE version 1.0.2. The one I am using in the following code is the DFRobotDFPlayerMini official library version 1.0.5. On the separate supply, I have tried 3.3V as well as 5V. I have also tried powering the DFPlayer Mini from a separate power supply and not off the 3.3V from the microcontroller. I have also made sure my TX goes to RX and my RX goes to TX. I have tried different assignments of pins to my UART because I thought I may have had conflicts, but I'm running out of combinations I can try. ![]() I have tried it with and without the 1k resistor on TX. I have tried several variations of this wiring diagram. This leaves me with UART1 free on GPIO9 and GPIO10 silkscreened as such on my board. UART0 because I need to use the USB serial connection to upload my sketch and UART2 because it is used to communicate with flash. This tells me UART0 and UART2 cannot be used. ![]() So, my ESP32 pinout says Serial (UART0) is on TX and RX pins, Serial1 (UART1) is on GPIO9 & GPIO10 and Serial2 (UART2) is on FCS and FD0. I also can reassign which pins are used for UART transmissions.īecause I thought I understood how Serial was working, I thought it would be easy to jump onto another UART and get everything going. ![]() I am using the ESP32 pico kit v4 so I have three UART pin sets. This is my first attempt at using UART for serial transmission other than standard Serial operations. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |