รหัสสินค้า | M3486 |
หมวดหมู่ | วัดกระแส แรงดัน ไฟฟ้า สนามแม่เหล็ก |
ราคา | 45.00 บาท |
น้ำหนัก | 5 กรัม |
ลงสินค้า | 23 พ.ย. 2563 |
อัพเดทล่าสุด | 5 เม.ย. 2565 |
The X9C103S Digital Potentiometer Module is a 10kΩ digitally controlled potentiometer with 100 selectable wiper taps and non-volatile storage of the current tap point.
Digital potentiometers are commonly used to allow a uC to control the calibration or adjustment of a device rather than having a human twiddle a potentiometer knob. This can be done automatically such as in the case where the uC is monitoring a voltage using ADC and adjusting the pot to hit a target voltage or in response to user input such as to control the volume of an audio amplifier.
The potentiometer has 100 steps, so if it is connected across 5V, the step resolution of the wiper output will be approximately 5V/100 steps = 50mV.
The two ends of the potentiometer can be connected to voltages that span the range of up to -5V to +5V.
The maximum output current sink/source capability is 4.4mA. Ensure that is not exceeded in the circuit you are using it in.
The module has an easy to use 3-wire interface that allows the device to be selected, direction of travel of the wiper to be set and the wiper incremented in the direction chosen. It can also optionally save the last setting so that it will be restored after a power cycle.
It is not a true communication interface and it is not possible to read the current setting back out of the device. This may seem like a major limitation, but it mimics how a typical potentiometer is used. You don’t set a potentiometer to a particular resistance value, rather you adjust it to achieve a particular affect depending on the circuit it is being used in.
This module comes with the headers loose. This allows you to configure the module to meet your particular requirements such as which side of the board you want the header on or if you want to solder on wires to make the connections.
Note that the spacing of the headers on the two ends of the boards are not exactly on 0.1″ centers. For use with breadboards, we put the 5-pin header on the bottom so that the module can plug directly into the breadboard and we put the 3-pin header on the top of the board where connections can be made using female jumpers.
The connections to the module are fairly straightforward.
1 x 5 Header
1 x 3 Header
Note that just like a regular potentiometer, you can switch the voltages between VL and VH as to which one is more positive, but doing so will reverse the direction of the U/D movement.
These modules have good build quality and generally work well. It would have been nice if the header layout was on 0.1″ centers but that is not a major limitation as long as you don’t solder both headers to the bottom of the module and then wonder why it won’t plug into a breadboard very well. You can mount both on the bottom side if you first put them into a breadboard and then solder them in place at a slight angle or do as we have and solder the potentiometer contacts on the top side.
The back of the board shows some incorrect voltage info that can be ignored. The chip is specified to operate at a VCC of 5V ± 10%, so cannot operated down to 3V as per the silkscreen. The VL and VH terminals can both handle the full range of -5V to +5V
The program below is a simple program that allows you to control the device directly. There are libraries available for this device but the interface is simple enough that we don’t bother to use one. In the program, entering a ‘U’ causes the wiper to be incremented UP by one. Entering a ‘D’ causes the wiper to be decremented DOWN by one. ‘S’ causes the device to save the current setting.
We are connecting U/D to pin 8, INC to pin 9 and CS to pin 10, but these can be reassigned to any 3 digital pins.
We are connecting the pot across 5V and ground and the wiper output is being input to A0, but this can be any analog input pin.
หน้าที่เข้าชม | 5,167,603 ครั้ง |
ผู้ชมทั้งหมด | 1,566,943 ครั้ง |
ร้านค้าอัพเดท | 6 ก.ย. 2568 |