All of our analog inputs appear to be outputting the same value, that of channel 1. We are using the ADC code from Kevin’s site, integrated into his camera code. We don’t know what is wrong with this code…
Can anyone help us? or had same problem?
Posting the code that you’re using is probably the best way to get help…
If you’re using Kevin’s ADC code, you cannot use the usual Get_Analog_Value() function. I don’t have the files handy to check, but the proper function to use is documented in his code.
(You also need to make sure you’ve defined the proper number of analog channels; that too is documented.)
I can’t put any code here because we don’t even know what the problem is…
it’s so sad that we don’t even know the problem…
we used Get_ADC_Result(channel number) function from kevin’s code to get the value. And we set it to the analog inputs we needed… but when we turn on the robot and try to get data, we are getting 1888 for all of them…
And when we change one thing, everything changes too.
Can you zip up your project and send it to me to look at. Also, what kind of sensors are you using on the analog inputs?
-Kevin