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
Specifications
Package included
Pins

#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