“Microduino-Audio”的版本间的差异

来自Microduino Wikipedia
跳转至: 导航搜索
(Created page with "{{Language|Microduino-Audio}} {| style="width: 800px;" |- | 400px|thumb|right|Microduino-Audio Microduino-Audio is the audio play module ba...")
 
Features
 
(未显示同一用户的1个中间版本)
第15行: 第15行:
  
 
==Features==
 
==Features==
*Multiple control modes, serial port mode and thumbwheel switch control mode.
+
*Adopt serial port control with default serial 1. Serial port can be selected by jumpers: Serial 0, soft serial port(D4, D5)
 
*Allow external memory card connection and play as well as disk display while connecting with a computer and content update.  
 
*Allow external memory card connection and play as well as disk display while connecting with a computer and content update.  
*Sleep mode serial port setting and low power consumption.  
+
*Sleep mode serial port setting and low power consumption.
 +
 
 
==Specification==
 
==Specification==
 
* MP3 format:   
 
* MP3 format:   
第39行: 第40行:
  
 
==Development==
 
==Development==
*Thumbwheel switch control
+
*Dial wheel button control
**Hardware needed:Microduino-Audio, Audio-KEY-SD, [[Microduino-Amplifier]], two loudspeaker and a USB cable, power (1A or higher) or Microduino extension module.
+
**Hardware needed: [Microduino-Core+]], [[Microduino-USBTTL]],[[Microduino-Amplifier]], Microduino-Audio, Audio-KEY-SD, two loudspeakers and power supply (1A or higher) or [[Microduino Extension Boards (Upin27 Compatible)]];
**Connect Microduino-Audio to your computer with a USB cable and then write the audio file into flash by checking the reference document
+
**Connect your PC with Microduino-Audio and write audio file into flash, which can refer to document instructure;
**Stack Audio-KEY-SD and meantime, the microUSB interface of Microduino-Audio doesn’t connect with the computer directly but switch to another power supply for fear of recognizing the driver. Besides, the electricity current should be more than 1A or the system may fail to play normally.  
+
**Stack Audio-KEY-SD. Meantime, Microduino-Audio’s microUSB interface is not directly connected with the computer. You need to change another power supply so as not to recognize the driver and fail to play music. Please make sure the current should be 1A or higher, otherwise, it may cause music play failure due to undercurrent. Or you can use microUSB on Microduino extension module to supply power.   
**Pull the thumbwheel switch to the right, you can play the last song and to the left, the next song.   
+
**Start Arduino IDE and open example program.
*Serial commands control the songs inside the memory card.   
+
Program description: "arduino.h" is audio control file.   
**Hardware needed: [[Microduino-Core]], [[Microduino-USBTTL]], [[Microduino-Amplifier]], Microduino-Audio, Audio-KEY-SD and two loudspeakers as well as power source (1A or higher) or Microduino extension module;
+
1. Under default serial port, you can select serial port in "arduino.h" based on your core module.  
**Connect Microduino-Audio and the computer with USB cable can you can find two disks—one is the flash of MP3 chip and the other is memory card.  
+
<source lang="cpp">
**Open the memory card and establish a folder whose format is named with 01 or 02 … … … … 99. Put all songs you want to play into the newly-created folder and just name the folder with 001 or 002 … … 999.
+
#define AUDIO_PORT Serial1    //Core+
*Start Arduino IDE, copy the program into IDE and choose the right board Microduino Core (Atmega328P@16M, 5V) and then upload to the core board with Microduino-USBTTL after compiling. Please don’t stack Microduino-Audio module during the upload, or it may cause serial port conflict.  
+
//#define AUDIO_PORT mySerial  //Core
 +
</source>
 +
2. Initialize Audio module and you can choose where to start the music.  
 
<source lang="cpp">
 
<source lang="cpp">
 +
#define DEVICE_Flash  5
 +
#define DEVICE_TF  1
 +
</source>
 +
If you want to play Flash, please initialize: audio_init(DEVICE_Flash,MODE_loopOne,music_vol);
  
byte key0[5] ={0x7E,0x03,0x09,0x01,0xEF};//device select "tf"   U/TF/AUX/SLEEP/FLASH      00-05
+
3. Initialize Audio module and choose play mode.
byte key1[5] ={0x7E,0x03,0x11,0x00,0xEF};//play mode    "all" ALL FOL ONE RAM ONE_STOP  00-05
+
<source lang="cpp">
byte key2[4] ={0x7E,0x02,0x0d,0xEF};    //play 7E 02 0D EF
+
#define MODE_loopAll 0
byte key3[5]={0x7E,0x03,0x06,0x18,0xEF};//vol 24 0-1E(0-30)-16,8,4,2,1
+
#define MODE_loopOne 1
 +
#define MODE_One_STOP 2
 +
#define MODE_One_END 4
 +
</source>
  
void setup()
+
**Select Microduino Core+ (Atmega644P@16M,5V) as the board cad, download to core board with Microduino-USBTTL after compiling; After the download, dial the wheel left and right, you can choose the music.  
{
+
*Serial port instructure controls music from memory card.
  Serial.begin(9600); // 9600 bps
+
**Connect Microduino-Audio to your PC with USB cable, you can find two disks including one MP3’s flash and one memory card.  
  delay(300);
+
**Open memory and create a folder, which has to be named among the range of 01, 02…………99. Save music into this newly created folder and name the music file among the range of 001, 002,003………999.   
  for(int a=0;a<5;a++)Serial.write(key11[a]);  //vol 18
+
**Define the initialization to be music from TF: audio_init(DEVICE_TF,MODE_loopOne,music_vol);
  delay(300);
 
  for(int a=0;a<5;a++)Serial.write(key0[a]);  //tf card
 
  delay(300);
 
  for(int a=0;a<5;a++)Serial.write(key1[a]);  //play all
 
  delay(600);
 
  for(int a=0;a<4;a++)Serial.write(key3[a]); //play
 
  delay(600);
 
}
 
void loop()
 
{
 
  
}
 
</source>
 
Program Description: 
 
*First define commands and then send the commands to Microduino-Audio through the serial port during initializing. More commands description, please check the reference document.
 
*Stack Microduino-Audio, Audio-KEY-SD and [[Microduino-Amplifier]] together after the upload. 
 
 
==Application==
 
==Application==
 
Microduino-Audio is widely used in various kinds of voice broadcast:   
 
Microduino-Audio is widely used in various kinds of voice broadcast:   

2015年7月1日 (三) 06:51的最新版本

Language English
Microduino-Audio

Microduino-Audio is the audio play module based on JQ6500 serial port MP3 chip, which together with Audio-KEY-SD can play flash music by thumbwheel switch control and with Microduino core module can send serial port commands to control the system.





Features

  • Adopt serial port control with default serial 1. Serial port can be selected by jumpers: Serial 0, soft serial port(D4, D5)
  • Allow external memory card connection and play as well as disk display while connecting with a computer and content update.
  • Sleep mode serial port setting and low power consumption.

Specification

  • MP3 format:
    • Support all bit rate 11172-3 and ISO13813-3 layer3 audio decoding.
    • Support sampling rate (KHZ):8/11.025/12/16/22.05/24/32/44.1/48
    • Normal, Jazz, Classic, Pop and Rock supportable
  • Support asynchronous serial communication mode and receive commands sent from the upper computer by serial port:
    • Communication standard: 9600 bps 、
    • Data bit:1
    • Check bit:none
    • Flow control:none
  • 24-bit DAC output, 90dB dynamic range and 85dB signal noise ratio supportable.
  • Support FAT16 and FAT32 system as well as 32G memory card to the maximum
  • With broadcast language insertion function, you can pause the playing background music.
  • Audio data is sorted by folders with 100 folders at the most supportable. Each folder can be sorted with 1000 pieces of music.
  • 30-level volume adjustable (0x00-0x1E)


Document

JQ6500 sound chip description: 文件:JQ6500.pdf

Development

  • Dial wheel button control
    • Hardware needed: [Microduino-Core+]], Microduino-USBTTL,Microduino-Amplifier, Microduino-Audio, Audio-KEY-SD, two loudspeakers and power supply (1A or higher) or Microduino Extension Boards (Upin27 Compatible);
    • Connect your PC with Microduino-Audio and write audio file into flash, which can refer to document instructure;
    • Stack Audio-KEY-SD. Meantime, Microduino-Audio’s microUSB interface is not directly connected with the computer. You need to change another power supply so as not to recognize the driver and fail to play music. Please make sure the current should be 1A or higher, otherwise, it may cause music play failure due to undercurrent. Or you can use microUSB on Microduino extension module to supply power.
    • Start Arduino IDE and open example program.

Program description: "arduino.h" is audio control file. 1. Under default serial port, you can select serial port in "arduino.h" based on your core module.

#define AUDIO_PORT Serial1    //Core+
//#define AUDIO_PORT mySerial  //Core

2. Initialize Audio module and you can choose where to start the music.

#define DEVICE_Flash  5
#define DEVICE_TF  1

If you want to play Flash, please initialize: audio_init(DEVICE_Flash,MODE_loopOne,music_vol);

3. Initialize Audio module and choose play mode.

#define MODE_loopAll 0
#define MODE_loopOne 1
#define MODE_One_STOP 2
#define MODE_One_END  4
    • Select Microduino Core+ (Atmega644P@16M,5V) as the board cad, download to core board with Microduino-USBTTL after compiling; After the download, dial the wheel left and right, you can choose the music.
  • Serial port instructure controls music from memory card.
    • Connect Microduino-Audio to your PC with USB cable, you can find two disks including one MP3’s flash and one memory card.
    • Open memory and create a folder, which has to be named among the range of 01, 02…………99. Save music into this newly created folder and name the music file among the range of 001, 002,003………999.
    • Define the initialization to be music from TF: audio_init(DEVICE_TF,MODE_loopOne,music_vol);

Application

Microduino-Audio is widely used in various kinds of voice broadcast:

  • In-car navigation voice broadcast
  • Road transport inspection and toll station voice prompts;
  • Railway station and bus station security check voice prompts;
  • Electric power, communication and financial hall voice prompts;
  • Vehicle in-and-out access verifying voice prompts;
  • Public security border control channel voice prompts;
  • Multi-channel voice alarm or equipment operation guide voice;
  • Electric tour car safe driving voice notices;

Purchase

History

Picture

Front

文件:Microduino-Audio-F.JPG
Microduino-Audio Front

Back

文件:Microduino-Audio-b.JPG
Microduino-Audio Back

Video