Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   ADC problem (http://www.chiefdelphi.com/forums/showthread.php?t=44143)

sjung9442 16-02-2006 19:24

ADC problem
 
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?

steven114 16-02-2006 20:06

Re: ADC problem
 
Posting the code that you're using is probably the best way to get help...

Alan Anderson 16-02-2006 21:53

Re: ADC problem
 
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.)

sjung9442 17-02-2006 11:00

Re: ADC problem
 
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.

Kevin Watson 17-02-2006 11:12

Re: ADC problem
 
Quote:

Originally Posted by sjung9442
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


All times are GMT -5. The time now is 01:33.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi