classicvef.blogg.se

Esp32 hardwareserial
Esp32 hardwareserial







esp32 hardwareserial
  1. #ESP32 HARDWARESERIAL HOW TO#
  2. #ESP32 HARDWARESERIAL MOD#

I used curl to send commands to WLed, e.g.:Ĭurl-7.42.0-win64>curl -X POST “ IP address]/json/state” -d -H “Content-Type: application/json”

  • loop (true/false): ‘true’ triggers the next track after the current one finished.
  • volume ( 0 -30): volume setting (max is 30 the dfplayer supports).
  • random (true/false): ‘true’ sets random track selection within the folder, otherwise just the next file.
  • Yhe Serial Monitor on PC receives the data and display it.
  • Track number: which track to play in the given folder It is designed for two purposes: ESP32 PC: Your code on ESP32 send data via Serial.
  • play (true/false): ‘true’ will trigger a start using track, folder, random and loop settings.
  • reset (true/false): 'true’will trigger a dfplayer reset.
  • My code supports the following instructions (based on playing from a SD card): The default configuration of the first led output pin was also pin 16 in my case, so make sure to check and change if that is the case. Make sure to use resistors in the RX/TX lines of the dfplayer otherwise it will produce very annoying noise! Some remarks on the hardware: The dfplayer is connected to pins 16 and 17 (default Serial2) but can be configured (did not test another pin configuration though). Also make sure to add the dfRobotDfplayerMini (version 1.0.5) to your project.

    esp32 hardwareserial

    #ESP32 HARDWARESERIAL HOW TO#

    I assume you know how to add these files to a visualcode project based on 0.14.0-b2 of WLED and build the solution. I am struggling most with reliably reading a status change to trigger a new action if needed. It kind of works but is not finished yet. Tujuan dari percobaan kali ini adalah mengetahui protokol I2C dan UART bekerja pada. Thanks in advance for the help and/or ideas! Pada percobaan kali ini, saya mencoba untuk mengetahui bagaimana penerapan protokol I2C dan UART pada ESP32. I have seen the example of the DMX code where Serial2 is used, so I assume it is possible to use it. So I assume it has to do with Wled, not with my ESP. Maybe good to mention that I tried using the library with Serial2 in my arduino environment first and that works perfectly well. If I try to use Serial1 (redirecting pins to othe GPIOs) or Serial2 (default pins 16, 17) on my ESP32, the dfplayer does not work.ĭoes anybody know if I need to take special action to get the other Uarts working or do I need to manage GPIO pins for them to work? After the initial struggles to get everything building, I found out that I can only get the dfplayer to work using the default Serial Uart (and default pins for UART0) which is normally used for debugging.

    #ESP32 HARDWARESERIAL MOD#

    I followed the user mod v2 example and tailored it to my needs using the Makuna/DFMiniMp3 library. My goal is to add a cheap dfplayer mini (mini MP3 player) to my project. I recently started to learn to make usermods. First of all I would like to mentioned that WLed is an awesome project.









    Esp32 hardwareserial