MCP42100 Digital Potentiometer with Arduino

Sdílet
Vložit
  • čas přidán 26. 07. 2020
  • Here's a look at the MCP42100 digital potentiometer, how it works, and how to control it with an Arduino.
    There's a couple of practical tests including a DMM resistance measurement of the pot as Arduino changes the wiper position, and an op amp circuit where the digital pot is used to control both the gain and the reference voltage on the op amp. The oscilloscope shows the impact of the digital pot on the waveform.
    MCP42100 Datasheet:
    ww1.microchip.com/downloads/en...
    Sketch:
    github.com/GadgetReboot/MCP42...
    Patreon: / gadgetreboot
    #ElectronicsCreators
  • Věda a technologie

Komentáře • 25

  • @randalnichols7377
    @randalnichols7377 Před 3 lety +1

    You just saved me hours of figuring this out! Thank you so much!

  • @BusyElectrons
    @BusyElectrons Před 4 lety +1

    Excellent overview. Thank you for sharing this.

  • @scott482
    @scott482 Před 4 lety +1

    This is great! I do have an idea to use these as a digital audio board . Slide pots on an touch screen. Fully digital audio level mixer.

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

    Helpful video. I liked it

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

    Very Good information , useful to me

  • @macdaddyns
    @macdaddyns Před 4 lety +1

    Thanks for sharing

  • @nickkang711
    @nickkang711 Před 4 lety +1

    Thank you !!

  • @t1d100
    @t1d100 Před rokem

    Good information.

  • @pileofstuff
    @pileofstuff Před 4 lety +1

    Interesting.
    I've played with the X9Cxxx ones before, but I wasn't aware of these SPI ones.
    It's always handy to have multiple ways to get to eh same place.

    • @GadgetReboot
      @GadgetReboot  Před 4 lety

      I only learned about this family a couple of months ago. If anything, I am most impressed that they actually worked considering where they came from. My batch of X9C were the wrong resistance.

  • @borayurt66
    @borayurt66 Před 4 lety +1

    Great subject, and good timing on my part. I've been wanting to try these digital pots for some time now. The idea is to make some king of a graphical user interface for an audio application I am working on. I wonder how much (if any) digital noise will be mixed into the audio signal when a MCU and all those data lines constantly switching is included in an pure analog audio circuit...

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

      that’s where some trial and error may be needed, especially if it’s done on a breadboard and not a printed circuit board with a good layout, things like ferrite beads in series with the power rail to various chips might help filter noise, or even using an isolated power supply so noise can’t get in that way and using Opto isolators or digital isolators for the control of the pot so there’s absolutely no electrical connection.

  • @sametkarakoyunlu8835
    @sametkarakoyunlu8835 Před 3 lety +1

    Thank you.

  • @dwalden74
    @dwalden74 Před 4 lety

    Great video. How would I control a 0-10v circuit using a digital pot and arduino?

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

    Great video. How can I control the digital pot using a rotary encoder.

  • @TheEmbeddedHobbyist
    @TheEmbeddedHobbyist Před 4 lety

    It's potty time, look quite useful. If you used one to say set a bias setting, I'm not sure how the circuit would behave if they become active after the components around them. So on power up does the OpAmp output hit any power rails as the +Ve input might be low or floating until the pot has settled ?

    • @GadgetReboot
      @GadgetReboot  Před 4 lety

      yeah there’s definitely considerations with power on settling time, I wonder if it would work to have a couple of higher value fixed resistors as a divider to keep the bias near target and then when the digital pot kicks in it may not have a linear response but it may allow the tweaking in parallel with the fixed resistors

  • @machgt
    @machgt Před 3 lety

    I'm trying an AD8400 to replace the potentiometer in my trolling motor foot pedal. First step is to control it with an arduino... after that I'm integrating a GPS, compass, and encoder to do station keeping and automatic heading correction

  • @ShopperPlug
    @ShopperPlug Před 3 lety

    What is the max threshold of power rating on this MCP digital potentiometer, example it has 10K resistance but what wattage it can withstand?

  • @tojorandriamanarivo9014

    good video.plese can you help me to used MCP4162 ? i'm blocked on code arduino

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

    With the X9Cs you can wire the two inputs directly to a rotary encoder’s quadrature output and get a relatively cheap multiturn potentiometer, plus you could use the button on the encoder to change which digipot you’re controlling or do something else with the encoder.

    • @GadgetReboot
      @GadgetReboot  Před 4 lety +1

      this sounds familiar, I think I was playing around with that a couple of years ago... czcams.com/video/HJWMFebfPrI/video.html

    • @Scrogan
      @Scrogan Před 4 lety

      Gadget Reboot oh, you have too! I’ll need to have a closer look through your video backlog for more!

  • @eugy2008
    @eugy2008 Před 3 lety

    I take it this chip doesnt have a memory similar to X9C's?

    • @GadgetReboot
      @GadgetReboot  Před 3 lety +1

      No memory, the wiper goes to the middle upon reset/power up.