
www.picaxe.com/products/axe171
AXE171 PICAXE-14 Audio Kit © Revolution Education Ltd 2015 v1.1
May be copied for educational use.
18
5.0 Playing MP3 Music Files using SPE035
Note that the MP3 module requires up to 4 seconds (pause 4000) at power on to read the tune
filename data from the microSD card. Depending on the quantity of MP3 files this can take up to 4
seconds, but may be much quicker. Therefore do not send any commands within this initial period.
5.1 Using SPE035 in Blockly
Blockly v1.0.5 (and later) has a special SPE035 command within the Outputs menu. This simplifies
use of all the most common SPE035 commands. Simply drag out the block and select the desired
command from the drop down list.
A number (or variable) block only needs to be attached to the SPE035 block for the ‘play tune’ and
‘set volume’ commands.
5.2 Using SPE035 in Flowcharts
PE6 v6.0.8.4 (and later) has a special SPE035 flowchart command. To add this command right click
over any whitespace area in the Flowchart Toolbox and select ‘Add New Item’ > ‘Play MP3 SPE035’
This special flowchart block simplifies use of all the most common SPE035 commands. Simply drag
out the block, double click on it to edit and select the desired command from the drop down list.
The ‘tune number’ value is only used when the ‘Play’ command is selected.
The ‘volume’ value is only used when the ‘Set Volume’ command is selected.