Go to Post If I was making this I would want to not have to use anything smaller than a 3/16" end mill, but 1/8" would be acceptable. Anything smaller and I'd tell the designer to go play in traffic. - Cory [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 04-12-2012, 15:28
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,817
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Pressure Sensor

I won't be much help, since I don't know the Java libraries well.
I do own several of these sensors though and have used them in competition.

This sensor connects to an Analog input and is read using the Java equivalent of Get Voltage.

The voltage (0-5v) will need to be converted to psi if you want a human readable value. To derive the equation you can start with a series of psi readings from a pressure gauge while noting the corresponding voltage reading (just dump the raw voltage to the screen or a print). Then to calculate a best curve fit you can use the LINEST function in Excel. For LINEST highlight two cells and SHIFT/CTRL+ENTER to get both the slope and the y-intercept.

psi = analog_reading *slope + y-intercept
The sensors have slight reading differences between them, but we used the following for our robot this past season:
psi = voltage *29.5433-10.4115 (this was for a different model, so the numbers will be different)
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 04-12-2012 at 17:59.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 13:36.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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