ADC problem :(


Closed Thread
Results 1 to 12 of 12

Thread: ADC problem :(

Hybrid View

  1. #1
    Join Date
    Sep 2007
    Posts
    14


    Did you find this post helpful? Yes | No

    Default

    ok thanks i will try it in a moment and post a update then.

  2. #2
    Join Date
    Sep 2007
    Posts
    14


    Did you find this post helpful? Yes | No

    Default

    nope that did not work now when i change the pot left or right it dont work and! i get 65280 on the screen instead...

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


    Did you find this post helpful? Yes | No

    Default

    ad1=255-ad1
    Steve

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

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Question the "hard" solution ...

    May be I'm simple minded ...

    but crossing the 2 extreme taps wires of the pot might solve the problem ... as it seems Vref is 5v ...

    Did I miss something ???

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default

    yup, as long the OP didn't asked for a software solution and can do some hardware mods, unless you can't be wrong.

    PS: 30cm de neige ici aujourd'hui
    Steve

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

  6. #6
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Talking I was waiting for you ...

    Hi, Steve

    For once, you have the "soft" solution ... keep on that way ....( no more guns, ... etc,etc )

    Lots of LOL from le " maudit Français"

    Ici, c'est Water: l'eau ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  7. #7
    Join Date
    Sep 2007
    Posts
    14


    Did you find this post helpful? Yes | No

    Default

    well ad1 = 255 - ad1 make the pot "freeze" (not change number)
    Any way we will try that the solution you posted before did work with the ~ but it increased to 1111111111111111 in bin. :O in other word 655xx or something like that.

Similar Threads

  1. pic12f675 ADC problem
    By radu022003 in forum mel PIC BASIC
    Replies: 3
    Last Post: - 1st September 2009, 10:13
  2. PIC18F2423, ADC problem
    By mistergh in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th March 2009, 01:31
  3. Mutliple ADC problem with PIC16F877
    By andyto in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd October 2007, 17:47
  4. ADC problem with PIC16F917
    By eetech in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th March 2007, 21:22
  5. Problem reading multiple ADC ports
    By jswayze in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 4th November 2004, 16:46

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