Digital Pot


Closed Thread
Results 1 to 4 of 4

Thread: Digital Pot

  1. #1
    Join Date
    Jan 2008
    Posts
    6

    Default Digital Pot

    Hey

    I need this code:
    How to change 5 V on some . Sample when portb.0=1 (program).... program is like pot, it relaxation 5 volt, on 4.9 then 4.8..4.7...0. How can i do that? My english is bad i forget some things, sorry

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Tastature View Post
    Hey
    I need this code:
    You'd get a lot more help by writing some code and asking other people to help you figure out why it doesn't work VS. asking others to write code for you.

    How to change 5 V on some . Sample when portb.0=1 (program).... program is like pot, it relaxation 5 volt, on 4.9 then 4.8..4.7...0. How can i do that? My english is bad i forget some things, sorry
    A dozen different ways to do this...
    One way, yes, connect an external digital pot (I've used the Xicor types), and control it.
    Another way, use the PWM module (or software PWM) across an R/C network, vary the duty cycle of the PWM output to change the average voltage across the cap. Probably want to follow the R/C with an Op-Amp so any loads won't change the voltage across the cap much.

  3. #3
    Join Date
    Jan 2008
    Posts
    6


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    Another way, use the PWM module (or software PWM) across an R/C network, vary the duty cycle of the PWM output to change the average voltage across the cap. Probably want to follow the R/C with an Op-Amp so any loads won't change the voltage across the cap much.
    Can you post samo exaple, i dont understand good?

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Cool

    Quote Originally Posted by Tastature View Post
    Can you post samo exaple, i dont understand good?
    PWM - pulse width modulation (wikipedia)
    http://en.wikipedia.org/wiki/Pulse-width_modulation
    1st hit in Google...

    PWM in a PIC...(search phrase 'pwm microchip.com')
    ww1.microchip.com/downloads/en/AppNotes/00538c.pdf

    1st hit in Google...

    1st hit both times...
    Last edited by skimask; - 29th July 2008 at 16:22.

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