View Single Post
  #15   Spotlight this post!  
Unread 27-01-2004, 23:43
Bruce C.'s Avatar
Bruce C. Bruce C. is offline
Registered User
#0647 (The Cyber Wolf Corps)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Killeen, Texas
Posts: 65
Bruce C. will become famous soon enough
Re: Pressure Sensor Readings

Quote:
Originally Posted by KenWittlief
the analog sensor gives you an output based on the pressure, I dont know the specs off the top of my head, but it would have a linear range from say, 0 to 60 psi or 0 to 120 psi
We tested our analog pressure sensor today. We ran the analog signal to analog input 1. Our programmer had the RC read the input as a 10 bit variable, then used the code shown in the programming reference guide to strip off the two Least Significant Bits (LSB) to get it down to an 8 bit number which he then sent back to the OI and the dashboard over user byte 6.

As we ran the pressure up we watched the count climb on the dashboard. It went from a count of 25 for 0 psi up to a count of 225 for 125 psi. Our programmer will probably do a linear scaling of the input so that the dashboard will show the pressure directly in psi.

We're not sure exactly what we're going to do with the info, but it seems cool to have it. I suppose we could also use it to control the compressor relay out rather than the digital pressure switch.