TOP Contributors

  1. MIKROE (2762 codes)
  2. Alcides Ramos (374 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (91 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 (139266 times)
  2. FAT32 Library (71755 times)
  3. Network Ethernet Library (57128 times)
  4. USB Device Library (47432 times)
  5. Network WiFi Library (43093 times)
  6. FT800 Library (42408 times)
  7. GSM click (29835 times)
  8. mikroSDK (28101 times)
  9. PID Library (26886 times)
  10. microSD click (26198 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: 3110 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

13DOF 2 click

5

13DOF 2 click is an advanced 13-axis motion tracking Click board, which utilizes two different sensor ICs onboard: BME680, voc, humidity, pressure and temperature sensor and BMX160, a 9-axis sensor consisting of a 3-axis, low-g accelerometer, a low power 3-axis gyroscope and a 3-axis geomagnetic sensor.

[Learn More]

IR Grid 2 Click

0

IR Grid 2 Click is a thermal imaging sensor. It has an array of 768 very sensitive factory calibrated IR elements (pixels), arranged in 32 rows of 24 pixels. Each one of them is measuring an object temperature up to 300˚C within its local Field of View (FOV). The MLX90640ESF-BAB IR sensor used on this Click board™ has just four pins, and it is mounted inside of the industry standard TO39 package. It is equipped with 2Kbit of EEPROM for storing the compensation and calibration parameters.

[Learn More]

AccelQvar Click

0

Accel&Qvar Click is a compact add-on board for capturing precise acceleration measurements and detecting electric charge variations. This board features the LIS2DUXS12, an ultralow-power accelerometer from STMicroelectronics. Besides low power consumption, it also includes Qvar technology, artificial intelligence, and an anti-aliasing filter. This digital, 3-axis accelerometer has adjustable full scales (±2g to ±16g), output data rates (1.6Hz to 800Hz), and multiple operating modes to serve various applications.

[Learn More]