AudioAMP 6 Click Board
AudioAMP 6 Click Board
Key Features:
- High efficiency, low power dissipation with no extra heat-sinks required, a set of protection features for reliable operation, it can be operated with the wide range of voltages, etc.
- Based on the TPA3138D2, a stereo class-D audio amplifier, from Texas Instruments.
- This Click board™ is designed to be used along with the Audio Amp 5 click, for building home theater 2.1, 4.1, 5.1 or 7.1 systems. It is a perfect solution for the development of battery-powered Bluetooth® and wireless speakers, TV sets and PC monitors, and other types of consumer audio equipment applications.
- mikroBUS: GPIO Interface
The AudioAmp 6 Click Board™ is a mono/subwoofer audio amplifier, capable of delivering up to 18.5W with a 4Ω load. It is based on the TPA3138D2, a class-D integrated amplifier, which utilizes a highly efficient switching scheme. With about 20mA in idle mode, it allows for longer operation and improved thermal performance, making it a perfect choice for various battery-powered applications. Advanced EMI Suppression with Spread Spectrum Control allows using ferrite bead filters instead of bulky inductors, still maintaining the required EMC levels. The TPA3138D2 IC is equipped with a set of protection features, allowing a reliable operation.
Software Support
We provide a library for the AudioAmp 6 Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
Library contains all the necessary functions for control to the AudioAmp 6 click.
Key Functions
void audioamp6_setMode(uint8_t mode)
- Sets MODE BD or 1SPW.void audioamp6_setOutput(uint8_t out)
- Enable or Disable output.void audioamp6_setGain(uint8_t gain)
- Sets Gain 20dB or 26dB.
Example Description
The application is composed of the three sections :
- System Initialization - Sets the necessary gpio pins to control the click.
- Application Initialization - Initializes the driver init and sets initial settings for the chip.
- Application Task - Waits for valid user input and executes functions based on set of valid commands.
Note: Sets the input voltage from 3.5V to 14.4V. Use the UART to control the amplification or reduction of sound.
Commands : 'e' - Enable/disable output 'g' - Changes the gain settings (20dB - 26dB)
void applicationTask() { uint8_t dataReady_; char receivedData_; dataReady_ = UART_Rdy_Ptr(); if (dataReady_ != 0) { receivedData_ = UART_Rd_Ptr(); switch (receivedData_) { case 'e' : { /* Device enable or disable */ if(fEnable == _AUDIOAMP6_OUTPUT_ENABLE) { audioamp6_setOutput(_AUDIOAMP6_OUTPUT_DISABLE); mikrobus_logWrite("---- OUTPUT DISABLED ----", _LOG_LINE); fEnable = _AUDIOAMP6_OUTPUT_DISABLE; } else { audioamp6_setOutput(_AUDIOAMP6_OUTPUT_ENABLE); mikrobus_logWrite("---- OUTPUT ENABLED ----", _LOG_LINE); fEnable = _AUDIOAMP6_OUTPUT_ENABLE; } break; } case 'g' : { /* Gain 20dB or 26dB*/ if(fGain == _AUDIOAMP6_GAIN_26dB) { audioamp6_setGain(_AUDIOAMP6_GAIN_20dB); mikrobus_logWrite("---- Gain [20 dB] ----", _LOG_LINE); fGain = _AUDIOAMP6_GAIN_20dB; } else { audioamp6_setGain(_AUDIOAMP6_GAIN_26dB); mikrobus_logWrite("---- Gain [26 dB] ----", _LOG_LINE); fGain = _AUDIOAMP6_GAIN_26dB; } break; } } } }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
GPIO
UART
Additional Notes and Information
Depending on the development board you are using, you may need USB UART click, USB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
mikroSDK
The Audio Amp 6 Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant click board demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
AudioAMP 6 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.