Skip to content

rolfz/Mqtt_MP3_Server

Repository files navigation

Mqtt MP3 Player based on Wemos-D1 ESP8266 circuit and VS1053 audio module

alt text

Functionality:

This module was created to be controlled by Node-Red over a MQTT Broker.
The module understands various tags such as:
		 /Zaudio/play  "file to play with extension" 8.3 format
		 /Zaudio/volume xxx (volume in db) 0 to 100db is possible
		 /Zaudio/command stop (will stop the file played)
		
The module also allows to connect a Neoled display module with 7 leds
		 /Zaudio/neoled #xxyyzz  (set color in hex rgb format

Hardware:

Wemos D1 module, SPI bus used to communicate with audio module

Adafruit VS1053 module with 3W amplifier PRODUCT ID: 3436

Micro SD card 128mB our larger FAT format.

Connections:
		Wemos D1		-      VS1053   -   Neoled
		D8						MISO
		D7						MOSI
		D5						SCK
		D4						SD-CS
		D6						MP3-CS
		D3						DREQ
		DO						XDCS
		D2									IN
		+5V						AUDIO +5V	5V
		+3V						DIGIT.+3V

! Use min. 5V 2Amp USB to supply both circuits + LED's

Software Libraries:

Adafruit_Neopixel
Adafruit_VS1053_Library-master
pubsubclient (MQTT library)

Software Main file:

mqtt_mp3_server.ino contains all customized code based on the MQTT client example
wifi_settings.h 	contains the WIFI private setting

Using the Zaudio module with Node-red

Zaudio was tested with a connection to an MQTT brocker running on a RPI3 board
	Software installed was Openhabian with MQTT and Node-red modules installed.

alt text

v1.1 rz 21.2.2018	added OTA code
v1.0 rz 28.1.2018   orginial code	

About

MQTT Audio Player based on ESP8266

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published