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 (136707 times)
  2. FAT32 Library (69917 times)
  3. Network Ethernet Library (55932 times)
  4. USB Device Library (46256 times)
  5. Network WiFi Library (41883 times)
  6. FT800 Library (41144 times)
  7. GSM click (28978 times)
  8. PID Library (26407 times)
  9. mikroSDK (26355 times)
  10. microSD click (25351 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

DIGI POT 4 click

Rating:

5

Author: MIKROE

Last Updated: 2018-03-13

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Digital potentiometer

Downloaded: 5254 times

Not followed.

License: MIT license  

DIGI POT 4 click is a digitally controlled dual potentiometer, with the resistance of 10 kΩ. It has a 10 bit resolution which allows for a very smooth linear wiper positioning through 1024 steps.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "DIGI POT 4 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "DIGI POT 4 click" changes.

Do you want to report abuse regarding "DIGI POT 4 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
Other Compiler
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

DIGI POT 4 Click

DIGI POT 4 Click

Native view of the DIGI POT 4 Click.

View full image
DIGI POT 4 Click

DIGI POT 4 Click

Front and back view of the DIGI POT 4 Click board.

View full image

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();
}

Additional notes and information

Depending on the development board you are using, you may need USB UART clickUSB 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.

 

ALSO FROM THIS AUTHOR

Pressure 5 click

5

Pressure 5 click is a barometric pressure measurement Click board, which features the BMP388, an accurate absolute barometric pressure sensor.

[Learn More]

Gyro click

0

Gyro click is an add-on board in mikroBUS form factor. It features L3GD20 three-axis digital gyroscope module capable of providing the measured angular rate, as well as ambient temperature.

[Learn More]

Environment click

0

Environment click measures temperature, relative humidity, pressure and VOC (Volatile Organic compounds gases). The click carries the BME680 environmental sensor from Bosch.

[Learn More]