ADCIN & 16F870 - how to avoid non linear conversion?


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Feb 2013
    Posts
    1,132


    Did you find this post helpful? Yes | No

    Default Re: ADCIN & 16F870 - how to avoid non linear conversion?

    Set scope to 50mV resolution and AC input. Found an 120mv max noise pulses, with 3.35hz following frequency.

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: ADCIN & 16F870 - how to avoid non linear conversion?

    Where?
    On the power rail, at the output of the voltage reference, at the ADC input or all of the above?

    If the noise is only present at the ADC input of the PIC then the problem is probably too high source impedance (that 10k pot you're using) and the 3.35Hz you're seeing is how often the ADC is sampling the input. Or is this with a low impedance source?

  3. #3
    Join Date
    Feb 2013
    Posts
    1,132


    Did you find this post helpful? Yes | No

    Default Re: ADCIN & 16F870 - how to avoid non linear conversion?

    Yes it was with 10k pot, measured at ADC input. no other tests so far.

    Actually, I went with ADC route because I was not able to make BH1750 light sensor to work with picbasic, and since I badly need light measurement, I've decided to do a circuit with photoresistor and ADC, but it appears to have it's own bunch of problems.

  4. #4
    Join Date
    Feb 2013
    Posts
    1,132


    Did you find this post helpful? Yes | No

    Default Re: ADCIN & 16F870 - how to avoid non linear conversion?

    Yes, these pulses were from ADC. If turn ADC off, pulses are gone.

    Problem is solved, but it was weird.

    Since PIC has two Vss pins, I was using one Vss for GND, and to other Vss pin I've tied LCD gnd pin. So current going trough the PIC was causing the troubles. After I've added jumper to feed Vss directly to LCD, problem had gone and linearity improved.

Similar Threads

  1. How can I avoid stack corruption
    By BrianT in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th August 2013, 02:45
  2. linear data memory & large data arrays
    By ronsimpson in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 27th June 2011, 23:21
  3. How to avoid DIV32 command?
    By pxidr84 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 16th May 2011, 06:11
  4. Help needed with 16F870 ADC
    By srob in forum mel PIC BASIC
    Replies: 1
    Last Post: - 10th May 2008, 13:14
  5. Linear to S Curve conversion
    By luminas in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 22nd May 2007, 14:15

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