Description
What it is
The digital power amplifier XH-A157 is a module that uses the PAM8403 chip to amplify the audio signal. The board includes an integrated volume knob to adjust the volume and an AUX input to connect external devices such as smartphones or computers.
Features
- PAM8403 chip
- Integrated volume knob
- AUX input
- USB 5V power supply
- Dual 3W output
What it is for
This amplifier is ideal for DIY projects such as building portable speakers or small speakers. You can use it with Arduino or ESP to create custom audio systems. Its USB power supply makes it easy to integrate into various electronic devices.
Tutorial: How to use the digital power amplifier XH-A157
The digital power amplifier XH-A157 is ideal for anyone who wants to amplify the audio signal from a device such as a smartphone or a computer. This module is perfect for DIY projects like portable speakers or small speakers.
What you need
- Arduino Uno or compatible
- USB connections for power supply
- Speakers or speaker boxes
- 3.5mm audio cable
- Volume knob
- Dual output 3W
Steps
- Connect the XH-A157 module to the USB 5V power adapter.
- Connect the 3.5mm audio cable to the AUX input of the module.
- Connect the two speakers to the dual output of the module.
- Adjust the volume knob to set the desired volume.
- Check the datasheet to configure any additional parameters via Arduino.
- Write an Arduino sketch to control the volume and other features.
- Verify that the audio signal is correctly amplified and that the two speakers are functioning.
- Test the system with various audio input devices.
Example code
void setup() {
// Inizializza le porte di controllo
}
void loop() {
// Regola il volume e altre funzionalità
}
Mini project
Create a set of portable speakers with USB power, a 3.5mm audio cable, and two speakers connected to the XH-A157 amplifier. Use a volume knob to adjust the volume.
Common mistakes
- Do not verify the proper power supply of the module.
- Do not connect the audio cables correctly.
- Do not adjust the volume properly.
- Do not check the datasheet for any additional configurations.
Recommended accessories
- USB Connections
- 3.5mm Audio Cable
- Speakers
- Arduino Uno
Frequently asked questions
What is the maximum power of the amplifier?
The maximum power is 3W per output, for a total of 6W.
Can it be controlled by Arduino?
Yes, it can be controlled by Arduino to adjust the volume and other features.
What does ‘PAM8403’ mean?
PAM8403 is the name of the amplifier chip used in the XH-A157 module.






Reviews
There are no reviews yet.