TOP Contributors

  1. MIKROE (2656 codes)
  2. Alcides Ramos (353 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 (136822 times)
  2. FAT32 Library (69984 times)
  3. Network Ethernet Library (55970 times)
  4. USB Device Library (46282 times)
  5. Network WiFi Library (41893 times)
  6. FT800 Library (41203 times)
  7. GSM click (28999 times)
  8. PID Library (26420 times)
  9. mikroSDK (26386 times)
  10. microSD click (25383 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 8 click

Rating:

0

Author: MIKROE

Last Updated: 2024-04-03

Package Version: 2.1.0.5

mikroSDK Library: 2.0.0.0

Category: Amplifier

Downloaded: 66 times

Not followed.

License: MIT license  

AudioAmp 8 Click is a compact add-on board that reproduces input audio signal at sound-producing output elements, with desired volume and power levels. This board features the MA12070, a super-efficient audio power amplifier from Infineon Technologies. This I2C configurable audio amplifier is based on proprietary multi-level switching technology, enabling low power loss during operation. It supports a supply voltage range from 4 to 26V, allowing it to be used in many applications. Besides, it is equipped with protection features, allowing a reliable operation.

No Abuse Reported

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

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

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

  • Information
  • Comments (0)

mikroSDK Library Blog


AudioAmp 8 click

AudioAmp 8 Click is a compact add-on board that reproduces input audio signal at sound-producing output elements, with desired volume and power levels. This board features the MA12070, a super-efficient audio power amplifier from Infineon Technologies. This I2C configurable audio amplifier is based on proprietary multi-level switching technology, enabling low power loss during operation. It supports a supply voltage range from 4 to 26V, allowing it to be used in many applications. Besides, it is equipped with protection features, allowing a reliable operation.

audioamp8_click.png

click Product page


Click library

  • Author : Nenad Filipovic
  • Date : Aug 2021.
  • Type : I2C type

Software Support

We provide a library for the AudioAmp8 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.

Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.

Library Description

This library contains API for AudioAmp8 Click driver.

Standard key functions :

  • audioamp8_cfg_setup Config Object Initialization function.

    void audioamp8_cfg_setup ( audioamp8_cfg_t *cfg );
  • audioamp8_init Initialization function.

    err_t audioamp8_init ( audioamp8_t *ctx, audioamp8_cfg_t *cfg );
  • audioamp8_default_cfg Click Default Configuration function.

    err_t audioamp8_default_cfg ( audioamp8_t *ctx );

Example key functions :

  • audioamp8_set_config_power_mode AudioAmp 8 set power mode configuration function.

    err_t audioamp8_set_config_power_mode ( audioamp8_t *ctx, audioamp8_pwr_mon_cfg_t pwr_mode );
  • audioamp8_set_config_power_mode_profile AudioAmp 8 set power mode profile configuration function.

    err_t audioamp8_set_config_power_mode_profile ( audioamp8_t *ctx, audioamp8_pwr_mod_profile_cfg_t pm_profile );
  • audioamp8_channel_monitoring AudioAmp 8 monitors the status of the channel's function.

    err_t audioamp8_channel_monitoring ( audioamp8_t *ctx, uint8_t mon_ch, audioamp8_monitor_channel_t *ch_mon );

Example Description

This library contains API for AudioAmp 8 Click driver. The library initializes and defines the I2C bus drivers to write and read data from registers.

The demo application is composed of two sections :

Application Init

The initialization of I2C module, log UART, and additional pins. After the driver init and then executes a default configuration, the app performs a BTL signal configuration, configure power mode and configure power mode profile.


void application_init ( void ) 
{
    log_cfg_t log_cfg;  /**< Logger config object. */
    audioamp8_cfg_t audioamp8_cfg;  /**< Click config object. */

    /** 
     * Logger initialization.
     * Default baud rate: 115200
     * Default log level: LOG_LEVEL_DEBUG
     * @note If USB_UART_RX and USB_UART_TX 
     * are defined as HAL_PIN_NC, you will 
     * need to define them manually for log to work. 
     * See @b LOG_MAP_USB_UART macro definition for detailed explanation.
     */
    LOG_MAP_USB_UART( log_cfg );
    log_init( &logger, &log_cfg );
    log_info( &logger, " Application Init " );

    // Click initialization.
    audioamp8_cfg_setup( &audioamp8_cfg );
    AUDIOAMP8_MAP_MIKROBUS( audioamp8_cfg, MIKROBUS_1 );
    err_t init_flag = audioamp8_init( &audioamp8, &audioamp8_cfg );
    if ( I2C_MASTER_ERROR == init_flag ) 
    {
        log_error( &logger, " Application Init Error. " );
        log_info( &logger, " Please, run program again... " );
        for ( ; ; );
    }

    if ( AUDIOAMP8_ERROR == audioamp8_default_cfg ( &audioamp8 ) )
    {
        log_error( &logger, " Default configuration." );
        for ( ; ; );
    }
    log_info( &logger, " Application Task " );
    log_printf( &logger, "-------------------------\r\n" );
    Delay_ms ( 1000 );
}

Application Task

This is an example that shows the use of a AudioAmp 8 Click board™. Display status monitoring for the channel 0 or channel 1. This task repeats every 2 seconds.


void application_task ( void ) 
{
    channel_status_monitoring( AUDIOAMP8_SET_MON_CH_0 );
    Delay_ms ( 1000 );
}

Additional Function

  • channel_status_monitoring The function displays the status monitoring channel.
    static void channel_status_monitoring ( uint8_t ch_sel );

The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.

Other Mikroe Libraries used in the example:

  • MikroSDK.Board
  • MikroSDK.Log
  • Click.AudioAmp8

Additional notes and informations

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. UART terminal is available in all MikroElektronika compilers.


ALSO FROM THIS AUTHOR

Pac1934 click

0

PAC1934 click carries the PAC1934 four channel DC power/energy monitor from Microchip. The click is designed to run on either 3.3V or 5V power supply. It communicates with the target microcontroller over an I2C interface.

[Learn More]

IR Sense 4 click

0

IR Sense 4 Click is a compact add-on board that can be used in short-range IR sensing applications. This board features the STHS34PF80, a low-power high-sensitivity infrared (IR) sensor from STMicroelectronics. It is a sensor for presence and motion detection and can reach up to 4m without a lens for object measuring. The sensor can detect stationary objects and distinguish them from moving objects.

[Learn More]

Brushless 10 click

0

Brushless 10 Click is a compact add-on board that provides precise control over brushless DC motors. This board features the TC78B016FTG, a 3-phase sine-wave PWM driver from Toshiba Semiconductor. The TC78B016FTG features Intelligent Phase Control (InPAC) for automatic motor phase adjustment, eliminating manual calibration, supporting an external power supply from 6V to 30V, and adjusting current output up to 3A. It also includes various control and diagnostic features such as rotational speed output, brake function, speed command, and safety detections with visual indicators. The onboard DAC also offers additional tunability for motor control enhancements like lead angle control, output duty cycle, motor lockout, and PWM frequency selection.

[Learn More]