Pot reading jumping like crazy!!!


Closed Thread
Results 1 to 13 of 13

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Is this on the F84?

    If so, What's your Pot and capacitor value?
    Steve

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

  2. #2
    Join Date
    Nov 2006
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e
    Is this on the F84?

    If so, What's your Pot and capacitor value?
    Yes, its with a F84A, with 10k resistor and a 0.1uF cap.

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


    Did you find this post helpful? Yes | No

    Default

    On wich pin? Hope it's not RA.4

    Did you tried a higher capacitor valu.. let's say 1K

    Is the MCLR pin tied to VCC with pull-up? if so wich value?
    Steve

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

  4. #4
    Join Date
    Nov 2006
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e
    On wich pin? Hope it's not RA.4

    Did you tried a higher capacitor valu.. let's say 1K

    Is the MCLR pin tied to VCC with pull-up? if so wich value?
    a 1K is tied to Vcc.

  5. #5
    Join Date
    Feb 2006
    Location
    Australia, Gold Coast
    Posts
    31


    Did you find this post helpful? Yes | No

    Default Pot Diameter Size

    I had a similar issue a while ago maybe I can be of some assistance.
    I was also using the F84A, on PORTB with the POT command. I noticed that larger pots, over 15mm dia, read very clean, yet the small PCB mount types can be noisy, with values moving around, especially if they are the cheap and nasty 0.20c types.

    When using small PCB types or small cheap pots,I compensate with software. I sometimes read 5 values, add together and get and average read, or other times I will read only even numbers and ignore the odd. It all depends what you need it for...

    Also check your common GND and make sure your regulator can provide enough juice for the circuit. Are you using 78L05?
    "Never under estimate the powers of an idiot"

  6. #6
    Join Date
    Nov 2006
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by exelanoz
    Are you using 78L05?
    No, it's a NTE1960.

  7. #7
    Join Date
    Feb 2006
    Location
    Australia, Gold Coast
    Posts
    31


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by champion
    No, it's a NTE1960.
    Your regulator should be fine, rated at 1A...what are you feeding your regulator with? A wall type plugpack or a benchtop powersupply?

    Yes, Sayzer also has a good idea.

    I'm wondering whether you just have a bad Pot.
    Have your tried buying another linear potentiometer?
    I have at least 50 or so hanging around from equipment that has been scrapped :-)
    Useful for many projects.
    I throw in a MKT type capacitor and works well...
    Even the cheap and nasty greencaps are ok

    I also like using wire wound types, doesn't jitter much and provides a clean read, also normally quite low in resistance. U might need to add a resistor in series with it... and play around with the scale values.

    what about your LCD display?
    Start up pause?
    are you clearing the display or just writing over old values?

    I am acutally a little suprised, as there is really not much that can go wrong.
    I assume you have a PIC 16F84A with the appropriate powersupply, a crystal...an LCD and POT attached with 2 wires and a cap. Right?

    When you say it moves erratically, does it move 1 or 2 values up or down during idle? Or does it move in much bigger increments?
    "Never under estimate the powers of an idiot"

  8. #8
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by champion
    Yes, its with a F84A, with 10k resistor and a 0.1uF cap.

    There is another way.

    Use 1K POT with 100nF.

    This way, you will get a large movement of the POT giving you softer reading max. "30" instead of 255.

    You can then multiply this "30" by say 4 and have "120" as your POT reading value, still with soft reading movement. (multiply by 8 and get 240 could be another).


    How is that now?


    -----------------------
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

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. reading the value of a pot
    By studysession in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 1st February 2009, 10:45
  3. 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
  4. Replies: 4
    Last Post: - 24th January 2007, 23:20
  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