deckle studio
Open the editor
Behavioural mixed-signal modelA31linkplay_a31

Wi-Fi streaming module LinkPlay A31 (AirPlay, DLNA, Spotify Connect)

OEM streaming module as in WiiM / Arylic / Audio Pro class amplifiers: Wi-Fi 802.11n with an external antenna (I-PEX), receives AirPlay, DLNA and Spotify Connect and outputs the audio on I2S (pin 7 SDO, 5 WS, 6 CLK) to a DSP or DAC. The device's microcontroller controls it over the UART (57600 8N1, pins 24 RXD / 25 TXD) with the LinkPlay MCU commands: MCU+PLY+PUS (play/pause), MCU+VOL+050 (volume 0–100), MCU+MUT+001, MCU+PLM+GET (source), MCU+MEA+GET (title, artist); the module reports AXX+… lines. 5 V, 170 mA (320 mA peak), 100 µF + 10 µF at the supply; 3.3 V output for small loads (100 mA). In the simulation it joins the circuit's Wi-Fi router and "plays" the chosen test signal or demo phrase as the stream; it boots in a few seconds (a real module takes 10–20 s).

5VIN5VINGNDGNDI2S_WSI2S_CLKI2S_SDOI2S_SDIETH_TXPETH_TXNETH_RXPETH_RXNUSB_DMUSB_DPI2C_CLKI2C_SDACPU_RSTnReloadGPIO53.3VDGNDGPIO2GPIO1UART_RXDUART_TXDGPIO4GPIO3GNDA31
Schematic symbol

Key data

Category
Radio
Simulation model
Behavioural mixed-signal model
Manufacturer part number
A31
Reference prefix
U
Pins
28
Land pattern
LinkPlay_A31

Used in these examples 1

Simulation model

A behavioural model implements the interface of the chip (registers, protocol, timing) at its pins. The pins are connected to the analog circuit like CMOS pins.

Model
linkplay_a31
Supply pins
1 / 3

Pins 28

PinNameUse
15VINSupply pinSupply 5 V (3.5–5.5 V, 320 mA peak): 100 µF + 10 µF
25VINSupply pinSupply 5 V (both pins)
3GNDGround pinGround
4GNDGround pinGround
5I2S_WSI/O pinI2S word clock (LRCK) out
6I2S_CLKI/O pinI2S bit clock (BCLK)
7I2S_SDOOutput pinI2S audio data out: to the DSP / DAC input
8I2S_SDII/O pinI2S audio data in (not used by the model)
9ETH_TXPPassive pinEthernet TX+ (optional, via magnetics)
10ETH_TXNPassive pinEthernet TX−
11ETH_RXPPassive pinEthernet RX+
12ETH_RXNPassive pinEthernet RX−
13USB_DMI/O pinUSB host D−
14USB_DPI/O pinUSB host D+
15I2C_CLKI/O pinI2C clock (pull-up on the module)
16I2C_SDAI/O pinI2C data (pull-up on the module)
17CPU_RSTInput pin · pulled up on the boardReset in, active low (> 300 ms), pull-up on the module: to a host GPIO
18nReloadInput pin · pulled up on the boardLow 0.3–5 s: WPS; > 5 s: factory reset (button to GND)
19GPIO5I/O pinGPIO (module firmware)
203.3VDOutput pin3.3 V out for small loads (100 mA)
21GNDGround pinGround
22GPIO2I/O pinGPIO (module firmware)
23GPIO1I/O pinGPIO (module firmware)
24UART_RXDInput pinUART in from the host MCU (57600 8N1): to the MCU TX
25UART_TXDOutput pinUART out to the host MCU: to the MCU RX; must stay high while booting
26GPIO4I/O pinGPIO (module firmware)
27GPIO3I/O pinGPIO (module firmware)
28GNDGround pinGround

Parameters 5

Stream contentstreamlive
Defaultmusic demo
off1 kHz tone100 Hz tonestereo testmusic demoown music file

What a phone streams to the module: a test signal, the demo phrase or a music file you choose in the inspector (it stays in this browser tab and is not saved with the project). Real AirPlay / Spotify streams cannot enter the simulation.

Streaming servicesourcelive
DefaultSpotify
idleAirPlayDLNASpotify

Reported to the host as AXX+PLM+nnn: 000 idle, 001 AirPlay, 002 DLNA, 031 Spotify

Wi-Fi networkssid
DefaultCircuitLab

The module joins a Wi-Fi router part with this SSID (set up in the LinkPlay app on a real device)

Volume at power-upvolume
Default50

The module keeps its last volume (0–100); the host changes it with MCU+VOL+nnn

Boot timeboot
Default2 s

A real module needs 10–20 s; shorter here so the simulation gets to the interesting part

PCB

Draft: check before productionLinkPlay_A31

pin numbering of the two 2.0 mm rows not dimensioned in the module manual: check against the module or its socket strips before ordering

PackageLand patternStatusSource
module · A31LinkPlay_A31Draft: check before productionLinkPlay A31 user manual (FCC 2AAPP-A31): two rows of 14 pins, 2.0 mm pitch, 26.3 mm apart; pin numbering along the rows as drawn here (1–14 down the left row, 15–28 down the right row) is not dimensioned in the manual

Needs: pin numbering of the two 2.0 mm rows not dimensioned in the module manual: check against the module or its socket strips before ordering