This component can control tons of circuits! Digital Potentiometer Guide! EB#51

Sdílet
Vložit
  • čas přidán 23. 07. 2024
  • Altium Designer: altium.com/yt/greatscott!
    Previous video: • Are AA NiMH Batteries ...
    Facebook: / greatscottlab
    Twitter: / greatscottlab
    Support me for more videos: www.patreon.com/GreatScott?ty=h
    You can get the shown Digital Potentiometers here (affiliate links):
    Amazon.com:
    amzn.to/3CexuRe
    amzn.to/3wIa9qd
    Aliexpress:
    s.click.aliexpress.com/e/_AA6Giq
    s.click.aliexpress.com/e/_A1wEx0
    s.click.aliexpress.com/e/_A0QwT0
    Websites which were shown in the video:
    www.instructables.com/MCP41HV...
    www.renesas.com/us/en/documen...
    datasheet.lcsc.com/lcsc/18061...
    datasheet.lcsc.com/lcsc/20043...
    www.ti.com/lit/ds/symlink/ucc...
    cdn-reichelt.de/documents/dat...
    In this episode of electronics basics we will be having a look at digital potentiometers. You can use them to control any circuit digitally by replacing their mechanical potentiometers with them. But there can be pitfalls when trying to simply replacing the potentiometer. That is why I will tell you all about digital potentiometers which includes how to control them, what kind of current and voltage they can handle and how to properly use them. Let's get started!
    Thanks to Altium for sponsoring this video.
    Music:
    2011 Lookalike by Bartlebeats
    0:00 Where Digital Potentiometers can be used!
    1:39 Intro
    2:14 X9C103 Overview
    4:22 Digital Potentiometer Functional Principle
    5:43 X9C103 Practical Test
    6:42 Voltage Converter Digital Pot Problem
    8:39 High Voltage Digital Pot solves the problem
    9:49 Final Test & Verdict
  • Věda a technologie

Komentáře • 504

  • @DandelionCollab
    @DandelionCollab Před 2 lety +92

    "Destroyed itself" makes it sound like the chip was turning up its own voltage. :-)
    Great(Scott!) coverage of the topic.

    • @greatscottlab
      @greatscottlab  Před 2 lety +26

      They do this around me ;-)

    • @wguid
      @wguid Před 2 lety +9

      GreatScott to the pot: Stop hitting yourself, why are you hitting yourself

    • @Kalvinjj
      @Kalvinjj Před 2 lety +2

      @@MetalheadAndNerd CZcams only allows it's own links usually...
      That being said I remember searching some motors on Aliexpress and finding one with I think 100W of "VIOLENCE!"

    • @Kalvinjj
      @Kalvinjj Před 2 lety +2

      @@MetalheadAndNerd Found them, damn I've seen those tiny "beasts" in PS1 counterfeit controller vibration but to think they would have self destruction and even household blender capabilities is impressive!
      I don't know if even more crazy stuff popped out when translating to Portuguese, but it's really funny to search for suction cups in BR-Aliexpress, they get translated from "sucker" to the cuss word meaning, a moron, instead of a suction cup.
      Also crimping dies that it understands as death

  • @CuriousScientist
    @CuriousScientist Před 2 lety +253

    You don't have to remove the original potentiometer of these buck converters. You just need to "inject" some extra voltage to the shorted pins (pin 2 and 3) of the onboard potentiometer through a resistor and by this you can trick the buck controller chip and control it perfectly. I did this already quite some time ago using a MCP4725 12-bit DAC and an SZBK07 buck converter. This DAC has higher resolution than those digital potmeters, so you can control the voltage on a really fine scale.

    • @DavidMishchenko
      @DavidMishchenko Před 2 lety +17

      Yeah, just check the voltage range on each potentiometer pin, set potentiometer to highest resistance and solder onto the appropriate pin without removing the potentiometer.

    • @CuriousScientist
      @CuriousScientist Před 2 lety +7

      @@DavidMishchenko Yes, that is what I did. I knew the maximum voltage because of the maximum output voltage of the SZBK07 buck converter. Then I also knew my maximum controlling voltage and based on this I picked a resistor which through I fed the potentiometer.

    • @Fleurlean4
      @Fleurlean4 Před 2 lety +4

      Do you guys have links to resources for this

    • @CuriousScientist
      @CuriousScientist Před 2 lety +2

      @@Fleurlean4 Yeah, visit my channel and website.

    • @CuriousScientist
      @CuriousScientist Před 2 lety +2

      @@Rothammel1 I am happy to help!

  • @AnubhabKundu
    @AnubhabKundu Před 2 lety +22

    Your introduction to the IC chips are getting better day by day. I really loved this introduction!

    • @greatscottlab
      @greatscottlab  Před 2 lety +6

      Glad to hear it!

    • @AnubhabKundu
      @AnubhabKundu Před 2 lety +2

      @@greatscottlab also i learnt Li ion pack making from you so thanks a lot from India!
      How about shooting a vlog inside a lithium ion cell factory!

  • @lennard7123
    @lennard7123 Před 2 lety +4

    This was the video I was looking for! Thanks for doing all the research. I always wanted to control the brightness of a led with an arduino but never was able to, because I didn't knew how to use a digital potentiometer. Now I can finish my project🎉

  • @jamess1787
    @jamess1787 Před 2 lety +1

    Another perfectly timed video. Been working on driving a panel using ESP, but I couldn't find a good digipot that wouldn't go open-circuit between switching resistances! I blew up a boost board already by using a potentiometer that had a gap or internal problem!
    Thanks great Scott!

  • @geniusaur
    @geniusaur Před 2 lety +12

    I have been thinking about doing this with a boost converter for a while, thanks for doing all the research for me!

  • @scottwilliams895
    @scottwilliams895 Před 2 lety +2

    One great thing about (re)watching older videos... hearing the classic theme music!!

  • @harshitrawat9494
    @harshitrawat9494 Před 2 lety

    Please never stop making your videos. They are the best.

  • @RMquickbit
    @RMquickbit Před 2 lety +29

    This is excellent man! Definitely an awesome ic to consider using 👊🏻

  • @jdsan6009
    @jdsan6009 Před 2 lety +2

    Nice video, as always. One interesting application I used a digital pot for was to control an analog filter before an ADC. In this way it is possible to change the low pass frequency depending on the sampling rate.

  • @Petch85
    @Petch85 Před 2 lety

    I could really have used this video 3-4 years ago for a project. I will keep it in mind for the next project, thanks.

  • @AFelectronics
    @AFelectronics Před 2 lety +1

    It's such a great way to control the led driver, especially if you want to directly control it using a controller or wirelessly

  • @PriyankBolia
    @PriyankBolia Před 2 lety

    Yours channel is very informative, always learn something new. The best thing is, its not overly complicated, any useful topics only, and not too much kidy like simple arduino code to control PWM, it goes down to the basic electronics concepts, without focusing too much on online code.

  • @szabikka100
    @szabikka100 Před 2 lety +6

    Scott mentions in the video that these digital potentiometers can be used to control the volume of audio circuits. However, it is not really recommended to use an ordinary digital pot for such a task, as these usually make a "zipper like" sound with audio signals when you move the wiper up or down. For this kind of application you should use a specialised audio digital potentiometer with built-in zero crossing detection, like Dallas Semiconductor's DS1801 or DS1802. With these you can save some headache for yourself.

    • @NiHaoMike64
      @NiHaoMike64 Před 2 lety +1

      There's programmable gain amplifiers like the PGA4311 specifically made for that task. Also, some DACs and amplifiers have volume adjustment built in.

  • @prte100
    @prte100 Před 2 lety

    I needed this video 6 years ago^^

  • @brucewilliams6292
    @brucewilliams6292 Před 2 lety

    Very handy device! Thank you for bringing us such cool devices.

  • @kurtiunlisted8589
    @kurtiunlisted8589 Před 2 lety +19

    Just a circuit idea I had recently: I think its possible to do the same thing (µC Control of such a DC/DC convertors output voltage) without the "exotic" part just by altering the feedback path a bit.
    Use a simple DAC (PWM pin is fine), Filter & Buffer that voltage using an opamp (a "rail-to-rail" one might be necessary), select the components around the opamp such that the resulting µC controllable voltage ranges from 0V up to the regulation point voltage specific to the DC/DC converter (= the voltage at the wiper of the DC adjustment pot which is kept constant by the DC/DC's own control IC) to get the maximum resolution in the end.
    Now adjust the voltage pot of the unmodified DC/DC to the maximum output voltage you want to be able to get out of the system. Then just keep this voltage pot in the circuit - but replace the "GND" point of the feedback circuit's resistive divider with the µC controlled DAC Voltage described above. Now you should have linear (!) control of the DC/DC's output voltage by setting the DAC - note however that the control will be reversed, a high DAC voltage results in a low DC/DC output and vice versa.
    Disclaimer: I have not tried this yet, but I think this should work and if so it's quite an elegant hack I think.

    • @paulmanhart4481
      @paulmanhart4481 Před rokem

      Ok. Nice video. But I didn’t understand it.
      I’m building a variable speed controller for a 4.25 hp, 130 VDC treadmill motor. I’m using a SCR, bridge rectifier, DC choke to drive the motor.
      I have a potentiometer on my SCR. I turned it slowly until the motor started turning. Then I measured the resistance (301 k). So I broke that down by using a 275k and 30k pots. One for rough rpm adjustment and one for fine.
      Would it be better to use a digital pot on this? If so, what kind do I get and how to hook it up.
      Your help is appreciated.
      Thanks,
      Paul

  • @Delali
    @Delali Před 2 lety

    This is soo cool. I'm definitely trying this.
    Since the first time i learned about digital potentiometers i haven't given much thought to it till now. Cool video ideas loading.

  • @Wynkov
    @Wynkov Před 2 lety

    I was just looking for this for some of my projects a few days ago, thanks!

  • @DanielsGameVault
    @DanielsGameVault Před 2 lety +11

    I remember reading it's not that easy to use a digital pot for audio applications, at least not as a direct replacement for a mechanical pot. The reason is you get pops on the audio every time you adjust it up/down and it requires some complications to the circuit so it only adjusts at zero-crossing....would be great to see a project like this though :)

  • @ZeroMass
    @ZeroMass Před 2 lety +3

    "let's get started" has been ripped off by many other diy channels on yt... You're still the original 🍻

  • @priyabratasadhukhan6435

    Perfect.. this is what I was looking for. I will use this digital potentiometer with regular buck converter boards to make my own low-cost Arduino-controlled smart MPPT solar charge controller. Thank you for the video.

  • @frost381
    @frost381 Před 2 lety

    Love your videos! Keep em coming!

  • @ranger175a2w
    @ranger175a2w Před 2 lety

    Thanks from Texas Scott.

  • @innomkr
    @innomkr Před 2 lety

    Thanks for the great video, Great Scott! I didn’t even know these things existed… I already came up with a few ideas!

  • @Sovvyy
    @Sovvyy Před 2 lety +3

    Great summary! In regards to code, I write a library with example for the i2c version (MCP45HVX1) a few years back, it should turn up (never thought it would be relvant...).

  • @MoisesCaster
    @MoisesCaster Před 2 lety

    Excellent video as always.

  • @sarathai2876
    @sarathai2876 Před 2 lety

    Love your videos Happy Thanksgiving

  • @samk2630
    @samk2630 Před 2 lety

    Good timing as I just bought a few to use in a project!

  • @AVNGwebdev
    @AVNGwebdev Před 2 lety

    Great video as always, thank you

  • @ezzeldin101
    @ezzeldin101 Před 2 lety +1

    Awesome video as always!!!

  • @musef7883
    @musef7883 Před 2 lety

    This was just what I was looking for. Thanks!

  • @21degrees
    @21degrees Před 2 lety

    Very Good & Relevant video that we can put to proper use. Thank you!

  • @Leroys_Stuff
    @Leroys_Stuff Před 2 lety

    Just what I needed thank you

  • @somedude2492
    @somedude2492 Před 2 lety +3

    A few years ago i took apart a radio that had an electronically controlled volume potentiometer (if i'm not mistaken, i think it was volume). This was a radio from the 90's. Their solution to this problem? The potentiometer had a dc motor stuck to its back, if the radio deemed the volume too low, it just turned its own knob with the motor to crank the volume. Beautifully simple and complex at the same time.

    • @dcurry7287
      @dcurry7287 Před 2 lety

      This control scheme is still in place for some audio products because digipots can have audible clicking as they internally switch between resistors if they're in the signal path.

  • @guidovlaere
    @guidovlaere Před 8 měsíci

    Thanks for this great tutorial! Very helpfull!

  • @alfblack2
    @alfblack2 Před 2 lety

    OMG. I didnt know digital potentiometer existed. That is awsome!

  • @melplishka5978
    @melplishka5978 Před 2 lety

    Great vid Scott. Ty.

  • @andymouse
    @andymouse Před 2 lety +1

    Coupled with the TTP223 touch control chip you have a very flash volume control indeed !.....cheers.

  • @Homemade103
    @Homemade103 Před 2 lety

    Really a good video that I have ever seen great Scott you are the best youtuber I ever I watch your video almost 3 year . Really you are a good engineer . And I always appreciate to make this type of videos projects and other thing as.
    And and this pwm digital are best for degitily controling features

  • @PhG1961
    @PhG1961 Před 2 lety

    Excellent work and a great project... (from Great Scott ! I know I mentioned that before, but I couldn't resist... ;-) )

  • @gamingwithtrolling8002
    @gamingwithtrolling8002 Před 2 lety +1

    i was looking for this thing only danke!

  • @MCsCreations
    @MCsCreations Před 2 lety +2

    Pretty impressive little IC, dude! 😃
    It can be useful in so many cases! Fantastic!
    Thanks for the video!!!
    Stay safe and creative there! 🖖😊

  • @magribi
    @magribi Před 2 lety +1

    woooow.amazing video and nice explanation

  • @ammoniahuffers
    @ammoniahuffers Před 2 lety

    Very nice video also GreatScott! I have to wake till this time (now it's 23h16m in my country) to just watch you!

  • @pauljackson2126
    @pauljackson2126 Před 2 lety +43

    Did he just prevent some university students from spending time building a custom microcontroller compatible buck-boost converter and showed a simple hack to convert any buck/boost converter that can be controlled by an Arduino?!?!
    YES, HE DID!!!
    Great video as always!!
    During your video of an Arduino based FM radio, you used one. But didn't understand how it actually works and I am ready to change my power supply on by Automatic Light System.

    • @CuriousScientist
      @CuriousScientist Před 2 lety +5

      I already did a much smarter control with a MCP4725 12-bit DAC a year ago... You don't even need to remove/replace the original potentiometer. I even built an automatic digital thermostat which can maintain a Peltier cooler's temperature within a really tight range.

    • @lennard7123
      @lennard7123 Před 2 lety +2

      @@CuriousScientist Sound very interesting! Could you share how you did it?

    • @CuriousScientist
      @CuriousScientist Před 2 lety +1

      @@lennard7123 Just check my channel and look for the SZBK07 playlist. I shared everything: wiring schematics, Arduino source code...etc.

    • @lennard7123
      @lennard7123 Před 2 lety +1

      @@CuriousScientist Thank you very much! I will definitely check it out :)

  • @TaniaKisha
    @TaniaKisha Před 2 lety

    Exactly this is what I made weeks ago :D
    It can be a pretty decent digitally adjustable portable power supply with current module for tiny projects.

  • @borisbahleda8564
    @borisbahleda8564 Před 2 lety +2

    I love your vids❤
    Very good content 👍

  • @williamkopanchuk
    @williamkopanchuk Před rokem

    Excellent video!

  • @suji730
    @suji730 Před 2 lety

    Your voice is crystal clear and beautiful ❤❤❤

  • @Homeuser3231
    @Homeuser3231 Před 2 lety

    I was looking for this for so long! I am planning to use this replace the knobs on my power supply since they seem to drift a lot.

  • @kylebrake1806
    @kylebrake1806 Před 2 lety

    I love your videos!

  • @bierhoch1011
    @bierhoch1011 Před 2 lety

    I waited a long time for this video :D

  • @mannyfreeze8821
    @mannyfreeze8821 Před 2 lety

    Amazing Video as Always! I will have to try them out!

  • @555circuitslab5
    @555circuitslab5 Před 2 lety +8

    The High Voltage version MCP41HV51 is available at different large electronics suppliers (i.e. Digikey, Farnell, Reichelt) for a much cheaper price.

  • @gunnaralv
    @gunnaralv Před 2 lety

    Big thumb up for you and your videos!!!

  • @carlos2004
    @carlos2004 Před 2 lety +1

    i love these things. i built a personal project that controls my minidsp and my speaker amp, as well as turns on my pc. the minidsp supports i2c control, buti decided to simply use a digital pot and use the arduino to control it. i was going to do the same for the amp, but unfortunately, the pot actually had audio channels going through it, so i ended up using a servo to physically control it with the arduino.
    so far, it has worked well and only once did it lock up, but a reset solved the problem

    • @noobulon4334
      @noobulon4334 Před 2 lety

      Motorized potentiometors are an elegant solution if you want to keep some of the properties of having a pot

  • @Gamezone-sd3er
    @Gamezone-sd3er Před 2 lety

    I was waiting for it 😁❤️

  • @shivavarunadicherla
    @shivavarunadicherla Před 2 lety

    I also saw some variations of potentiometers which are mechanical and also digital, the position of the contact is controlled by magnets, and are super simple to work with and don't have any resolution problem. But you have to change the contacts once in a year.

  • @jimviau327
    @jimviau327 Před 2 lety +5

    05:10 - Resolution could be increased by a factor of 100 by utilizing 3 potentiometers. The third would be connected between both wipers of P1 and P2. The total resolution could be calculated with a simple formula. Total Resolution = init.resolution power 2.

  • @JamesPotts
    @JamesPotts Před 2 lety

    I used a dual digital pot to replace the joystick input on a wheelchair controller. Was a great way to get a digital interface, while keeping the wheelchair's insanely good control systems.

  • @t1d100
    @t1d100 Před 2 lety

    Good information. Thank you!

  • @Basetonic
    @Basetonic Před 2 lety

    really nice topic! Thank you for that.

  • @Donder1337
    @Donder1337 Před 2 lety

    Dude! This helps me so much! I understand it much beter, cause of you! Thx alot :D

  • @Akuba
    @Akuba Před 2 lety

    Can you read my mind? I was looking for something like this not even two days ago. You really save me alot of trouble here :D

  • @BRUXXUS
    @BRUXXUS Před 2 lety

    Great video! I always wondered what use cases were meant for these.

  • @raxathor
    @raxathor Před 2 lety

    Haash after a long time found this interesting..🔥

  • @xpehkto
    @xpehkto Před 2 lety +11

    If somebody needs ever higher voltages, look up motor-driven potentiometers. They are also used in some audio equipment as a very fun way to control sound volume.

  • @sreejithsuresh357
    @sreejithsuresh357 Před 2 lety

    I like the fact it was so useful to know this information

  • @person880
    @person880 Před 2 lety

    I hadn't really thought about digital potentiometers, so this was a good topic for me!
    Now add a mechanical potentiometer to your microcontroller's ADC, then use that value to set the resistance value on the digital potentiometer, so you still have the feel of the rotary switch! 😛😛

  • @ANANTHASANKAR_UA
    @ANANTHASANKAR_UA Před 2 lety

    Great work!! It's very useful for making digital volume control & digital graphic equalizer 🎶🎚️🎚️🎚️

  • @Bhavesh_g20
    @Bhavesh_g20 Před 2 lety +1

    I was eagerly waiting for this
    Previous Sunday also I was waiting for notification
    But this sunday it has come
    Awesome video

  • @MrAbrandao
    @MrAbrandao Před 2 lety

    Using the voltage divider and mosfets can be a great solution for a 2 or 3 steps using discrete components.

  • @israelgiron9089
    @israelgiron9089 Před 2 lety

    Very useful thank you!

  • @benoitaudet157
    @benoitaudet157 Před 2 lety

    Very interesting video, thanks a lot !

  • @jacquesb5248
    @jacquesb5248 Před 2 lety

    very informative thanks man

  • @Drxxx
    @Drxxx Před 2 lety

    this is amazing!

  • @wojwoj06
    @wojwoj06 Před 2 lety

    Very cool! This immediately brings to mind a scene from Star Trek - "...computer decrease illumination by 50%"

  • @fixnreview
    @fixnreview Před 2 lety

    Great project

  • @Bianchi77
    @Bianchi77 Před 2 lety

    Nice video, keep it up, thank you :)

  • @pavan13
    @pavan13 Před 2 lety +1

    Amazing Video

  • @DanielRisacher
    @DanielRisacher Před rokem

    I did not know about the HV variants of the MCP41xx chips, which is precisely what I need. Thanks.

  • @zahanjavaid
    @zahanjavaid Před 2 lety +1

    This man is just awesome

  • @castlecodersltd
    @castlecodersltd Před 2 lety

    Very good, thanks

  • @rashidak7821
    @rashidak7821 Před 2 lety +1

    Good video bro ❤️👍 I am from Kerala India 🇮🇳

  • @electronic7979
    @electronic7979 Před 2 lety +1

    Nice video

  • @adancalderon8915
    @adancalderon8915 Před 2 lety

    Great Video

  • @koushiks_energy
    @koushiks_energy Před 2 lety

    Nice video man 😌
    Even if comes late, it's worth the wait

  • @JawadAhmadsahibzada
    @JawadAhmadsahibzada Před 2 lety

    Great Great 👍👍👍 Scott !!! absolutely interesting video

  • @BloodBlight
    @BloodBlight Před 2 lety

    Dude, I spent like four MONTHS trying to find some way of doing this a while back.... And there is just a nice little IC... I mean, of COURSE there is... Sigh...
    Thank you!!!

  • @fryode
    @fryode Před 2 lety

    I knew I had to watch this the moment I saw a QSKJ boost converter board in the thumbnail. I adapted one to take the 18VDC nominal from my Ryobi battery packs and boost it to 20V to run my Thinkpad. Since I was able to order two for like a dollar more than one would have cost me, I have a spare and I've been thinking of all the different stuff I can do with it. Doing things digitally is a lot more interesting than analog, I have to admit.

  • @gakich.
    @gakich. Před 2 lety +1

    Sweet! Luckly i stayed up to 0:00a.m. just to watch your video~~~

  • @SahilKumar-ds7ev
    @SahilKumar-ds7ev Před 2 lety

    Hi bro you make awsome content

  • @jayduffy7615
    @jayduffy7615 Před 2 lety

    Thank you for all of your amazing videos! I always learn so much.
    I am trying to learn to build a circuit that puts out 750 mv-dc.
    Can you do a video explaining how I can achieve this? If not, can you at least point me in the direction of where I can learn how to do this? Thank you!

  • @gtxsatria2010
    @gtxsatria2010 Před rokem

    Nice scoot Salam from Indonesia

  • @keithking1985
    @keithking1985 Před 2 lety

    they were coll little IC's never heard of them them before either. (like the 1's in the video i watched before this one) cool video : )

  • @aliazadasl8129
    @aliazadasl8129 Před 2 lety

    Very good and informative as always
    I'd like a video about plasma flame

  • @alejandrotaudil3689
    @alejandrotaudil3689 Před 2 lety

    Thanks man!!!

  •  Před 2 lety

    This is very interesting, I was thinking recently about making a simple circuit to cross fade an estereo audio signal from one source to another with a pot to set the time it does the fade and 2 buttons that fire the change from one to the other, my first Idea was eletromechanical, using a potenciomenter connected to a gear reduction motor a couple of end of the line switches and a relay to invert directions, but now I wonder how I could achieve the same using this components.

  • @davides4138
    @davides4138 Před 2 lety

    Thanks for the great video, this was exactly what I was looking for. I still have some questions according the wiring, because my digital potentiometer started to burn, maybe the chip was badly soldered.
    Wiring would be:
    Pin 14: external Power Supply (20V) (GND to Arduino)
    Pin 13: connected to the place of the analog Potentiometer from Boost Converter 1st
    Pin 12: connected to the place of the analog Potentiometer from Boost Converter (wiper) 2nd
    Pin 11: connected to the place of the analog Potentiometer from Boost Converter 3rd
    Pin 10: connected to GND of the Arduino
    Pin 09: connected to GND of the Arduino
    Pin 08. connected to GND of the Arduino
    Thanks for your help!