Learn   /   Beginner Tutorials

How to interface MAXIM’s DS1868 digital potentiometer with a PIC microcontroller

Potentiometers find applications in many electrical devices. For example, a light dimmer uses a potentiometer to control the brightness of lamps.

Published
Updated

At a glance

CategoryBeginner Tutorials
Reading time~3 min

Summary of How to interface MAXIM’s DS1868 digital potentiometer with a PIC microcontroller

This article introduces digital potentiometers as modern alternatives to electro-mechanical types, highlighting the MAXIM DS1868 chip. It explains that while traditional pots use physical sliding wipers, digital versions use silicon chips with finite positions controlled by 8-bit values. The text details interfacing the DS1868 with a PIC16F1827 microcontroller to adjust wiper terminals, noting the chip features two 256-section potentiometers available in 10k, 50k, and 100k ohm variants.

Parts used in the MAXIM DS1868 Project:

  • MAXIM DS1868 digital potentiometer chip
  • PIC16F1827 microcontroller
Potentiometers find applications in many electrical devices. For example, a light dimmer uses a potentiometer to control the brightness of lamps. In amplifiers, they are used to control the output volume of the music, or change the bass level. In an adjustable power supply we see potentiometers to vary the output voltage and current. In a frequency generator, they are used to control the duty cycle and frequency of the output signal. These potentiometers are electro-mechanical transducers that convert the rotary or linear displacement into a change in resistance. This change in resistance can be used to control anything from the brightness of a lamp to the direction of a rocket.
But things have been changed lately. You can now vary the brightness of the lamp with touch switches. The volume of an amplifier can be controlled through a remote, and the frequency of an oscillator can be varied with tact switches. There are still potentiometers in these devices but in the form of silicon chips and not in the conventional electro-mechanical form. These are called digital potentiometers and today we will discuss about MAXIM’s DS1868 chip, which has two digitally controlled potentiometers. We will interface it to a PIC16F1827 microcontroller and vary the position of the wiper terminals from one end to the other.

Theory

An analog potentiometer has three terminals, two of them are connected to the end-points of a resistive element of fixed resistance. The third terminal (known as wiper) can be slided to any point in between the two ends of the resistive element, thus varying the resistance between the wiper and any other end. A digital potentiometer mimics the same functionality except there are only finite wiper positions, which is is digitally controlled.

The DS1868 is a dual digital potentiometer chip from MAXIM, where each potentiometer is composed of 256 resistive sections. Between each resistive section and both ends of the potentiometer are tap points which are accessible to the wiper. The position of the wiper on the resistor array is set by an 8-bit value that controls which tap point is connected to the wiper output. Both potentiometers can also be connected in series (or stacked) for an increased total resistance with the same resolution, or multiple of DS1868 chips can also be cascaded. The DS1868 is offered in three standard resistance values which include 10, 50, and 100 K? versions.

For more detail: How to interface MAXIM’s DS1868 digital potentiometer with a PIC microcontroller
  • What is a digital potentiometer?
    A digital potentiometer mimics analog functionality but uses silicon chips with finite, digitally controlled wiper positions instead of physical sliding mechanisms.
  • How many resistive sections does the DS1868 have?
    Each potentiometer in the DS1868 is composed of 256 resistive sections.
  • Can the DS1868 be stacked for increased resistance?
    Yes, both potentiometers can be connected in series or multiple DS1868 chips can be cascaded for increased total resistance.
  • What resistance values are available for the DS1868?
    The DS1868 is offered in three standard resistance values: 10k, 50k, and 100k ohms.
  • How is the wiper position determined in the DS1868?
    The position is set by an 8-bit value that controls which tap point is connected to the wiper output.
  • What device is used to interface with the DS1868 in this project?
    The project interfaces the DS1868 with a PIC16F1827 microcontroller.
  • Does the DS1868 contain one or two potentiometers?
    The DS1868 is a dual digital potentiometer chip containing two digitally controlled potentiometers.
Beginner Tutorials · PIC16F877A

PIC16F877 Driving LCD in 4-Bit Mode using PIC16F877 with Proteus Simulation

Introduction This microcontroller project shows how a PIC16F877 can drive an LCD display using 4-bit mode inside a Proteus simulation.The project demonstrates...

Beginner Tutorials · PIC18F4550

PICDEM FS USB CDC Evaluation Board using PIC18F4550 with Proteus Simulation

Introduction The PICDEM FS USB CDC Evaluation Board is a practical microcontroller project built around the PIC18F4550, designed to demonstrate USB communication...

Beginner Tutorials

PIC12CE518 I2C EEPROM using PIC12CE518 with Proteus Simulation

Introduction This microcontroller project demonstrates how to write and read data using the internal I2C EEPROM of the PIC12CE518 and visualize the...

Beginner Tutorials

Pico Timer Project using Pico with Proteus Simulation

Introduction Timers are one of the most important features in embedded systems because they allow microcontrollers to perform tasks at precise intervals...

Beginner Tutorials · PIC16F84A

PIC Stepper Motor Controller using PIC16F84A with Proteus Simulation

Introduction Stepper motors are widely used in embedded systems and DIY electronics projects where precise position control is required. This PIC Stepper...

Beginner Tutorials

What is a TVS diode? Working principle and parameters of TVS diode

TVS (Transient Voltage Suppressor) diode is a component specially used for protecting circuits. It can absorb excessive voltage pulses in an instant...

Ibrar Ayyub

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough...