Bluetooth Audio Receiver Board [B210]



https://www.youtube.com/watch?v=k3NmiGb3d9E



* Specs

Audio input mode:Bluetooth receiver

USB decode and play

TF card decoding playback

Support Playback Format: MP3,WMA,WAV,FLAC

Power Supply: DC 5V (original phone charger can power small USB plug)

Board Size:50 x 40mm


Preamp output can be directly promote the headset and also can be followed

by the use of the power amp



* Contents

- Connect 


- Sample




Posted by RD IoT RDIoT

댓글을 달아 주세요

Serial MP3 Music Player Module for Arduino (YX5300) [B208]





https://www.youtube.com/watch?v=D9rsBf1b3CM


GitHub : https://github.com/rdiot/rdiot-b208


* Specs

The module is a kind of simple MP3 player device which is based on a high-quality MP3 audio chip---YX5300. It can support 8k Hz ~ 48k Hz sampling frequency MP3 and WAV file formats.

There is a TF card socket on board, so you can plug the micro SD card that stores audio files. MCU can control the MP3 playback state by sending commands to the module via UART port, such as

switch songs, change the volume and play mode and so on. You can also debug the module via USB

to UART module. It is compatible with Arduino / AVR / ARM / PIC.


Features:

1. Support sampling frequency (kHz): 8 / 11.025 / 12 / 16 / 22.05 / 24 / 32 / 44.1 / 48

2. High quality


3. Support file format: MP3 / WAV

4. Support Micro SD card, Micro SDHC Card

5. 30 class adjustable volume

6. UART TTL serial control playback mode, baud rate is 9600bps

7. Power supply can be 3.2 ~ 5.2VDC

8. Control logic interface can be 3.3V / 5V TTL

9. Compatible with Arduino UNO / Leonardo / Mega2560 / DUE



* Contents

- interface 


- Connect 

Serial MP3 Player - Arduino

GND - GND

VCC - 5V

TX - D5

RX - D6


- Commonly Command bytes Descriptions


- tested source code 

 : https://github.com/rdiot/rdiot-b208/blob/master/SerialMp3PlayerControl.ino.ino


- Key Code

#include <SoftwareSerial.h>


#define ARDUINO_RX 5 // TX - Arduino RX

#define ARDUINO_TX 6 // RX - Arduino TX


SoftwareSerial mySerial(ARDUINO_RX, ARDUINO_TX);


unsigned char playmode = 1; 

  #define PLAY  1

  #define PAUSE 0

static int8_t Send_buf[8] = {0} ;

  

/************Command byte**************************/

#define CMD_NEXT_SONG 0X01

#define CMD_PREV_SONG 0X02

#define CMD_PLAY_W_INDEX 0X03

#define CMD_VOLUME_UP 0X04

#define CMD_VOLUME_DOWN 0X05

#define CMD_SET_VOLUME 0X06

#define CMD_SINGLE_CYCLE_PLAY 0X08

#define CMD_SEL_DEV 0X09

#define DEV_TF 0X02

#define CMD_SLEEP_MODE 0X0A

#define CMD_WAKE_UP 0X0B

#define CMD_RESET 0X0C

#define CMD_PLAY 0X0D

#define CMD_PAUSE 0X0E

#define CMD_PLAY_FOLDER_FILE 0X0F

#define CMD_STOP_PLAY 0X16

#define CMD_FOLDER_CYCLE 0X17

#define CMD_SET_SINGLE_CYCLE 0X19

#define SINGLE_CYCLE_ON 0X00

#define SINGLE_CYCLE_OFF 0X01

#define CMD_SET_DAC 0X1A

#define DAC_ON  0X00

#define DAC_OFF 0X01

#define CMD_PLAY_W_VOL 0X22

/*********************************************************************/


#define ROTARY_ANGLE_SENSOR A0


#define ADC_REF 5//reference voltage of ADC is 5v

#define VCC     5    //the default value of VCC of the control interface is 5v

#define FULL_ANGLE 280//full value of the rotary angle is 280 degrees


void setup() 

{

  //pinMode(2, INPUT); // Button - Paluse&Play

  Serial.begin(9600);

  mySerial.begin(9600);

  delay(500);

  attachInterrupt(0, playOrPause, RISING);//pin2 -> INT0, and the Touch Sensor 

                                          //is connected with pin2 of Arduino

  sendCommand(CMD_SEL_DEV, DEV_TF);    

  delay(200);

  sendCommand(CMD_PLAY_W_VOL, 0X0F01);

}

static int8_t pre_vol = 0x0f; 

void loop() 

{

  int degrees;

  degrees = getDegree();

    

  int8_t volume;

  /*The degrees is 0~280, should be converted to be 0~255 to control the*/

  /*brightness of LED */

  volume = map(degrees, 0, 280, 30, 0); 

  if(volume != pre_vol)

  {

    sendCommand(CMD_SET_VOLUME, volume);

    pre_vol = volume;

  }

  delay(100);

}


void sendCommand(int8_t command, int16_t dat)

{

  delay(20);

  

  Send_buf[0] = 0x7e; //

  Send_buf[1] = 0xff; //

  Send_buf[2] = 0x06; //

  Send_buf[3] = command; //

  Send_buf[4] = 0x00;//

  Send_buf[5] = (int8_t)(dat >> 8);//datah

  Send_buf[6] = (int8_t)(dat); //datal

  Send_buf[7] = 0xef; //

  for(uint8_t i=0; i<8; i++)//

  {

    mySerial.write(Send_buf[i]);  

  }

  

}


int getDegree()

{

  int sensor_value = analogRead(ROTARY_ANGLE_SENSOR);

  float voltage;

  voltage = (float)sensor_value*ADC_REF/1023;

  float degrees = (voltage*FULL_ANGLE)/VCC;

  return degrees;

}

/*Interrupt service routine*/

void playOrPause()

{

  cli();

  if(playmode == PLAY)

  {

    playmode = PAUSE;

  sendCommand(CMD_PAUSE,0);

  }

  else

  {

    playmode = PLAY;

  sendCommand(CMD_PLAY,0);

  }

  sei();

}


- Reference

CATALEX Serial MP3 Player manual version v1.0.1

 : https://github.com/rdiot/rdiot-b208/blob/master/Serial%20MP3%20Player%20v1.0%20Manual.pdf

Serial Debug tool - SSCOM32 

 : https://github.com/rdiot/rdiot-b208/blob/master/Serial%20Debug%20tool%20-%20SSCOM32.zip

Serial MP3 Player Demo Code 

 : https://github.com/rdiot/rdiot-b208/blob/master/SerialMP3PlayerDemoCode%20for%20Arduino-1.0.zip


Posted by RD IoT RDIoT

댓글을 달아 주세요

MP3 Format Decoder Board Amplifier [B120]



https://www.youtube.com/watch?v=ebXMET2kJqw


* Specs

Features&Benefits:

Superior sound quality.Onboard 2Wmonoamplifier(5V power of up to 3W) is directlyconnected to the speaker(recommendation 43Wspeakers),3.5mm gold plated headphone jackcan connect with headphones or external audio.

With aMicroUSB port.Through the mobile phone data line can use mobile power supply or the USB cable to charge the MP3 battery,also can use 3.7V lithiumbattery,orUSB 5V power supply.

SupportTF Card(mobile phone memory card) andU diskplay mode.

No soldering with speaker terminals for easy wiring.

The module is designed to facilitate modification.

 

Product Overview:

1) Support MP3 format, playing power on automatically.When mp3 is played the red LED flashes.

2) Support U disk (test 32G), TF Card (test 16G) play mode; power on default TF card mode, if the TF card does not exist automatically jump to the U disk mode,and both devices have installed,then you can manually set the play mode.For details please see the key operating instructions.

3) Buttons can be adjusted up and down to control songs,volume up and down, pause or play, mode switching.For details please see the key operating instructions.

4) Press menu button enter the single/all song play mode.The default mode is the all song mode when power up.Pressing the Repeat button can replace the circulating mode.

 

Key Operating Instructions:

"Prev / V--" button: "Press" for switchingprevioussong, "long press" for volume down

"Next/v++" button: "Press" for switchingnextsong, "long press" for volume up.

"P / P / Mode" button: "Press" for the "Play/Pause" Switch, "long press" for U disk, TF card mode.

"Repeat" button: "Press" for single/all song" mode(no long press)

 

Note:

1."Long press" approximate 2S.

2 .If you use U disk mode, it is recommended 5V power supply, and some U disk does not support 3.7V power supply.

 

Product s Pecifications:

Power range: 3.7~5.5V

Product size: 45mm*36mm

Exquisite double board design, large area of copper, stable and reliable.

 

Using the anti-static bag exquisite packaging the module, to avoid the electrostatic damage in transit

Posted by RD IoT RDIoT

댓글을 달아 주세요

Bluetooth 4.0 MP3 Decoding Board Module [B147]




https://www.youtube.com/watch?v=jnU8WLHgCcw


* Specs

4.0 Bluetooth MP3 Decoding Board Module LED 12V DIY USB/SD/MMC APE FLAC WAV Decoder Record MP3 Player AUX FM Folders Switch DAE KIT 

 

This product support recording function.

In the state of AUX long press mode key to enter the recording, the premise is to have U disk or SD card

Can also be in the U disk or SD card state long press play button to choose play the recording.

Function characteristics:

 

* supported formats: APE FLAC WAV to WMA MP3

* version 4.0 bluetooth chip

* special android APK apple apps for player control operation

* bluetooth push to save in hand pattern in the music scan transfer via bluetooth to players

* mobile phone can read U disk inserted in decoding board/music files in SD card Displayed in the mobile phone Operating as a local file

* radio function, can directly control the automatic searching, manually selected frequency fine tuning

* audio input function, can realize AUX input signal transfer function

* 7 section of the EQ can change automatically presented seven sound effect, to choose from.

DAE will work sound function Can choose virtual bass The high increase.


* Contents

- download app link




Posted by RD IoT RDIoT

댓글을 달아 주세요

Remote Music USB MP3 Decoder Module [B124]



https://www.youtube.com/watch?v=28fiRyuMxYQ


* Specs

100% brand new and high quality

Decoding board size: 10.8 * 2.5 * 3cm

Remote Dimensions: 8.5 * 4 * 0.5cm

Power Supply: DC 5V


Purpose:

A, configure the production of simple sound, controllable players, home appliances, industrial applications.

B, upgrading the ordinary the acoustics, so the acoustics can play MP3 files within the U disk and within the SD card easily.

C, in conjunction with other modules, circuits, equipment, secondary development application, used in toys, gifts, fitness equipment, household appliances, broadcasting systems.


Main Function: A highly integrated single-chip multimedia MP3 audio decoder board, the new interface AUX external source.

1, FM radio bands: 87.5--108Mhz, AUTO search AUTO storage units, antenna customization.

2, AUX external source function; input volume is adjustable, very strong anti-jamming capability.

3, MP3 playback function. Support U disk / SD card playback, maximum support MP3 format 320Kbps, play smooth, sound superb.

4, 4pcs 8LED digital tube, showing a clear pattern of the current function.

5, infrared remote control, can receive signal strength over long distances (10 meters).


MP3 panel keys and the remote control button operation Description:

1, In the state of MP3, short press VOL- to the former song, press VOL + to the next song, long press VOL- to decrease the volume, press VOL + to increase the volume.

2, FM state. press the MODE button to adjust to FM mode, long press SCAN button for automatic search and auto-save radio stations, long press VOL + to increase the volume, short press VOL + to select the next one automatically stored stations; long press VOL- to decrease the volume, short press VOL- to select the former stored station.

3. Pause function keys in the MP3 mode: Short press the SCAN key, MP3 player function is in a suspended state.

Posted by RD IoT RDIoT

댓글을 달아 주세요