Arduino speaker - Connecting a speaker to arduino to play arduino tones. For this we need to download code for arduino and tone library of arduino.
Connection - only two wires is required from speaker to arduino. Connect pin 8 and gnd pins of arduino to speakers. Download the library and program given below.