Digital Potentiometer Control

  Рет қаралды 57,439

0033mer

0033mer

Күн бұрын

Пікірлер: 92
@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: kzbin.info/www/bejne/l3m1n3SKbLWafbs kzbin.info/www/bejne/g4HLi4Chj5Z-oLM kzbin.info/www/bejne/q2OoeXevp7uSfJI
@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.
@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.
@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
@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
@lew9068
@lew9068 8 ай бұрын
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 8 ай бұрын
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. kzbin.info/www/bejne/l3m1n3SKbLWafbs
@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: kzbin.info/www/bejne/baSwhmqsr9Wiabs
@mahlonkarpaiya252
@mahlonkarpaiya252 3 жыл бұрын
Id like to do this with audio. Arduinos make a;lot of noise. can i power the chip from something eles ?
@mahlonkarpaiya252
@mahlonkarpaiya252 3 жыл бұрын
thank you . well explained. Good class,teacher.
@moonan858
@moonan858 2 жыл бұрын
thank you for solving my question!
@0033mer
@0033mer 2 жыл бұрын
Happy to help!
@dwalden74
@dwalden74 5 жыл бұрын
Can you provide the code you used for this?
@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.
@billybob884
@billybob884 3 жыл бұрын
very helpful explanation, thank you!
@0033mer
@0033mer 3 жыл бұрын
Glad it was helpful!
@dgb5820
@dgb5820 4 жыл бұрын
Wow great video
@steffan9415
@steffan9415 6 жыл бұрын
Can I use this to an AC dimmer?
@borismemedov
@borismemedov 5 жыл бұрын
Nope
@LalanKumar-fz3oo
@LalanKumar-fz3oo 5 жыл бұрын
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 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. Pressing 2 on a keypad would pulse pin1 20 times resulting in 2k ohms.
@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.
@Milan22229
@Milan22229 6 жыл бұрын
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 6 жыл бұрын
Digi-pots are for small signal applications. To control heavier loads you need to buffer the Digi-pot output. kzbin.info/www/bejne/baSwhmqsr9Wiabs
@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 6 жыл бұрын
silly question but why do you use Forth, is that just a comfy thing from previous experiences ?
@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: kzbin.info/www/bejne/o5usppWAmrmFr7s
@Thisishousemusic
@Thisishousemusic 6 жыл бұрын
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 6 жыл бұрын
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 6 жыл бұрын
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 6 жыл бұрын
That can be done. Buffer all your outputs from the source signal. electronicsarea.com/1-input-4-outputs-stereo-audio-splitter/
@Thisishousemusic
@Thisishousemusic 6 жыл бұрын
Thanks, that could be a solution! I only have a +36 VDC supply through. I'm not an electronic expert :)
@jivanescalante-garcia8841
@jivanescalante-garcia8841 7 жыл бұрын
thanks for this great tutorial
@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. kzbin.info/www/bejne/l3m1n3SKbLWafbs
@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.
@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.
@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.
@johnmalcolm4822
@johnmalcolm4822 4 жыл бұрын
If you already know what a manual potentiometer is, skip the first 3 minutes.
@pick-pock
@pick-pock 4 жыл бұрын
Thank you!
@0033mer
@0033mer 4 жыл бұрын
You're welcome!
@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: kzbin.info/www/bejne/sH7QknmMlK-Fd9k
@acqurius-gx8lr
@acqurius-gx8lr 5 жыл бұрын
thanks for replying
@t1d100
@t1d100 2 жыл бұрын
Thanks!
@0033mer
@0033mer 2 жыл бұрын
Welcome!
@arrshithrg5359
@arrshithrg5359 7 жыл бұрын
you got a new subscribe also
@hamid.s.zolfagari
@hamid.s.zolfagari 7 жыл бұрын
Thanks you so much . useful
@vardfriki7274
@vardfriki7274 3 жыл бұрын
Thanks heaps!
@0033mer
@0033mer 3 жыл бұрын
You're welcome.
@ctbully
@ctbully 6 жыл бұрын
Circuit Diagrams would be nice :-)
@0033mer
@0033mer 6 жыл бұрын
Circuit diagrams at 3:27
@ctbully
@ctbully 6 жыл бұрын
Thanx
@acqurius-gx8lr
@acqurius-gx8lr 5 жыл бұрын
you have not shown speaker in schematic.
@0033mer
@0033mer 5 жыл бұрын
Check out this video: kzbin.info/www/bejne/sH7QknmMlK-Fd9k
@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.
@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
@X_is_learning
@X_is_learning 4 жыл бұрын
Thank you so much.
@0033mer
@0033mer 4 жыл бұрын
You're welcome!
@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/
@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 ;
@arrshithrg5359
@arrshithrg5359 7 жыл бұрын
like for this video
@uksuperrascal
@uksuperrascal 4 жыл бұрын
Whats the point in making half a video - What you done with the Code ?
@0033mer
@0033mer 4 жыл бұрын
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 4 жыл бұрын
@@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 6 жыл бұрын
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."
Homemade Digital Electronic Load | Multiple Modes
18:02
Electronoobs
Рет қаралды 91 М.
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 7 МЛН
Noodles Eating Challenge, So Magical! So Much Fun#Funnyfamily #Partygames #Funny
00:33
Pimp My Potentiometer!
15:05
upir
Рет қаралды 206 М.
How a DigiPot or Digital Potentiometer works Tutorial
21:34
eTech Tom
Рет қаралды 15 М.
Overengineered "potentiometer" using the AS5600 magnetic encoder
17:24
Curious Scientist
Рет қаралды 15 М.
#1669 MCP4131 Serial Interface Programmable Potentiometer
7:02
10 awesome application of capacitors in circuits
29:01
Electronic Wizard
Рет қаралды 413 М.
Digital Potentiometer Control Using Arduino - X9C103
16:17
Gadget Reboot
Рет қаралды 47 М.
Digital Potentiometer and Rotary Encoder Direct Control X9C103
14:05
6 Horribly Common PCB Design Mistakes
10:40
Predictable Designs
Рет қаралды 215 М.
A simple guide to electronic components.
38:06
bigclivedotcom
Рет қаралды 8 МЛН
PWM VS Potentiometer! When to use which technique?
4:56
GreatScott!
Рет қаралды 462 М.