Home

3. Feature of Board ET-REMOTE MP3 V2

image

Contents

1. 0 411 471 MP3 fet 412 m3 71 MP3 ft 413 1a71MP3 it 414 31MP3 A15 ia MP3 AIG ila MP3 let A17 ia MP3 fet A18 ier MPS fet AIS an 1 MP3 AGU as MP3 fet 421 as 1 MP3 6 422 1MP3 A23_FT1 MP3 A24 FT2MP3 A25_FT3 MP3 4 Long Marne ETT_16G 201 eia mp3 A02 das mpa ADS 414 mp3 A04 mp3 A05_ 1 mp3 ADE a mps AQ 150 mp3 ADS _wale mps ADI An mps AIO qu mp3 ATi ateaea mp3 Al manis mpi 413 kanye mp Al4 uma mpi ATS la mp3 76_tda mp a ALF mara mp Ala ganar mpd ATS dans mpa AZO aan sa mp AC sana sa mp3 AZ qa aw5ugssuunoa dada mpi A23 FT1MPS3 Ard FTE MP3 AZ5 FTSMPS Short current folder to arrange files according to the it is the actual file name that user can Short current folder H user can is rearranged The file on top is the first file and it arranges in the order respectively as shown in the picture below User s Manual of Board ET REMOTE MP3 V2 E ll Il mM 5 Save the new file arrangement click Icon Save current folder i It ends the process of arranging file next it closes the program and then inserts this Micro SD Card into Board ET REMOTE MP3 6 The technigue that is used to arrange files by Program DriveShort depends on specifying file name Before copying file should edit or change the file name as follows into Card it If it setup the file name by number only it has to use the equal digit such as 01 mp3 12 mp3 99 mp3 When
2. ST Stop Play File This Command stops playing all song files STOP It exits from the Command Play that playing the current file instantly next it goes to the initial status to receive other command The format of Command is shown in the table below EX char enter 0x0D s printf P1 19 c enter AANRY LA wl AAIMNUN 19 lu Micro SD Card Echo cmm Check Echo Command OK 1 Function VAF Respond Command aia la delay unu la printf ST c enter AVAIAY sror Wa WoaNnsuAr1ay LUN 6 COMMAND FW Forward This Command is used to move 1 sound file forwards in each time FW In this case when it sends 1 command it also moves 1 sound file forwards When user sends this Command FW to move files forwards until it reaches the last file it returns to the first file again This moving file is in the format of Close Loop and it has to send this Command FW while playing file The format of command is shown in the table below 12 User s Manual of Board ET REMOTE MP3 V2 ETT s om O N EX char enter 0x0D printf FW c enter ANPIAVLAAL Ida du llana 7 Wa 7 COMMAND RV Revert This Command is used to move 1 sound file backwards in each time RV In this case when it sends 1 command it also moves 1 sound file backwards When user sends this Command RV to move files backwards until it reaches the first file it returns to the last file again This moving file is i
3. 0 or Active 1 Please refer to the circuit in picture A if using Signal Trig from external that is Active 0 and please refer to the CL CUTE in picture Br If Using signal Trig from external that bs Active 1 When user interfaces the actual circuit user can choose the particular channel to interface it 1S unnecessary to interface all channels however amount of file in Micro SD Card must be equal to amount of channel For example if playing the file No 9 it should have at least 9 files in the Card This is description about writing program please refer to the Circuit in both pictures below Refer to the circuit in the picture A it uses Signal Trig from external that is Active 0 While it is in the normal status there is no any Signal Trig and MCU sends Signal 1 for each Pin I O If user requires playing any sound file it has to sends Signal Trig Logic 0 to Pin I O in the position of preferable sound file that will be played in this case it should hold the status for 20ms or more and then sets this Pin I O to be Logic 1 again and finally it Starts playing the chosen sound file instantly Refer to the circuit in the picture B it uses Signal Trig from external that is Active 1 While it is in the normal status there is no any Signal Trig and MCU sends Signal 0 for each Pin I O If user requires playing any sound file TE Mas iO send Signal Trig 200e 1 to Pan 2 70 an
4. C35 100 18 tour 118 0 O 7 O m O Oio O 0O 0 0 O 13 CON PWR PLAY STOP RU VOL FW VOL 1 12 SW PLAY STOP 11 SW RV VOL 6 EEP PGM 10 SW FW VOL Figure shows the structure of Board ET REMOTE MP3 V2 5 Head Phone It is connected point for Stereo Output If it is headphones it can directly interface with board If it is Speaker it has to interface through the amplifier it cannot be connected directly because it makes the Chip MP3 damaged 6 EEP PGM This Connector downloads Firmware into E2PROM it is provided for the company to Upload Firmware only it is not related to use board of user 3V3 GND SCK MN O SoG Figure shows feature of Pin for Connector EEP PGM 7 JP PGM When user requires loading Firmware into EEPROM it has to remove Jumper1 4 from board first After loaded the Firmware completely it has to interface Jump all Jumper 1 4 again and Board MP3 can run as normal This Jumper is not related to user directly it is provided for the use of company So user has to ensure and check if this Jumper 1 4 has been interfaced jump completely when using this Board MP3 otherwise this Board MP3 does not run 8 10 LI 12 13 14 User s Manual of Board ET REMOTE MP3 V2 ETT u M STM8 PGM This Connector downloads Firmware into STM8 It is provided for company to Upload Firmware it 1s not related to use board of user WIM 3V3 PD1
5. Ene postition of preferable sound file that will be played in this case it should hold the status for 20ms or more and then sets this Pin I O to be Logic 0 again le User s Manual of Board ET REMOTE MP3 V2 ET BUSIO DC IN Trig CH1 Board MUC 5V Connect IN1 IN8 Trig Active 0 MILE TTEAM COM FU VOL CI mp we sy Es j Be E Olite 2 o EJ lola e cis AA oie hl 14 ve g 2 O o E pS yr pr pe Oe vawgtwanr vnr rno ET REMOTE MP3 V2 5Vot Supply Connect o O J CH 9 16 O PLAY STOP RU UOL T B r E 12V0C E gt 16 uy E Trig Active 0 on ae ent ip uy i f a o o PESE co 90 SD o o al 104 Peace ooon R8232 cr NASA DUA m ce ct a st LJ Eso m 4 ye mos fl 1 i om Ub he MARTA mr cw a E z E 3 Ble INPUT pa FR104 A It shows how to interface Pin I O 1 16 of Board MCU 5V for Trig Active 0 through Board ET BUSIO DC IN to reduce the Voltage level 3 3V Board ET REMOTE MP 3 ET BUSIO DC IN GE A E e pun rete act a Board MUC 5V e z el d E da RO Leo miae ofl md O 1 0 0 gt al ta r 1 a al o tHe Connect 7 alt ks 5 A 3 BO COIE sea Gas Trig Active 1 gs y mmr ES Es 2 5 ee a po G a Py ss 6 Qs EJ Eje me mz En Piero OE men kane ES ml of i
6. Macros Set Macros M1 M2 M3 M4 M5 MB MF MS M9 M10 M11 M12 Sent AAA i 01 Connected Rx 42602 Tx 159 4 2 LIST SONG MODE 4 2 1 Operation This operation mode is used to Call to see list and order of all files surname MP3 and WAV in Micro SD Card Initially when user sets DIP SW MODE To LIST SONG Mode ana Ser DIP 5W CONFIG to set Baud Rate for sending data next it provides Power Supply into Board MP3 the program Starts reading file name and order of file from Micro SD Card In this case it always reads the first file that is copied into the Card and it responds with the order of file and file name that is read through RS232 of board When user opens the Program Terminal it has to open the program before providing Power Supply into board or opens other programs that Supports the display through RS232 in this case it shows list of file name and order of file in Micro SD Card please see more information from the section of Application The list of file name and file surname that 1s shown through Program Terminal is always displayed in capital letters although it is set by capital letters or small letters moreover the file name must not be greater than 8Byte according to the format of file 8 3 If any file name is set in Thai it shows strange and illegible instead When user requires replacing the order of file file name file surname in the Command Play in COMMAND MODE it has to refer to the result that shows in th
7. S GND NRST 1000 Figure shows feature of Pin for Connector STM8 PGM SW RES This SW Reset is used to restart board when it hang up or update the change Of DIB 3W MODE or DLIP SW CONE TG SW FW VOL There are 2 functions when using this Switch in MP3 SW MODE Firstly it is used to move 1 song file forwards in each time by pressing and removing SW as normal Secondly it is used to tune the volume up by pressing and holding SW for 0 5 second and then removing it When using this Switch in Trig Mode it is only used to tune the volume up in this case it only presses and removes the switch as normal SW RV VOL There are 2 functions when using this Switch in MP3 SW MODE Firstly it 1s used to move 1 song file backwards in each time by pressing and removing SW as normal Secondly it is used to tune the volume down by pressing and holding SW longer than 0 5 second and then removing it When using this Switch in Trig Mode it is only used to tune the volume down in this case it only presses and removes the switch as normal SW PLAY STOP There are 3 functions when using this Switch in MP3 SW MODE as follows 1 PLAY It plays the song file When user presses and removes the switch song file that has not been played yet starts playing instantly 2 STOP It stops playing the song file that is being played when user presses and removes the switch it stops playing the song file instantly When user presses and removes this
8. Voltage Level to 3 3V first then user can interface it to Connector that receives Signal Trig of Board MP3 Following example shows how to interface Signal Trig from external circuit LO control Lo play sound Tile On Board MPS TREG MODE gt at 1s good guideline for user to develop program in the future as described below 1 How to send Signal TRIG by MCU or Sensor 3 3V The method to send Signal Trig from external by MCU or Sensor 3 3V is to directly interface I O of MCU to the Connector of Board MP3 that receives Signal Trig as shown in the picture below If it write program while it is in the normal status it should set I O 1 16 to be Logie l If user requires playing sound file in any channel it has to send Logic 0 to Pin I O and hold the status for 20 ms Or Higher next 10 has Lo ses this Pam IO o be Loguie le aga Por the actual use user can choose and interface any particular channel that user requires playing file Amount of sound file in Micro SD Card should be equal to amount of select channel User s Manual of Board ET REMOTE MP3 V2 ETT Board ET REMOTE MB Board MUC3 3V Trig Active 0 ras E oo E E E E i i F Connect VO1 16 T ES O 500000000000000 OOOO 0000 it Ha O 3 3V SV O It shows how to interface Pin I O 1 16 of Board MCU 3 3V with Connector Trig CH 1 16 of Board MP3 2 How to send Signal Trig by MCU or Sen
9. finishes playing the first sound file it continues playing the next order of file 2 3 4 respectively until it plays all files in the Card Every time it ends playing each sound file or it presses any Forward Reverse or Stop Board always sends Signal EOF Active 0 to Connector No 15 LED EOF alternates between ON and OFF it notifies user to know that it finishes playing the sound file completely If it resets Board MP3 or Power OFF and then Power ON again while playing any sound file it always starts playing the first order of sound file again moreover the setting Volume always returns to the Default value This Board MP3 does not remember these values However any Configuration value that 1s Sel by DIP 5W CONFIG 1s unchanged af user does not change or edit any value The change of Set DIP SW CONFIG will be effective or it updates the Configuration when it resets Board MP3 only There are 3 Switches on board and each switch can be set to run more than one function it depends on the feature if pressing Switch There are 2 features of pressing Switch to separate the operation Firstly it presses and holds the Switch less than 0 5 seconds and then remove press and remove the Switch instantly and secondly it presses and holds the Switch longer than 0 5 second and then remove User can read more information of each function from table Application below 4 3 2 Application 1 Copy and paste File surname MP3 or WAV in M
10. less than 16 song files in Card but it trigs unavailable or inexistent song file number in the Card it does not play any song file HG User s Manual of Board ET REMOTE MP3 V2 ETT mM Moreover user can setup Configuration for playing sound file by DIP 5W_ CONFIG For example iL pleys the trigged Sound file one time and then stops to wait for new Signal TRIG or it repeatedly plays the trigged song file User can set the Configuration to play the trigged song file instantly or it has to wait until it finishes the current song file first and then it starts playing the new trigged song file If it trigs many times while playing file it adheres to a principle of the latest Signal TRIG mainly When it sets the Configuration of playing file by using DIP gt W MODE To pet Specitications ef playing file user Can read more information from table of Application Furthermore this operation mode can use 3 Switches on board to control stop STOP and tune the Volume up down in this case each switch has one function as described in the table below when pressing and releasing the switch as normal Table Show functions of 3 Switches On Board For TRIG MODE Press Release Switch as normal sv Name PressReleas Switch as normal Press switch while playing file Press switch while not play file pravsror sow Y RV VOL Volume Down Volume Down FW VOL Volume Up Volume Up This operation mode is suitable fo
11. programming it arranges the file name 01 mp3 to be the first order and then so on Remember it does not setup the file name as 1 mp3 it has to add a naught Ot A Front Or 1f 1C 195 3 digits at has to ada Z naught 100 If it setup the file name by letters every files should be preceded by English letter that has the equal digit then it is followed by number with the equal digit and finally it is free to add any letter if have after the number such as FMO1 mp3 FMO2K MP3 FMO3 mp3 FM45 mp3 When programming it arranges files from FMO1 FM45 and then so on respectively 2 8 After Power ON or Reset user can play the song file in MP3 SW Mode or COMMAND Mode by Command Play All the first song file in Micro SD Card is always played first and then followed by the next order of 2 3 4 respectively 3 Feature of Board ET REMOTE MP3 V2 I LED PWR This LED shows status of 5V Power Supply for board 2 LED TRIG This LED shows status of Trig of Connector No 19 that receives Signal Trig The LED is lit up according to the incoming Signal Trig Trig Active 0 when using in TRIG MODE 3 LED ACT This LED shows status while playing song files in this case LED blinks while the song file is playing 4 SOCKET Micro SD Card This Socket is used to insert Micro SD Card that stores song files Remember before inserting or removing this Card it always disconnects the Power Supply of Board MP3 first inser
12. song files respectively user does not know that it is playing the preferable song file or not In this case user can use DIP SW_Mode or Command List File to see the file order and file name file surname of all song files in Card through RS232 first because user can play the song file in the preferable order Or it uses Program Drive Sort that is provided in CD to re arrange all song files as required please follows these instructions How to use Program Drive Sort to rearrange files in Micro SD Card 1 First of all copy and paste the preferable song file into Micro SD Card completely 2 Run Program DriveShort exe click Icon Open a disk and the window Select a disk To Process appears as shown in the picture below DriveSort Select a disk to process 3 Disk0 931 51 GB NTFS C 440 43 GB gt NTFS D 491 08 GB 3 Disk1 74 53 GB NTFS E Back_UP 74 52 GB fF Disk3 7 29 GB E FAT32 G YOOYOD 7 34 GB Disk4 23 53 MB FAT H 30 97 MB Disk2 14 93 GB Z FAT32 1 ETT_16G 14 92 GB Bi Cancel User s Manual of Board ET REMOTE MP3 V2 ETT mM Double click the Drive that is connected with Micro SD Card and it shows a list of song file on the rioht window Click the black arrow on the right side of Icon Playlist to remove the tick mark in front of Playlist Mode it shows all song files in the Card in the window on the right side as sh
13. the opposite side of channel that receives Signal Trig outer board it is all Pin Ground User can test the operation by trigging any channel into Ground trig and release any order of song file that accords with the trigged channel starts playing instantly it should have at least 16 files in the Card to test Trig CH1 CH16 Refer to Connector Trig on Board user can interface Push Button Switch with each channel directly to trig and play the preferable order of song file The method to connect SW Trig is shown in the picture below User s Manual of Board ET REMOTE MP3 V2 ETT Board ET REMOTE MB CH 1 CH16 DC5Vi 7 It shows how to interface Push Button Switch to trig and play sound file 7 Every time after it finishes playing the song file as normal or it uses Trig to play new file Board MP3 always sends Signal EOF Active LOW to Connector OUT BOFF ai this case user Can see that LED BOF 18 blinking User can use this signal to check the end of playing file 4 4 3 How to trig by Signal TRIG from external Board MP3 User can use MCU or Sensor to send Signal Trig from external to Connector Trig OF Board MPS Go control to play sound tule In thas case user has to consider the Logic Level of Signal Trig while it is Logic 1 because Board ET REMOTE MP3 can receive the level of Signal Trig that does not exceed 3 3V only If the level of Signal Trig exceeds 3 3V it has to do through circuit to reduce the
14. 3 M AutoStart Script D CR LFY StayonTop 3560C Recelve zz E C HES CLEAR Reset Counter 113 3 Counter 5022 F ASC ET REMOTE MPs 42 Firmware 42 1 FOR 21 User s Manual of Board ET REMOTE MP3 V2 ETT mM Step 5 Test the operation by typing Command Play to play the first sound file into the gray blank at the bottom in this case it types P1 01 and press Enter on board Board sends Respond as shown in the picture below and finally the first sound file will be played instantly User can type other commands to test the operation Terminal v1 9b 20041226 by Br y COM Port Baud rate Data bits Parity Stop bits Handshaking y C 600 14400 57600 Css e none y none CE C odd maem C even amp C ON OFF a C mark C RTS CTS XON XOFF 8 space C RTS on TX Disconnect f 1200 y 19200 f 115200 C 2400 28800 128000 C 4800 38400 256000 e 9600 56000 custom Help About Quit Settings Auto Dis Connect Time Stream log customBR Ri Clear ASCII table Scripting Set font Egel AutoStart Script J CR LF J Stay on Top 9600 27 Graph Remote oa nos rta Receive a S HEX f Dec f Bin CLEAR Reset Counter 13 Counter 5026 ASCII I Hex StartLog ECHO CMM HOK ET REMOTE MP3 Y2 Firmyare 42 1 0K OK A ECHO EOF SE f 01 A01_ qu1 MP3 File Name at Play amp E Transmit CLEAR SendFile J CR CR LF
15. E S1 0FF S2 0FF as shown in the picture below SW MODE It shows how to set SW_MODE to run in TRIG MODE a pet DIP 5W_ CONFIG TO sel Configuratzon Tor playing tale please see more information in the table below Every time user changes any value of Set DIP SW it always resets board to update new value Table Show how to Set DIF SW CONFIG Set properties play for TRIG MODE DIP SW_CONFIG Format of SET Properties Play S S2 SW_ CONFIG It plays the trigged song file instantly It ON 0 ON 0 plays the trigged song file one time and then SLODS instantly It waits until it finishes playing the current song file first and then it starts OFF 1 ON 0 playing the song file that is trigged lately one time and then stops It plays the trigged song file instantly in this case it repeatedly plays this song file ON 0 OFF 1 It waits until it finishes playing the current song file next it starts playing the recent song file that is trigged repeatedly If it sets DIP SW to play the song file repeatedly user can trig to play other song file while playing the current song file moreover it also plays the new trigged song file repeatedly OFF 1 OFF 1 5 Provide Power Supply DC 5V for board be careful do not alternate pole user can see LED PWR is lit up 6 Please look at Connector Trig the inner board that is specified by the channel number is the channel to receive Signal Trig Low On
16. EMILIO EAL L5HN o FOSOLSSVLLS 101 en En lg o EAE EAE Circuit of Board ET REMOTE MP3 V2 Sheet1 User s Manual of Board ET REMOTE MP3 V2 EFTS gra psarau LHS Set G11 09 113 A EdW ALOWSAa LS tr 9r LL GSSZ P OL 210 SANOHAO SH a Sr e Ag UMEIG OIL eaS a yall SOR Vie i T C Heej dee Heg Pee j cba zl EAL AMD H eb PON By CON OY carp LONE do NISNIT NOTA dol Ine JHE 1431 SON 2 FON Ex FON 90 0N 90 LUNSJ 1531 WIYOS 2OIdO 4190 2019 LONE 00149 Oo ZTWLX ATOLL TL XL XH ONASS S 20 LISTA STOOLS A en A ee 33 o JUDO MOddgg g9 ES ine OO e Le Js wr x0L gy 58 Us O EAE ENE aston Na F ono E HI fete lS Fn Circuit of Board ET REMOTE MP3 V2 Sheet2 a
17. Manual of Board ET REMOTE MP3 V2 ETT u M Refer to the picture above when it sends Signal Trig from external by MCU or Sensor 5V to control Board MP3 it uses ET MINI3TOSTTL to reduce the voltage level So the Signal Trig that is sent from MCU or Sensor must be Active O only In the part of Signal Trig user can choose the particular channel to interface for the actual use it is unnecessary to interface all channels as shown in the picture Writing program into this circuit while it is in the normal status that is no any Signal Trig each Pin I O of MCU must be set to be I first When user requires playing any sound file it has to send Signal Trig Logie 0 to Pin I O an the preferable position to play the sotnd file and it should hold the status for 20 ms or higher Next it should reset Pin I O to be Logic 1 again and finally the sound file in the Channel that is trigged will be played instantly This is an example shows how to interface circuit when using ET BUSIO DC IN to reduce the voltage level it is suitable for trigging 1 or more channels Board ET BUSIO DC IN that reduces the Voltage level has only one channel on the side of Input It can choose to receive 3 Voltage levels of Signal Trig from external 5V 12V and 24V in this case it can set Jumper on Board ET BUSIO DC IN to choose the preferable voltage level Moreover this board can receive external Signal Trig that is either Active
18. OTE MP3 V2 0 k kkk kkk kkk kkk kkk kkk kkk kkk By Mr Sittiphol Yooyod www ett co th 35 ell PY 325 r 9r LL SSS P OL 1109113 A EdMN 3L1OMW 3 13 aeq Ag UMEJO Oil ys an alld x pl dwl ONS fy arol 36 User s Manual of Board ET REMOTE MP3 V2 uid 10000 0 e con AA 213 COLS 113 03901 CELDA lalala EAE En AG 303 TOA E 7 HOS x m 4 300N 5 lanoo i te 303 a m z037 m an dO SAW Id N Sp THOM l d l i i Wd p SeN Dd ee Od ar XL WYN Sda cp dalla MIL sH dd d ENIY qa H 90vzHO ZALISHEOd 93d 6NIW E 7 Tag Ta er EHF cHUWILHO EALLSH edd SSN 45 53d a4 oad S aos eeN ONIMSSH LCd ee NIE LES ara sz od a p 009 molina LAIWZHD CALLISHOOd YOS DELTA a ar Pad Dy 4 ER TOS OFA Lad 7 oo Td Laan gg p OSH ASSH Ld 099 WIOASHad qa z tad se SOM ld SUSHI SOd a se Tad TTS oe 95_Id5 15HISOd YISA 7 3 08d ER PHO_MNILNSH POd a Tl ay EHO _IMILISH EOd OOA Er PL UN las ez HD NIL SH Ze E a Wd SOE g YI SLeWNVLHD LALA SH LOA Z OlSSA g 0 Sva l QISSA O e Fa gg er Lae LNIW SSA 5 JI yag a EN 7 8 a F 7 Coq Sad SNIvivos_ Dell Z OlOGA I 5 zJ Ag ar adros gel L onda Saar TE LN ada Er Ta o Tad ENI INCH LMI Tae Fae ENIWINZHO_ LIAL don Tad ze CSS ONIVIN HO LAIL se zydi LNODSO NIZA noz c 9 d SH pegas Nia ancia JS ua Syd ir S alSH pene e eae A ims 1MOZL NIZL l ad o PASH _ Efe InGtl NIL hi qg g EYJEHO
19. PORT RS232 of PC Terminal v1 9b 20041226 by Br y area COM Port Baud rate Data bits Parity Stop bits Handshaking Ze a ae gt y C 600 14400 C 57600 Cs e none 2 3 none Becan cor C 1200 C 19200 C 115200 C odd C RTS CTS Com Port MINNA LIA PAE C 2400 C 28800 C 128000 C even C 15 C XON XOFF oot Jea r C 4800 C 38400 256000 C mark C RTS CTS XON XOFF Baud rate 9600 gaaj e5 9600 56000 custom 8 C space 2 C RTS on TX Settings Data bit 8 Set font Auto Dis Connect Time Stream log customBR RxClear _ASCiltable Scripting M AutoStart Script f CR LF J Stay on Top 9600 27 Graph Remote Parit ar none Receive y 7 f HEX f Dec f Bin CLEAR _ResetCounter 113 Counter 5021 f ASCI IV Hex Startlog Stop Loa Stop bit Handshaking none Transmit CLEAR SendFile J CR CR LF Macros et Macros Set M M1 M2 M3 M4 M5 M6 M7 M8 M9 M10 M11 M12 M o Disconnected Rx 42530 Tx 152 Step 4 Provide 5V Power Supply for Board ET REMOTE MP3 V2 and it shows message on Program Terminal as shown in the picture below Terminal v1 9b 20041 226 by Br y COM Fort Baud rate Bisconnect Ay e 60 C 14400 C 57600 Help 3 ie C 1200 19200 115200 E E C z400 f 28800 f 128000 About 90 4800 38400 256000 Quit E f 9600 56000 f custom Settings 5 M Auto Dis Connect Time Stream log AES et Font
20. TRIG from external and it is used in TRIG MODE The inner Pin of board is set Pull Up at 3 3V it is Function of 16 CH Input to receive Signal Trig from external or on board The outer Pin of board is all GND that is used to test Signal TRIG When any couple of pins that are matching are shorted and removed Signal Trig happens then the order of song file that accords with channel of Signal Trig starts playing instantly This Connector receives Signal Trig Logic O Active O with 20ms Width or higher When the status of Signal Trig is Logic 1 the voltage level of the signal does not exceed 3 3V because this Connector Input only supports the voltage level that is not higher than 3 3V If Signal Trig that is in the status of Logic 1 is higher than 3 3V such as 5V it has to interface the circuit that reduces the voltage level to 3 3V at the center first in this case it may use the ETT product such as ET MINI 3ToSTTL 8 Channel connectible or ET BUSIO DCIN 1 CH connectible please see more information in section of TRIG MODE TRIG CH2 TRIG CH3 TRIG CH4 TRIG CH5 TRIG CH6 TRIG CH7 TRIG CH8 TRIG CH9 TRIG CH10 TRIG CH11 TRIG CH12 TRIG CH13 TRIG CH14 TRIG CH1 TRIG CH15 TRIG CH16 N j j an N aqaaqeqaanrhananannenann 4 ZZ AAA AAAS om OO COU COC CoCo Edo Cc ds E do SC It shows Connector to receive Signal TRIG Warning Signal that is used for Trig in the status of L
21. User s Manual of Board ET REMOTE MP3 V2 Contents Subject 1 Specifications of Board ET REMOTE MP3 V2 2 Specifications amp How to manage File for Micro SD Card 3 Feature of Board ET REMOTE MP3 V2 4 How to use Board ET REMOTE MP3 V2 4 1 COMMAND MODE 4 1 1 Operation 4 1 2 Format of Command amp Respond for ET REMOTE MP3 V2 4 1 3 Application 4 2 LIST SONG MODE 4 2 1 Operation 4 2 2 Application 4 3 MP3 SW MODE 4 3 1 Operation 4 3 2 Application 4 4 TRIG MODE 4 4 1 Operation 4 4 2 Application 4 4 3 How to Trig by Signal Trig from external Board MP3 5 Describe how to run example program in CD 5 1 Example Program for COMMAND MODE 5 2 Example Program for TRIG_MODE Circuit Board 11 21 23 23 24 25 25 26 07 27 29 30 35 35 36 37 User s Manual of Board ET REMOTE MP3 V2 ETT ET REMOTE MP3 V2 0 1 Specifications of Board ET REMOTE MP3 V2 lod Only support Pale MES Or WAV DUG 1E cannot record sound 1 2 Use Micro SD Card with capacity of 2GB 16GB to store sound file and support FLASH 16 and 324 1 3 Provide 5VDC Power Supply for board and produce signal sound though Stereo JaC 1 4 There are 4 operation modes as follows COMMON MODE Playing song is controlled by Commands through RS232 gt LIST SONG MODE See a list of song and order of sound file in Micro SD Caro MP3 SW MODE Playing song is controlled by 3 switches on board TRIG MODE Playing song is controlled by Tri
22. Y Play LLazia Wau SA LAAVLIAIVAMULLAUAHAE 10 COMMAND NC Show File Name Current This Command is used to call to see the current sound file The format of Command is shown in the table below When this Command is sent out while playing any sound file and the command is done completely it shows Respond with the filename and file Surname of the current sound file and it ends with Respond of Command that is OK The format of command is shown below 14 User s Manual of Board ET REMOTE MP3 V2 ETT NN FFFFFFFF MP3 M9 WAV lt Respond File Name Current NN Order of the current sound file number is ASCII 2Byte 00 99 FFFFFFFF The current file name that is ASCII does not exceed 8Byte Ex How to send Command NC char enter 0x0D i printf NC c enter AAA unanuia NANA eC _ Ex Respond 03 TESTIMP3 LWanfiravauaddulWwadinuns ta Wa TESTLMP3 11 COMMAND NA Display All File Name In Card This Command is use to call to see all sound files surname that are MP3 and WAV in Micro SD Card If this Command is sent out while playing sound file it stops playing file instantly and all List File will be sent out through RS232 When using Program Terminal to receive incoming data user can see order of file and List file as shown in the example This order of file and list file can be used in Command Play by Order or Command Play by Name The Format of Command is shown in the table
23. are provided in CD illustrate how to control Board ET REMOTE MP3 V2 in COMMAND MODE and TRIG MODE by using MCU to be controller Te divides MCU Into 2 Groups Firstly 1C ES 4a Group Oof MCU 33V Such as ARM7 LPC2138 and STM8S208 Secondly it is a group of MCU 5V such as AVRmegal28 PIC18F8722 and 89C51RE2 Example program of each MCU is the same so user should see and read details and circuit from the Comment above each program well before loading program to test the operation The operation of each example program can be described as follows 5 1 Example Program for COMMAND MODE The method to interface circuit for this example program in COMMAND MODE is to interface Cable RS232 from Board MP3 to Board MCU that is used to send command Connector RS232 in the part of Board MCU it has to be interfaced through Line Driver MAX232 first it is not allowed to interface directly from Pin of MCU Ex1 SENT CMM This example program illustrates how to play sound file from No 1 to No 15 and then it returns to play the sound file from No 2 to No 15 and so on So it should have at least 15 sound files in Micro SD Card for running this program The operation of program starts sending the Command CF to set the format of playing file for Board MP3 follows by Command Set Volume and then follows by Command Pl to play the first file track When it sends command in each time it always checks Echo Command after the end of playing che irse Ti
24. below Ex Respond all files in Card Receive CLEAR _Reset Counter 13 Counter 710 ASCII gt ee en Mf 4 Play LIST OF ALL FILE SOMG 4 4 4 4 4 7 01 TOYOTA MPS Mil MPS VNIELAUAINU _ Jauasunana n P20 MPS 22 F21 MPS 23 19FAxE 41 MP3 24 OFC ARR MPS 25 TESTS VAY 26 TEST2 WWAN TESTA way Respond pay D Cora ber ALL Of File Song in Card 25 File ZOR Transmit CLEAR Send File ER CR LF Ex How to send Command NA char enter 0x0D printf NA c enter ANA IAL NA LWANIUNA LY Micro SD Card 15 User s Manual of Board ET REMOTE MP3 V2 ETT mM 12 RESPOND COMMAND This Respond is from Board MP3 every time the Command that is sent to Board MP3 is correct and it is done completely The format of Respond 1s 3Byte ASCII in capital letter as shown below dt _ Respond Command Ex How to check Respond Echo Command Code for AVR Mega 128 Compiler WinAVR Check Echo Command OK void Echo Cmm unsigned char buf cmm 2 unsigned char n ch do do loop_until bit is set UCSROA RXC s Check data in Rx_buffer ch UDRO Read data Start Byte while ch Check Byte Start of Echo cmm for n 0 n lt 2 n if ch then Keep cmm 2 byte Keep OK loop_until_bit_is set UCSROA RXC Check data in Rx_buffer buf cmm n UDRO Read Data OK while buf cmm 0 05 buf cmm 1 K5 Che
25. below Board ET REMOTE MP3 a DUWO Y VR Set Distance 5V 2435 t23 e sunneenintss 4 JP s ADN o p 4 T ie WML S o eao g ET BUSIO DC IN OG TE MMBLETTENM mo z at cg O CR Siok yer 6086 EMOTE fas lt A zspo E MN a be Ue QY0A02 Trig Active 0 Y E DISTANCE SENSOR It shows how to interface Distance Sensor to control to play file of Board MP3 in TRIG Mode Refer to the circuit above the 5V Power Supply that provides for Sensor and Board MP3 is separated into 2 sets to interface into Ground separately as shown in the circuit above Or it uses only one set and then interface into Ground together First of all user has to interface circuit as shown in the picture above in this case it uses Channel No 1 Of Signal Irig Ol Board MPS For Set DIP SW CONFIG user can sev che format of playing file as required Next user has to setup value of Sensor by using obstacle to block Sensor in the specific distance that user require detect and then it should adjust VR on Board R OPAl until LED on board is lit up it means that it is work Next user can test the operation of Sensor by blocking the Sensor and then see the Signal from Sensor 1s sent to trig Board MP3 in the first channel and finally the sound file in the first order will be played instantly 33 User s Manual of Board ET REMOTE MP3 V2 ETT 5 Describe how to run example Program in CD Examples that
26. case of Play by Name it can be replaced by the preferable filename file surname that is shown on Terminal such as F17 MP3 or TEST2 WAV 9 When user changes any data in Micro SD Card or Set DIP SW it has to reset Board to update the new change 4 3 MP3 SW MODE 4 3 1 Operation This operation mode is used to control the operation of Board MP3 through 3 Switches on board it is suitable for playing file as same as the general MP3 Player These 3 Switches on board have different functions such as Play Pause Stop Forward Reverse Volume up and Volume Down user can read more information of each function from section Application below Moreover 1C can use DIP SW CONFIG Lo set Contigurations of playing file for example it sets Board MP3 to play all files in Card one time and stop or it repeats all files or it starts playing sound file instantly after Power ON or it starts playing file after pressing SW Play Please read more information of setup value from table in the section Application below as well When this operation mode starts running the program always checks what Contigurataions Of DIP S5W CONFIG as Set tor playing sound tile For example it starts playing file instantly after Power ON or it has to press SW PLAY STOP first and then it starts playing the file It always 24 User s Manual of Board ET REMOTE MP3 V2 ETT mM plays the first sound file that is copied into the Micro SD Card When it
27. ck Echo Command OK Exit Loop The operation of this program starts reading Byte Start to check 1f it is If yes it continues reading more 2Byte Data to check if it is OK If yes it exits from Loop If no it returns to read Data again 13 RESPOND End Of File This Respond is from Board MP3 Every time it finishes playing song file although the song file is ended by normal play or Command STOP Forward or Reverse Board MP3 always sends this Respond The format of Respond is 2Byte ASCII in capital letter as shown below E a Respond EOF This Respond Command is sent out in the format of ASCII through RS232 moreover it is sent out in the format of Pulse Logic 0 with 20ms Width through Connector No 15 OUT EOF While there is no any Signal EOF signal EOF LS ogre LY 3 3V 16 User s Manual of Board ET REMOTE MP3 V2 ETT Ex How to check Respond Echo EOF through RS232 Code for AVR Mega 128 Compiler WinAVR Check Echo End Of File amp E void Echo EOF unsigned char eof ch do do loop until bit is set UCSROA RXC Check data in Rx buffer ch UDRO Read Data while ch amp Check Byte Start of Echo EOF amp loop until bit is set UCSROA RXC Check data in Rx buffer eof UDRO Read Data while eof E Check Echo EOF E Exit loop Refer to the example above it is the method to check Respond EOF It starts
28. d it always checks the Echo OK or it uses Time Delay before sending the next command It protects the operation from sending and overlap of command otherwise it has error when sending Command to control Board MP3 18 User s Manual of Board ET REMOTE MP3 V2 ETT Table Summarize COMMAND and RESPOND COMMAND ET REMOTE MP3 V2 Byte Data End Byte i ECTS MO e e notin morena e 1 om oo a morena r gt reas oon a rusras f fr fol oem fs smrnriesn s 1 vo a fromeaw if e v oo Cs roume v DEC EC O O A gt comen JeJoa To i m omorarea x Pa TT mao 0x0D Hexadecimal number to replace Enter No 2 Byte Data 01 99 is the order number of Ascii 2 byte No 3 Byte Data FFFFFFFF MP3 is 8Byte file name and 3Byte File surname at the maximum No 8 Byte Data 00 99 is Volume Ascii 2 Byte when 00 Silent 99 Loudest No 9 Byte data 0 1 0 1 0 1 is Configuration Ascii 3 byte each Byte can be set to be either 0 or 1 No 10 Respond Show File NN order of file FFFFFFFF 8Byte File Name No 14 Respond Play Time MM minute SS second 19 User s Manual of Board ET REMOTE MP3 V2 ETT 4 1 3 Application 1 Copy and paste File surname MP3 or WAV into Micro SD Card and then insert the Card into the Socket 2 Check if Jumper JP1 JP4 on board is set and the headphone is interfaced complete
29. ds up Board sends Signal EOF in the format of E 2 Byte to notify user to know that it finishes playing the current song file and it is ready to receive the next command or play the next song file Signal EOF can be sent out through RS232 moreover it can send Pulse 0 with 20ms Width to Connector No 15 OUT EOF in this case user can see that Signal EOF happens from LED OEF on board If user sends command to show Play Time while playing the song file the board also sends the Play Time throughout in the format mm ss when mm minute 2Byte ss second 2Byte Remember When user starts sending Command into Board MP3 it should set both parts of receiving and sending Command synchronously Syn It should set Time Delay 200 500ms or higher for board that is used to send Command next it starts sending the first Command into board it sets Board MP3 to be in the ready status to receive the command before Power Up When it sends Command continuously it should set Time Delay between Commands if it does not check any Echo Command from Board MP3 in this case Board MP3 finishes running the first Command completely 4 1 2 Format of Command and Respond for ET REMOTE MP3 V2 The format of Command that is used is in all ASCII Code it can be replaced by ASCIL Symbol such as or HEX Code that ws UXZA O 0xk350 A 0x41 If it sends Command in the format of letter A Z it only sends the Command by the capital letters only it does
30. ead the value of Play Time while playing sound file If user would like to set Board MP3 to send Respond Play Time user has to send Command CF in this case it has to set the 7 Byte of the command to be 1 to Enable Play Time first Default Disable Play Time The format of this Respond is 6Byte ASCII in capital letters as follows MM Minute ASCII 2 Byte SS Second ASCII 2 Byte Ex How to read Respond Play Time Code for AVR Mega 128 Compiler WinAVR Read Play Time Buf_Time 0 Ascii Minute Byte High Buf_Time 1 Ascii Minute Byte Low Buf Time 2 Ascii if Buf Time 3 Ascii Secound Byte High Buf _Time 4 Ascii Secound Byte Low void RD Time unsigned char ch n do loop until bit is set UCSROA RXC Check data in Rx buffer ch UDRO Read data Start Byte twhile ch Check Byte Start of Echo cmm for n 0 n lt 5 n if ch then Keep data 5 byte MM SS i loop until bit is set UCSROA RXC Check data in Rx buffer Buf_Time n UDRO Read Data MM SS j Refer to the example above it sets the Variable Buf Time for storing the Play Time that is read When it starts the program it checks the Byte Start first if it is it starts storing 5 Byte into the Variable Buf Timell respectively NOTE Every time after sending the Comman
31. eferred However it does not allow to use the same letters as the Command such as amp File surname of song must be MP3 or WAV only in this case user can set it by either capital letters or small letters as well When user requires calling any file name and file surname it always shows in English capital letters If any file name is setup in Thai letters it shows strange and illegible letters instead In this case it only displays 8 letters at maximum if any file name is longer than 8 letters according to the format 8 3 through RS232 it shows result by Program Terminal or other programs that support the RS232 Interface If using Command Play by name it always uses capital letters for playing file name and file surname although the file name file surname is setup by capital letters or small letters It has to format Micro SD Card that is used to store track into FATI16 or FATSZ Ti sts When user copies 1 song file from PC into Micro SD Card in each time the first song file that is copied and pasted in the Card will be played first The next song file will be copied and pasted in the order of 2 3 4 and so on this file order is used to send Command Play respectively When user copies all song files Copy All from PC into Micro SD Card in each time user does not exactly know which file will be copied and pasted in the Card first or which file is pasted in the order of 2 3 4 and so on When using Command Play to play
32. g any Configuration value for playing file to be different from the Default value while writing program user should set this Command above program because Board MP3 always enables ON this Configuration value for playing file The Configuration value of playing file can be set according to Byte as follows l Byte5 0 It starts playing sound file instantly after received any Command Play without waiting for the end of current sound file Byte5 1 It waits until it finishes playing the current sound file first and then it starts splaying the incoming Command Play 2 Byte6 0 It plays all sound files in Micro SD Card one time or it only plays the specific sound file one time and stops Next it is ready to receive the new command Byte6 1 It plays all sound files in Micro SD Card repeatedly or it only plays the specific sound files repeatedly and continuously 3 Byte7 0 It disables Play Time while playing sound file Play Time Disable Byte7 1 It enables Play Time while playing sound file Play Time Enable The format of Command is shown in the table below Byte5 Byte7 3Byte Configurations for playing file each Byte is ASCII o or 1 only please see the further meaning in the table Ex char enter 0x0D printf CF 101 e enter JAIUNIT WaNlAUAEAVAVUA VIAL Wana LAL Mind esa a va MALTUAANLIAIVMULLAUAIE printf CF 011 c enter NNUA LY LAL LNANUNWANAISA
33. g at Pin that receives Signal Trig in this case it can trig 16 orders of song see more information of Trig in the section of TRIG MODE 1 5 Can play sound file from internal and external folder I 6 Can see a List of sono and order of fide in Micro SD Card by using DLP SW MODE or sending Command It shows result through RS232 by Program Terminal or other programs that support the RS232 Interface le LED displays status of playing song trigging IRIG and ending tile EOF 1 8 Every time it finishes playing any file it sends Command End of File through RS232 and it sends 20ms Pulse Width Logic 0 to Connector EOF of board so user can check the end of file 1 9 4 Baud Rates can be set in COMMAND Mode 4800 9600 57600 and 115200 Baud sec 1 10This COMMAND Mode can play song according to the number order not longer than 99 orders or play by name stop playing song by either STOP or PAUSE tune the volume up down repeat 1 track or repeat all or play 1 track and stop or play all tracks one time and stop play forward FW or rewind RV 1 song in each time show Play Time name and order of file in Micro SD gt through RS232 1 11COMMAND Mode When it sends Command Play in each time user can set the format of playing it plays the next song instantly after sent the Command Play or it waits for a minute to end the current song first and then Starts playing the new song 1 12MP3 SW MODE It can use C
34. gic 0 for 20 ms and then it returns to Logic 1 3 3V again In summary every time it finishes playing the song file Board MP3 sends Signal Pulse EOF Logic 0 with 20ms Width to user through this connector Feature of Signal EOF Feature of Connector EOF 16 SW_CONFIG This DIP SW is used to set Baud Rate for receiving sending command through RS232 when using Board MP3 in COMMAND MODE This DIP SW is used to set specifications of playing song file when using Board MP3 in MP3 SW MODE of TRIG MODE The change of DIP SW in each time is only effective when Board is reset So every time user sets DIP SW user has to reset Board MP3 to update the new change For table of Set DIP SW CONFIG user can read more information in the Application of each operation mode 17 SW MODE This DIP SW is used to set and choose the operation mode When using Pequires using this board 1t has to set DIP 5W MODE tO set and choose the operation mode first There are 4 operation modes as shown in the table below After Set DIP SW MODE completely it always resets Board MP3 to update the new change otherwise this Set DIP SW MODE is ineffective and it has not an effect on the operation of board Table Show Set DIP SW MODE DIP SW_MODE MODE Format of Operation MODE SW_MODE It runs in COMMAND MODE It sends command through R3232 and it uses DIP 5W CONFIG To set Baud Rate for sending receiving It runs in LIST SONG MODE It sees all lists of song fi
35. icro SD Card and then insert the Card into Socket 2 Check if Jumper JP1 JP4 on board is set completely 3 Set DIP SW MODE by setting t the position of MP3 SW MODE S1 0N S2 0FF as shown in the picture below SW MODE It shows show to Set SW_MODE to run in MP3_SW MODE 4 Sel DIP 5W CONFIG to set Configuration of playing file please see more information from the table below Every time user changes any value of Set DIP SW 1t always resets Board MP3 to update the new change User s Manual of Board ET REMOTE MP3 V2 ETT M Table Show how to Set DIF SW CONFIG Set properties play for MP3 SW MODE DIP SW_CONFIG Format of SET Properties Play ON 0 ON 0 It plays sound file instantly after Power ON or Reset without pressing SW PLAY STOP It plays all files in the Card one time and then stops automatically It plays sound file when pressing OFF 1 ON 0 SW PLAY STOP Tt plays all files in the Card one time and then stops automatically It plays sound file instantly after Power ON or Reset without pressing SW PLAY STOP It ON 0 OFF 1 l plays all files in the Card repeatedly Repeat All It only plays sound file when pressing OFF 1 OFF 1 SW PLAY STOP It plays all files in the Card repeatedly Repeat All 5 Provide Power Supply DC 5V for board be careful do not alternate pole user can see that LED PWR is lit up 6 Test the operation by pressing SW PLAY STOP to start playing sound file ne
36. iq Moo ql ao o Sil dy tT Cos oz0 4 12VDC 1 B E s SE cto E sa O 3 on ALA ext pes 5ds Js EJ OOj al 2 a e pe eS gt J 3 Ofg O O vot s zi a J m olo P 6 a 3 ae rp rae D rr semg 83 3 3 O 08 Trig CH16 AE a Ol y a o o JA 3 A A ES Ges z ER GA 500353 El 80075 E FA pesvg B It shows how to interface Pin I O 1 16 of Board MCU 5V for Trig Active 1 through Board ET BUSIO DC IN to reduce the Voltage level 3 Example of interfacing circuit by Distance Sensor to send Signal Trig This section shows how to apply this program in Trig Mode by using Distance Sensor that runs by 5V Power Supply 2Y0A02 to send Signal Trig from external instead of MCU to control to play sound file It is interfaced with Board R OPAl of ETT that converts Signal Analog of the Distance Sensor to be either Signal Digital O or 1 next it uses this Signal to trig When Output from this R OPAl is in the normal status it is 1 but when any obstacle blocks or obstructs the Distance Sensor in the specific distance Output is Logic 0 In summary this Signal Trig runs Active by Logic 0 In this case it uses Board ET BUSIO DCIN to reduce the Voltage level of Signal Trig from 5V to 3 3V first next it 32 User s Manual of Board ET REMOTE MP3 V2 ETT interfaces Signal to Connector Signal Trig of Board MP3 as shown in the circuit
37. is mode Every time user changes any data in Micro SD Card it has to reset Board MP3 to update the new change 22 User s Manual of Board ET REMOTE MP3 V2 ETT 4 2 2 Application 1 Copy and paste File Surname MP3 or WAV into Micro SD Card and then insert this Card into Socket 2 Check if Jumper JP1 JP4 on board is set completely 3 Interface Cable RS232 from Board MP3 to Connector RS232 DB9 of PC 4 Set DIP SW MODE to the position LIST SONG MODE S1 0FF S2 0N as shown in the picture below It shows how to set SW MODE to run in LIST SONG MODE 9 Set DIP SW CONFIG to set the preferable Baud Rate for sending data please read more information in the table below Every time user changes this Set DIP SW it always resets Board to update the new change Table Show How to Set DIF SW CONFIG Set Baud Rate for LIST SONG MODE BAUD RATE ON 0 ON 0 115200 joc fono emo oro IO 6 Open Program Terminal or other programs that supports the display through RS232 and then set Configurations as follows Baud Rate Set DIP SW in step No 4 DATA BIT oy PARITY NONE STOB BITS E HANDSHAK NONE 7 Provide Power Supply DC 5V for Board be careful do not alternate pole in this case user can see that LED PWR is lit up 8 Program Terminal shows order of file and list of file name in Micro SD Card moreover it shows details in each part as shown in the picture below User s Manual of Board ET REMOTE MP3 V2 ETT b
38. its Parity Stop bits r Handshaking e none e 3 none Disconnect A on C odd LAPS 7 8 C e00 C 14400 C 57600 7 C 1200 19200 115200 Y C 2400 28800 128000 fe C 4800 f gt 9600 K a About even 1 5 ON OFF Quit Settings Auto Dis Connect Time Stream log custom BRA Ax Clear ASCiltable Scripting Set font EENEI M AutoStart Script M CR LF J Stay on Top 3600 27 Graph Remote 38400 256000 f 66000 custom C mark C RATS CTS x0NZ xX0OFF COM Port Baud rate Dat fs r i space 2 C RTS on TX r r Help c r r Receive CLEAR _ Reset Counter 113 Counter 32 A ARE Ls a Bin StartLog ygs LIST OF ALL FILE SONG Y MP3 02 HOKIA MPS 03 FINES MP3 04 FINE10 MP3 US LINE11 MP3 06 FO1 MP3 OF FO2 MP3 08 FOS MP3 09 FO4 MP3 10 FOS MP3 11 FO6 MP3 12 FO MP3 13 F12 MP3 14 FI75AQS SAMA MOLALUINANA LNA sefrizmes LOUL F17 MP3 F18 MP VUNIELAUVAINUY LTU 02 03 04 MA 23 19 4x 1 MP3 24 OFCARR 2 MP3 25 TESTS WAY 26 TEST2 WAY 27 TEST1 WAY 28 NOY WAY Number ALL Of File Song in Card 28 File It shows order of file and list of file name that is called in MODE LIST SONG This describes how to replace order of sound file or filename file Surname in the Command Play in the COMMAND MODE such as Play In case of Play by Order it can be replaced by the preferable order of file to play such as 01 or 02 or 15 In
39. le 16 checks from unci n EONO FOR che program sends Command Pl to play the second sound file Every time it checks and finds this EOF the program always sends the Command Pl to play the next sound file until it reaches the sound file No 15 Next it returns to play the sound file No 2 again and so on Ex2 Read Play Time Thts example ws used Lo play the sound tule tame A23 FIL MP3S cor 20 seconds next it plays the sound file name A24 FT2 MP3 for 1 minute and 16 returns tO play Che tide Name A23 FTL MP3 again It repeals to play the sound files ih this format continuously When running program iC should setup the sound file name in Micro SD Card as mentioned above or it should change the sound file in the program according to the file name in Micro SD Card in this case the length of the sound file should be longer than 1 second The operation of program starts with sending Command CF to setup Board MP3 to show Play Time Next 1t starts sending the command Play by Name checks Echo Command and Calls Function RP Time LO read the Play Time The Play Tame 1s stored in the variable But Time 0 4 an thas case But Time 0 1 svores value tn The part Of minute and Bur Timeo 4 store value in the part of second It checks if the current sound file is played for 30 seconds completely if no it returns to read the Play Time again if yes it starts sending the next Command Play by Name to play the second fi
40. le Next it reads the Play Time of the second file It checks if the second file is played for 1 minute completely if yes the Program returns to play the song file that is specified at the beginning again A User s Manual of Board ET REMOTE MP3 V2 ETT 5 2 Example Program for TRIG MODE The method to interface circuit for the example in TRIG MODE for MCU 5V is to use ET MINI3TO5 it reduces the voltage level from Pin I O that is 5V into 3 3V before interfacing to Pin Trig of Board MP3 If using MCU 3 3V it can interface Pin 1 0 of MCU to Pin Trig of Board MP3 directly Connector EOF from Board MP3 can be interfaced with Pin I O of MCU that is either OV OF 3 57 directly without interiacing through any Circuit In this case it has to pull up Pin G if G of Board MP3 and MCU are not interfaced together Exl Trig By Cmm This example illustrates how to receive Command from user through RS232 of Board MCU The format of Command is in the table below When user sends Command into Board MCU the Board also sends Signal Trig to Pin I O according to the specific pin position in the Command Next this Signal Trig 1s sent to pin of Board MP3that receives Signal Trig the song file in the channel number that is trigged will be played instantly ASCII Command For Test Number Song End The operation starts with setting Pin I O that sends Signal Trig to be all Logic 1 first and then it checks if the command that is sent from user is co
41. le and song order in Micro SD Card through RS232 It uses Program Terminal to display results It runs in MP3 SW MODE It controls to play file by 3 switches on board and it uses DIP SW CONFIG to set formats Of playing song Tile It runs in TRIG MODE It plays the song file by receiving Signal Trig from external and it uses DIP S5W CONFIG to set formats of playing the song file 18 RS232 It is Connector to interface Cable RS232 It provides IC Line Driver 232 on board completely so it can interface with PORT 232 of PC directly If it 1s interfaced with MCU it has to provide IC Line Driver 232 for PORT 232 of MCU on the other side and it can communicate without any error This connector is used when user requires seeing a list of song file and file 8 User s Manual of Board ET REMOTE MP3 V2 ETT mM order in Micro SD Card and it uses Program Terminal to display result or it is used to send Command Play in Command Mode by PC or MCU It has to set specification of communication as follows BAUD RATE 4800 9600 5700 115200 by DIF SW_CONFIG DATA BIT 8 RS232 PARITY NONE STOP BIT 1 HANDSHAK NONE No Use RXD TXD GND It shows Connector RS232 It interfaces Cable RS232 as shown in the picture below ET REMOTE MP 3 V2 VCC It shows how to interface Cable RS232 from device that sends Command to Board ET REMOTE MP3 V2 19 CON TRIG This 16 Channel connector is used to receive Signal
42. ly 3 Interface Cable RS232 for sending Command to PC or MCU completely 4 Set DIP SW MODE by setting it to the position of COMMAND MODE SI 0N S2 0N as shown in the picture below SW MODE Picture shows how to set SW MODE to run in COMMAND MODE 5 set DIP SW CONFIG to choose and set Baud Rate for sending receiving data as required please refer to the table below Every time user changes the value of Set DIP SW it always resets the Board to update the new change Table Show how to Set DIF SW CONFIG Set Baud Rate for COMMAND MODE BAUD RATE ON 0 ON 0 115200 pov fono oe ero oro MO 6 Provide Power Supply DC 5V for board be careful do not alternate pole user can see that LED PWR is lit up and it is ready to run 7 Use Program Terminal when interfacing with PC or MCU please try to send the Command as mentioned above In this case user should set Configurations of RS232 as described above User s Manual of Board ET REMOTE MP3 V2 ETT Example of sending Command through RS232 by Program Terminal Step 1 Interface Cable RS232 from PC to Connector RS232 of Board ET REMOTE MP3 V2 completely Step 2 Set DIP SW MODE to run in COMMAND MODE S1 S2 ON and Set DIP SW CONFIG to choose and set Baud Rate 9600 S1 ON S2 OFF Step 3 Copy Program Terminal from CD into PC and run this Program Terminal next set values as shown in the picture below When user set values completely click Button Connect to OPEN
43. n the format of Close Loop and it has to send this Command RV while playing file The format of command is shown in the table below 5 enw wan No EX char enter 0x0D printf RV c ente ANAIAVLAAL LWaldevaaguuaiwnya 7 Wa 8 COMMAND VL Volume This Command is used to tune the volume up down Volume When user requires adjusting volume in the blank of Volume Byte5 6 it has to add 2 digits of ASCII from 00 Silent to 99 loudest The format of Command 1s shown in the table below es e ee E CET Byte5 Byte Volume ASCII 2 Byte 00 99 EX char enter 0x0D printf VL 68 c enter ANAIAVUSU Volume LUNSLAUADINUSY 68 9 COMMAND CF Configuration Play This Command is used to set Configuration of playing sound file User should set the Configuration of playing sound file completely before using the Command Play because it starts playing the sound file instantly according to the setting Configuration after using the Command Play This Configuration value is 3Byte ASCII and it is replaced by 0 and 1 The Default value 1s always set at OOF It always remembers the Configuration value that is set by user until it is reset or it sends Command CF to set new value In this case Command STOP has not any effect on this Configuration because it does not change any value If user 13 User s Manual of Board ET REMOTE MP3 V2 TT mM requires changing or editin
44. name must be 8 Byte at the maximum and the file surname must be either WAV or MP3 only If using this Command to play song file the file name must be set by English only If the file name is longer than 8 Byte it can use the Command Call by file name or DIP SW MODE to see list of song file briefly The format of Command is shown in the table below FILE NAME MP3 WAV Start CMM Markl eee vo lu SByte FFFFFFFF File name is set by ASCII Code in capital letter and does not exceed 8 byte char enter 0x0D A printf P2 LINE8 MP3 c enter AVAIAVLAU L A LINES MP3 1 1 User s Manual of Board ET REMOTE MP3 V2 ETT 4 COMMAND PU Pause Play File This Command is used to temporarily stop playing sound file PAUSE If user requires playing the sound file at the stopped position user only sends this Command again While using this Command Pause Play File it still uses other commands such as to tune the volume up down setup specifications of plaving file show the current file and Command PU to return to play file The format of Command is shown in the table below EX char enter 0x0D printf P1 07 c enter ANAMIAMLAW LWA IMU IU Micro sD Card Echo_cmm Check Echo Command OK Function IAN Respond Command 219 Lf delay unu la printf PU c enter ANPIIANMEIA LWATIATIA Echo_cmm Check Echo Command OK printf PU e enter AMM a a vana In cio 5 COMMAND
45. not support any small letter User can see any file number or filename file surname that is replaced in the Command Play Command P1 P2 by DIP SW MODE please see in the section of LIST SONG MODE or Command Call by file name This file number file name and file surname that is called can be used to replace in Command Play P1 P2 The Command is described as follows 10 User s Manual of Board ET REMOTE MP3 V2 ETT mM 1 COMMAND PO Play File All This Command plays all files in Micro SD Card It starts playing the first song file in this case it is the first file that has been copied and pasted into the Card The format of command is shown in the table below te5 char enter 0x0D printf P0 c enter ANAIAILAL LWAVNNUNA LU Micro SD Card EX 2 COMMAND P1 Play File By Number This Command plays sound file by file number from 01 99 this file number must be sent in the format of 2Byte ASCII When it plays sound file it has to refer to the actual amount of file in the Card but is only plays 99 file at the maximum although amount of file in the Card is higher than 99 files The format of command is shown in the table below ar dr EX char enter 0x0D printf P1 07 c enter ay AAY Lau lw ANAUN 7 lu Micro SD Card 3 COMMAND P2 Play File By Name This command plays sound file by name File name and file surname must be capital letter only moreover the file
46. ogic 1 the voltage level does not exceed 3 3V only Q 4 User s Manual of Board ET REMOTE MP3 V2 ETT How to use Board ET REMOTE MP3 V2 4 1 COMMAND MODE 4 1 1 Operation This operation mode sends external Command through RS232 to control to play song file In this case it can use any series of Controller to send command or it can send Command through Program Terminals by typing commands from Keyboard When board starts running it types and shows the message ET REMOTE MP3 V2 Firmware V2 1 OK through RS232 it notifies user to know that it is ready to receive Command The board that 1S used to send Command can read this Respond and use this Respond to check if Board MP3 is ready before sending Command Or it may set Time Delay for 2 3 seconds because Board ET REMOTE MP3 can initial itself completely before receiving Command When user sends Command into board and the Command 1s done completely the board sends out Echo in the format of OK 3Byte if the Command that is sent out is correct If Command Play File is sent out before file is played in each file board always sends order of file and file name file surname that will be played in the format of NN FFFF MP3 or WAV when NN order of file 2Byte FFFF Filename not higher than 8 Byte Next when it finishes playing the current song file or the current song file is interrupted by Command STOP Forward or Reverse and the current song file also en
47. ommands Play STOP PAUSE FW RW tune the volume up down by 3 switches on board 1 13MP3 SW MODE It can use DIP SW CONF to set the format of playing song it plays all songs one time and then stops or it repeats all songs Moreover user can choose the format of playing song either to play the song instantly after Power ON Auto or play the song when pressing SW Play on board 1 14TRIG MODE It can stop STOP and tune the Volume up down by 3 switches SW on board 1 15TRIG MODE It can play song from 1 to 16 by using Pin that receives Signal TRIG of the song position that user requires playing it trigs into ground and then set it free it starts playing the song instantly 1 16TRIG MODE It uses DIP SW CONF to set formats of playing song it plays 1 song and stops or it repeats 1 song Moreover it can be set to start playing the song instantly after trigged or it waits for a while until the current song finishes first and then starts playing the trigged song later 1 1 7 Every time board is reset the Volume is set to be Default value moreover it does not remember any pending operation before resetting Lu Lo AdJUSTMEnt Of DIP 5W MODE a o DIP 5W CONF only ws effective when Board was reset 2 User s Manual of Board ET REMOTE MP3 V2 ETT Specifications and How to manage File for Micro SD Card 1 Setup name of file or folder byeither Thai or English and it can be set by either capital letter or small letter as pr
48. own in the picture below It shows the full file names in the blank of Long Name and it shows the short file name in the blank of Short Name DriveSort File Disk Folder Display 7 4 Click the black arrow on the right side of Icon next choose name in the blank DriveSort Short Marne gt ETT_16G fat ACT MPS 202 aaa MP3 1 203 419 MP3 i Add a MP3 ft AOS fo MPS ADS na MP3 6 A07 ia MPS 8 ADS_wala MPS 209 An MPS 210_1 MP3 A11 471 MP3 A12 ma 1MP3 A13 sa MP3 0 414 8 MP3 0 415 Gea MPS 216_v3l0 MP3 let 217 1 1 MP3 218 na LMS 219 an 1 MP3 220 152 MP3 i 421_0s 1 MP3 ADO 1 hd Long Name Sort Long Name see in the Card Next see that the list of file name in the blank in the alphabetic order click Icon Long Marne ETT_16G ADi Ya mp3 AQ Aaa mpd AOS aAa mp3 04d a mp3 AOS Fa mips ADE A mpo AQ 3e mp3 ADS wale mp AOD tAn mpa AIO gquwe mp3 Al di mp3 ade aaniu mpi a13 arya mpi add ura mpa AT5 la mp a76_ da mp ad mara mp ALB syaa mp AIS dans mpi ACO agaanesta mps 221 aganin stamps ae A A nea aici ma Long Name File Disk Folder Display Bi A E ales iB AM Short Mame Sort rder Directories e Subdirectories Md Short Mame gt ETT_166 i A0 14 1MP3 AQ aaa MP3 ANG aa MP3 6 A04 AMPS ft AOS A M P3 ADB a MP3 AQ ia MP3 W 408 val MP3 8 409 Aa MPS fet A10 a1 MP3
49. r the application that receives Signal TRIG from pressing switch or receives value of Sensor from external device to trig The feature of Signal Trig is Active Logic 0 with 20ms Width or higher Moreover when the voltage level is Logic 1 it does not exceed 3 3V because Input of MCU does not support 5V The internal structure of Pin that receives Signal Trig is to interface with R Pull Up with 3 3V as shown in the picture below Signal Trig Active 0 Pin TrigCH 1 CH16 1 gt 33v e Active 20 ms It shows the internal structure of Pin that receives Signal Trig CH1 CH16 and the feature of Signal Trig So 1t can directly interface Connector that receives Signal Trig of Board MP3 with Pin I O of device that sends Signal Trig such as MCU or Sensor uses the Power Supply that does not exceed 3 3V only If voltage level the of device that sends Signal Trig exceeds 3 3V or Signal Logic 1 at Pin I O exceeds 3 3V it has to use circuit to reduce the voltage level please read more information from the section of Application below Warning Signal that is used to trig while it is Logic 1 does not exceed 3 3V only User s Manual of Board ET REMOTE MP3 V2 ETT 4 4 2 Application 1 Copy and paste the file surname MP3 or WAV into Micro SD Card and then insert the Card into Socket 2 Check if Jumper JP1 JP4 on board has been set completely 3 Set DIP SW MODE to the position of TRIG MOD
50. reading Byte Start to check if it is amp If yes it continues reading more 1 Byte data to check if it is E If yes it exits from Loop on the other hand if no it returns to read Data again Ex How to check Respond EOF from Signal Pulse Code for AVR Mega 128 Compiler WinAVR Check Status Signal EOF End OF File void Chk Eof char eof do Loop Check Eof 0 end file eof PINB Read PBO 0 end of message 1 Ready for Play or Playing eof eof amp 0x01 Mark bit 0 while eof 1 eof 0 exit loop dot Loop Check EOF 1 Ready eof PINB Read PBO 0 end of message 1 Ready for Play or Playing eof eof amp 0x01 gt Mark bit 0 while eof 0 eof 1 exit loop This example shows 2 steps of checking Signal EOF Firstly it checks if Signal EOF is O if yes it means that it finishes playing the file Secondly it checks if Signal EOF returns to be 1 if yes 1t means that it is ready to receive the next command If user only checks the first step and sends the command instantly but the Signal EOF does not return to 1 the command that is sent out may not be done _17 User s Manual of Board ET REMOTE MP3 V2 ETT mM 14 RESPOND Play Time This Respond is used to send Play Time from Board MP3 through RS232 all the time while playing song file User can use Program Terminal to show Play Time and can use MCU to r
51. rrect If yes it sends Signal Trig Logic 0 of the chosen Channel to the specific Pin I O for 20ms next it sets Pin I O to be Logic 1 again to wait for receiving the new Command Ex2 Trig By Check EOF This example illustrates how to command MCU to send Signal Trig to Connector Signal Trig of Board MP3 It starts trigging the Channel from No 1 No 16 so it starts playing the sound file from No 1 No 16 according to timing of Signal Trig When it has trigged all 16 channels completely the program returns to trig the Channel No 1 again In this case it should have at least 16 sound files in Micro SD Card for testing the program The operation starts with setting Pin I O that sends Signal Trig to be all Logic L Tirol exe 1 Calls funceton Ploy Pile This Tunc ion starts sending Signal Logic 0 to Pin I O of MCU that is interfaced with the first Channel that receives Signal Trig of Board MP3 next it sets Time Delay for 20ms and finally it sets Pin I O to be Logic 1 again Next it repeats to read Signal EOF from Board MP3 to check if it is Logic 10 if yes it means that it finishes playing the trigged song file and the program starts trigging to play the next sound file in the second channel Every time it ends any sound file it sends Signal Trig in the next channel continuously until all 16 channels are complete next it returns to trig the first channel again and so on kkkkkkkkkkkkkkkkkkkkkk MANUAL ET REM
52. sor 5V If user requires sending Signal Trig from external by MCU or Sensor 5V to control to play sound file of Board MP3 it cannot interface 1 0 directly in this case it has to interface through circuit to reduce the voltage level into 3 3V first There are many types of circuit to reduce the voltage level it depends on the connective device in this case we would like to use the ETT device to reduce the voltage level of signal Trig from SV to 3 3V as follows This is an example shows how to interface circuit when using ET MINI3TOSTTL to reduce the voltage level it is suitable for trigging many Supply aDJ ji O ETT M u H a4 J 2 PA aa Suim 8009 ses i E Spese im OO 070 OO Trig Active 0 channels ET MINI3 TOSTTL Board ET REMOTE MP3 Da nw nn uo c Board MUC5V G SETA a Wy IA n LI p MEN r Ly a ae x oft 3 4 Cch i Trig Active 0 e 9 A p lt S pure 5 ra dHe n 6 25 Eje cm ceo er 7 fo E53 EJ m i o slo te Co E Sila 8 s 2d o ZD i Ea 3 Olia 3 ha E EJ 3 EJE OD 9 g j A u 2171 A svo gt 2 E j oo 1 1 1 O 0 00 PLAY STOP RU VOL O as232 0 e Sane co coe e Ec a mieni 11 ci A et Tr ot shi MODE 201 i i ty E fad s It shows how to interface Pin I O 1 16 of Board MCU 5V through ET MINI3TOSTTL to reduce the voltage level ee Active 0 DC5V 30 User s
53. switch again it restarts playing the first song file 3 PAUSE It temporarily stops playing the current song file Pause While the current song file is being played user presses and holds the Switch longer than 0 5 seconds and then removes it temporarily stops playing the current song file When user presses and removes this Switch again it starts playing the song file that is previously paused again When using this Switch in Trig Mode it is only used to stop STOP playing the current song file in this case it only presses and removes the switch as normal CON PWR This connector is used for Power Supply DC 5V of Board MP3 in this case user has to ensure that the point of electric connection is interfaced correctly G qn DC 5V Figure displays Connector Power Supply of Board LED EOF This LED shows status of Signal End of File EOF Every time it finishes playing the song file or it is commanded by the Command Forward or Reverse Signal EOF happens for a while and this LED is ON and OFF according to the signal happened 7 User s Manual of Board ET REMOTE MP3 V2 TT mM 13 OUT EOF This Connector Output is used to send Signal EOF to check the end of the current file This signal happens when it finishes playing the File or it is commanded by the Command Forward or Reverse When it is in the normal status the feature of signal at Pin EOF is Logic 1 3 3V when Signal EOF happens signal at Pin EOF falls to Lo
54. t the Micro SD Card is described below 1 Push the Socket cover to the left side 2 Pull the Socket cover 3 Insert Micro SD Card 4 Close the Socket cover 5 Press the Socket and push the Socket Cover to the right side to lock the Card tightly Ne j do O v _ q lt lt A SS Sor zZ lt The method to Warning Every time user inserts or removes this Micro SD Card from Board MP3 it has to disconnect Power Supply from Board MP3 first User s Manual of Board ET REMOTE MP3 V2 ETT 18 RS232 19 CON TRIG 17 SW_MODE 1 LED PWR C ooog 0000000000000000 0000000000000009 3 b S RS232 a a ee ee c7 ET REMOTE MP3 V2 gt 2 LED TRIG jo es ET me gt 15 OUT EOF aman TI y 4 010 0 Js a Eeee fl aspal DEGRE far gt gt EOF ca cae C c14 13 BICI 3 LED ACT vs c18 a nig Us C24 LED2 cote C26 of eor cs STN8S1 5C4 aa reo pa e Eeen de 14 LED EOF aye A glen I moe _ s STM8 PGM mi Ga ME 4 Socket Micro 10uF EN SHIM O z z 1 A FIN da SD Card zl OJO O O su E G EY G riz J6 a J RIGRIZ7 y7 O O c2e c21 can c22 R11 mit x xix RESET d El El OJOLOJO us Et a o c38 olololo fella mm 0 res pee 7 JP PGM a a ae du du O Ei jl na sis Sess 8285 O 5 Headphone ose A SOL Or OF EEP PGM HEADPHONES J5 sus O
55. xt test function of SW as shown in the table below 7 Function of 3 Switches on board when pressing is listed below Table Show functions of all 3 Switches on Broad For MP3 SW MODE Shortly press less than 0 5 seconds Release Press and Hold longer than 0 5 seconds Release SW NAME Press while playing Press while not Press while playing Press while not playing file playing file file file RV VOL Reverse File lt lt Volume Down Volume Down FW VOL Forward 1 File gt gt Volume Up Volume Up 8 Every time it finishes playing sound file or it presses SW FW or RV Board MP3 always sends Signal EOF Active LOW to Connector OUT EOF in this case user can see that LED EOF is blinking This signal can be used to check the end of playing file 4 4 TRIG MODE 4 4 1 Operation This operation mode is used to control the operation of Board MP3 through Connector Input TRIG 19 CON TRIG on board there is 16 channel Connector to receive Signal TRIG 1 16 When Signal TRIG is coming in any channel any sound file number that accords with the trigged channel number starts playing file instantly For example if there is incoming Signal TRIG at INPUT Channel 12 it start playing the song file number 12 instantly This operation mode has restriction about amount of playing song file that does not exceed 16 files file number 1 6 only although there are more than 16 song files in the Card If it has

Download Pdf Manuals

image

Related Search

Related Contents

IMS Connector for Java User's Guide  Focus 30  DeLOCK 82579 mounting kit  Current Manual - Poolguard Alarms  

Copyright © All rights reserved.
Failed to retrieve file