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 388 subscribers
  • Views 2968 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…
Parents
  • michaelkellett
    0 michaelkellett over 6 years ago

    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 re. common earth or reference voltage are met (and there are ways round these problems too .....)

     

    MK

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

    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 is inexpensive so I can play around.  My Arduino UNO and NANO kit will be arriving soon.

    Whilst waiting. I'll order the two dig pots and start with some basic Arduino projects.

    During my tertiary education, "modern" programming was in its infancy.....Olivetti Basic, Fortran and did a bit of assembler for Z80 chip.

    Did not love it and continued with analogue electr eng.

     

    How the wheel has turned..... Now, at the ripe age of 57.... I have to get to understand Arduion code.....lol

     

    Thanks

     

    Alan

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

    You're thinking of using an MCP41010 - beware - this part needs a 5V power supply and to share ground reference with the Arduino.

    None of its other pins must be connected to a voltage exceeding supply + 1V or it will  be damaged.

    None of the other pins must be connected to a voltage above 5V or iot won't work correctly.

     

    If, as I suspect, your buck boost is a bit like this one in this article:

     

    https://wiki.beyondlogic.org/index.php?title=WD2002SJ_LTC3780_Synchronous_Buck_Boost_Converter_Ebay_Automatic_lifting_pr…

     

    where the voltage and current control features are described, then the voltage control pot is connected to Vout and you could not use an MCP41010.

    (the actual value of the pot is not very important, since the other resistors can be scaled to suit.)

     

    You can't just drop a digital pot in place of a real pot in any circuit and expect it to work.

     

    Unless you have the schematic you are setting yourself up to fail (in a smokey way !).

     

    If all else fail then trace the circuit board out yourself and draw the schematic - it will ensure that you really know what you are working with.

     

    Or post some pictures and someone on E14 may be able to identify it.

     

    MK

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

    Hi Michael

     

    Ooohh.... thanks for the heads up with the 5V issue.

    "My" buck/boost is very similar to the one in the URL you gave.  Here is the exact one I want to modify:  https://www.droking.com/dc-buck/60w-power-supply-module-dc-5-30v-to-0.5-30v-automatically-boost-buck-voltage-regulator-d…

     

    I would prefer not to have a smokey experience...... but curiosity killed the cat. image
    The cct is a double sided pcb and without soldering all components, I will most certainly not be able to translate the cct diagram.

    I understand your comment about simply not just plugging in a dig pot.............. but it would have solve dmy problem perfectly

     

    Necessity is the mother of invention......

     

    Thank you very much.  Do have a look at the buck/boost

     

    Alan

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • 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 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
Reply
  • 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
Children
  • 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
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