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.
Bookmarks