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 (136641 times)
  2. FAT32 Library (69855 times)
  3. Network Ethernet Library (55898 times)
  4. USB Device Library (46236 times)
  5. Network WiFi Library (41868 times)
  6. FT800 Library (41094 times)
  7. GSM click (28948 times)
  8. PID Library (26403 times)
  9. mikroSDK (26321 times)
  10. microSD click (25330 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: 3176 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

DAC 4 click

5

DAC 4 Click carries Microchip’s MCP4728 IC, a Quad Digital-to-Analog Converter with nonvolatile (EEPROM) Memory. The digital value is converted to the appropriate voltage level in the range between GND and VCC, which is proportional to the received 12-bit number.

[Learn More]

Clock Gen click

0

Clock Gen Click offers an ideal replacement for crystals, crystal oscillators, VCXOs, phase-locked loops (PLLs), and fanout buffers in cost-sensitive applications. This click features the Si5351A from Silicon Labs, an I2C configurable clock generator based on a PLL + high resolution MultiSynth fractional divider architecture which can generate any frequency up to 200 MHz on each of its outputs with 0 ppm error.

[Learn More]

PAC1720 click

0

PAC1720 Click is a compact add-on board that contains an energy monitoring solution. This board features the PAC1720, an I2C configurable dual high-side bidirectional current sensing monitor with precision voltage measurement capabilities from Microchip Technology. The PAC1720 measures the voltage developed across external sense resistors to represent the high-side current of a battery or voltage regulator.

[Learn More]