Phidgets 1138 User manual

1138UserGuide
FromPhidgetsSupport
Contents
1GettingStarted
1.1CheckingtheContents
1.2ConnectingthePieces
1.3TestingUsingWindows
2000/XP/Vista/7
1.4RunningPhidgets
SampleProgram
1.4.1UpdatingDevice
Firmware
1.5TestingUsingMacOS
X
1.6UsingLinux
1.7UsingWindowsMobile/
CE5.0/CE6.0
2TechnicalDetails
2.1Ports
2.2Formulas
2.3OtherInterfacing
Alternatives
3API
4ProductHistory
GettingStarted
CheckingtheContents
Youshouldhavereceived:
Adifferentialgaspressuresensor
Asensorcable
InordertotestyournewPhidgetyouwillalsoneed:
APhidgetInterfaceKit8/8/8orPhidgetTextLCD
AUSBcable
ConnectingthePieces
1.ConnecttheGasPressureSensortooneofthe
AnalogInputsonthePhidgetInterfaceKit8/8/8using
thesensorcable.
2.ConnectthePhidgetInterfaceKittoyourPCusingthe
USBcable.
ProductsforUSBSensingandControl

TestingUsingWindows2000/XP/Vista/7
MakesureyouhavethecurrentversionofthePhidgetlibraryinstalledonyourPC.Ifyoudon't,followthesesteps:
1.GototheQuickDownloadssectionontheWindowspage
2.DownloadandrunthePhidget21Installer(32bit,or64bit,dependingonyoursystem)
3.Youshouldseethe iconontherighthandcorneroftheTaskBar.
RunningPhidgetsSampleProgram
Doubleclickingonthe iconloadsthePhidgetControlPanel;wewillusethisprogramtoensurethatyournewPhidget
worksproperly.
ThesourcecodefortheInterfaceKitfullsampleprogramcanbefoundinthequickdownloadssectionontheC#
LanguagePage.Ifyou'dliketoseeexamplesinotherlanguages,youcanvisitourLanguagespage.
UpdatingDeviceFirmware
Ifanentryinthislistisred,itmeansthefirmwareforthatdeviceisoutofdate.Doubleclickontheentrytobegiventhe
optionofupdatingthefirmware.Ifyouchoosenottoupdatethefirmware,youcanstillruntheexampleforthatdeviceafter
refusing.
DoubleClickonthe icontoactivatethePhidgetControl
PanelandmakesurethatthePhidgetInterfaceKit8/8/8is
properlyattachedtoyourPC.
1.DoubleClickonPhidgetInterfaceKit8/8/8inthe
PhidgetControlPaneltobringupInterfaceKitfulland
checkthattheboxlabelledAttachedcontainstheword
True.
2.MakesurethattheRatiometricboxisTicked.

3.Whenthesensorispluggedin,thevalueinAnalogIn
shouldbecloseto40.
4.Youcanadjusttheinputsensitivitybymovingthe
sliderpointer.
5.ClickontheSensorsbuttontobringuptheAdvanced
SensorForm.
1.IntheSensorboxoftheinputyouattachedthesensor
to,selectthe1138DifferentialGasPressureSensor
fromthedropdownmenu.
2.Thisisthepressuredifferentialbetweenthesensor
ports,measuredinPascalsandpoundspersquare
inch.
3.FormulausedtoconverttheanaloginputSensorValue
into.
TestingUsingMacOSX
1.GototheQuickDownloadssectionontheMacOSXpage
2.DownloadandrunthePhidgetOSXInstaller
3.ClickonSystemPreferences>>Phidgets(underOther)toactivatethePreferencePane
4.Makesurethattheisproperlyattached.
5.DoubleClickoninthePhidgetPreferencePanetobringuptheSampleprogram.Thisprogramwillfunctioninasimilar
wayastheWindowsversion.
UsingLinux
ForastepbystepguideongettingPhidgetsrunningonLinux,checktheLinuxpage.
UsingWindowsMobile/CE5.0/CE6.0
ForastepbystepguideongettingPhidgetsrunningonWindowsCE,checktheWindowsCEpage.
TechnicalDetails
TheDifferentialGasPressureSensorusesbipolarprocessingtoprovideanaccurate,highlevelanaloginputsignalthatis
proportionaltotheappliedpressure.Whenthesensorispluggedin,theSensorValueshoulddefaulttoabout40,which
correspondsto0kPabetweenthetwoports.
Ports
Thesensorcomeswithapositivetopportandanegativebottomport.Theseportshaveadiameterof2.79mmto3.30mm
(nominal3mm).
Takecautionwhenconnectingthepressureportsthissensoronlymeasuresapositivepressuredifferential,andyoucould
damagethesensorifyouconnectitinreverse.Ensurethattheupperportisalwaysatanequalorhigherpressurethanthe
lowerport.

Forhosing,werecommendusingpolyurethanetubing.Wehavehadgoodresults
with2.4mmIDtubingfromEmiplastics.com.Inimperialmeasurement,3/32”ID
tubingisequivalent.Thisisavailablethroughlaboratorysupplystoressuchas
ColeParmer.
Formulas
TheFormulatotranslateSensorValueintoPressureis:
Note:1.0kPa=0.145psi
OtherInterfacingAlternatives
Ifyouwantmaximumaccuracy,youcanusetheRawSensorValuepropertyfromthePhidgetInterfaceKit.Toadjustaformula,
substitute(SensorValue)with(RawSensorValue/4.095)IfthesensorisbeinginterfacedtoyourownAnalogtoDigital
ConverterandnotaPhidgetdevice,ourformulascanbemodifiedbyreplacing(SensorValue)with(Vin*200).Itisimportant
toconsiderthevoltagereferenceandinputvoltagerangeofyourADCforfullaccuracyandrange.
EachAnalogInputusesa3pin,0.100inchpitchlockingconnector.Picturedhereis
aplugwiththeconnectionslabelled.Theconnectorsarecommonlyavailablerefer
totheAnalogInputPrimerformanufacturerpartnumbers.
API
PhidgetanalogsensorsdonothavetheirownAPItheysimplyoutputavoltagethatisconvertedtoadigitalvalueand
accessedthroughthe"Sensor"propertiesandeventsonthePhidgetInterfaceKitAPI.Itisnotpossibletoprogrammatically
identifywhichsensorisattachedtotheAnalogInput.ToanInterfaceKit,everysensorlooksthesame.Yourapplicationwill
needtoapplyformulasfromthismanualtotheSensorValue(anintegerthatrangesfrom0to1000)toconvertitintothe
unitsofthequantitybeingmeasured.Forexample,thisishowyouwoulduseatemperaturesensorinaC#program:

//setuptheinterfacekitobject
InterfaceKitIFK=newInterfaceKit();
//linkthenewinterfacekitobjecttotheconnectedboard
IFK.open("localhost",5001);
//Getsensorvaluefromanaloginputzero
intsensorvalue=IFK.sensors[0].Value;
//ConvertsensorvalueintotemperatureindegreesCelsius
doubleroomtemp=Math.Round(((sensorvalue*0.22222)‐61.11),1);
SeethePhidgetInterfaceKitUserGuideformoreinformationontheAPIandadescriptionofourarchitecture.
Table of contents
Popular Computer Hardware manuals by other brands

Delta Tau
Delta Tau PMAC2A-PC/104 Hardware reference manual

Hal Communications
Hal Communications RS2100 instruction manual

Elenco Electronics
Elenco Electronics K-23 Assembly and instruction manual

Compaq
Compaq nx9105 - Notebook PC introduction

Allen-Bradley
Allen-Bradley SLC 5/01 installation instructions

Thermaltake
Thermaltake Level 10 GT Battle Edition VN10008W2N user manual