Codey OnlineArduino- & ESP32-Komponentenbibliothek › TPA3110 2x15W Amplifier
TPA3110 2x15W Amplifier
Sensoren

TPA3110 2x15W Amplifier

Der TPA3110 ist ein Class-D-Stereo-Audioverstärkermodul zum Ansteuern von zwei Lautsprecherkanälen. Verwende die analogen linken/rechten Eingänge (L und R) mit GND, lege die Versorgung an VIN+ und VIN- an und schließe die Lautsprecher an die differentiellen Ausgänge (L+/L- und R+/R-) an.

Breite: 33.1 mm

Pinbelegung — TPA3110 2x15W Amplifier

Pin Signal Beschreibung
L analog Left-channel line-level audio input to the amplifier.
GND ground Audio input ground/reference for the L and R input signals.
R analog Right-channel line-level audio input to the amplifier.
VIN+ power Positive DC supply input for the amplifier, typically 8–24 V.
VIN- ground Negative DC supply input / power ground return.
L+ analog Positive amplified speaker output for the left channel.
L- analog Negative bridged speaker output for the left channel.
R+ analog Positive amplified speaker output for the right channel.
R- analog Negative bridged speaker output for the right channel.

Beispielschaltplan — TPA3110 2x15W Amplifier

Von Nach Kabel
board:5V x1:VIN+ red
board:GND x1:VIN- black
board:D9 x1:L green
board:D10 x1:R blue
board:GND.1 x1:GND black

Arduino-Beispielcode — TPA3110 2x15W Amplifier

Dieses Beispiel wurde für das arduino-uno geschrieben und kompiliergeprüft. Codey Online passt es für jedes andere unterstützte Board an.

// Canonical beginner example for the TPA3110 2x15W Amplifier
// This sketch generates a simple left/right test tone using PWM on pins 9 and 10.
// Connect the amplifier inputs to the Arduino, and wire speakers to the amplifier outputs.

const int leftPin = 9;   // Connect to L
const int rightPin = 10; // Connect to R

void setup() {
  pinMode(leftPin, OUTPUT);
  pinMode(rightPin, OUTPUT);
}

void loop() {
  // A basic stereo test: left channel gets a pulse train, right channel stays quiet,
  // then the roles swap. The amplifier board will filter the PWM into an audible tone.

  // Left channel active
  for (int i = 0; i < 200; i++) {
    analogWrite(leftPin, 180);
    analogWrite(rightPin, 128);
    delayMicroseconds(400);
    analogWrite(leftPin, 0);
    analogWrite(rightPin, 128);
    delayMicroseconds(400);
  }
  delay(300);

  // Right channel active
  for (int i = 0; i < 200; i++) {
    analogWrite(leftPin, 128);
    analogWrite(rightPin, 180);
    delayMicroseconds(400);
    analogWrite(leftPin, 128);
    analogWrite(rightPin, 0);
    delayMicroseconds(400);
  }
  delay(300);
}

Ähnliche Komponenten

18650 Battery Shield with USB-C Charger and 5V Boost Converter

18650 Battery Shield with USB-C Charger and 5V Boost Converter

2.4 inch OLED Display I2C 3.3V

2.4 inch OLED Display I2C 3.3V

3.5 inch TFT LCD Shield

3.5 inch TFT LCD Shield

50kg Load Cell Weight Sensor

50kg Load Cell Weight Sensor

Bau dein Arduino- oder ESP32-Projekt mit AI

Beschreib einfach, was du bauen willst. Codey Online schreibt den Code, zeichnet den Schaltplan, kompiliert alles und flasht dein Board direkt aus dem Browser.

Kostenlos starten