Тёмный

Digital Potentiometer Control 

0033mer
Подписаться 33 тыс.
Просмотров 56 тыс.
50% 1

This video will show how to control a Digital Potentiometer using a microcontroller. This technique can be used to build a digital volume control, opamp gain adjust, voltage regulator control, comparator threshold setting or any application where a variable resistance is controlled by a microcontroller.

Наука

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

 

26 дек 2016

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 92   
@urgirlcassie23
@urgirlcassie23 5 лет назад
OMG, thank you. This is just the sort of thing I was looking for. I've been planning a project that is using an RC controller to control an arduino that pulses a power transistor at high frequencies, but my understanding is that an arduino's PWM can't handle higher than 65 khz without issues. I could obviously just use a 555 timer or other IC & some pots to get the low duty cycle 1-4 Mhz I need - but I can't use a traditional knob turning pot, since it has to be RC. A digital pot is going to make it so much easier to figure out this design; I didn't know there was such a component.
@LaminarSound
@LaminarSound Год назад
Im an electrician and musician as well. I never knew this was how this stuff was done. Ive recently gotten very interested in analog synthesizers and it has boggled my mind how we can store and recall settings of analog potentiometers and this video has answered my main question. Pretty incredible. Thanks much.
@0033mer
@0033mer Год назад
Thanks for the visit! Here are some other videos that might interest you: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-aHRnAT7PgGY.html ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-MPhZMkZ1KjQ.html ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-u2EHDyrV_F0.html
@jivanescalante-garcia8841
@jivanescalante-garcia8841 7 лет назад
thanks for this great tutorial
@mahlonkarpaiya252
@mahlonkarpaiya252 2 года назад
thank you . well explained. Good class,teacher.
@billybob884
@billybob884 3 года назад
very helpful explanation, thank you!
@0033mer
@0033mer 3 года назад
Glad it was helpful!
@moonan858
@moonan858 Год назад
thank you for solving my question!
@0033mer
@0033mer Год назад
Happy to help!
@hamid.s.zolfagari
@hamid.s.zolfagari 6 лет назад
Thanks you so much . useful
@pick-pock
@pick-pock 4 года назад
Thank you!
@0033mer
@0033mer 4 года назад
You're welcome!
@francisvachon2051
@francisvachon2051 2 года назад
Really like your video and would like to do similar setup except I would like the digital pot to be control by a temperature sensor so that the temperature remain constant. I am using TEC cooling pad to cool a Diode laser and by varying the DC power (12v or less) it lower the cooling capability. So when cutting with the laser on high power I need more cooling then when I am engraving and also depending on how deep I am engraving the temperature will change.
@dgb5820
@dgb5820 4 года назад
Wow great video
@paulmanhart4481
@paulmanhart4481 Год назад
Great video. I actually understood much of it. It seems that the number of resistors determines your resolution? I want to hook up a digital pot to my SCR controlled variable speed drive for my 130 vdc 4.25 hp treadmill motor. But I have no idea how to do this. I followed your video, but have trouble implementing it to my application. I like your keypad control. That’s cool. Can you help me figure out what I need and how to hook it up? I need 140k Ohms max. I’m currently breaking that down into a 117k and a 25k pot wired in series for course and fine rpm adjustment. Thanks, Paul
@arrshithrg5359
@arrshithrg5359 7 лет назад
you got a new subscribe also
@SmalltimR
@SmalltimR 7 лет назад
Great tutorial - I'm looking forward to using these with Arduino. Anyone know how many watts can the X9C103P can handle on the pot side? Also, does anyone know how to use a digipot in high wattage applications?
@0033mer
@0033mer 7 лет назад
Digipots are designed for small signal control applications not high wattage circuits. Check the data sheet for the wiper current spec ( IW ). It will vary with the pot resistance. ( A few mA ) You could buffer the output with a power op amp or emitter follower transistor/mosfet. I have used digipots in place of the control resistor in a LM317 voltage regulator circuit. www.onsemi.com/pub_link/Collateral/AND8414-D.PDF
@t1d100
@t1d100 2 года назад
Thanks!
@0033mer
@0033mer 2 года назад
Welcome!
@vardfriki7274
@vardfriki7274 3 года назад
Thanks heaps!
@0033mer
@0033mer 3 года назад
You're welcome.
@Enigma758
@Enigma758 4 года назад
These seem to only handle a few ma of current so I don't see them as a direct replacement for standard pots like the one shown at the beginning of the video.
@0033mer
@0033mer 4 года назад
Yes .. as per data sheet specs the wiper can only handle a few mA. The digi-pot can only be used for small signal control but acts like a standard pot which people are familiar with so I used it for comparison. To control larger loads check out this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-7sMU7vzpo3Y.html
@lew9068
@lew9068 4 месяца назад
Very informative video. Please may I ask whether there is any cause for potential delay when using one of the chips X9C103P?Does the initial voltage on a digital or manual potentiometer make a difference? Very curious.
@0033mer
@0033mer 4 месяца назад
The digital pot wiper will move as fast as you clock it. The maximum voltage you can apply to the digital pot is 5 volts. There are other ones that can handle higher voltages. Greater than the supply voltage. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-aHRnAT7PgGY.html
@Sandreble
@Sandreble 7 лет назад
great video... did you use any library in this example ?
@0033mer
@0033mer 7 лет назад
I do not use the Arduino IDE but program in Forth which is close to assembler.
@MagivaIT
@MagivaIT 5 лет назад
silly question but why do you use Forth, is that just a comfy thing from previous experiences ?
@mahlonkarpaiya252
@mahlonkarpaiya252 2 года назад
Id like to do this with audio. Arduinos make a;lot of noise. can i power the chip from something eles ?
@wires4auto
@wires4auto 6 лет назад
Great video, what applications would you use this in? I have a few buttons on my car steering wheel that all link to a data wire and use resistance to ground to to control stuff. I am planning on using something like this to "ping" commands onto the data wire
@0033mer
@0033mer 6 лет назад
You can use it anywhere a mechanical pot is used but watch the max current allowed specification.
@acqurius-gx8lr
@acqurius-gx8lr 5 лет назад
how to adjust digital pot to a predefined resistance.is there any calculate that can be used in program to adjust the resistance to a define value
@0033mer
@0033mer 5 лет назад
The X9C103 contains 99 resistors with 100 wiper taps. Starting from the bottom ( 0 ohms ) each pulse on pin 1 will add 100 ohms of resistance. By counting the number of pulses you can adjust the pot to the desired resistance.
@mmbrazil
@mmbrazil 6 лет назад
Hi, your video was just what I was looking for. I am trying to do a digital AC controller. My AC box uses 3 10k potenciometer like you show in the begining of your video, to controll it. My question is what digital potentiometer do you suggest I use to controll the AC motors.
@0033mer
@0033mer 6 лет назад
Check the data sheets of vendors that make digital potentiometers and note the maximum voltage and current spec of the resistor string and wiper. Ensure that your circuit is within these specs.
@dwalden74
@dwalden74 5 лет назад
Can you provide the code you used for this?
@LalanKumar-fz3oo
@LalanKumar-fz3oo 4 года назад
can i code the arduino to get a specifir resistance using key pad ??? like getting 2k ohms directly , just by pressing ' 2 ' in the keypad ???
@0033mer
@0033mer 4 года назад
The X9C103 contains 99 resistors with 100 wiper taps. Starting from the bottom ( 0 ohms ) each pulse on pin 1 will add 100 ohms of resistance. By counting the number of pulses you can adjust the pot to the desired resistance. Pressing 2 on a keypad would pulse pin1 20 times resulting in 2k ohms.
@Milan22229
@Milan22229 5 лет назад
Do you know if there are any with more then 500kOhm and 2W. Because i have a mechanical one and cant find a digital one to replace it
@0033mer
@0033mer 5 лет назад
Digi-pots are for small signal applications. To control heavier loads you need to buffer the Digi-pot output. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-7sMU7vzpo3Y.html
@freetubemovies.644
@freetubemovies.644 5 лет назад
Hello , I really liked your video sir ! 💜💜 Sir , actually I need your help ! sir , I am working on a project where I have to use a suitable potentiometer that can oppose 2 Amperes of D.C current !!! I have 6 A of D.C current and I want to use 4 A of D.C current by stopping 2 Amperes using a potentiometer or anyhow possible ! 6-2 = 4 ( 4 Amperes I want to achieve). Can you please tell me which potentiometer should I use or how can I do that anyway ?
@0033mer
@0033mer 5 лет назад
Controlling high current to a load a PWM circuit using a MOSFET would be a better route to go. Check out this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-mjIubJeTRyY.html
@steffan9415
@steffan9415 5 лет назад
Can I use this to an AC dimmer?
@borismemedov
@borismemedov 4 года назад
Nope
@arrshithrg5359
@arrshithrg5359 7 лет назад
like for this video
@Thisishousemusic
@Thisishousemusic 5 лет назад
I'm looking for a way to digitally control volume, would this be a solution? Im not sure how the resistor will change the input signal to the amplifier.
@0033mer
@0033mer 5 лет назад
Yes, this can be used as a volume control. The input signal to the amplifier will range from 0 to full signal level just like a mechanical pot.
@Thisishousemusic
@Thisishousemusic 5 лет назад
Thanks for your reply. My plan is to have two input signals (L/R) and split it up to 6 output signals (L/R x 3). Then I want digitally control the 6 outputs, with 6 digital pots. Do you think that would be a problem when i split the two inputs into 6 outputs?
@0033mer
@0033mer 5 лет назад
That can be done. Buffer all your outputs from the source signal. electronicsarea.com/1-input-4-outputs-stereo-audio-splitter/
@Thisishousemusic
@Thisishousemusic 5 лет назад
Thanks, that could be a solution! I only have a +36 VDC supply through. I'm not an electronic expert :)
@X_is_learning
@X_is_learning 4 года назад
Thank you so much.
@0033mer
@0033mer 4 года назад
You're welcome!
@johnmalcolm4822
@johnmalcolm4822 3 года назад
If you already know what a manual potentiometer is, skip the first 3 minutes.
@arrshithrg5359
@arrshithrg5359 7 лет назад
what signal u were giveing at ra , rb of digipot . Sine wave ??
@0033mer
@0033mer 7 лет назад
It was a square wave oscillator but a sine wave would also work.
@arrshithrg5359
@arrshithrg5359 7 лет назад
will sine wave swinging from +ve voltage to -ve work ??(not from 0 to some +ve voltage )
@0033mer
@0033mer 7 лет назад
Yes .. the chip can handle +/- 5 volt signals with respect to ground.
@arrshithrg5359
@arrshithrg5359 7 лет назад
ok i just wanted to use it as a digital signal attenuator to reduce the voltage of a sine wave signal using voltage divider method . but what about noise , will there be any addition of noise ??
@0033mer
@0033mer 7 лет назад
The results will be the same as a regular mechanical pot.
@acqurius-gx8lr
@acqurius-gx8lr 5 лет назад
thanks for reply.i checked the link you forwarded.i want to know that at which terminal you are inputting square wave signal to digital potentiometer and also ground pin of digital potentiometer. may be I am wrong but as far as I understand it's input can be either of RH or RL pin of digital potentiometer.is I right? and wiper pin is connected to operational amplifier.plz correct me.i tried it with Arduino but not getting useful result.I am using headphone speaker of 8 ohm. can you forward your email id so that I can share my schematic with you.once again thanks for replying.
@0033mer
@0033mer 5 лет назад
Audio is applied to pot across RH and RL. Input signal is connected to RH and RL is connected to ground. Output audio is taken from wiper (pin5) and ground just like a mechanical pot. Normal op amps can not drive an 8 ohm speaker. I used the LM386 as my amplifier. Check out this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-zMmaFV_JRAw.html
@acqurius-gx8lr
@acqurius-gx8lr 5 лет назад
thanks for replying
@ctbully
@ctbully 6 лет назад
Circuit Diagrams would be nice :-)
@0033mer
@0033mer 6 лет назад
Circuit diagrams at 3:27
@ctbully
@ctbully 6 лет назад
Thanx
@theplaidgamer1653
@theplaidgamer1653 Год назад
How do i make it save the current value automatically?
@0033mer
@0033mer Год назад
If the INC pin is held HIGH while the CS pin goes HIGH the wiper position will be saved. A digital pot controlled by I2C bus has a save mode that can be configured during programming. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-aHRnAT7PgGY.html
@theplaidgamer1653
@theplaidgamer1653 Год назад
@@0033mer this seems a bit confusing. What I am trying to do is create a volume controller with two push buttons. One to go up and the other to go down. And it should save the value once I stop pressing either of the buttons.
@0033mer
@0033mer Год назад
INC will move the wiper up or down with push-buttons and stay. If not check the data sheet and your circuit. Make sure your push-buttons are de-bounced. The last post was referring to saving the wiper value on power down.
@theplaidgamer1653
@theplaidgamer1653 Год назад
@@0033mer i think I found an alternative chip online. The DS1809-010+. It has an auto save feature that saves the current resistor value in its eeprom when it detects the Vcc shutting off. Then reads it on start up. And it only requires 2 pushbuttons for up and down so I won't need to use a microcontroller.
@rhlgm
@rhlgm 7 лет назад
code for arduino?
@0033mer
@0033mer 7 лет назад
I do not use the Arduino IDE but program in Forth which is close to Assembler. If there is enough interest I will post some tutorials.
@acqurius-gx8lr
@acqurius-gx8lr 5 лет назад
you have not shown speaker in schematic.
@0033mer
@0033mer 5 лет назад
Check out this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-zMmaFV_JRAw.html
@saadhassan192
@saadhassan192 6 лет назад
Code ?
@0033mer
@0033mer 6 лет назад
The program was written in Forth. I do not use the Arduino IDE. : SET.LEVEL INIT INIT.X9C103 BEGIN Key dup 56 = \ STEP up IF STEP.UP THEN dup 50 = \ STEP down IF STEP.DOWN THEN dup 57 = \ JUMP up IF JUMP.UP THEN dup 51 = \ JUMP down IF JUMP.DOWN THEN dup 55 = \ Home IF WIPER.TOP THEN dup 49 = \ End IF WIPER.BOTTOM THEN 27 = \ ESC UNTIL PIN8 HIGH 10 MS PIN10 HIGH PIN13 LOW ;
@atphack
@atphack 5 лет назад
A rhéostat and a potentiomètre is not the same thing
@0033mer
@0033mer 5 лет назад
A potentiometer wired as a two terminal device (wiper to outer terminal) is a rheostat as shown at 1:47. en.wikipedia.org/wiki/Potentiometer
@tomer353
@tomer353 5 лет назад
Plzzzz can you send the code ???
@0033mer
@0033mer 5 лет назад
My code in written in Forth but if you check the comments there is Arduino code available on Github : PULSE.INC Pin8 LOW \ Step wiper Pin8 HIGH ; : WIPER.UP Pin9 HIGH ; \ Set wiper direction UP : WIPER.DOWN Pin9 LOW ; \ Set wiper direction DOWN : STEP.UP WIPER.UP PULSE.INC ; \ Move wiper one step UP : STEP.DOWN WIPER.DOWN PULSE.INC ; \ Move wiper one step DOWN : JUMP.UP WIPER.UP 9 FOR PULSE.INC NEXT ; \ Jmp UP 10 steps : JUMP.DOWN WIPER.DOWN 9 FOR PULSE.INC NEXT ; \ Jmp DOWN 10 steps : WIPER.TOP WIPER.UP 99 FOR PULSE.INC NEXT ; \ Wiper --> TOP : WIPER.BOTTOM WIPER.DOWN 99 FOR PULSE.INC NEXT ; \ Wiper --> BOTTOM
@louisferreira1012
@louisferreira1012 5 лет назад
@@0033mer I'm sorry to ask such a stupid question but where on github can i find this? I've just looked. I am new, just been trying to play with arduino and digipot MCP41010 for 2days now and cant seem to understand how to adapt a program to take button inputs to change resistance rather than just cycle through the ladder. thanks
@0033mer
@0033mer 5 лет назад
Check out these sites: github.com/sleemanj/MCP41_Simple henrysbench.capnfatz.com/henrys-bench/arduino-output-devices/mcp41010-digital-potentiometer-arduino-user-manual/
@uksuperrascal
@uksuperrascal 3 года назад
Whats the point in making half a video - What you done with the Code ?
@0033mer
@0033mer 3 года назад
Code is simply setting a GPIO pin high then low which a beginner to coding would know how to do. Samples of doing this is repeated many times in other videos.
@uksuperrascal
@uksuperrascal 3 года назад
@@0033mer You have taken it for granted that everyone Knows what a GPIO pin is - As I said Half a video. P.S Thank you for the reply.
@testerrtestowwyyy3941
@testerrtestowwyyy3941 5 лет назад
trim fingernails - OMG! / rest its OK!
@SameAsAnyOtherStranger
@SameAsAnyOtherStranger Год назад
Here to enlighten myself about digital potentiometers. Like almost anyone doing the same, I already know what a potentiometer is. If they don't, they should be directed elsewhere. AND 𝗲𝘃𝗲𝗿𝘆𝗼𝗻𝗲 calls it a potentiometer. It's called a rheostat when only one side and the wiper are used making it a variable resistor. It's a matter of how it's used, not what "some might call it."
Далее
How a DigiPot or Digital Potentiometer works Tutorial
21:34
Самоприкорм с сестрой 😂
00:19
Просмотров 107 тыс.
How to Make a Shunt Current Sense Resistor
11:17
Просмотров 2,3 млн
MCP42100 Digital Potentiometer with Arduino
12:01
Просмотров 24 тыс.
Pimp My Potentiometer!
15:05
Просмотров 204 тыс.
Homemade Digital Electronic Load | Multiple Modes
18:02
Digital Potentiometer Control Using Arduino - X9C103
16:17