Stufin
Home Quick Cart Profile

PAM 8403 Amplifier Module with Knob

Buy Now on Stufin

Operating Voltage

2.5-5V

Output Power

3W per channel

Input Impedance

10k

Output Impedance

4

Signal-to-Noise Ratio (SNR)90dB
Total Harmonic Distortion (THD)0.5%

Operating Temperature

-20C to 70C

Storage Temperature

-40C to 120C

Dimensions

33x23mm

Applications

  • IoT Projects
  • Robotics
  • DIY Electronic Systems
  • Audio Systems
  • Portable Electronics
The PAM 8403 Amplifier Module with Knob is suitable for a wide range of applications, including

Conclusion

The PAM 8403 Amplifier Module with Knob is a high-performance audio amplifier designed for compact applications. Its robust amplifier circuit, easy-to-use interface, and manual volume control make it an ideal choice for IoT projects, robotics, and DIY electronic systems.

Pin Configuration

  • PAM 8403 Amplifier Module with Knob Documentation
  • Pinout Explanation:
  • The PAM 8403 Amplifier Module with Knob is a compact audio amplifier module with a built-in potentiometer for volume control. It has a total of 7 pins, which are explained below:
  • 1. VCC (Positive Power Supply Pin)
  • Pin Type: Power Input
  • Description: This pin is used to supply the positive voltage (VCC) to the amplifier module.
  • Typical Voltage Range: 4.5V to 15V
  • 2. GND (Ground Pin)
  • Pin Type: Power Input
  • Description: This pin is used to supply the ground (GND) voltage to the amplifier module.
  • Typical Voltage Range: 0V
  • 3. VIN+ (Non-Inverting Input Pin)
  • Pin Type: Input
  • Description: This pin is used to connect the non-inverting input signal to the amplifier module.
  • Typical Input Range: Audio signal (e.g., from a microphone or audio source)
  • 4. VIN- (Inverting Input Pin)
  • Pin Type: Input
  • Description: This pin is used to connect the inverting input signal to the amplifier module.
  • Typical Input Range: Audio signal (e.g., from a microphone or audio source)
  • 5. VOUT+ (Non-Inverting Output Pin)
  • Pin Type: Output
  • Description: This pin outputs the amplified non-inverting signal from the amplifier module.
  • Typical Output Range: Amplified audio signal (e.g., to a speaker or audio output)
  • 6. VOUT- (Inverting Output Pin)
  • Pin Type: Output
  • Description: This pin outputs the amplified inverting signal from the amplifier module.
  • Typical Output Range: Amplified audio signal (e.g., to a speaker or audio output)
  • 7. KNOB (Potentiometer Pin)
  • Pin Type: Control
  • Description: This pin is connected to the wiper terminal of the built-in potentiometer, which controls the volume output of the amplifier module.
  • Connection Structure:
  • To connect the PAM 8403 Amplifier Module with Knob, follow these steps:
  • 1. Power Supply Connection:
  • Connect the VCC pin to a positive voltage source (e.g., a battery or DC power supply) within the recommended voltage range (4.5V to 15V).
  • Connect the GND pin to the ground of the power supply or circuit.
  • 2. Audio Input Connection:
  • Connect the VIN+ pin to the non-inverting audio input signal (e.g., from a microphone or audio source).
  • Connect the VIN- pin to the inverting audio input signal (e.g., from a microphone or audio source).
  • 3. Audio Output Connection:
  • Connect the VOUT+ pin to the non-inverting audio output (e.g., to a speaker or audio output).
  • Connect the VOUT- pin to the inverting audio output (e.g., to a speaker or audio output).
  • 4. Volume Control Connection:
  • Connect the KNOB pin to a suitable load (e.g., a speaker or audio output) to control the volume output of the amplifier module.
  • Important Notes:
  • Use a suitable power supply and ensure the voltage ratings are within the recommended range to avoid damage to the module.
  • Use an appropriate load (e.g., speaker or audio output) that matches the output power of the PAM 8403 amplifier module.
  • When connecting the potentiometer, ensure the wiper terminal is connected to the KNOB pin and the other terminals are connected to the load (e.g., speaker or audio output).
  • By following these instructions, you can successfully connect and use the PAM 8403 Amplifier Module with Knob in your IoT or audio-related projects.

Code Examples

PAM 8403 Amplifier Module with Knob Documentation
Overview
The PAM 8403 Amplifier Module with Knob is a compact, high-fidelity amplifier module designed for amplifying audio signals in a variety of IoT applications. The module is equipped with a variable gain control knob, allowing for easy adjustment of the output volume. This documentation provides a comprehensive guide to using the PAM 8403 Amplifier Module with Knob in different contexts, along with code examples to get you started.
Pinout and Connections
The PAM 8403 Amplifier Module with Knob has the following pinout:
Vin: Input voltage (3.3V to 5V)
 GND: Ground
 Vout: Output voltage
 Gain Knob: Variable gain control (0 to 100k)
Code Examples
### Example 1: Basic Audio Amplification with Arduino
In this example, we will use the PAM 8403 Amplifier Module with Knob to amplify an audio signal from an Arduino board.
```c++
const int audioPin = A0;  // Audio signal pin
const int amplifierPin = 3;  // Amplifier module input pin
void setup() {
  pinMode(audioPin, INPUT);
  pinMode(amplifierPin, OUTPUT);
}
void loop() {
  int audioSignal = analogRead(audioPin);
  int amplifiedSignal = map(audioSignal, 0, 1023, 0, 255);
  analogWrite(amplifierPin, amplifiedSignal);
  delay(10);
}
```
In this example, we read an audio signal from pin A0 using the `analogRead()` function and then scale the signal using the `map()` function to match the 0-255 range of the amplifier module's input. Finally, we write the amplified signal to pin 3 using `analogWrite()`.
### Example 2: Adjustable Gain with Raspberry Pi (Python)
In this example, we will use the PAM 8403 Amplifier Module with Knob to amplify an audio signal from a Raspberry Pi, with adjustable gain control using the knob.
```python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
# Set up GPIO pins for amplifier module
amplifier_input_pin = 18
gain_knob_pin = 23
GPIO.setup(amplifier_input_pin, GPIO.OUT)
GPIO.setup(gain_knob_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
while True:
    # Read gain knob position (0-100k)
    gain_knob_value = GPIO.input(gain_knob_pin)
    gain_value = int((gain_knob_value / 100.0)  255)
# Amplify audio signal
    GPIO.output(amplifier_input_pin, gain_value)
time.sleep(0.01)
```
In this example, we use the `RPi.GPIO` library to set up the amplifier module's input pin and gain knob pin on the Raspberry Pi. We then read the gain knob position using `GPIO.input()` and scale the value to match the 0-255 range of the amplifier module's input. Finally, we write the amplified signal to the amplifier module's input pin using `GPIO.output()`.
### Example 3: IoT Home Automation with ESP32 (MicroPython)
In this example, we will use the PAM 8403 Amplifier Module with Knob to amplify an audio signal in an IoT home automation system, controlled by an ESP32 board running MicroPython.
```python
import machine
import network
# Set up Wi-Fi connection
wifi = network.WLAN(network.STA_IF)
wifi.active(True)
wifi.connect("your_wifi_ssid", "your_wifi_password")
# Set up GPIO pins for amplifier module
amplifier_input_pin = machine.Pin(21, machine.Pin.OUT)
gain_knob_pin = machine.Pin(22, machine.Pin.IN, machine.Pin.PULL_UP)
# Define audio signal source (e.g., online radio)
audio_url = "http://example.com/audio_stream"
while True:
    # Read gain knob position (0-100k)
    gain_knob_value = gain_knob_pin.value()
    gain_value = int((gain_knob_value / 100.0)  255)
# Amplify audio signal
    amplifier_input_pin.value(gain_value)
# Stream audio signal from online source
    audio_stream = urequests.get(audio_url)
    audio_data = audio_stream.content
# Write audio data to amplifier module
    amplifier_input_pin.value(audio_data)
time.sleep(0.01)
```
In this example, we use the `machine` and `network` modules to set up a Wi-Fi connection and GPIO pins for the amplifier module on the ESP32 board. We then read the gain knob position and scale the value to match the 0-255 range of the amplifier module's input. Finally, we stream an audio signal from an online source and write the amplified signal to the amplifier module's input pin.
Conclusion
The PAM 8403 Amplifier Module with Knob is a versatile component that can be used in a variety of IoT applications, from simple audio amplification to complex home automation systems. By following these code examples, you can quickly integrate the module into your projects and take advantage of its adjustable gain control feature.