https://github.com/lupin3000/micropython-dfplayerpro
MicroPython Fermion: DFPlayer Pro - A mini MP3 Player with On-board 128MB Storage
https://github.com/lupin3000/micropython-dfplayerpro
dfrobot esp32 micropython uart
Last synced: about 1 month ago
JSON representation
MicroPython Fermion: DFPlayer Pro - A mini MP3 Player with On-board 128MB Storage
- Host: GitHub
- URL: https://github.com/lupin3000/micropython-dfplayerpro
- Owner: Lupin3000
- Created: 2024-08-15T11:49:13.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-29T12:42:32.000Z (about 1 year ago)
- Last Synced: 2025-06-10T04:03:53.983Z (5 months ago)
- Topics: dfrobot, esp32, micropython, uart
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# MicroPython Library for DFRobot: DFPlayer Pro - A mini
This repository contains the MicroPython UART library for the Fermion: DFPlayer Pro from DFRobot, as well as a very simple example of how to use it.
## Prerequisite
- [DFPlayer Pro](https://www.dfrobot.com/product-2232.html?tracking=Mszf2HlGMStAAKkFfhNgg3QhFFchlilhR47u9vXX9o9Ko6giJYRJQdmwZjbDIvMV)
- [ESP32](https://www.dfrobot.com/search-esp32.html?tracking=Mszf2HlGMStAAKkFfhNgg3QhFFchlilhR47u9vXX9o9Ko6giJYRJQdmwZjbDIvMV) (_MicroPython compatible device_)
- latest [VCP driver]( https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers?tab=downloads) installed (_depending on used OS_)
## Installation
Clone this repository to your local computer. Optional install dependencies (_esptool, rshell, stubs_). Copy code from local to microcontroller.
```shell
# clone repository
$ git clone https://github.com/Lupin3000/MicroPython-DFPlayerPro.git
# change into local repository folder
$ cd MicroPython-DFPlayerPro/
# install python packages (optional)
$ pip3 install -r requirements.txt
# start rshell connection
$ rshell -p [SERIAL PORT]
# upload files and folder
/YOUR/LOCAL/PATH> cp main.py /pyboard/
/YOUR/LOCAL/PATH> cp -r lib/ /pyboard/
```
## Usage
```shell
# start the MicroPython REPL
/YOUR/LOCAL/PATH> repl
```
## Additional information
[DFRobot Wiki](https://wiki.dfrobot.com/DFPlayer_PRO_SKU_DFR0768)