Replace a potentiometer by a digital pot


Closed Thread
Results 1 to 9 of 9
  1. #1
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    891

    Default Replace a potentiometer by a digital pot

    Hello,

    I'm trying to control a voltage regulator via a Digital-Pot ("DP" hereunder, it's a DS1804-010 / 10k - 100 steps model).
    <img src="http://home.citycable.ch/flotulopex/downloads/Adj-VR_Num-pot.jpg">
    I replaced the 4k7 pot by the DP and nothing happens (= voltage doesn't vary). Just as if the DP wouldn't increment/decrement anymore.

    The DP is working well as long as I don't connect it to the VR.

    Any idea what's wrong here?
    Roger

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Post

    Bonjour Roger,

    Excerpt of the datasheet ...

    << H - High-Terminal Potentiometer. This is the high terminal of the potentiometer. It is not required that
    this terminal be connected to a potential greater than the L-terminal. Voltage applied to the H-terminal
    cannot exceed the power-supply voltage, VCC, or go below ground.

    L - Low-Terminal Potentiometer. This is the low terminal of the potentiometer. It is not required that this
    terminal be connected to a potential less than the H-terminal. Voltage applied to the L-terminal cannot
    exceed the power-supply voltage, VCC, or go below ground.

    W - Wiper of the Potentiometer. This pin is the wiper of the potentiometer. Its position on the resistor
    array is controlled by the three-terminal control port. Voltage applied to the wiper cannot exceed the
    power-supply voltage, VCC, or go below ground >>

    as the max DS1804 supply voltage is ....


    Bouhou ,snifffff ... goodbye precious chip ! ... if you insist too much !!!

    Try the AD 7376 ...

    Alain
    Last edited by Acetronics2; - 4th November 2007 at 11:34.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi Roger,

    PWM controlled LM317, output voltage 0V to 6V. (Yes, really 0V!)
    The PWM signal is generated by the microcontroller and the output
    voltage is monitored by the ADC of the microcontroller.

    Best regards,

    Luciano


    (Click to enlarge).
    Last edited by Luciano; - 4th November 2007 at 13:06.

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Wink

    Hi, Roger

    another excerpt ... from the 317 datasheet ...

    Smells the R-2R ladder ... don't you think !

    with a full port ... 256 steps : no so bad !

    Alain
    Attached Images Attached Images
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  5. #5
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    891


    Did you find this post helpful? Yes | No

    Default

    ...snif et m.... encore raté!

    Thanks Alain, I've seen this info but, unlike in the shema of my first post, the High end is "open" (not connected) and I thought this would be okay this way.

    Okay then, so how should I control the voltage regulator if not with my DS1804?

    The AD7376 is another option, yes.

    And yes, I've tried to control the LM317 with R+Tr already but you fully loose in ouput voltage precision.

    Is there a other way to do?
    Roger

  6. #6
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    891


    Did you find this post helpful? Yes | No

    Default

    Alain,

    How would you make a 256 resistors ladder with 8 ports?

    Any example?
    Roger

  7. #7
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,807


    Did you find this post helpful? Yes | No

  8. #8
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    891


    Did you find this post helpful? Yes | No

    Default

    Is it correct to say that this is a Digital-To-Analog converter?
    Last edited by flotulopex; - 5th November 2007 at 07:19.
    Roger

  9. #9
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,807


    Did you find this post helpful? Yes | No

    Default

    That is correct. This is exactly what it does.

    Ioannis

Similar Threads

  1. Digital Pot
    By TONIGALEA in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd January 2012, 07:54
  2. Controlling a MCP4162 Digital Pot
    By SOTASOTA in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 6th February 2011, 18:51
  3. Digital Pot Advice
    By Tobias in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 22nd October 2007, 20:38
  4. Replies: 4
    Last Post: - 24th January 2007, 22:20
  5. Serial control of a digital pot?
    By TonyA in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 2nd June 2006, 23:49

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts