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

Proximity 14 Click

0

Proximity 14 Click is a compact add-on board that contains a close-range proximity sensing solution. This board features the VCNL36825T, a fully integrated proximity sensor from Vishay Semiconductors.

[Learn More]

Let's Make - Pedometer

1

We're proudly presenting the second Let's Make project from our Intern's lab. This Pedometer consists of a mikromedia for STM32-M4, a mikromedia Proto shield and LiPo battery. Let's measure how far you walked with this Let's make. A pedometer is a portable device that counts each step a person takes.

[Learn More]

M-BUS RF 4 click

5

M-BUS RF 4 Click is a mikroBUS add-on board with a MIPOT 32001324 RF wireless transceiver. This module operates in the 868 MHz SRD Band.

[Learn More]