Digital Potentiometer Control

Поділитися
Вставка
  • Опубліковано 13 січ 2025

КОМЕНТАРІ • 92

  • @LaminarSound
    @LaminarSound Рік тому +1

    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:
      ua-cam.com/video/aHRnAT7PgGY/v-deo.html
      ua-cam.com/video/MPhZMkZ1KjQ/v-deo.html
      ua-cam.com/video/u2EHDyrV_F0/v-deo.html

  • @urgirlcassie23
    @urgirlcassie23 5 років тому +4

    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 3 роки тому +1

    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.

  • @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 10 місяців тому

    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  10 місяців тому +1

      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.
      ua-cam.com/video/aHRnAT7PgGY/v-deo.html

  • @SmalltimR
    @SmalltimR 8 років тому +4

    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  8 років тому +5

      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

  • @mahlonkarpaiya252
    @mahlonkarpaiya252 3 роки тому

    thank you . well explained. Good class,teacher.

  • @billybob884
    @billybob884 3 роки тому

    very helpful explanation, thank you!

    • @0033mer
      @0033mer  3 роки тому +1

      Glad it was helpful!

  • @moonan858
    @moonan858 2 роки тому

    thank you for solving my question!

    • @0033mer
      @0033mer  2 роки тому

      Happy to help!

  • @mahlonkarpaiya252
    @mahlonkarpaiya252 3 роки тому

    Id like to do this with audio. Arduinos make a;lot of noise. can i power the chip from something eles ?

  • @Enigma758
    @Enigma758 5 років тому

    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  5 років тому

      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: ua-cam.com/video/7sMU7vzpo3Y/v-deo.html

  • @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.

  • @dwalden74
    @dwalden74 5 років тому +1

    Can you provide the code you used for this?

  • @Sandreble
    @Sandreble 8 років тому

    great video... did you use any library in this example ?

    • @0033mer
      @0033mer  8 років тому +1

      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 ?

  • @dgb5820
    @dgb5820 4 роки тому +1

    Wow great video

  • @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.

  • @steffan9415
    @steffan9415 6 років тому +1

    Can I use this to an AC dimmer?

  • @jivanescalante-garcia8841
    @jivanescalante-garcia8841 7 років тому

    thanks for this great tutorial

  • @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 :)

  • @mmbrazil
    @mmbrazil 7 років тому

    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  7 років тому

      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.

  • @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. ua-cam.com/video/aHRnAT7PgGY/v-deo.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.

  • @arrshithrg5359
    @arrshithrg5359 8 років тому

    what signal u were giveing at ra , rb of digipot . Sine wave ??

    • @0033mer
      @0033mer  8 років тому

      It was a square wave oscillator but a sine wave would also work.

    • @arrshithrg5359
      @arrshithrg5359 8 років тому

      will sine wave swinging from +ve voltage to -ve work ??(not from 0 to some +ve voltage )

    • @0033mer
      @0033mer  8 років тому

      Yes .. the chip can handle +/- 5 volt signals with respect to ground.

    • @arrshithrg5359
      @arrshithrg5359 8 років тому

      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  8 років тому

      The results will be the same as a regular mechanical pot.

  • @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.
      ua-cam.com/video/7sMU7vzpo3Y/v-deo.html

  • @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.

  • @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 років тому +1

      Controlling high current to a load a PWM circuit using a MOSFET would be a better route to go. Check out this video: ua-cam.com/video/mjIubJeTRyY/v-deo.html

  • @arrshithrg5359
    @arrshithrg5359 8 років тому

    you got a new subscribe also

  • @pick-pock
    @pick-pock 5 років тому +1

    Thank you!

    • @0033mer
      @0033mer  5 років тому

      You're welcome!

  • @johnmalcolm4822
    @johnmalcolm4822 4 роки тому

    If you already know what a manual potentiometer is, skip the first 3 minutes.

  • @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: ua-cam.com/video/zMmaFV_JRAw/v-deo.html

    • @acqurius-gx8lr
      @acqurius-gx8lr 5 років тому

      thanks for replying

  • @hamid.s.zolfagari
    @hamid.s.zolfagari 7 років тому

    Thanks you so much . useful

  • @t1d100
    @t1d100 2 роки тому

    Thanks!

  • @vardfriki7274
    @vardfriki7274 3 роки тому

    Thanks heaps!

    • @0033mer
      @0033mer  3 роки тому

      You're welcome.

  • @ctbully
    @ctbully 6 років тому

    Circuit Diagrams would be nice :-)

    • @0033mer
      @0033mer  6 років тому +1

      Circuit diagrams at 3:27

    • @ctbully
      @ctbully 6 років тому

      Thanx

  • @acqurius-gx8lr
    @acqurius-gx8lr 5 років тому

    you have not shown speaker in schematic.

    • @0033mer
      @0033mer  5 років тому +1

      Check out this video: ua-cam.com/video/zMmaFV_JRAw/v-deo.html

  • @rhlgm
    @rhlgm 8 років тому

    code for arduino?

    • @0033mer
      @0033mer  8 років тому +3

      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.

  • @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/

  • @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

  • @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 8 років тому

    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.

  • @X_is_learning
    @X_is_learning 4 роки тому

    Thank you so much.

    • @0033mer
      @0033mer  4 роки тому

      You're welcome!

  • @testerrtestowwyyy3941
    @testerrtestowwyyy3941 6 років тому +3

    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."