AudioAMP 3 Click Board
AudioAMP 3 Click Board
Key Features:
- High efficiency, a set of protection features for reliable operation, it can be operated with the wide range of voltages, etc.
- Based on the TAS5414, an automotive, stereo, class-D audio amplifier, from Texas Instruments
- A perfect solution for different kinds of active desktop speakers, TV sets and PC monitors, and other types of consumer audio equipment. Due to its high efficiency, it can even be used as a sound reinforcement solution for various IoT applications.
- mikroBUS: I2C and GPIO Interfaces
The AudioAmp 3 Click Board™ is a stereo audio amplifier, capable of delivering up to 79W per channel with the 4Ω load. It is based on the TAS5414, a class-D integrated amplifier, which utilises a highly efficient switching scheme. Advanced EMI Suppression with Spread Spectrum Control allows using ferrite bead filters instead of bulky inductors, still maintaining the required EMC levels. The TAS5414 IC is equipped with a set of protection features, allowing a reliable operation.
Software Support
We provide a library for the AudioAmp 3 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
The library covers all the necessary functions to control the AudioAmp 3 Click Board™. A library performs a standard I2C interface communication.
Key Functions
AUDIOAMP3_STATUS_T audioamp3_setGainLvl( uint8_t gainLvl )
- Set the gain lvl function.AUDIOAMP3_STATUS_T audioamp3_setChannelMuteMode( uint8_t sChannel )
- Set the mute mode of channel function.AUDIOAMP3_STATUS_T audioamp3_setPlayMode()
- Set the play mode for all channels function.
Example Description
The application is composed of three sections :
- System Initialization - Initializes I2C, GPIO and LOG structures, set INT pins as input and RST and PWM pins as output and start to write log.
- Application Initialization - Initialization driver enables - I2C, sets: power up, channel 1 & 2 to low-low state, mute all channels, run diagnostics, hardware reset, read diagnostics and play, also write log.
- Application Task - (code snippet) This is an example which demonstrates the use of the AudioAmp 3 Click Board™. Waits for valid user input and executes functions based on set of valid commands. Results are being sent to the Usart Terminal where you can track their changes.
- Commands : '+' - volume up '-' - volume down 'P' - play 'M' - mute
void applicationTask() { char receivedData; if ( UART_Rdy_Ptr() ) { receivedData = UART_Rd_Ptr(); switch ( receivedData ) { case '+' : { for( cnt = _AUDIOAMP3_MIN_GAIN; cnt < _AUDIOAMP3_GAIN_5; cnt++ ) { statusFlag = audioamp3_setGainLvl( cnt ); mikrobus_logWrite( " - Volume Up -", _LOG_LINE ); Delay_1sec(); } mikrobus_logWrite( "---------------------", _LOG_LINE ); break; } case '-' : { for( cnt = _AUDIOAMP3_MAX_GAIN; cnt > _AUDIOAMP3_GAIN_0; cnt-- ) { statusFlag = audioamp3_setGainLvl( cnt ); mikrobus_logWrite( " - Volume Down -", _LOG_LINE ); Delay_1sec(); } mikrobus_logWrite( "---------------------", _LOG_LINE ); break; } case '=' : { audioamp3_setGainLvl( _AUDIOAMP3_MEDIUM_GAIN ); mikrobus_logWrite( " - Medium Vol. -", _LOG_LINE ); mikrobus_logWrite( "---------------------", _LOG_LINE ); break; } case 'M' : { audioamp3_setChannelMuteMode( _AUDIOAMP3_SELECT_ALL_CHANNELS ); mikrobus_logWrite( " Mute All Channel ", _LOG_LINE ); mikrobus_logWrite( "--------------------", _LOG_LINE ); break; } case 'P' : { audioamp3_setPlayMode(); mikrobus_logWrite( " Play ", _LOG_LINE ); mikrobus_logWrite( "--------------------", _LOG_LINE ); break; } } } }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- I2C
- UART
Additional Notes and Information
Depending on the development board you are using, you may need a 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 AudioAmp 3 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 3 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.