TOP Contributors

  1. MIKROE (2751 codes)
  2. Alcides Ramos (372 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (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 (139060 times)
  2. FAT32 Library (71592 times)
  3. Network Ethernet Library (56989 times)
  4. USB Device Library (47330 times)
  5. Network WiFi Library (43006 times)
  6. FT800 Library (42297 times)
  7. GSM click (29777 times)
  8. mikroSDK (27874 times)
  9. PID Library (26858 times)
  10. microSD click (26129 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 3 click

Rating:

6

Author: MIKROE

Last Updated: 2019-08-07

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Digital potentiometer

Downloaded: 3611 times

Not followed.

License: MIT license  

POT 3 Click is a Click board with the accurate selectable reference voltage output. By employing a high-quality 11mm, metal shaft potentiometer, this Click board can provide very accurate voltage output.

No Abuse Reported

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

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

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

POT 3 click

POT 3 click

Native view of the POT 3 click board.

View full image
POT 3 click

POT 3 click

Front and back view of the POT 3 click board.

View full image

Library Description

This library allows user to check the output voltage (VOUT) of the POT 3 Click board. User can get the output voltage as 12-bit digital value (ADC only), or as averaged value calculated to millivolts (ADC + calculations). The AD converted value can be read as one conversion sample, or as averaged value with desired number of conversions. For more details check documentation.

Key functions:

  • uint16_t pot3_read_adc( void ) - This function reads the result of AD conversion.
  • uint16_t pot3_get_vout( uint8_t vref_sel, uint16_t nSamples ) - This function returns VOUT value calculated to millivolts, with desired number of AD conversions included in calculations.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes peripherals and pins
  • Application Initialization - Initializes SPI driver
  • Application Task - (code snippet) - Reads VOUT value calculated to millivolts with 2000 conversions included in one measurement cycle. The reference voltage (VREF) of 2V is selected as default value for calculations. Results will be sent to the uart terminal every 10us * number of conversions
void applicationTask()
{
    voltage_mv = pot3_get_vout( _POT3_VREF_2V, 2000 );
    
    WordToStr( voltage_mv, text );
    mikrobus_logWrite( "** VOUT : ", _LOG_TEXT );
    mikrobus_logWrite( text, _LOG_TEXT );
    mikrobus_logWrite( " mV", _LOG_LINE );
    mikrobus_logWrite( "*******************************", _LOG_LINE );
}

Other mikroE Libraries used in the example:

  • Conversions
  • SPI
  • 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

TempHum 6 Click

0

Temp&Hum 6 Click is a smart temperature and humidity sensing Click board™, packed with features that allow easy and simple integration into any design.

[Learn More]

Temp-Hum 13 click

10

Temp&amp;Hum 13 Click is a Click board which is perfectly suited for measuring the relative humidity (RH) and temperature. The Click boardâ„¢ is equipped with the HTU21DF, an accurate and reliable sensor IC, packed in a miniature 3x3mm DFN package.

[Learn More]