Stable ADC readings


Results 1 to 40 of 91

Threaded View

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


    Did you find this post helpful? Yes | No

    Default Re: Stable ADC readings

    3902 is actually 39K, so the other resistor are also bad... ok then. So be it.

    modify what's in red
    Code:
    '
    '       Software Variable
    '       =================
            ADRes       VAR WORD    ' ADC Reading
            BTN         var byte    ' Data to be sent to PORTB
            i           VAR BYTE    '
            ADCChannel  VAR BIT     '
            ADCButton   VAR WORD [3]'
    '
    '       Software constant
    '       =================
            ADCSafety   CON 10              ' min/max range for ADC Reading
                                            '
            ADCNone     CON 814 - ADCSafety ' 
            ADCButton[0]  = 90              ' button 1 or 4 
            ADCButton[1]  = 164             ' button 2 or 5 
            ADCButton[2]  = 270             ' button 3 or 6
    should work

    This is Why I asked to measure with your ohmmeter a couple of post back... and nope I'm not going to decipher a PCB

    You have everything on hand....
    Last edited by mister_e; - 28th August 2011 at 22:17.
    Steve

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

Members who have read this thread : 1

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