TOP Contributors

  1. MIKROE (2650 codes)
  2. Alcides Ramos (350 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 (136554 times)
  2. FAT32 Library (69758 times)
  3. Network Ethernet Library (55856 times)
  4. USB Device Library (46197 times)
  5. Network WiFi Library (41817 times)
  6. FT800 Library (41013 times)
  7. GSM click (28931 times)
  8. PID Library (26386 times)
  9. mikroSDK (26297 times)
  10. microSD click (25307 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

POT 2 click

Rating:

5

Author: MIKROE

Last Updated: 2019-02-04

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Measurements

Downloaded: 3374 times

Not followed.

License: MIT license  

POT 2 click is a Click board with the accurate selectable reference voltage output. By utilizing a multi-turn precision potentiometer, this Click board can provide very accurate voltage output on the AN pin of the mikroBUS.

No Abuse Reported

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

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

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

POT 2 click

POT 2 click

Native view of the POT 2 click board.

View full image
POT 2 click

POT 2 click

Front and back view of the POT 2 click board.

View full image

Library Description

The library contains the functions needed to start and read the ADC values.

Key functions:

  • void pot2_adcInit() - ADC Init function.
  • void pot2_adcSetInputChannel() - ADC set input channel function.
  • uint32_t pot2_adcRead() - ADC read function.

Examples description

The application is composed of the three sections :

  • System Initialization - Initializes LOG to print data that is read from ADC.
  • Application Initialization - Initialization ADC Init and sets ADC input channel.
  • Application Task - (code snippet) - Reads data from ADC and logs data to USBUART every 500 ms.
void applicationTask()
{
    uint16_t ADC_value;
    char demoText[ 50 ];
        
    ADC_value = pot2_adcRead();
    
    WordToHex(ADC_value, demoText);
    mikrobus_logWrite(" ADC value: 0x", _LOG_TEXT);
    mikrobus_logWrite(demoText, _LOG_LINE);
    Delay_ms( 500 );
}

Other mikroE Libraries used in the example:

  • ADC

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB UART 2 clickor 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

CXPI click

5

CXPI Click is a compact add-on board that contains a transceiver that supports the next-generation automotive communication protocol. This board features the BD41000AFJ-C, a transceiver for the CXPI (Clock Extension Peripheral Interface) communication from Rohm Semiconductor.

[Learn More]

Pressure 3 click

1

Pressure 3 click is a mikroBUS add-on board that carries an Infineon DPS310 digital barometric pressure sensor. Pressure 3 click has both I2C and SPI outputs. The four interface configuration buttons are soldered to mikroBUSâ„¢ I2C pins by default. The click uses a 3.3V power supply.

[Learn More]

Ozone 3 click

0

Ozone 3 Click is a compact add-on board suitable for ozone concentration detection and monitoring. This board features the 110-407, a high-performance ultra-thin electrochemical gas sensor from SPEC Sensors supported by the LMP91000, a high-precision integrated analog front-end IC (AFE) ideal for this sensing application. It provides the reference voltage required by the sensor and offers a choice between the analog output from the AFE IC buffered with the low noise Op-Amp and digital output from the 12-bit SAR A/D converter. This Click board™ represents an ideal choice for health, environmental, industrial, and residential monitoring.

[Learn More]