Controlling A Digital Pot


Closed Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    Apr 2006
    Posts
    92

    Default Controlling A Digital Pot

    Hi,

    I was wondering if someone could refer me to a basic schematic and code for controlling a digital pot with the pic. I am using the pic18F452 with pbp 2.46


    Thanks for any help.

    Tony

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Any plan on your digital pot? Microchipone or else... it will be handy for us to know at least the pot you want to play with...
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Apr 2006
    Posts
    92


    Did you find this post helpful? Yes | No

    Default

    Hi,

    I am thinking about using MCP41100-I/P IC
    http://www.jameco.com/wcsstore/Jamec.../241787MCH.pdf

    What I'd like to do is control the digital pot with the pic. The pic will be interfaced with an analog sensor, the pic will read the sensor (using ADCIN) and based on the the result of the sensor the pic will respond by making changes to the digital pot.

    What I'm wondering is how to get the code going. I guess it would start like this:

    ADCIN sensor input pin, result
    result = digital pot control
    Last edited by TonyA; - 27th April 2006 at 00:02.

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    As my hands can't place anything on a board now, i'll just give you some tips ... typing on a keyboard is hard enough:
    1. You'll need 3 I/O (CS,SCK,SI)
    2. Read the datasheet Section 5.0 (Few Microchips datasheet are fairly well explain, that's one of those. Really easy)
    3. PBP manual under the SHIFTOUT statement.
    No specific schematic, plug and play. Just check the POT limitation first about max current and all the plah plah plah and you shouldn't have too much problem.
    Last edited by mister_e; - 27th April 2006 at 04:17.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115


    Did you find this post helpful? Yes | No

    Default

    Also take into account that a digital pot never reaches absolute zero. Always do show a minimum resistance. If you can tolerate it then go use it.

    Ioannis

  6. #6
    Join Date
    Apr 2006
    Posts
    92


    Did you find this post helpful? Yes | No

    Default

    Thanks. So this would be using the Serial port of the digital pot?

    Thanks again,
    Tony

  7. #7
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115


    Did you find this post helpful? Yes | No

    Default

    The pots usually have SPI bus not really RS232 serial but ... serial too!

    You have to read the datasheet (as always...) for the device to be used.

    Ioannis

  8. #8
    Join Date
    Apr 2006
    Posts
    92


    Did you find this post helpful? Yes | No

    Default

    Thank you.

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 : 0

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