SKU: OT407-C47 Αριθμός είδους: XE329 EAN: 5447045128170
Μικρός ψηφιακός ενισχυτής με μέγιστη ισχύ 2x15 Watt.
Αντίσταση: 8 Ohm
Ισχύς: 2 x 15 Watt
Κανάλια: 2 / Stereo
Είσοδος: Αριστερά | Min | Δεξιά
Τάση λειτουργίας: 8V-24V DC
Διαστάσεις
Μήκος: 4,1cm
Πλάτος: 3,1cm
Ύψος: 0,3cm
Έτσι συνδέεις το 2x15W Ψηφιακός Μίνι Ενισχυτής Ήχου 8-24V Module | TPA3110 | HW-714 σε ένα Arduino UNO ή ESP32, με ένα παράδειγμα sketch που μπορείς να ανεβάσεις αμέσως.
Αυτό το έργο παρουσιάζει το module στερεοφωνικού ενισχυτή TPA3110, αναπαράγοντας εναλλασσόμενους δοκιμαστικούς τόνους μέσω των αριστερών και δεξιών καναλιών ήχου. Συνδέστε ηχεία στις ακροδέκτες εξόδου του ενισχυτή για να ακούσετε τους τόνους να εναλλάσσονται μεταξύ των στερεοφωνικών καναλιών.
/*
* ==================================================================
* Generated by Codey.online — https://www.codey.online
* ==================================================================
* Project : TPA3110 Stereo Audio Amplifier Demo
* Board : Arduino UNO (arduino:avr:uno)
* Parts : TPA3110 2x15W Amplifier
* Libraries : none (built-in)
*
* Codey Online is an AI-powered browser IDE for Arduino and ESP32.
* Describe your project and Codey writes the code, draws the wiring
* diagram and uploads it to your board, straight from the browser.
* This code is free to use, modify and share, without warranty.
* ==================================================================
*/
// Stereo test tone generator for TPA3110 Amplifier
const int LEFT_PIN = 9;
const int RIGHT_PIN = 10;
void setup() {
Serial.begin(115200);
Serial.println(F("TPA3110 Amplifier Test Ready"));
}
void loop() {
// Play tone on Left Channel (440 Hz - A4)
Serial.println(F("Playing Left Channel (440 Hz)"));
tone(LEFT_PIN, 440, 500);
delay(700);
// Play tone on Right Channel (880 Hz - A5)
Serial.println(F("Playing Right Channel (880 Hz)"));
tone(RIGHT_PIN, 880, 500);
delay(700);
}
Wiring diagram and example code generated by Codey.online — https://www.codey.online
Αυτό το project χρησιμοποιεί το ενσωματωμένο DAC του ESP32 για να δημιουργεί μουσικούς τόνους και στέλνει το line-level audio signal στον στερεοφωνικό ενισχυτή TPA3110. Ο TPA3110 τροφοδοτείται από εξωτερικό 12V DC power supply για να οδηγεί καθαρά ένα 3W speaker σε υψηλή ένταση. Όταν ενεργοποιηθεί, το ESP32 συνθέτει ένα μουσικό 4-note arpeggio κάθε λίγα δευτερόλεπτα.
/*
* ==================================================================
* Generated by Codey.online — https://www.codey.online
* ==================================================================
* Project : TPA3110 2x15W Stereo Audio Amplifier with ESP32
* Board : ESP32 DEVKIT V1 (esp32:esp32:esp32doit-devkit-v1)
* Parts : TPA3110 2x15W Amplifier
* Libraries : none (built-in)
*
* Codey Online is an AI-powered browser IDE for Arduino and ESP32.
* Describe your project and Codey writes the code, draws the wiring
* diagram and uploads it to your board, straight from the browser.
* This code is free to use, modify and share, without warranty.
* ==================================================================
*/
// ESP32 DAC Sine Wave Audio Player for TPA3110 Amplifier
#include <Arduino.h>
#include <math.h>
const int AUDIO_DAC_PIN = 25; // ESP32 built-in 8-bit DAC1 (GPIO 25)
void playTone(float freqHz, int durationMs) {
unsigned long start = millis();
float phase = 0.0;
float phaseInc = 2.0 * PI * freqHz / 20000.0; // ~20 kHz sample rate approximation
while (millis() - start < (unsigned long)durationMs) {
// Generate centered sine wave for the line-in input
uint8_t sample = (uint8_t)(128 + 100.0 * sin(phase));
dacWrite(AUDIO_DAC_PIN, sample);
phase += phaseInc;
if (phase >= 2.0 * PI) {
phase -= 2.0 * PI;
}
delayMicroseconds(50); // ~20 kHz sample interval
}
dacWrite(AUDIO_DAC_PIN, 128); // Return to neutral line level
}
void setup() {
Serial.begin(115200);
Serial.println("TPA3110 Amplifier Demo Initialized");
dacWrite(AUDIO_DAC_PIN, 128);
}
void loop() {
Serial.println("Playing arpeggio sequence...");
playTone(261.63, 250); // C4
delay(50);
playTone(329.63, 250); // E4
delay(50);
playTone(392.00, 250); // G4
delay(50);
playTone(523.25, 400); // C5
delay(2000);
}
Wiring diagram and example code generated by Codey.online — https://www.codey.online