Shop OBEX P1 Docs P2 Docs Learn Events
Digital Potentiometer — Parallax Forums

Digital Potentiometer

cclaud2cclaud2 Posts: 21
edited 2006-02-15 18:35 in BASIC Stamp
Hi, I am building a circuit to control an·actuator with my BS2.· I am using a voltage regulator(LM317) to regulate·a· 2-10V control signal to the actuator, which is a Belimo LM24-SR.· The circuit works fine if I use a multiturn 1/2W 10K Ohm potentiometer, but when I try and use the 10K ohm AD5220 I cannot get the voltage range that I get with the 1/2W 10K ohm multiturn potentiometer.· I have tried to find a digital pot that is rated for 1/2W with no success.· Does anyone know of a part suitable for this application.· I would really appreciate some input.· Thanks.

I have attached a schematic of the circuit.

Vin = 9V
Vout = Desired 2-10V
R1 = 1K ohm
R2 = 0-10K ohm

Comments

  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-02-15 00:33
    Vin = 9V···············for 10V out you need 13V in·
    Vout = Desired 2-10V·· Vout cannot be > Vin (see above)
    R1 = 1K ohm··········· use a 240 ohm
    R2 = 0-10K ohm········ you should not need > 5K
  • Beau SchwabeBeau Schwabe Posts: 6,557
    edited 2006-02-15 01:22
    If you look at the datasheet under "RESISTOR TERMINALS", the voltage range between A,B, and W are from 0V to VDD.

    Also, if you look under "POWER SUPPLIES", the power supply (VDD) range is from 2.7V to 5.5V

    This is why you are seeing a difference, the output of your regulator is creating a voltage greater than 5.5V across
    the digital pot effectively causing it to "clip" or saturate. One solution is to drive the ADJ pin of the regulator with the
    output of an OP-Amp (gain set to x2) so that 5Vin should be able to control 10Vout.

    In a worst case scenario you would only need a 1/10th Watt resistor if you kept the 1K resistor.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.

    Post Edited (Beau Schwabe (Parallax)) : 2/15/2006 1:28:43 AM GMT
  • cclaud2cclaud2 Posts: 21
    edited 2006-02-15 01:46
    I am sorry, for some reason I wrote Vin=9V.· I checked it with my Voltmeter and and it is reading approximately 13V.

    I am using·the 10K ohm AD5220 because it is the only digital pot that I have (it came with What's a Microcontroller).

    Everything works fine when I use the 1/2W multiturn 10K ohm pot.· I can get a voltage range from about 1.25V to around 10.5V.· However, when I use the 10K ohm·AD5220 I can only get a range from about 6.0V to 9.0V.· Can you suggest a different pot to use with a higher operating range?· I have looked, but I have had no luck.· Do you have any suggestions?· Thanks.

    Please see spreadsheet attached.
  • Beau SchwabeBeau Schwabe Posts: 6,557
    edited 2006-02-15 01:56
    I'll try to put a "fundamental" test case together and post it sometime between tonight and tomorrow.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2006-02-15 14:08
    Please be aware that the Digital Potentiometers [noparse][[/noparse]such as MCP41010] are rated for +/- 1 milliamp.
    I could not find a similar value in the AD5220 spec sheet, but I suspect similarities.

    That is nowhere near the wattage. I am talking about .001 amps x 5volts = .005 watts maximum.

    They are neat little devices, but they are real power wimps.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)

    ······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-02-15 15:10
    Kramer,

    ·· I had the same concern when I read this thread...Going from a 1/2W POT to a Digital Pot made me wonder...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Beau SchwabeBeau Schwabe Posts: 6,557
    edited 2006-02-15 15:37
    I would have to say that I think Kramer is right.
    About the only thing that I can find is an application that Al Williams wrote, but the voltage swing is very small... (2.4V to 3V)
    http://www.catalyst-semiconductor.com/dppstampapplications/

    Have you thought about using PWM (Pulse Width Modulation) to control your LM24-SR?·
    http://www.greenheck.com/pdf/dampers/LM_Series.pdf


    My approach on this would be to use the PWM function of the BS2 to set a reference voltage of (0V to 5V) to the input of an OP-Amp.
    With an Op-Amp set with a gain of X2 and powered by a 10V supply (0V to 5V becomes 0V to 10V) which should be able to drive the
    input of the LM24-SR.· The input impedance of the LM24-SR is only .1mA (100K) at 10V so a standard LM741 should work just fine.



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • OrionOrion Posts: 236
    edited 2006-02-15 17:11
    The problem you may run into with PWM is the stamp will be stuck doing this and unable to process any other commands. If the output drops back off once the PWM stops the actuator will drive back to the 2v position. I know you already have the actuator, but the LM24 is a floating point control (power-open, power-close) and LM24-MFT which is programmable signal input (you could set it up for 6-9v). Floating control would be easy to do with a stamp and the actuators are cheaper than the SRs. The MFT will cost you a bit more and you will need a programmer to setup a non-standard range. You may want to use a DAC or digi-pot to drive the OP-amp.

    One other side note these actuators are not meant for continuous repositions. We found this out the hard way on a site, where the controls were moving the actuators every 5 or 10 seconds that they wear out within a year or two. The factory told us that it is best to keep repositions to 30secs or so. They carry a five year warranty, but it won't cover abuse like this.
  • Beau SchwabeBeau Schwabe Posts: 6,557
    edited 2006-02-15 17:29
    cclaud2,

    Previously I had mentioned a gain of X2... Actually you need at least X4 because you would be using the Op-Amp in a single supply
    mode.· Below is a schematic that might get you started.·

    Note: the 4.7K could be substituted for a 5K trim pot to adjust your gain.· Once this is set, you probably want to leave it alone.


    Orion,

    "The problem you may run into with PWM is the stamp will be stuck doing this and unable to process any other commands."

    By placing a voltage follower at the beginning you can reduce this problem.· You still need to make regular PWM updates.· Increase
    the 1uF cap to 10uF·for longer periods between necessary updates.



    cclaud2,
    Or you could just use the digital POTidea.gif· ...Sorry, I was trying to make things to complex.·

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.

    Post Edited (Beau Schwabe (Parallax)) : 2/15/2006 5:50:38 PM GMT
    1547 x 789 - 290K
    1257 x 779 - 56K
  • cclaud2cclaud2 Posts: 21
    edited 2006-02-15 18:35
    Thanks guys.· I really appreciate the feedback.· I am beginner, by all means, to the BS2 and I was getting frustrated with my project because I had no one to ask questions to.· I was extremely impressed by the quantity and quality of the responses that I received on this forum.·

    Beau, thank you especially for the circuit you drew and your other feedback.· That is very helpful.· I am going to give it a shot with the Op Amp and see if I can get it to work.· Thanks again.
Sign In or Register to comment.