Adcin or Pot


Results 1 to 19 of 19

Thread: Adcin or Pot

Threaded View

  1. #3
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    I tend to use a 10k Lin pot with one leg connected to +ve (5v) and a 0.1uf cap between the other leg and GND - the wiper then goes to the PIN.

    Using the scale value in the POT statement you should be able to get the range right so the value is 0 at one end of the travel, to 255 at the other.

    Edit - just noticed that you have an LCD attached - then using
    Code:
    Pot PORTA.0,scale,D
    LCDOUT $FE,$C0, "Cal value " ,#D    ; where D is the varible used in the POT statement
    would show the value for the variable D in deceimal on the second line, so you can calibrate the range exactly
    Last edited by malc-c; - 7th January 2007 at 23:13.

Similar Threads

  1. Using the Pot command.
    By timseven in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 17th August 2009, 21:23
  2. A/D, Pot, Input, A,B So lost now....
    By Helmutt in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 9th March 2008, 23:23
  3. Replies: 4
    Last Post: - 24th January 2007, 23:20
  4. Using ADCIN or POT/RCTIME?
    By TonyA in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 16th April 2006, 19:37
  5. pot controlled pwm -- help
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 29th January 2006, 13:29

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