AudioAMP 4 Click-Platine
AudioAMP 4 Click-Platine
Key Features
- Hochwertiger Audioausgang mit bis zu 1 W Dauerleistung, guter Frequenzgang, niedriger THD und SNR, kann direkt in das vorhandene Stereosystem integriert werden, digitale Lautstärkeregelung.
- Basierend auf dem LM4860M, einem 1-W-Audio-Leistungsverstärker der Boomer®-Serie mit Abschaltmodus; CD74HC4051, einem Hochgeschwindigkeits-CMOS-Logik-Analog-Mux/Demux-IC, beide von Texas Instruments
- Es kann in verschiedenen Audiosystemen mit geringem Stromverbrauch, Heimstereokomponenten, Computerlautsprechern und vielen anderen ähnlichen Audioanwendungen verwendet werden, die eine Audioverstärkung mit digital gesteuertem Lautstärkepegel erfordern
- mikroBUS: GPIO- und PWM-Schnittstellen
Overview
Das AudioAmp 4 Click Board™ ist ein Audioverstärker mit niedrigem Stromverbrauch und digitaler Lautstärkeregelung. Es ist mit dem LM4860 ausgestattet, einem Audioverstärker-IC, der bis zu 1 W Dauerleistung an eine 8-Ω-Last liefern kann. Es hat eine sehr geringe Gesamtklirrfaktor (THD) von weniger als 1 % über das gesamte Audiospektrum, wodurch es perfekt für kleine Boomboxen, PC-Lautsprecher und ähnliche stromsparende Tonverstärkungsgeräte geeignet ist, die mit Batterien betrieben werden können. Ein hoher Integrationsgrad des LM4860-IC ermöglicht die Verwendung einer zusätzlichen Schaltung zur digitalen Signaldämpfung und bietet 8 verschiedene Lautstärkepegel, die über 3 GPIO-Pins des MikroBUS ausgewählt werden können.
Das AudioAmp 4 Click Board™ wird von der mikroSDK-kompatiblen Bibliothek unterstützt, die Funktionen enthält, die die Softwareentwicklung vereinfachen. Das Click Board™ wird als vollständig getestetes Produkt geliefert und ist bereit für den Einsatz auf einem System mit MikroBUS-Steckplatz.
In addition to the possibility to attenuate the input signal from the included 3.5mm JACK connector, the AudioAMP 4 Click Board™ can use analog voltage as the amplifier input, derived from the PWM signal at the mikroBUS™ PWM pin. This allows the MCU software to generate custom waveforms, by simply changing the duty cycle of the PWM signal. Features such as the flat audio characteristic, low THD and noise levels over the entire range of the audio spectrum, digital volume control, power supply from the mikroBUS™ 5V rail, make this Click board™ a perfect solution for rapid development of applications, when a quick and simple low-power audio signal reinforcement is required.
How Does The AudioAMP 4 Click Board™ Work?
There are two integrated circuits on the AudioAMP 4 Click Board™: the LM4860, a Boomer® series 1W audio power amplifier with shutdown mode; CD74HC4051, a high-speed CMOS logic analog mux/demux IC, both from Texas Instruments. The LM4860 is used as the main audio amplifier component. This IC features a high level of integration, reducing the number of external components to a minimum. It does not require any output capacitors, bootstrap capacitors, or snubber circuits, which makes the design very simple and straightforward.
Besides other functions, the IC features the Shutdown mode, activated by a HIGH logic level on a dedicated SHUTDOWN pin. Therefore, to enable the amplifier, this pin must be set to a LOW logic level. However, AudioAmp 4 click already has a pull-down resistor, so the audio amplifier IC is enabled by default. The SHUTDOWN pin is routed to the CS pin of the mikroBUS™ and it is labeled as EN. While in Shutdown mode, the power consumption is minimized, which is very useful for applications that rely on a battery power supply. The Shutdown mode pin is also routed to the #E pin of the CD74HC4051, simultaneously disabling this IC as well.
The audio signal can be connected via the 3.5mm JACK connector. By default, this signal is connected to one side of the voltage divider, composed of eight resistors. The other end of the voltage divider is tied to the GND, while the middle tap of the voltage divider can be selected by activating any of the 8 available positions of the CD74HC4051 IC. The CD74HC4051 IC uses three control pins, allowing its internal analog SP8T switch to be closed between any of the eight I/O pins (A0 to A7), and one common I/O pin. The audio signal goes through this divider, gets divided by the ratio selected with the control pins, and into the audio input of the LM4860 audio amp IC. This results in having eight discrete volume levels, which can be digitally selected by S0 to S3 control pins routed to the mikroBUS™.
The AudioAMP 4 Click Board™ is equipped with the SMD jumper, labeled as IN SEL. This jumper allows to select the output from the RC filter, which filters out the PWM signal from the mikroBUS™ PWM pin, creating a DC signal of constant voltage. By changing the pulse width of the PWM signal, the voltage output of the RC filter will change. If the IN SEL switch is moved to the PWM position, this signal will be introduced into the voltage divider, instead of the audio signal from the 3.5mm JACK connector. It can be used to generate custom waveforms by the software running on the host MCU.
Three control pins of the CD74HC4051 labeled as S0, S1, and S2, are routed to the mikroBUS™ pins AN, RST, and INT, respectively, labeled according to the names of the control pins. These pins accept logic HIGH and LOW levels from the host MCU, so the CD74HC4051 can be controlled using a binary format on the control pins.
The AudioAMP 4 Click Board™ uses only 5V rail from the mikroBUS™ and as such it should not be interfaced with MCUs that have only 3.3V tolerant pins. The complete control of the IC is done exclusively by GPIO pins of the MCU, so the software development complexity is reduced to a minimum. However, the click comes with the mikroSDK compliant library, offering a simple usage example and functions for the rapid development of applications.
SPECIFICATIONS
Type | Amplifier |
Applications | It can be used in various low power audio systems, home stereo components, computer speakers, and many other similar audio applications that require an audio amplification with the digitally controlled volume level |
On-board modules | LM4860M, a Boomer® series 1W audio power amplifier with shutdown mode; CD74HC4051, a high-speed CMOS logic analog mux/demux IC, both from Texas Instruments |
Key Features | High quality audio output up to 1W of continuous power, good frequency response, low THD and SNR, it can be directly implemented into the existing stereo system, digital volume control. |
Interface | GPIO,PWM |
Compatibility | mikroBUS |
Click board size | L (57.15 x 25.4 mm) |
Input Voltage | 5V |
PINOUT DIAGRAM
This table shows how the pinout on AudioAMP 4 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | Pin | Notes | ||||
---|---|---|---|---|---|---|---|
Control pin 0 | S0 | 1 | AN | PWM | 16 | PWM | PWM signal Input |
Control pin 1 | S1 | 2 | RST | INT | 15 | S2 | Control pin 2 |
Shutdown mode enable | EN | 3 | CS | RX | 14 | NC | |
NC | 4 | SCK | TX | 13 | NC | ||
NC | 5 | MISO | SCL | 12 | NC | ||
NC | 6 | MOSI | SDA | 11 | NC | ||
NC | 7 | 3.3V | 5V | 10 | 5V | Power Supply | |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
ONBOARD SETTINGS AND INDICATORS
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED indicator |
JP1 | IN SEL | Left | Input signal source selection: left position 3.5mm JACK, right position PWM pin of the mikroBUS™ |
Software Support
Software Support
We provide a library for the AudioAMP 4 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 performs a audio control and works as audio amplifier. Possible commands are to turn ON or OFF the output (speaker) and to set the output volume by selecting the desired channel. For more details check documentation.
Key Functions
T_AUDIOAMP4_RETVAL audioamp4_setChannel( uint8_t channel )
- Function performs a volume channel selection.T_AUDIOAMP4_RETVAL audioamp4_shutdown( uint8_t state )
- Function turns shutdown to ON or OFF state.
Example Description
The application is composed of the three sections :
- System Initialization - Initializes peripherals and pins.
- Application Initialization - Initializes GPIO interface, turns shutdown OFF and performs a volume channel 3 selection.
- Application Task - (code snippet) - Checks which command is sent from uart and performs a determined command. Note : Possible commands are:
- Shutdown OFF
- Shutdown ON l Legend 0-7 Volume channel selection
void applicationTask() { rxDat = UART_Rdy_Ptr(); if (rxDat != _NO_RECEIVED_DATA) { rxDat = UART_Rd_Ptr(); if (rxDat == '+') { audioamp4_shutdown( _AUDIOAMP4_SHUTDOWN_OFF ); mikrobus_logWrite( "* Shutdown OFF *", _LOG_LINE ); } else if (rxDat == '-') { audioamp4_shutdown( _AUDIOAMP4_SHUTDOWN_ON ); mikrobus_logWrite( "* Shutdown ON *", _LOG_LINE ); } else if (rxDat == 'l') { writeLegend(); } else { channSel = rxDat - '0'; responseCheck = audioamp4_setChannel( channSel ); checkResponse(); } } }
Additional Functions :
- void checkResponse() - Checks is channel selection parametar valid or not.
- void writeLegend() - Writes the all possible commands on uart.
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
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.
Software Support
Software Support
We provide a library for the AudioAMP 4 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 performs a audio control and works as audio amplifier. Possible commands are to turn ON or OFF the output (speaker) and to set the output volume by selecting the desired channel. For more details check documentation.
Key Functions
T_AUDIOAMP4_RETVAL audioamp4_setChannel( uint8_t channel )
- Function performs a volume channel selection.T_AUDIOAMP4_RETVAL audioamp4_shutdown( uint8_t state )
- Function turns shutdown to ON or OFF state.
Example Description
The application is composed of the three sections :
- System Initialization - Initializes peripherals and pins.
- Application Initialization - Initializes GPIO interface, turns shutdown OFF and performs a volume channel 3 selection.
- Application Task - (code snippet) - Checks which command is sent from uart and performs a determined command. Note : Possible commands are:
- Shutdown OFF
- Shutdown ON l Legend 0-7 Volume channel selection
void applicationTask() { rxDat = UART_Rdy_Ptr(); if (rxDat != _NO_RECEIVED_DATA) { rxDat = UART_Rd_Ptr(); if (rxDat == '+') { audioamp4_shutdown( _AUDIOAMP4_SHUTDOWN_OFF ); mikrobus_logWrite( "* Shutdown OFF *", _LOG_LINE ); } else if (rxDat == '-') { audioamp4_shutdown( _AUDIOAMP4_SHUTDOWN_ON ); mikrobus_logWrite( "* Shutdown ON *", _LOG_LINE ); } else if (rxDat == 'l') { writeLegend(); } else { channSel = rxDat - '0'; responseCheck = audioamp4_setChannel( channSel ); checkResponse(); } } }
Additional Functions :
- void checkResponse() - Checks is channel selection parametar valid or not.
- void writeLegend() - Writes the all possible commands on uart.
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
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.
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.