How does it work?
POT 5 Click is based on the PDB081-P10-103B1, a high-quality 8mm micro rotary 10k potentiometer from Bourns, providing very accurate voltage output. The PDB081-P10-103B1 features a 1mm plastic shaft (2mm pin length), low profile, without detent, and linear tapers. This potentiometer operates over a wide temperature range, withstanding 50V maximum voltage. This rotary potentiometer offers 5Ω maximum residual resistance, 0.03W power rating, and 100mV maximum sliding noise. Its typical applications include consumer white goods, test and measurement equipment, communications and laboratory equipment, and other applications requiring an analog or digitized control voltage.
The output signal of the PDB081-P10-103B1 can be converted to a digital value using MCP3221, a successive approximation A/D converter with a 12-bit resolution from Microchip using a 2-wire I2C compatible interface, or can be sent directly to an analog pin of the mikroBUS™ socket labeled as AN. The selection can be performed by using an onboard SMD switch labeled as VSEL, placing it in an appropriate position marked as AN or ADC.
This Click board™ can operate with either 3.3V or 5V logic voltage levels selected via the VCC SEL jumper. This way, it is allowed for either 3.3V and 5V capable MCUs to use the communication lines properly. However, the Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used, as a reference, for further development.
Specifications
Type
Potentiometer
Applications
Can be used for consumer white goods, test and measurement equipment, communications and laboratory equipment, and more
On-board modules
PDB081-P10-103B1 – 8mm micro rotary 10k potentiometer from Bourns
Key Features
Resistance up to 10k, plastic shaft, low profile, without detent, wide temperature and voltage range, wide mechanical angle, long rotational life, selectable analog or digital output, and more
Interface
Analog,I2C
Feature
ClickID
Compatibility
mikroBUS™
Click board size
M (42.9 x 25.4 mm)
Input Voltage
3.3V or 5V
Pinout diagram
This table shows how the pinout on POT 5 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED Indicator |
JP1 | VCC SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
SW1 | VSEL | Right | Output Signal A/D Selection AN/ADC: Left position AN, Right position ADC |
POT 5 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | – | 5 | V |
ADC Resolution | – | 12 | – | bit |
Potentiometer Resistance | – | – | 10 | kΩ |
Software Support
We provide a library for the POT 5 Click as well as a demo application (example), developed using Mikroe compilers. The demo can run on all the main Mikroe development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager (recommended), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for POT 5 Click driver.
Key functions
-
pot5_read_voltage
This function reads raw ADC value and converts it to proportional voltage level. -
pot5_convert_voltage_to_percents
This function converts analog voltage to potentiometer position in percents. -
pot5_set_vref
This function sets the voltage reference for POT 5 click driver.
Example Description
This example demonstrates the use of POT 5 click board by reading and displaying the potentiometer position.
void application_task ( void )
{
float voltage = 0;
if ( POT5_OK == pot5_read_voltage ( &pot5, &voltage ) )
{
log_printf( &logger, " AN Voltage : %.3f Vrn", voltage );
log_printf( &logger, " Potentiometer : %u %%rnn",
( uint16_t ) pot5_convert_voltage_to_percents ( &pot5, voltage ) );
Delay_ms( 1000 );
}
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager (recommended), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.POT5
Additional notes and informations
Depending on the development board you are using, you may need 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. UART terminal is available in all Mikroe compilers.
mikroSDK
This Click board™ is supported with mikroSDK – Mikroe Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
For more information about mikroSDK, visit the official page.