Difference between revisions of "MP3 player"
Jump to navigation
Jump to search
Grovkillen (talk | contribs) m (→Hardware) |
Grovkillen (talk | contribs) m (→Commands) |
||
Line 21: | Line 21: | ||
= Commands = | = Commands = | ||
− | + | ||
− | + | {| class="wikitable sortable" | |
− | + | |- | |
− | + | ! Command | |
+ | ! Value | ||
+ | ! Extra information | ||
+ | |- | ||
+ | |||
+ | | play,<track> | ||
+ | | '''1...3000''' | ||
+ | | Plays the n-th track 1...3000 on SD-card in root folder. The track number is the physical order - not the order displayed in file explorer! (The track will be played once and then stopped.) | ||
+ | |- | ||
+ | |||
+ | | stop | ||
+ | | - | ||
+ | | Stops actual playing sound. | ||
+ | |- | ||
+ | |||
+ | | vol,<volume> | ||
+ | | '''1...30''' | ||
+ | | Set volume level. | ||
+ | |- | ||
+ | |||
+ | | eq,<type> | ||
+ | | '''0...5''' | ||
+ | | Set the equalizer type (IS NOT SUPPORTED BY YX5300)<br>0=Normal<br>1=Pop<br>2=Rock<br>3=Jazz<br>4=classic<br>5=Base | ||
+ | |- | ||
+ | |} |
Revision as of 22:07, 10 July 2017
Contents
Introduction
The ESP module can control the MP3-player module "DRPlayer DRF0299" and the "YX5300" module with 3.5mm output for speaker(s).
Hardware
Circuit wiring:
1st-GPIO -> ESP TX to module RX (Note that the TX on the mp3-module is not used!) 3.3-5V to module VCC (can be more than 100mA) GND to module GND Speaker to module SPK_1 and SPK_2 (not to GND!) (optional) module BUSY to LED driver (low active)
ESP Easy
Use the device tab on the ESP Easy webinterface and create a new task by editing one of the available tasks. Select "Notify - " from the dropdown box.
Enter the GPIO pin for serial TX.
Commands
Command | Value | Extra information |
---|---|---|
play,<track> | 1...3000 | Plays the n-th track 1...3000 on SD-card in root folder. The track number is the physical order - not the order displayed in file explorer! (The track will be played once and then stopped.) |
stop | - | Stops actual playing sound. |
vol,<volume> | 1...30 | Set volume level. |
eq,<type> | 0...5 | Set the equalizer type (IS NOT SUPPORTED BY YX5300) 0=Normal 1=Pop 2=Rock 3=Jazz 4=classic 5=Base |