DIGI POT 2 click
DIGI POT 2 click
Share
DIGI POT 2 click is a mikroBUS™ add-on board with a single channel digital potentiometer TPL0501 with 256 wiper positions. The IC has 100 kilo Ohms end-to-end resistance, with ±20% tolerance. The board features two pairs of screw terminals for interfacing with the IC DIGI POT 2 click communicates with the target MCU through the mikroBUS™ SPI pins (MISO, MOSI, SCK, CS). The board is designed to use either a 3.3 or a 5V power supply.
Specification
Type | Digital potentiometer |
Applications | Mechanical potentiometer replacement, sensor trimming and calibration and more |
On-board modules | Digital potentiometer TPL0501 |
Key Features | TPL0501 digital potentiometer, 256 wiper positions, 100 kilo Ohms end-to-end resistance |
Key Benefits | Screw terminals simplify external connectivity, Small dimensions, easy to integrate in prototypes |
Interface | SPI |
Input Voltage | 3.3V or 5V |
Compatibility | mikroBUS |
Click board size | S (28.6 x 25.4 mm) |
Features and usage notes
Digital potentiometers are mixed signal devices intended as replacements for mechanical potentiometers. They can be used for consumer electronics, adjustable power supplies, precision calibration and sensor trimming.
The device has three terminals: High termianl, low terminal and a wiper terminal which is in-between. The wiper terminal is adjusted through SPI, moving through the specified 256 steps.
DIGI POT click can operate in several configurations:
- Voltage Divider mode
- Rheostat mode A
- Rheostat mode B
More details on each one can be found in the TPL0501 data sheet.
Digital potentiomenters can have any kind of interface. Not just knobs like mechanical potentiometers, but also buttons, capacitive inputs etc).
Another advantage of digital potentiometers is that you can create any desirable sweep profile (linear, digital or any other function).
The operating temperature of TPL0501 is between -40ºC to 125ºC. ESD performance is tested per JESD 22 requirements (human body model).
DIGI POT 2 click can be used both with a 3.3V or a 5V power supply, as determined by the position of the onboard jumper (soldered to 3.3V position by default).
Programming
The following code snippet shows a larger part of the DIGI POT 2 click example we supply:
1 void main() { 2 3 Delay_ms(100); 4 5 while (1) { // Endless loop 6 7 DigPot_CS = 0; // Select PotentioMeter chip 8 SPI1_Write(0); 9 SPI1_Write(counter); 10 11 SPI1_Write(0x20); 12 SPI1_Write(counter); 13 DigPot_CS = 1; // Deselect PotentioMeter chip 14 15 adc_value = ADC_Read(1); // Get 10-bit results of AD conversion 16 PORTD = (unsigned char)(adc_value >> 2); 17 18 if (PINB2_bit) // Press PB2 to decrease resistance between W and L 19 counter ++; 20 if (PINB3_bit) // Press PB3 to increase resistance between W and L 21 counter --; 22 23 Delay_ms(50); // Delay for debouncing 24 25 } 26 }
Code examples that demonstrate the usage of DIGI POT 2 click with MikroElektronika hardware, written for mikroC for are available on Libstock
Featured collection
-
Crazyflie 2.1+
Vendor:Regular price Rs. 26,499.00Regular priceUnit price / per -
Getting Started Bundle
Vendor:Regular price Rs. 26,399.00Regular priceUnit price / per -
Happy hacker bundle
Vendor:Regular price Rs. 33,599.00Regular priceUnit price / per -
STEM ranging bundle
Vendor:Regular price Rs. 43,999.00Regular priceUnit price / per -
Crazyradio 2.0
Vendor:Regular price Rs. 4,399.00Regular priceUnit price / per -
Lighthouse explorer bundle
Vendor:Regular price Rs. 89,999.00Regular priceUnit price / per -
Lighthouse positioning deck
Vendor:Regular price Rs. 9,899.00Regular priceUnit price / per -
Lighthouse V2 base station
Vendor:Regular price Rs. 30,349.00Regular priceUnit price / per -
Lighthouse swarm bundle
Vendor:Regular price Rs. 425,899.00Regular priceUnit price / per -
Loco explorer bundle
Vendor:Regular price Rs. 187,999.00Regular priceUnit price / per -
Loco positioning deck
Vendor:Regular price Rs. 9,899.00Regular priceUnit price / per -
Loco positioning node
Vendor:Regular price Rs. 18,699.00Regular priceUnit price / per -
Loco Swarm Bundle
Vendor:Regular price Rs. 529,609.00Regular priceUnit price / per -
Active marker deck
Vendor:Regular price Rs. 16,499.00Regular priceUnit price / per -
Motion capture marker deck
Vendor:Regular price Rs. 659.00Regular priceUnit price / per -
AI-Deck 1.1
Vendor:Regular price Rs. 27,999.00Regular priceUnit price / per -
AI-Deck Color Camera Module
Vendor:Regular price Rs. 2,199.00Regular priceUnit price / per -
AI-deck monocrome camera module
Vendor:Regular price Rs. 2,199.00Regular priceUnit price / per -
Flow deck v2
Vendor:Regular price Rs. 5,499.00Regular priceUnit price / per -
Crazyflie Bolt
Vendor:Regular price Rs. 21,999.00Regular priceUnit price / per -
Thrust upgrade bundle for Crazyflie 2.X
Vendor:Regular price Rs. 1,949.00Regular priceUnit price / perSold out -
Qi 1.2 wireless charging deck
Vendor:Regular price Rs. 3,849.00Regular priceUnit price / per -
7 mm DC-motor
Vendor:Regular price Rs. 439.00Regular priceUnit price / per -
Male long deck connector
Vendor:Regular price Rs. 219.00Regular priceUnit price / per -
250mAh LiPo battery
Vendor:Regular price Rs. 659.00Regular priceUnit price / per