Digital Potentiometer Module - X9C103S

  • RM15.00

  • Product Code: X9C103S
  • Availability: In Stock

This is DC 3-5V X9C103S Digital Potentiometer Board Module for Arduino. The X9C103 are digitally controlled (XDCP) potentiometers. Digital Potentiometer consists of a resistor array, wiper switches, a control section, and non-volatile memory. The wiper position is controlled by a three-wire interface. The potentiometer is implemented by a resistor array composed of 99 resistive elements and a wiper switching network. Between each element and at either end are tap points accessible to the wiper terminal.

 

Features

  • Digitally controlled potentiometer
  • Consists of a resistor array, wiper switches, a control section, and non-volatile memory
  • Wiper position is controlled by a three-wire interface
  • Contains resistor array composed of 99 resistive elements and a wiper switching network to achieve variable resistance
  • Between each element and at either end are tap points accessible to the wiper terminal
  • Position of the wiper element is controlled by the CS, U/D, and INC inputs
  • Position of the wiper can be stored in non-volatile memory and then be recalled upon a subsequent power-up operation
  • Can be used as a three-terminal potentiometer or as a two-terminal variable resistor
  • VL and VH digital potentiometer sliding rheostat port corresponding to the low-end and high-end, allowing the input voltage range -5V to + 5V

 

Specifications

  1. Operating Voltage: 3V – 5VDC
  2. Chipset: X9C103S
  3. Board Dimensions: 27mm x 13mm
  4. Center Tap Resistance Range: 0 to 10K Ohm
  5. Impedance: 40 Ohm

 

Package included

  • 1 x X9C103S Digital Potentiometer Module

 

Pins

  • Output VH, RW, VL
    Potentiometer outputs, maximum voltage via potentiometer 10V, current 8mA
  • Input U / D: UP / DOWN
    Depending on the status of this input, the slider of the resistor moves up or down
  • Input INC: INCREMENT
    Control of the slider, when the input changes state from 1 to 0, the slider of the potentiometer makes one step, the principle of operation as in a hardware interrupt
  • Input CS: DEVICE SELECT,
    Select the device, so that the chip starts accepting commands, you need to submit a logical 0

 

 

#define UD  2                          // OUTPUT
#define INC 3
#define CS  4

void up(){
  digitalWrite(UD, HIGH);
  digitalWrite(INC, HIGH);
  digitalWrite(CS, LOW);              // turn on the microcircuit
  delayMicroseconds(1);
  digitalWrite(INC, LOW);
  delayMicroseconds(1);
  digitalWrite(INC, HIGH);
  delayMicroseconds(1);
///digitalWrite(INC, LOW);            // in this case the position of the slider is not written
  digitalWrite(CS, HIGH);             // turn off the chip and write the position in the EEPROM
}

void down(){
  digitalWrite(UD, LOW);
  digitalWrite(INC, HIGH);
  digitalWrite(CS, LOW);
  delayMicroseconds(1);
  digitalWrite(INC, LOW);
  delayMicroseconds(1);
  digitalWrite(INC, HIGH);
  delayMicroseconds(1);

  digitalWrite(CS, HIGH);
}

void setup() {
  Serial.begin(9600);

  pinMode(INC, OUTPUT);
  pinMode(UD, OUTPUT);
  pinMode(CS, OUTPUT);
  digitalWrite(CS, HIGH);                         // turn off the microcircuit
}

void loop() {

  if (Serial.available()) 
     if (Serial.read() == '0'){
      down();
      Serial.print("-1");
     }
     else {
      up();
      Serial.print("+1");
     }
   
  }
 

}

Coding source: arduinolab.pw

 

Write a review

Note: HTML is not translated!
    Bad           Good