

The STEMMA PAM8904 is a high-efficiency audio amplifier designed for driving speakers in portable and embedded applications. It features a compact design, low power consumption, and the ability to deliver high-quality sound output. This makes it an excellent choice for projects requiring audio playback, such as smart devices, IoT systems, and portable audio solutions.








| Parameter | Value |
|---|---|
| Operating Voltage | 2.5V to 5.5V |
| Output Power | Up to 2.5W (at 4Ω, 5V supply) |
| Efficiency | Up to 90% |
| Speaker Impedance | 4Ω to 8Ω |
| Frequency Response | 20Hz to 20kHz |
| Input Type | Differential or Single-Ended |
| Shutdown Current | < 1µA |
| Package Type | STEMMA QT (I2C interface) |
| Pin Name | Pin Type | Description |
|---|---|---|
| VIN | Power Input | Power supply input (2.5V to 5.5V). |
| GND | Ground | Ground connection. |
| SDA | Data Line | I2C data line for communication. |
| SCL | Clock Line | I2C clock line for communication. |
| OUT+ | Output | Positive speaker output. |
| OUT- | Output | Negative speaker output. |
| SHDN | Input | Shutdown pin to enable/disable the amplifier. |
Below is an example of how to use the STEMMA PAM8904 with an Arduino UNO to play audio signals.
#include <Wire.h>
// I2C address of the PAM8904 (default is 0x5D)
#define PAM8904_I2C_ADDRESS 0x5D
void setup() {
Wire.begin(); // Initialize I2C communication
Serial.begin(9600); // Initialize serial communication for debugging
// Send initialization commands to PAM8904
Wire.beginTransmission(PAM8904_I2C_ADDRESS);
Wire.write(0x00); // Example register address
Wire.write(0x01); // Example data to enable the amplifier
Wire.endTransmission();
Serial.println("PAM8904 initialized.");
}
void loop() {
// Example: Send audio data or control commands
// This is a placeholder; actual audio playback requires additional setup
delay(1000); // Placeholder delay
}
| Issue | Possible Cause | Solution |
|---|---|---|
| No sound output | Incorrect wiring or power supply issue | Verify all connections and power supply. |
| Distorted audio | Speaker impedance mismatch | Use a speaker with 4Ω to 8Ω impedance. |
| Amplifier not responding to I2C | Incorrect I2C address or wiring | Check the I2C address and connections. |
| High noise or interference | Poor grounding or unshielded cables | Ensure proper grounding and use shielded cables. |
Can I use the PAM8904 with a 3.3V microcontroller? Yes, the PAM8904 operates within a voltage range of 2.5V to 5.5V, making it compatible with 3.3V systems.
What is the maximum speaker power output? The PAM8904 can deliver up to 2.5W of power to a 4Ω speaker when powered with a 5V supply.
How do I reduce power consumption in my project? Use the SHDN pin to put the amplifier into shutdown mode when not in use. This reduces the current draw to less than 1µA.
Can I use the PAM8904 for stereo audio? No, the PAM8904 is a mono amplifier. For stereo audio, you will need two PAM8904 modules.
By following this documentation, you can effectively integrate the STEMMA PAM8904 into your audio projects and achieve high-quality sound output.