Again ADC with 12F675 ...


Closed Thread
Results 1 to 30 of 30

Hybrid View

  1. #1
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default Re: Again ADC with 12F675 ...

    Thanks ! But still no have answers on my problem ...

  2. #2
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191


    Did you find this post helpful? Yes | No

    Default Re: Again ADC with 12F675 ...

    Hi Fratello,

    1) Do you have two PCB with different resistor values?
    or
    2) Have you changed resistors to same board and tested with two SW settings?

    In case
    1) there must be some other differences on PCB
    2) resistors are not with correct values

  3. #3
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default Re: Again ADC with 12F675 ...

    Thanks, Mr. Gusse, for support !
    I have only one PCB, without the resistors from chain (just R2=1k is soldered on PCB, between +5V and ADC_IN).
    I put the resistors from chain 1 from R2/ADC_IN to ground ; in first case works perfect.
    Then I soldered the R9=100k from R2/ADC_IN to ground ; I put resistors from chain 2 into circuit (in parallel with R9). In this case nothing happens.
    All the resistors are measured, look to be OK (this was my first concern too ...).

    Tomorrow I'm going to try to set some debounce ...
    Attached Images Attached Images   
    Last edited by fratello; - 3rd April 2015 at 20:35.

  4. #4
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default Re: Again ADC with 12F675 ...

    Update picture...
    Name:  upd.jpg
Views: 1972
Size:  135.4 KB

  5. #5
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default Re: Again ADC with 12F675 ...

    SOLVED !!!
    In first case the code is :
    "If adval > 419 and adval < 536 then gosub LED" = working fine.
    In second case :
    "If adval > 450 and adval < 600 then gosub LED" = NOT working.

    So I tried this :
    "If adval < 600 and adval > 450 then gosub LED"
    And VOILA, IT'S WORKING !!!

    Thanks for support ! Regards !

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


    Did you find this post helpful? Yes | No

    Default Re: Again ADC with 12F675 ...

    I don't get it. That looks identical to me.

    Robert

  7. #7
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default Re: Again ADC with 12F675 ...

    For me too ... But I can prove it (by video) !
    Maybe because when no button is pressed, ADC reading is NOT 1023 ?!

Similar Threads

  1. ADC values above 4095 for 12 bit ADC
    By longpole001 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 1st February 2015, 22:24
  2. ADC problem on 18F46K22 device using all 28 ADC pins
    By JimAvanti in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 23rd February 2012, 20:22
  3. 12f675
    By mystified in forum mel PIC BASIC
    Replies: 6
    Last Post: - 10th September 2007, 02:47
  4. 12F675 ADC 'Issues'
    By harrisondp in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 31st March 2005, 01:55
  5. ADC on 12f675?
    By peu in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 16th March 2005, 17:44

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