TOP Contributors

  1. MIKROE (2662 codes)
  2. Alcides Ramos (357 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (137048 times)
  2. FAT32 Library (70171 times)
  3. Network Ethernet Library (56046 times)
  4. USB Device Library (46369 times)
  5. Network WiFi Library (41990 times)
  6. FT800 Library (41320 times)
  7. GSM click (29080 times)
  8. mikroSDK (26521 times)
  9. PID Library (26458 times)
  10. microSD click (25449 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

AudioAmp 3 click

Rating:

5

Author: MIKROE

Last Updated: 2020-01-03

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Amplifier

Downloaded: 2646 times

Not followed.

License: MIT license  

AudioAmp 3 Click 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 utilizes a highly efficient switching scheme.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "AudioAmp 3 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "AudioAmp 3 click" changes.

Do you want to report abuse regarding "AudioAmp 3 click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

AudioAmp 3 Click

AudioAmp 3 Click

Native view of the AudioAmp 3 Click board.

View full image
AudioAmp 3 Click

AudioAmp 3 Click

Front and back view of the AudioAmp 3 Click board.

View full image

Library Description

The library covers all the necessary functions to control 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.

Examples 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 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;
            }
        }
    }
}

Other mikroE Libraries used in the example:

  • I2C
  • UART

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB 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.

ALSO FROM THIS AUTHOR

IR 2 click

0

IR 2 Click is a compact add-on board representing a compact and easy solution for adding infrared (IR) remote control to your design. This board features the TSMP58138, a miniaturized sensor for receiving the modulated signal of QEE113 IR emitting diode from Vishay Semiconductors. This IR sensor module consists of a photodetector, pre-amplifier, and automatic gain control to surpass ambient noise with signals transmitted to it in the near-infrared range with a wavelength of 940nm. It also communicates with the target MCU via selectable GPIO lines.

[Learn More]

STM32F0Discovery Examples

0

Examples for STM32F051 line with STM32F0Discovery development board.

[Learn More]

Power/Reset click

5

Power/Reset Click is equipped with two capacitive touch pads on a single click boardâ„¢. It can be activated by touch, and unlike the mechanical button, the capacitive touch button lasts much longer, it is not prone to damage and wear over time and it is very reliable.

[Learn More]