4
Example program
1.
Open the built-in example toneMelody in the Arduino IDE by going to
File > Examples > 02. Digital > toneMelody
2.
Connect your Arduino compatible board, make sure the correct Board and connection port
are set in the tools menu, and hit Upload
Your speaker module should now play a recognizable tune. If you don’t hear anything, try
turning the volume potentiometer, and check your connections.