View Single Post
  #6   Spotlight this post!  
Unread 12-02-2011, 11:34
DCRich DCRich is offline
Mentor
FRC #2180 (Zero Gravity)
Team Role: Mentor
 
Join Date: Nov 2008
Rookie Year: 2006
Location: Steinert H.S., Hamilton NJ
Posts: 21
DCRich is an unknown quantity at this point
Re: Have problem on getting analog values from lane tracking sensor

Quote:
Originally Posted by xinchi.he View Post
Hi everyone. I am new here. Here I met with a problem for sensors. My professor would like to use the analog sensor to receive the brightness of the black and white which means I should get values with a range from 0 to 700 whatever. But I couldn't find the method to access it. Anyone could help??

THXX!!!!!!

************************************************** *************************
We are not using the digital sensor that provided by FIRST, instead we use our analog sensor which should plug to the analog side card. Is there a method that in java that could access to the analog value it returns??

Note that the Analog input channels are -10 v to +10 v voltages outside that range will be over-range and may not read correctly.

The default IR sensors put out 1 v low and 12 volt high so they are not true digital signals. If you run 12 v into the GPIO lines it will look digital but it is over the max input value and could cause the line to fail. You should check the voltage and make a divider to drop the signal levels down to the 5 v level required.
Reply With Quote