element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Arduino NANO controlling two digital potentiometers independently
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 18 replies
  • Answers 11 answers
  • Subscribers 391 subscribers
  • Views 3029 views
  • Users 0 members are here
Related

Arduino NANO controlling two digital potentiometers independently

alanthom
alanthom over 6 years ago

Fellow colleagues

 

A buck/boost device comes with two 10 turn trim pots; 50k for voltage and 10k for current limiting.  Having to panel mount these I had to replace the trim pots with std linear single turn pots.

Yes, the my work around causes a less user friendly adjustment.

Solution - I would like to use a Arduino NANO to control two digital potentiometers.

Being a total beginner with Arduio....

1) can the NANO handle two dig pot adjustments independently?

2) must I use one NANO for each adjustment?

 

Your advice/guidance will be appreciated.

Apologies in advance if something has been posted/answered already............ just soooo much good info on the site.

 

Thx

 

AT

  • Sign in to reply
  • Cancel

Top Replies

  • Gough Lui
    Gough Lui over 6 years ago in reply to dougw +3 suggested
    Even with the same I2C address, throwing in an I2C expander/mux would allow them to be addressed independently. - Gough
  • michaelkellett
    michaelkellett over 6 years ago +2 suggested
    You need to post the schematic of the buck/boost circuit. Can't advise you without because it matters exactly how the pots are used. One Arduino can easily control two pot chips but only if certain conditions…
  • alanthom
    alanthom over 6 years ago in reply to michaelkellett +2 suggested
    Dear MK Thank you for taking the time to guide me. Unfortunately the buck/boost is a proprietary device - no cct is available. GREAT - confirming once micro controller can do the job. The buck/boost cct…
  • michaelkellett
    0 michaelkellett over 6 years ago in reply to alanthom

    That module looks sufficiently different to be uncertain of which regulator chip it uses and how the pots may be connected.

    You could try measuring the voltages at the ends of each pot (not the wiper) with respect to zero (gnd) over the range of operation.

     

    If within the range 0-5V - OK, if not then you just can't avoid some trickery and you will get on much better if you know a bit more about the circuit.

     

    I expect that you realise that this module (sub $5 ) will be pretty awful in terms of quality of parts - expect it to be disgustingly noisy (electrically).

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • alanthom
    0 alanthom over 6 years ago in reply to michaelkellett

    Hi Michael

     

    I'll measure the voltage across the pot end points and give feedback later.  Keep you posted.

    Yip, appreciate that $5 does not buy a Keithley.... image

    Reasonable start point for a hobbyist i think.

     

    Thx

     

    Alan

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • fmilburn
    0 fmilburn over 6 years ago in reply to alanthom

    I have used the MCP41010 and it is easy to use.  As Doug states above, you need only add a second pin on the microcontroller as Chip Select (CS) for a second pot since it is a SPI device.  Select and deselect by holding CS low to all devices and then high individually when selected.  There are also 2-channel devices like the MCP42010 that have 2 pots on one chip.  Googling the part number and Arduino will turn up additional information.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • fmilburn
    0 fmilburn over 6 years ago in reply to alanthom

    Remembered this Energia (fork of Arduino for TI MSP430) library I wrote some time back: https://github.com/fmilburn3/DigitalPot_MCP41010

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • fmilburn
    0 fmilburn over 6 years ago in reply to michaelkellett

    Michael,

     

    Datasheet states “Single supply operation (2.7V-5.5V)” and I have used it at 3.3 V but I readily defer to your knowledge if I missed something

     

    Disregard me.  You are referring to over voltage.

     

    Frank

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • michaelkellett
    0 michaelkellett over 6 years ago in reply to fmilburn

    Hello Frank,

     

    The Arduino can work the pot OK, but the pot might not work in the PSU circuit.

     

    The problems start when you use a 5V supply and connect one of the pot ends to a higher voltage (just like you normally would if connecting it to make an adjustable voltage feedback set up).

    Any of the pins more than 1V above the supply pin and expect the chip to fail. Any of the pins more than a small amount (perhaps 100mV) above the supply pin and the pot won't work properly.

     

    There are always work arounds but they get very tricky if both ends of the pot "track" are at high voltages.

    When we know the voltages on the mechanical pots we can work out how to make it work.

     

    MK

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • fmilburn
    0 fmilburn over 6 years ago in reply to michaelkellett

    Thanks for additional information and being gentle :-).  I failed to read carefully the first pass through. 

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • alanthom
    0 alanthom over 6 years ago in reply to fmilburn

    Thank you Frank.

    Good to know and I'll definitely check out your code image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
<
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube