MikroElektronika
DIGI POT 4 click
DIGI POT 4 click
SKU:MIKROE-2873
Couldn't load pickup availability
Share
DIGI POT 4 click is a digitally controlled dual potentiometer, with the resistance of 10K?. It has a 10bit resolution which allows for a very smooth linear wiper positioning through 1024 steps. Digital wiper position can be controlled via SPI interface. DIGI POT 4 click also features a non-volatile durable EEPROM memory for storing the wiper position, which means that the device can restore its last position after the power on - just like its mechanical counterpart.
The main advantage of the digital potentiometers over the mechanical ones is that they can never wear out. The wiper position can be precisely programmed, and the wiper contact with the resistive coating can never be compromised by the influence of the dirt or moisture. Due to its low THD and good bandwidth, it can be used for digital volume control or a precise gain and offset adjustment. It can also be used as the LCD digital contrast control, and generally - whenever a precise dual digital voltage divider application is required.
How does the click work?
DIGI POT 4 click carries MAX5494, a 10bit dual, non-volatile, linear taper, digital potentiometer, from Maxim Integrated. This IC consists of the control logic and a resistors stream (i.e. 1024 equal resistors serially connected) through which the wiper is moving. The end-to-end resistance of the resistors on the used IC is 10K?. The wiper movement is done by writing 10bit data into the wiper registers, resulting in 1024 discrete positions the wiper can take. All three terminals of the digital pot are routed to the IC terminals and further to the onboard connectors, for easy and secure connecting to the rest of the circuit. The MAX5494 contains two such potentiometers, routed to the click board™ screw terminals. Depending on the output impedance to which the wiper is connected, it is possible that the voltage drop may occur while switching positions, therefore it is not recommended to use it as the variable resistor.
After the power on, the content of the EEPROM NV memory will be copied to the volatile RAM, used as the shift register for the wiper position. This volatile memory register directly controls the wiper position. The wiper can be positioned by writing data into this register. The EEPROM NV registers are only written if requested, by using the specific write command. This way, the EEPROM lifecycle is prolonged, although it can withstand up to 200000 read/write cycles.
All the communication with the control logic of the MAX5494 is done through the SPI, so all the SPI signals are routed to the appropriate mikroBUS™ pins. The CS pin is held high, preventing the SPI communication, so as always - to initialize the SPI communication, the CS pin needs to be pulled LOW by the MCU.
Besides two connectors used to connect the potentiometer terminals, the click board™ is equipped with the SMD jumper, used to choose between the 3.3V or 5V operating voltage.
Specifications
Type | Digital potentiometer |
Applications | It can be used for digital volume control or a precise gain and offset adjustment. It can also be used as the LCD digital contrast control, and generally - whenever a precise dual digital voltage divider application is required. |
On-board modules | MAX5494, a 10bit dual, non-volatile, linear taper, digital potentiometer, from Maxim Integrated |
Key Features | Accurate positioning of the wiper, via the 1024 different steps, non-volatile EEPROM memory used for recalling the wiper positions after the power on, very good bandwidth and low THD on input signals |
Interface | SPI |
Input Voltage | 3.3V or 5V |
Click board size | M (42.9 x 25.4 mm) |
Pinout diagram
This table shows how the pinout on DIGI POT 4 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 |
J1 | VCC SEL | Left | Power supply voltage selection: left position 3V3, right position 5V |
CN1 | TB1 | - | Digital potentiometer 1 terminal (H1,W1,L1) connection |
CN2 | TB2 | - | Digital potentiometer 2 terminal (H2,W2,L2) connection |
Software support
We provide a library for DIGI POT 4 click on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers and mikroSDK. The provided click library is mikroSDK standard compliant. The demo application can run on all the main MikroElektronika development boards.
Library description
The library carries two functions which are sufficient to have complete control over DIGI POT 4 click.
Key functions:
void digipot4_writeReg(uint8_t Reg, uint16_t value);
- Write data to wiper register
void digipot4_copyReg(uint8_t Reg);
- Copy data to NV memory
Example description
The application is composed of three sections :
- System Initialization - Initializes SPI module and sets CS pin as OUTPUT
- Application Initialization - DIGI POT 4 Driver initialization
- Application Task - (code snippet) - Sequentially sets the wiper position every second.
void applicationTask() { digipot4_writeReg(_DIGIPOT4_WIPER_REG_1, 0); digipot4_writeReg(_DIGIPOT4_WIPER_REG_2, 0); Delay_1sec(); digipot4_writeReg(_DIGIPOT4_WIPER_REG_1, 512); digipot4_writeReg(_DIGIPOT4_WIPER_REG_2, 512); Delay_1sec(); digipot4_writeReg(_DIGIPOT4_WIPER_REG_1, 1023); digipot4_writeReg(_DIGIPOT4_WIPER_REG_2, 1023); Delay_1sec(); }
The full application code, and ready to use projects can be found on our LibStock page.
Additional notes and information
Depending on the development board you are using, you may need USB UART click, USB UART 2 clickor 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.
mikroSDK
This click board is supported with mikroSDK - MikroElektronika 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.




New Products
-
Conductivity Calibration K 1.0 Set (4 pouches)
Vendor:Atlas ScientificRegular price Rs. 1,599.00Regular priceUnit price / perSold out -
Analog Discovery 3 Pro Bundle
Vendor:DigilentRegular price Rs. 42,569.00Regular priceUnit price / per -
Lighthouse swarm bundle - Crazyflie 2.1+ (250mAh batteries)
Vendor:BitcrazeRegular price Rs. 474,999.00Regular priceUnit price / perSold out -
Loco Swarm bundle - Crazyflie 2.1+ (250mAh batteries)
Vendor:BitcrazeRegular price Rs. 544,999.00Regular priceUnit price / perSold out -
Kopis X8 Cinelifter 5" Kit - Caged (Frame Kit)
Vendor:HolybroRegular price Rs. 28,199.00Regular priceUnit price / perSold out -
Sold out
Atlas Scientific i3 InterLink
Vendor:Atlas ScientificRegular price Rs. 6,349.00Regular priceUnit price / perSold out -
Sold out
PoE Injector
Vendor:LuxonisRegular price Rs. 2,099.00Regular priceUnit price / perSold out -
Sold out
1-Port VINT Hub Phidget
Vendor:PhidgetsRegular price Rs. 2,699.00Regular priceUnit price / perSold out -
ACS37220LEZATR-100B3 Current Sensor Large Carrier -100A to +100A, 3.3V
Vendor:POLOLURegular price Rs. 829.00Regular priceUnit price / perSold out -
CT433-HSWF50MR TMR Current Sensor Compact Carrier -50A to +50A, 3.3V
Vendor:POLOLURegular price Rs. 1,039.00Regular priceUnit price / perSold out -
A5984 Stepper Motor Driver Carrier, Adjustable Current, Blue Edition
Vendor:POLOLURegular price Rs. 409.00Regular priceUnit price / perSold out -
A5984 Stepper Motor Driver Carrier, Fixed 1A@5V / 660mA@3.3V, Blue Edition (Soldered Header Pins)
Vendor:POLOLURegular price Rs. 489.00Regular priceUnit price / perSold out -
A5984 Stepper Motor Driver Carrier, Fixed 500mA@5V / 330mA@3.3V (Soldered Header Pins)
Vendor:POLOLURegular price Rs. 469.00Regular priceUnit price / perSold out -
Sold out
T Connector Male-Female Pair
Vendor:POLOLURegular price Rs. 169.00Regular priceUnit price / perSold out -
Pololu Reverse Voltage Protector, 4-60V, 10A
Vendor:POLOLURegular price Rs. 159.00Regular priceUnit price / perSold out -
Pololu Reverse Voltage Protector, 4-60V, 12A
Vendor:POLOLURegular price Rs. 199.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 10A
Vendor:POLOLURegular price Rs. 179.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 12A
Vendor:POLOLURegular price Rs. 229.00Regular priceUnit price / perSold out -
Pololu Mini Plastic Gearmotor Bracket Pair - Tall
Vendor:POLOLURegular price Rs. 599.00Regular priceUnit price / perSold out -
Ribbon Cable with Pre-Crimped Terminals 10-Color M-F 6" (15 cm)
Vendor:POLOLURegular price Rs. 149.00Regular priceUnit price / perSold out -
Ribbon Cable with Pre-Crimped Terminals 10-Color M-F 12" (30 cm)
Vendor:POLOLURegular price Rs. 279.00Regular priceUnit price / perSold out -
Wires with Pre-Crimped Terminals 10-Pack M-F 6"
Vendor:POLOLURegular price Rs. 339.00Regular priceUnit price / perSold out -
Ribbon Cable Premium Jumper Wires 10-Color M-M 6" (15 cm)
Vendor:POLOLURegular price Rs. 209.00Regular priceUnit price / perSold out -
Ribbon Cable Premium Jumper Wires 10-Color F-F 6" (15 cm)
Vendor:POLOLURegular price Rs. 209.00Regular priceUnit price / perSold out -
Ribbon Cable Premium Jumper Wires 10-Color M-F 6" (15 cm)
Vendor:POLOLURegular price Rs. 209.00Regular priceUnit price / perSold out