pot5 2.1.0.0
|
POT 5 Click is a compact add-on board with accurate selectable reference voltage output. This board features the PDB081-P10-103B1, a high-quality 8mm micro rotary 10k potentiometer from Bourns. The PDB081-P10-103B1 potentiometers operate over a wide temperature range, withstanding 50V maximum voltage. This rotary potentiometer offers 5Ω maximum resistance, 0.03W power rating, and 100mV maximum sliding noise.
We provide a library for the POT 5 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for POT 5 Click driver.
pot5_cfg_setup
Config Object Initialization function. pot5_init
Initialization function. 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. This example demonstrates the use of POT 5 click board by reading and displaying the potentiometer position.
The demo application is composed of two sections :
Initializes the driver and logger.
Reads and displays on the USB UART the potentiometer position in forms of voltage and percents once per second.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
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 MikroElektronika compilers.