TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (351 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 (136643 times)
  2. FAT32 Library (69857 times)
  3. Network Ethernet Library (55899 times)
  4. USB Device Library (46236 times)
  5. Network WiFi Library (41869 times)
  6. FT800 Library (41096 times)
  7. GSM click (28950 times)
  8. PID Library (26403 times)
  9. mikroSDK (26321 times)
  10. microSD click (25333 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

MIC 2 click

Rating:

5

Author: MIKROE

Last Updated: 2019-04-15

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Microphone

Downloaded: 3176 times

Not followed.

License: MIT license  

MIC 2 click is equipped with a small electret microphone, accompanied by a suitable pre-amplifying circuit. The small electret microphone is not capable of providing sufficient line-level output; therefore, the pre-amp has to be used.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "MIC 2 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "MIC 2 click" changes.

Do you want to report abuse regarding "MIC 2 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

MIC 2 click

MIC 2 click

Native view of the MIC 2 click board.

View full image
MIC 2 click

MIC 2 click

Front and back view of the MIC 2 click board.

View full image

Library Description

The library contains functions with reading values ​​from the ADC and setting the potentiometer over the I2C lines. The values returned by MIC 2 click, the user can see on the Serial plot.

Key functions:

  • void mic2_setPotentiometer(uint8_t ptt_value) - Functions for sets resistance of the potentiometer.
  • uint32_t mic2_adcRead() - ADC read.
  • void mic2_adcSetInputChannel() - ADC set channel.
  • void mic2_adcInit() - ADC init.

Examples description

The application is composed of the three sections :

  • System Initialization - Initializes I2C module, LOG communication and AN pin as INPUT.
  • Application Initialization - Initializes driver init, ADC init and sets digital pot.
  • Application Task - Reads ADC data from AN pin and plots it on serial plotter.
void applicationTask( )
{
    uint16_t adcValue;
    
    adcValue = mic2_adcRead();
    plotData( adcValue );
}

Additional Functions :

  • plotData() - Performs the data plotting on serial plot.

Other mikroE Libraries used in the example:

  • I2C
  • UART
  • ADC

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

IrThermo 2 click

5

IrThermo 2 click carries the TMP007 infrared thermopile sensor with an integrated math engine. The measurement range of the sensor is between –40°C to 125°C (with a 14-bit resolution). IrThermo 2 click communicates with the target board MCU through mikroBUS I2C pins (SCL, SDA. The board is designed to use either a 3.3V or a 5V power supply.

[Learn More]

Mikromedia 3 for STM32F2 Capacitive

0

This project contains example for testing modules on Mikromedia 3 for STM32F2 Capacitive.

[Learn More]

ADC 16 click

0

ADC 16 Click is a compact add-on board that contains a high-performance data converter. This board features the ADS7142-Q1, a low-power two-channel 12-bit analog-to-digital converter from Texas Instruments. This I2C configurable 140kSPS successive approximation register (SAR) analog-to-digital converter (ADC) can autonomously monitor signals while maximizing system power, reliability, and performance. It implements event-triggered interrupts per channel using a digital window comparator with programmable high and low thresholds, hysteresis, and event counter.

[Learn More]