
Product characteristics
l Supply by 6-35VDC , 12V and higher is recommended
l Decode MP3 and WAV audio formats, sampling rate up to 48KHz
l Control to play by UART commands; Play, pause, select track and so on
l 20W Class D power amplifier; Can drive 4Ω/20W or 8Ω/10W speaker
l 64Mbits(8MBytes)flash memory inside
l Change voice files by USB downloading
l Relay output can control AC and DC
Pins and Interface definition

Interface Name  | Description  | 
6V-35VDC  | Power supply by 6-35VDC ,12V and higher recommended  | 
5V  | 5V Power output, max current 300mA  | 
GND  | Reference Ground  | 
UART_RX  | UART RXD  | 
UART_TX  | UART TXD  | 
BUSY  | Play state,output 3.0V while playing,other output 0V  | 
Speaker+  | Speaker positive output  | 
Speaker-  | Speaker negative output  | 
NO  | Relay output, NO and COM are shorted while playing  | 
COM  | Relay common output  | 
NC  | Relay output, NC and COM are open while playing  | 
Electrical Characteristics
Parameters  | Interface  | Range  | Unit  | |
Power(in)  | 6-35VDC  | 6-35  | V  | |
Power(out)  | 5V  | 0-300  | mA  | |
Digital I/O  | BUSY, UART_TX, UART_RX  | High level  | 2.7-3.3  | V  | 
Low level  | 0-0.3  | V  | ||
Product size

Change voice files
Connect CX-S20F to a computer by an USB cable, it will show a USB flash drive,copy voice files(mp3) into it
Note:Voice files must be renamed by five number such as 00001.mp3, 12345.mp3 and 65535.mp3


Testing steps
1、 Connect CX-S20F to a computer by an USB to TTL module(CX-340 recommended); UART_TX、UART_RX、GND;
UART_TX and UART_RX are cross connected;install a speaker.
2、 Supply CX-S20F first, 12VDC or 24VDC recommended; then connect CX-340 to PC
3、 Start the serial debugging tool APP, and finish settings, set the baud rate of the serial port to 9600; Click
buttons to test.
Note:1)It is not available that supply by USB port of computer, because it will work in download mode,
while connecting to computer by USB cable
2)Have downloaded test audio inside(00001.MP3……00009.


Protocol of UART
Settings of UART:Start:1bit;Data:8bits;Stop:1bit;Check:None;Baud Rate:9600。
1.Formate of protocol
Start  | Length  | Device ID  | CMD  | Data  | Sum Check  | End  | 
0xFE  | 1 byte  | 2 bytes  | 1 byte  | 0-n byte  | 1 byte  | 0xBE  | 
Start:1 byte,fixed FE。 Length:1 byte,the number of all bytes
Device ID:2 bytes,High byte first, low byte last. 0xFFFF is the broadcast,available to all devices. Range of device ID is 0~65534,Default device ID is 0x0001
CMD:1 byte, CMD code.
Data:0~n byte,High byte first, low byte last.
Sum Check:1 byte,the low 8 bits of all bytes sum.
End:1byte, fixed BE.
2.CMD SPEC



Please download the“CX-S20F developer kit”for detailed description






China (Mainland)
TUOZHANTENG electronic components Co., LTD
0755-82527072
emily@tztstore.com
3013 Hongli Road, Shanghang Building 5F/511, Huaqiangbei , Futian , Shenzhen , Guangdong , China.
Hong Kong,China
TUOZHANTENG HK CO., LTD
1244995775@qq.com
Room 1103, Hang Seng Mongkok Building, 677 Nathan Road, Mongkok, Kowloon, Hong Kong
  WhatsApp +86 15920041318
   WeChat   +86 15920041318
Telegram/ KakaoTalk :+86 15920041318
Website customer service

Tel

