
www.picaxe.com/products/axe171
AXE171 PICAXE-14 Audio Kit © Revolution Education Ltd 2015 v1.1
May be copied for educational use.
23
5.5 Play Multiple Tunes using a Variable
This example shows how to set the volume (valid values are 1 to 30) and then use a variable (varA)
to play the tunes 0001.mp3 to 0009.mp3 in turn.
The end of the previous tune is detected by checking whether the MP3 BUSY signal (connected to
PICAXE input C.2) is high. The BUSY signal is low (off) when the tune is playing and high (on) at all
other times. Therefore the program waits for input pinC.2 to go high (on) before playing the next
tune.
Blockly
Flowchart