A mono class AB amplifier board with the speaker already fitted, so a microcontroller gets an audible output from three wires and one line of code. The SC8002B drives the onboard 23mm mylar cone to about 80dB at 10cm, and a trimmer pot on the board sets the level without touching your sketch. Runs from 5V and takes its signal straight from a 3.3V or 5V logic pin.
Specifications
Datasheets
What's in the box
Speaker and 3-pin header already soldered, ready to wire.
Great for
Wiring & getting started
- Turn the volume down first
Set the blue trimmer pot to minimum before you apply power. The silkscreen arrow marked MAX shows which way is louder. Bringing it up from zero avoids driving the small cone hard on the first power-up.
- Wire the three pins
Go by the labels printed on the board rather than by position: S is signal, V is 5V, G is ground. With the speaker to the left, as in the photos, the header runs down the right edge reading S, then V, then G.
- Power it from 5V
Use the 5V rail, not 3.3V. Allow for 500mA or more on peaks. A board's onboard regulator can brown out if it is also running other loads, so take 5V from the supply directly on bigger projects.
- Send it a square wave
On Arduino, call tone(pin, frequency) on the pin wired to S, and noTone(pin) to stop. Any PWM capable pin works. On ESP32 use the LEDC PWM API, and on a Pi use software or hardware PWM.
- Set the working level
With a tone playing, bring the pot up until it is loud enough. Backing off slightly from the point where it starts to sound harsh gives the cleanest result.
Note: The 2W maximum output is the amplifier's ceiling, not the onboard speaker's. The fitted cone is a 0.15W maximum part, so it will distort well before the amplifier runs short of headroom. Set the trimmer with a tone already playing and back off from the point where it turns harsh.
