Тёмный

Digital Potentiometer (X9C103S) Introduction and Demo with Arduino 

Gemsung Electronics
Подписаться 2 тыс.
Просмотров 55 тыс.
50% 1

Introduction of X9C103S digital potentiometer.
Explain the structure and operation of X9C103S, and how to control the resistance of this digital potentiometer.
Also shown in this video, is a demo of X9C103S controlled by Arduino nano, swiping up and down the wiper, and storing the current wiper position.
A useful tip (or a bug?) while storing the wiper position is also revealed!!
Demo codes and configuration can be downloaded from following link:
drive.google.com/drive/folder...

Наука

Опубликовано:

 

29 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 119   
@manumohan5017
@manumohan5017 2 года назад
Was helpful for me interfacing X9C103S 👍
@gemsungelectronics460
@gemsungelectronics460 2 года назад
I'm so glad it helped! Thank you very much!
@Toschomacher
@Toschomacher Год назад
Thank you very much for this video and the comprehensive information about this digital potentiometer. In my project, I will use it to replace a mechanical potentiometer that controls the speed of a 12V DC blower motor (it's a car heating blower motor) with a digital potentiometer X9C104 that will be automatically adjusted from an Arduino Uno. This video helped me a lot providing all the necessary information that I needed and saved me from searching different sources of information and data to do the task.
@gemsungelectronics460
@gemsungelectronics460 Год назад
I am very glad this video helped! Your comment is really encouraging me to go on! Thank you for watching!!
@user-zt9us6ny3x
@user-zt9us6ny3x 3 года назад
Very informative video. Thank you very much! Now I know about this one additional tap point at start up.
@gemsungelectronics460
@gemsungelectronics460 3 года назад
Your comments are greatly appreciated. More useful videos are to come! Thank you!
@lamboking8able
@lamboking8able 4 месяца назад
Thank you this is exactly what I'm looking for for my next project!!
@gemsungelectronics460
@gemsungelectronics460 4 месяца назад
Thank you for watching!! Hope you succeed with your project!!
@sameerk12982
@sameerk12982 3 года назад
Hello from India...Thank you very much for this easy to understand and very helpful video.... Looking forward for more electronics and arduino videos...subscribed.
@gemsungelectronics460
@gemsungelectronics460 3 года назад
Thank you very much! Your comment is greatly appreciated! More exciting and useful videos are getting ready. Thanks.
@JoaoCarlos-gl7tb
@JoaoCarlos-gl7tb 3 года назад
very good. congratulations.
@gemsungelectronics460
@gemsungelectronics460 3 года назад
Thank you Carlos. More useful videos are being ready!
@HouseofCustomNz
@HouseofCustomNz 3 месяца назад
Thank you this was very helpful
@gemsungelectronics460
@gemsungelectronics460 3 месяца назад
Thank you for watching!!
@janakawijesinha
@janakawijesinha Год назад
super explained 👌
@gemsungelectronics460
@gemsungelectronics460 Год назад
Thank you for watching!!
@smartlearn9028
@smartlearn9028 3 года назад
Dear sir Extremely thankful to you sir for this nice information about potentiometer..i was in search of this for a pretty long time.I m now hopeful that I may built volume control for a radio with your guidance using RF.remote controller. Once again thank you very much sir Regards
@gemsungelectronics460
@gemsungelectronics460 3 года назад
I am very glad it helped! If you have any questions or comments don't hesitate to ask. Thanks
@smartlearn9028
@smartlearn9028 3 года назад
@@gemsungelectronics460 Dear sir i want to use the pot to control volume of my radio receiver set.kindly help in setting the connections for speaker Regards
@gemsungelectronics460
@gemsungelectronics460 3 года назад
You need to first define on what criteria you would control the volume with. After that you can use the sample code I linked in one of the comments above to control the volume if it requires potentiometer control. Here is the example code. drive.google.com/drive/u/0/folders/1YxCH3byESSoGbQtQ7U2HApApApZmV-oW Thanks
@ianuragaggarwal
@ianuragaggarwal 8 месяцев назад
Very interesting
@gemsungelectronics460
@gemsungelectronics460 8 месяцев назад
Thank you for watching!!
@ShopperPlug
@ShopperPlug 3 года назад
Good explanation
@gemsungelectronics460
@gemsungelectronics460 3 года назад
Thank you! Please let me know if you have any requests or comments!
@ShopperPlug
@ShopperPlug 3 года назад
@@gemsungelectronics460 can I use this digital potentiometer for controlling a Triac? Because many Triac schematics shows it uses a potentiometer, I was wondering if it was possible to use a digital potentiometer instead.
@gemsungelectronics460
@gemsungelectronics460 3 года назад
Hello. If you are intending to use the potentiometer as a dimming control, you should consider the followings. - Voltage : X9C103 is capable of handling +/-8V at most. So, for AC application using a triac, you should make sure the voltage doesn't exceed 8V. Using a transformer would be a good idea. - Current : Maximum wiper current is 1mA, so you should limit the current flowing through this pot to max. 1mA. Using extra resistors and limiting the value of the wiper position would be considerable. Thank you.
@alecroadarmel7451
@alecroadarmel7451 7 месяцев назад
This that good stuff.
@gemsungelectronics460
@gemsungelectronics460 7 месяцев назад
Thank you for watching!!
@BertGrink
@BertGrink Год назад
Subbed and upped.
@georgesoare7937
@georgesoare7937 2 года назад
Hy, i have a question, can you tell me how can i connect a loudspeaker digital volume control to a hall sensor (from finger throttle's ebike ) in order to be able to control volume. Thank you in advance for your answer
@user-lx4ik2ed5c
@user-lx4ik2ed5c 6 дней назад
I made this but resistance not vary up to full 10k it vary hoti 5.7k. what is the reason
@brucepsyduck792
@brucepsyduck792 2 года назад
Hi, in INC and U/D only works if we use 0 and 1 (high/low) ? or we can use anything value in the scale of 0 to 255(pwm)?
@gemsungelectronics460
@gemsungelectronics460 2 года назад
The X9C103S only has U/D, INC and CS for controlling the wiper position. It cannot be programmed by using a PWM signal. Thank you!
@jsmythib
@jsmythib 2 года назад
Artificial lifeforms will need smart resistors. Keep everything tuned up properly :)
@gemsungelectronics460
@gemsungelectronics460 2 года назад
Thank you for your comment!
@armincal9834
@armincal9834 2 года назад
Are these used to increase and decrease sound volume in phones? I always wondered how the resistance of a circuit can be changed programmatically such as in Windows and android
@gemsungelectronics460
@gemsungelectronics460 2 года назад
Hello, thank you for watching! I believe that the volume control is integrated in an IC, but the principle should be the same. Thanks!
@karartikararti3588
@karartikararti3588 Год назад
Hi sir, do we need to combine the two codes that you have added to your drive? And can I use these codes to connect it to an Rc controller? My goal is to change the voltage value remotely via an Rc controller.
@gemsungelectronics460
@gemsungelectronics460 Год назад
Hi, you might only need the code "digital_pot_control.ino" only. This one is the code used for the demo in this video, and it is free of use! A potentiometer is used for voltage control, so I think it is possible to use in your application. You need to make sure the specification (voltage range, resistance step) matches your requirement. The voltage range of this module is +/-5V, so it should not exceed this range. Thank you for watching!
@karartikararti3588
@karartikararti3588 Год назад
@@gemsungelectronics460 thank you sir! 😊
@rizkydwiwisesa7350
@rizkydwiwisesa7350 10 месяцев назад
Hi sir, can i ask? I want use digital potensiometer without using button. If it possible? Using only command in arduino? And how to program without button
@gemsungelectronics460
@gemsungelectronics460 10 месяцев назад
Hi, the button in the video was just used for demonstration purposes. So yes, you can definitely get rid of the button and program it in the Arduino. Programming the Arduino is dependent on what you are going to build. For example, you can read data from the sensor for adjusting the potentiometer. The sensor can be replaced with ADC or any kind of device that can provide feedback from the adjustment. Thank you!!
@raifhanna131
@raifhanna131 2 года назад
can I change stepper motor speed using digital potentiometer THROUGH pulses generated from CNC axis pulses(let say Z AXIS PULSES)?????in another word i am requiring z axis height to control stepper motor speed proportionally
@gemsungelectronics460
@gemsungelectronics460 2 года назад
So, you are getting the pulses from the cnc as an input, and you want to control the stepper motor speed with a potentiometer? What are the pulses you are getting from the cnc? Is it some kind of a pwm pulses? Is so, you can use rc filter to convert the pulse to a voltage level that can be read through an ADC. Controlling the stepper motor speed with a potentiometer is definitely possible.
@rebintalite619
@rebintalite619 11 месяцев назад
good day😊 can I use it to replace the analog potentiometer of a LED lamp dimmer and control the digital potentiometer by Arduino uno?
@gemsungelectronics460
@gemsungelectronics460 11 месяцев назад
Yes, if the value is the same, the digital potentiometer can be used in place of the analog part. Thank you for watching!
@Tacticalgamer2011
@Tacticalgamer2011 3 года назад
Thanks for this video. I'm not good at reading the datasheet. Do you know what the maximum current and voltage through the resistor of this circuit are?
@gemsungelectronics460
@gemsungelectronics460 3 года назад
Hello, Can you give me more specifics of what circuit you are referring to?
@gemsungelectronics460
@gemsungelectronics460 3 года назад
If you are referring to this potentiometer itself, the voltage and current depends on followings. - the wiper position of this potentiometer : R - the voltage applied to this potentiometer from the external circuitry : V With these conditions, you can apply Ohm's law to find the current I = V/R
@gemsungelectronics460
@gemsungelectronics460 3 года назад
For the limits that this device can be operated, you should look at the Absolute Maximum Ratings, and the Recommended Operating Conditions of the datasheet. Some limits listed in the datasheet of X9C103 are, 1. Voltage on CS, INC, U/D and VCC pins should not exceed -1~7V with respect to VSS, or GND pin. 2. Voltage on VH and VL should not exceed -8~+8V with respect of VSS. The voltage difference between VH and VL should not exceed 10V for X9C103. 3. The current applied to the wiper pin should not exceed 1mA.
@Tacticalgamer2011
@Tacticalgamer2011 3 года назад
@@gemsungelectronics460 I see... Thanks
@gemsungelectronics460
@gemsungelectronics460 3 года назад
You're welcome! If you have any more questions, please let me know.
@sumankar4873
@sumankar4873 9 месяцев назад
Please tell us can we supply 0 to 5V by this with Arduino programming
@gemsungelectronics460
@gemsungelectronics460 9 месяцев назад
Yes, you can control the wiper value of this potentiometer with Arduino from 0V to 5V. Thank you for watching!!
@sumankar4873
@sumankar4873 9 месяцев назад
Can we expect drawing voltage from 0 to 5V with it directly with nano
@gemsungelectronics460
@gemsungelectronics460 9 месяцев назад
@sumankar4873 Do you mean whether we can power the potentiometer with Arduino nano? Then yes, you can power the potentiometer with 5V coming from the Arduino nano.
@junaidarshad1617
@junaidarshad1617 Год назад
Hello, can I use it to vary the feedback resistance of an operational amplifier to vary the gain?
@gemsungelectronics460
@gemsungelectronics460 Год назад
Hi, it can be used as a feedback for the voltage amplifier, but the current should be limited to 3mA max. Thank you for watching!
@junaidarshad1617
@junaidarshad1617 Год назад
@@gemsungelectronics460 thanks a lot. :)
@TusharGS007
@TusharGS007 Год назад
Is it possible for me to replace this potentiometer in "LM2596HVS DC-DC Buck Converter 4.5-50V to 3-40V Adjustable Step Down Power Module" with the X9C103S for me to control the output voltage of the buck converter?
@gemsungelectronics460
@gemsungelectronics460 Год назад
Yes, I see no problem in replacing the potentiometer in the dc dc module with the x9c103s. Just make sure the current potentiometer has a full range of 10k for compatibility. Thank you for watching!
@TusharGS007
@TusharGS007 Год назад
@@gemsungelectronics460 but can it handle upto 40v? Cuz the data sheet says 5v only😅
@gemsungelectronics460
@gemsungelectronics460 Год назад
Yes, you're right. The terminal voltage should be limited to +/-5V. That means the output voltage should be limited to 5V as well. Sorry for the confusion. Thank you.
@TusharGS007
@TusharGS007 Год назад
@@gemsungelectronics460 Do you know of any alternatives that I can use?
@aravindpadmasali6532
@aravindpadmasali6532 3 года назад
Dear sir, can we use this as a volume control for audio amplifier, please share the wiring diagram of how to connect volume up and down switches
@gemsungelectronics460
@gemsungelectronics460 3 года назад
Hello! Thank you for your comment! You can control the volume with a digital potentiometer and an OP-AMP. For circuitry examples, I found the following site very helpful. www.maximintegrated.com/en/design/technical-documents/tutorials/1/1828.html Thanks!
@aravindpadmasali6532
@aravindpadmasali6532 3 года назад
@@gemsungelectronics460 thank you sir
@BertGrink
@BertGrink Год назад
@@gemsungelectronics460 Those are some neat examples, thank you for the link.
@gemsungelectronics460
@gemsungelectronics460 Год назад
Thank you for your comment!
@Boyner.
@Boyner. 6 месяцев назад
Can you give an example of using DC electricity?
@gemsungelectronics460
@gemsungelectronics460 6 месяцев назад
Hi, the usage of DC is huge, including all the digital circuits! I think you can get a better idea by searching "where is DC used" in the internet. Thank you for watching!
@typingcat
@typingcat 2 года назад
So..., why is the restored value 100 higher than the stored value, is it some sort of bug?
@gemsungelectronics460
@gemsungelectronics460 2 года назад
Great question! Just after getting your comment, I performed the test again to make sure the wiper position doesn't change during the power on/off sequence. The power sequence was ok, and every store operation with a power recycling resulted in an increase of 100 ohm! I will try asking the vendor about this symptom and get back to you if I get some meaningful answers. Thank you for watching!
@peterlingas
@peterlingas 2 года назад
@@gemsungelectronics460 did you get a response?
@gemsungelectronics460
@gemsungelectronics460 2 года назад
Sorry, I couldn't make the contact yet. I will update the result when I get one. I am considering to purchase an IC itself, for comparison. Thank you for your comment.
@PnyouT
@PnyouT Год назад
What happens when we press that switch once rather than continuosly pressing
@gemsungelectronics460
@gemsungelectronics460 Год назад
Hi, do you mean the up and down button? It is implementation specific, dependent on how you implement the arduino code. However, if you trigger the up or down pin once, the wiper moves up or down one position at a time. Hope your question is answered! Thank you for watching!
@minravex2326
@minravex2326 Год назад
Can I use it to control amplifier volume
@gemsungelectronics460
@gemsungelectronics460 Год назад
Hi, it can be used to control the amplifier volume, just make sure the current flowing through the potentiometer not exceed 3mA max. Thank you for watching!
@ictrepairs6963
@ictrepairs6963 Год назад
I would like to repalce a stereo analog 250k logarithmic pot with a digital one, do you think are there some chance to find an IC with the required resistance value and make it usable for my application?
@gemsungelectronics460
@gemsungelectronics460 Год назад
Hello, sorry for my late response. There are several variants for the X9C series: - X9C102 : Up to 1k - X9C103 : Up to 10k - X9C104 : Up to 100k - X9C503 : Up to 50k You can combine above devices to achieve a maximum resistance value of 250k. Or you can search for a digital potentiometer which supports up to 250k. (I believe there are some available) If you have any more questions, please leave a comment below. Thank you for watching!
@kaleenbhaiya2258
@kaleenbhaiya2258 Год назад
Can we change Current and Voltage both using this?
@gemsungelectronics460
@gemsungelectronics460 Год назад
Hi, it is possible to change both current and voltage using this potentiometer, but usually potentiometers are used to change the voltage, not current. The reason is, this potentiometer can handle up to 4.4mA of current. For current applications, rheostats are more suited. Thank you for watching!!
@BertGrink
@BertGrink Год назад
You can use a BJT transistor to control current by sending a control voltage through a resistor into the Base of the transistor, this will in turn determine how much current flows through the transistor from Collector to Emitter.
@kunalburman2895
@kunalburman2895 2 года назад
Hello, first of thank you for the video. I wanted to know how i can connect A1,W,B1 to resistor divider circuit of TPS7A4101? Please can you tell me how i can connect it?
@gemsungelectronics460
@gemsungelectronics460 2 года назад
TPS7A4101 seems to be an LDO. Do you want to control the output voltage of TPS7A4101 with X9C103S potentiometer? If so, I think you can fix R2, and connect VH and VW in the place of R1. (Resistor reference number from TPS7A4101 datasheet) Since the adjustment is made from the following formula: Vout = (R1/R2+1)*Vref, when you set the wiper point to its maximum, R1 = 0 and Vout = Vref = 1.173V. When you set the wiper point to its minimum, R1 = 10kohm, Vout = (10k/R2+1)*Vref. If you want maximum output voltage of 48V, R2 should be 250.5 ohm. This assumes that there is no restriction on the range of the adjust resistor. (Which I haven't seen any comments on that in the datasheet). If there is some restrictions on the range of the resistor in the TPS7A4101 LDO, then consider using 100kohm potentiometer version, X9C104. If you have any further questions, please let me know. Thank you for watching!
@kunalburman2895
@kunalburman2895 2 года назад
@@gemsungelectronics460 Hello Sir, thank you for your reply, 1. Yes I want to control the output voltage of TPS7A4101. I guess the maximum feedback resistance value is 500K. I guess R1 cannot be changed, R2 has to be used as a potentiometer because the voltage will vary and can harm the Potentiometer. Also the Potentiometer that i am using is AD5270 (10 bit). But now after calculating the R2 values: for 2V-> R1=10K, R2=13k For 48V-> R1=10k, R2=0.24k. Please can you tell me how i can connect A1,W,B1 to R1?
@gemsungelectronics460
@gemsungelectronics460 2 года назад
Hello, I took a look at AD5270 data sheet, but there were only two pins available (A and W), since this is a rheostat type variable resistor. If you want to replace R1 with AD5270, you can connect as follows: - A pin from AD5270 to Vout pin of TPS7A4101. - W pin from AD5270 to FB pin of TPS7A4101. This way, you can control the wiper position of AD5270 to adjust the value of R1. Thank you!
@kunalburman2895
@kunalburman2895 2 года назад
@@gemsungelectronics460 Hello Sir, as i said earlier, applying the pin directly to Output of TPs7A4101 can cause damage to Rheostat type potentiometer. So if i replace R2 with AD5270, then A,W will be connected together or differently? Thank you
@gemsungelectronics460
@gemsungelectronics460 2 года назад
How about using R1=24k, and replace R2 with AD5270 and use 100k mode to limit the current below 2mA? The minimum output will be 1.457V in this case.
@zz4855
@zz4855 3 года назад
Hallo, Is this potentiometr works with espeasy?
@gemsungelectronics460
@gemsungelectronics460 3 года назад
You can control the potentiometer with the GPIO.
@yasind.1057
@yasind.1057 3 года назад
hi, can you tell me where i can get the program code?
@gemsungelectronics460
@gemsungelectronics460 3 года назад
Hello, you can download the code and the configuration used in the demo from the following link. drive.google.com/drive/folders/1YxCH3byESSoGbQtQ7U2HApApApZmV-oW?usp=sharing Thank you for watching!
@yasind.1057
@yasind.1057 3 года назад
@@gemsungelectronics460 Thank u for your answer
@yasind.1057
@yasind.1057 3 года назад
@@gemsungelectronics460 hi, i need help again. do you have the program code again on vhdl? thanks in advance
@gemsungelectronics460
@gemsungelectronics460 3 года назад
Hello, you can implement in various ways. For example, you can just use combinatorial logic such as, cs
@khaizertechnology3017
@khaizertechnology3017 Год назад
can i use as rheostat
@gemsungelectronics460
@gemsungelectronics460 Год назад
Hello, functionally potentiometers are no different as rheostats, but usually, rheostats are used to handle high currents, whereas potentiometers are used to control voltage. Especially, this device can handle a maximum of 3mA, which is too low to be used as a rheostat. Thank you for watching!
@JuanSanchez-so9ut
@JuanSanchez-so9ut Год назад
is it necessary the arduino for it to work?
@gemsungelectronics460
@gemsungelectronics460 Год назад
Auduino is just a tool for implementing the controls needed for the digital potentiometer. You can use any other micro processor for this purpose. Thank you for watching!
@JuanSanchez-so9ut
@JuanSanchez-so9ut Год назад
@@gemsungelectronics460 sorry i meant if it was necessary a micro controller for it
@gemsungelectronics460
@gemsungelectronics460 Год назад
You can control the potentiometer manually without a microprocessor. Even a dip switch can be used!! But I prefer using microcontroller, since it can simplify controlling the potentiometer. Sorry if this is not the answer for your question. Please feel free to ask if you have any other question. Thanks.
@greglast8016
@greglast8016 4 месяца назад
like the data, hate the robot voice
@gemsungelectronics460
@gemsungelectronics460 4 месяца назад
Sorry for the disappointment. Thank you for watching!!
@WildVlogger
@WildVlogger 2 года назад
Hello sir I need your help for interfacing x9c103s Please try to contact me 🙏 It is important project for my collage
@gemsungelectronics460
@gemsungelectronics460 2 года назад
Hello! Thank you for watching! Please leave a comment here to see what I can help you with!
@WildVlogger
@WildVlogger 2 года назад
@@gemsungelectronics460 can you send me the another code for X9C103S ic
@dse-66-sailbhandekar61
@dse-66-sailbhandekar61 2 года назад
@@gemsungelectronics460 can i will use here arduino mega 2560
@dse-66-sailbhandekar61
@dse-66-sailbhandekar61 2 года назад
@@gemsungelectronics460 #include const int CS = 10; char ch = 1; int RawVoltage = 0; float Voltage = 0; void setup() { pinMode (CS, OUTPUT); Serial.begin(9600); digitalWrite(CS,HIGH); SPI.begin(); // initialize SPI } void loop(){ if(Serial.available()>0) { char ch = Serial.read(); if (ch=='1') for(ch = 0; ch < 255; ch++); { delay(100); RawVoltage = analogRead(ch); Voltage = (RawVoltage * 5.0 )/ 1024.0; Serial.print("Level = " ); Serial.print(ch); Serial.print("\t Voltage = "); Serial.println(Voltage,3); } } else if (ch=='0') for(ch = 255; ch > 0; ch--); { RawVoltage = analogRead(ch); Voltage = (RawVoltage * 5.0 )/ 1024.0; Serial.print("Level = " ); Serial.print(ch); Serial.print("\t Voltage = "); Serial.println(Voltage,3); } { digitalWrite(CS,LOW); // select the chip SPI.transfer(B00010001); // command byte SPI.transfer(ch); // data byte digitalWrite(CS,HIGH); // de-select the chip { int main () { Serial.print(); return 0; } } } please find the error
@gemsungelectronics460
@gemsungelectronics460 2 года назад
Hello! Yes, you can use atmega2560 to interface with x9c103s. All you need is several GPIOs. Thank you for watching!!
Далее
С Анджилишей на тусе💃
00:15
Просмотров 167 тыс.
MCP42100 Digital Potentiometer with Arduino
12:01
Просмотров 24 тыс.
Цифровой потенциометр X9C103S
5:36
The Demo of PWM Dimming LED Drivers
4:12
Просмотров 12 тыс.
Digital Potentiometer Control Basics - X9C103
10:08
Просмотров 53 тыс.
How-to: Accurate Voltage Measurements with Arduino
12:15
Собери ПК и Получи 10,000₽
1:00
Просмотров 1,6 млн