SOLVED: How can I reduce ADC jitter


+ Reply to Thread
Results 1 to 40 of 96

Hybrid View

  1. #1
    Join Date
    Jan 2011
    Location
    Sydney, Australia
    Posts
    172


    Did you find this post helpful? Yes | No

    Default Re: How can I reduce ADC drift

    It shouldn't really matter if the cap is at the PIC end or the Pot end, as long as the distance between both is not too great.
    Note the silicon errata document (Item 1.3) regarding the use of FVR as ADC reference voltage:
    https://ww1.microchip.com/downloads/...-80000702J.pdf

    Cheers
    Barry

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,170


    Did you find this post helpful? Yes | No

    Default Re: How can I reduce ADC drift

    Quote Originally Posted by Aussie Barry View Post
    It shouldn't really matter if the cap is at the PIC end or the Pot end, as long as the distance between both is not too great.
    Note the silicon errata document (Item 1.3) regarding the use of FVR as ADC reference voltage:
    https://ww1.microchip.com/downloads/...-80000702J.pdf

    Cheers
    Barry

    Right now I'm testing on 16F18855, but I'll face the same problem on final version with 16F18877.

    I'm still trying to figure out how to see the Revision using MeLabs USB programmer. This is the most I can see.

    Name:  PIC revision.png
Views: 10209
Size:  17.4 KB
    Last edited by Demon; - 22nd February 2025 at 05:42.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default Re: SOLVED: How can I reduce ADC drift

    I do not think you can see the Revision of your chip with Melabs USB programer. Only with Microchips IDE and a Pickit or ICD programers.

    1. Can you test with increased conversion time as the Errata says?

    2. Can you test with Vdd reference instead of FVR to be sure of the cause of this jitter? In this case use a linear 5V regulator to have the cleanest Vdd power supply.

    Ioannis
    Last edited by Ioannis; - 22nd February 2025 at 14:52.

  4. #4
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,170


    Did you find this post helpful? Yes | No

    Default Re: SOLVED: How can I reduce ADC drift

    Quote Originally Posted by Ioannis View Post
    I do not think you can see the Revision of your chip with Melabs USB programer. Only with Microchips IDE and a Pickit or ICD programers.
    That's what I'm afraid of. I never got my PK4 to work right.


    Quote Originally Posted by Ioannis View Post
    1. Can you test with increased conversion time as the Errata says?
    I could try that.

    Quote Originally Posted by Ioannis View Post
    2. Can you test with Vdd reference instead of FVR to be sure of the cause of this jitter? In this case use a linear 5V regulator to have the cleanest Vdd power supply.

    Ioannis
    I was using VDD before, jittery. I'm using FVR x 4 right now, still jittery.

    And 7805 can't handle 3A anyways. That's why I switched to TPS56637 design.
    Last edited by Demon; - 28th February 2025 at 08:20.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

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


    Did you find this post helpful? Yes | No

    Default Re: SOLVED: How can I reduce ADC drift

    Is it possible to just feed a clean 5V to this chip, just to test the ADC?

    Ioannis

  6. #6
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,170


    Did you find this post helpful? Yes | No

    Default Re: SOLVED: How can I reduce ADC drift

    Have to go to restaurant for wife's birthday. Gonna try 2 bench power supplies later.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

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


    Did you find this post helpful? Yes | No

    Default Re: SOLVED: How can I reduce ADC drift

    Absolutely, wife is coming first!

    So you will have a peacefull rest of the day!

    When you will test it, please try also instead of a pot, just a voltage divider, say two 1K resistor in series to feed half of the supply to the adc. Maybe it is a pot problem.

    Ioannis
    Last edited by Ioannis; - 22nd February 2025 at 20:37.

  8. #8
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,170


    Did you find this post helpful? Yes | No

    Default Re: SOLVED: How can I reduce ADC drift

    Can't edit post 23:

    I took OUT the manual averaging routine; it doesn't go to the extreme ends (rarely get completely to 0 or 1024 because of jittter).
    I'd like to try the ADC˛ average a try. Hardware should be faster than anything I can write in PBP.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

Similar Threads

  1. SOLVED - IOC works on B0 but not B5
    By Demon in forum General
    Replies: 19
    Last Post: - 26th September 2024, 21:11
  2. Replies: 6
    Last Post: - 5th November 2023, 16:26
  3. trying to reduce current consumption on a 12HV615
    By Max Power in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 30th November 2011, 14:57
  4. Unwanted output signal jitter
    By LinkMTech in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 18th January 2008, 02:31
  5. Dmx Solved !!!!!!!
    By oscar in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 2nd July 2005, 21:57

Members who have read this thread : 17

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