Professional Documents
Culture Documents
August,2015Rev.I
Table of Contents
1
GuidelinesforAllSensors.....................................................................................................................5
1.1
PowerSupply................................................................................................................................5
1.2
CalibrationProcedure...................................................................................................................5
1.3
AmbientSensors...........................................................................................................................5
1.4
WideRangeSensors.....................................................................................................................5
1.5
PhysicalConfiguration..................................................................................................................5
1.6
DynamicPowerRequirements.....................................................................................................6
2 SerialFormatandConnection..............................................................................................................7
2.1
Connection....................................................................................................................................7
2.2
SerialConnection..........................................................................................................................8
2.3
ReadingFormat.............................................................................................................................8
2.3.1
CO2Measurement.................................................................................................................8
2.3.2
TemperatureMeasurement(Optional)................................................................................9
2.3.3
HumidityMeasurement(Option).......................................................................................10
2.3.4
ExampleofT,HandCO2......................................................................................................10
3 CommandSummary...........................................................................................................................11
4 OperatingModes................................................................................................................................13
4.1
Mode0CommandMode...........................................................................................................13
4.2
Mode1StreamingMode...........................................................................................................13
4.3
Mode2PollingMode.................................................................................................................13
5 OutputFields.......................................................................................................................................14
6 ZeroPointCalibration.........................................................................................................................15
6.1
ZeroinaKnownGasConcentration(recommended)................................................................15
6.2
ZeroinNitrogen..........................................................................................................................15
6.3
ZeroinFreshAir(assumedtobe400ppm).................................................................................15
6.4
FineTunetheZeroPoint.............................................................................................................16
6.5
ZeroPointAdjustment................................................................................................................16
7 AutoCalibration...................................................................................................................................16
7.1
PrincipleofOperation.................................................................................................................16
7.2
RequirementsforAutocalibration.............................................................................................17
7.3
SettingtheAutoCalibrationParameters....................................................................................17
7.4
AutocalibrationIntervals.............................................................................................................18
7.5
ReadtheAutocalibrationSettings..............................................................................................19
7.6
DisableAutocalibration...............................................................................................................19
7.7
BackgroundConcentration.........................................................................................................19
8 AltitudeCompensation.......................................................................................................................20
9 UserSettings.......................................................................................................................................22
9.1
DigitalFilter.................................................................................................................................22
9.1.1
CustomizingtheSensorResponse......................................................................................22
9.1.2
SettingtheDigitalFilter......................................................................................................23
9.1.3
ReadingtheDigitalFilterSetting........................................................................................23
9.2
UserOptionsEEPROMSettings................................................................................................23
9.2.1
SettingEEPROM..................................................................................................................24
2
9.2.2
ReadingEEPROM................................................................................................................24
9.2.3
EEPROMSettings.................................................................................................................24
9.2.4
AutocalibrationSettings(locations37)..............................................................................25
9.2.5
UserEEPROM......................................................................................................................25
10 CommandReference..........................................................................................................................26
10.1 Customization.............................................................................................................................26
10.2 Information.................................................................................................................................27
10.3 SwitchingbetweenModes..........................................................................................................28
10.4 ZeroingandCalibration...............................................................................................................28
10.5 PollingCommands......................................................................................................................30
11 AppendixA:PowerConsumption.......................................................................................................32
11.1 OperatingModesPowerLevels...............................................................................................33
11.2 StreamingMode(K1).................................................................................................................33
11.3 PollingMode(K2).......................................................................................................................33
11.4 CommandMode(K0).................................................................................................................33
11.5 CurrentProfile.............................................................................................................................34
11.6 WarmupTime............................................................................................................................35
11.7 MinimizingthePowerinStreamingandPollingModes.............................................................37
11.8 PollingandStreamingKeyPoints...............................................................................................37
11.9 MinimizingPowerusingCommandMode..................................................................................38
11.10
CommandModePowerReductionKeyPoints.......................................................................39
11.11
MinimizingPowerbyPowerCycling.......................................................................................40
11.12
PowerCyclingKeyPoints........................................................................................................41
11.13
ImplementingaUserAutoCalibrationRoutine.....................................................................42
12 AppendixB:AnalogVoltageOutput...................................................................................................43
12.1 OrderingInformation..................................................................................................................43
12.2 VoltageOutputConnections.......................................................................................................44
12.3 LoadImpedance..........................................................................................................................44
12.4 ConvertingVoltagetoConcentration.........................................................................................44
12.5 LinearityoftheVoltageOutput..................................................................................................45
12.6 NoiseontheVoltageOutput......................................................................................................46
12.7 ChangingtheFullScaleConcentration.......................................................................................46
12.8 Digitaloutputs.............................................................................................................................47
12.9 ZeroPointCalibration.................................................................................................................47
13 AppendixC:SettingtheAutoCalibrationParametersforOlderFirmware.......................................48
13.1 EnvironmentalRequirementsforAutocalibration....................................................................48
13.2 AutocalibrationusingGasLab...................................................................................................48
13.3 SettingtheAutoCalibrationParameters....................................................................................48
13.4 BackgroundConcentration.........................................................................................................49
13.5 AutocalibrationInterval.............................................................................................................49
13.6 InitialAutocalibrationperiod.....................................................................................................50
13.7 AutoCalibrationExamples..........................................................................................................51
Thisdocumentationisprovidedonanasisbasisandnowarrantyastoitssuitabilityoraccuracyforany
particularpurposeiseithermadeorimplied.NeitherCO2Meter,Inc.norGasSensingSolutionsLtdwill
acceptanyclaimfordamageshowsoeverarisingasaresultofuseorfailureofthisinformation.Your
statutoryrightsarenotaffected.Thisinformationisnotintendedforuseinanymedicalappliance,
deviceorsysteminwhichthefailureoftheproductmightreasonablybeexpectedtoresultinpersonal
injury.Thisdocumentprovidespreliminaryinformationthatmaybesubjecttochangewithoutnotice.
ThisguideappliestosoftwareversionsfromJuly2013.Forpreviousversions,pleaserefertoCOZIR
SoftwareUSERsGuideRevF
Conventions
Inthisguide:
\r\n
Isusedtoindicatecarriagereturn<CR>,linefeed<LF>characters,(0x0d,0x0a)whicharerequiredat
theendofeachstringsenttothesensor,andareappendedtoalltransmissionsfromthesensor.
Adenotesanambientmodelsensor.Wdenotesawiderangesensor.
Z 12345\r\n
Courierfixedpitchfontisusedtoshowcommandssenttothesensor,andtransmissionsreceivedfrom
thesensor.
RoHSCertification
GSSLtd.herebycertifiesthattheCOZIR,SprintIRandMISIRproductsareRoHScompliantandfulfilsthe
definitionsandrestrictionsdefinedunderDirective2011/65/EUofTheEuropeanParliamentandofthe
CouncilofJune8,2011ontherestrictionoftheuseofcertainhazardoussubstancesinelectricaland
electronicequipment(EEE).
RFI&CECertification
TheCOZIRfamilyofsensorshasbeenusedinclientandGSSproductswhichhavesuccessfullypassed
throughfullCEcertification.ThisincludesradiatednoiseimmunityasperEN6100043:2006Type1
801000MHz,3V/m,80%,1kHzAM
14002000,3V/m,80%,1kHzAM
20002700MHz,1V/m,80%,1kHzAM
Tominimiseissueswithnoiseimmunitywerecommendthefollowing:
Addadecouplingcapacitoracrossthesupplyclosetothesensor.
Ifyouareusingaswitchedmodesupply,useshieldedinductors,andlocateawayfromthe
sensor.Thisalsoappliestoothermagneticcomponentssuchaselectromagneticbuzzers.
AlwaysadheretotherespectivemanufacturersadviceonPCBlayoutforswitchedmodepower
supplydevices.
Avoidroutingpowertracksorleadsacrossthesensor.
Alteringthepowersupplywillrequirerecalibration.Werecommendcalibratingthesensorinitsfinal
installation,calibratingthesensoroutsidewithadifferentconfigurationwillyieldinconsistent
calibrationresults.
Thisreadingcanbeconfirmedwith2,000ppmcalibrationgastocheckthespanofthesensor,although
thisstepisunnecessary.
ThisreadingcanbeconfirmedwithotherhighconcentrationCO2calibrationgases,suchas50%and
25%,althoughthisstepisunnecessary.
Whenusingasensorwithoutatubecap,werecommendensuringturbulenceispresentacrossthe
sensormembrane.Thiscanbeachievedwithacalibrationchamberfeaturingarecirculationfanor
constantflowfromafixedflowregulator.
DynamicpowerrequirementsbecomeimportantwhenoperatingfromaUSBportwherethesupply
currentmightbebeingsharedoverseveralports(werecommendusingpoweredUSBhubstoavoid
thesepotentialpowerissues)orwhenplanningforlowpowerapplicationslikesolarpower.
Whenthepowerisappliedtothesensor,initiallyahigherthannormaloperatingcurrentdemandwill
occur.Thisinrushcurrentandperiodwillrelatetotheimpedanceofthepowersupplyanddevice
switchingpower.
ThemeasurementsbelowweretakenwhilstconnectedtoaUSBportviaaUSBtoUARTbridgecable,
3.3volts,streaming/poledmode,andsameintervalofmeasurementonaCOZIRsensor.
Quiescent:300uA
Measurementinterval:500mS
Measurementperiod:20ms
Measurementcurrent:30mA
RMSoperatingpower:2uW
Startupinrushcurrent50mS@60mApeaks
COZIRAmbient
GND
3.3V
Rx
Tx
N/C
N/C
N/C
N/C
Zero
Ambient
COZIRWideRange,SprintIR
MISIR
MinIR
GND
V+
0v
3.35.5V(3.3Vrecommended)
TxOUT
RxIN
Vohwillbe3VSensoroutput
Usedforconfiguration,etc.
Connectiontothesensorisviaa10way,0.1pitchconnector.Inpractice,onlythefirst4pinsare
required(GND,3V3,RxandTx)soa4wayconnectorcanbeused.
ADevelopmentkitandfreeGasLabsoftwareisavailabletoallowUSBinterfacingbetweenCOZIRTMand
SprintIRTMsensorsandaPC.ContactCO2Meter.comfordetails.
Parameter
BaudRate
Value
9600
DataBits
Parity
StopBits
8
None
1
Format
HardwareFlowControl
VoltageVoh
UART(normallyhigh)
None
3V(MISIRVoh=Vsupply)
VoltageVih
3V5V
Note:IfyouconnecttothesensorusingHyperTerminal,youmustselecttheboxSendlineendswith
linefeedsunderASCIIsetup.
Wheninitiallypowered,thesensorwillimmediatelystarttotransmitreadings(seeMode1in
OperatingModes)
Z ##### z #####\r\n
where
Z #####showstheCO2concentrationafterdigitallyfiltering
and
z #####showstheinstantaneousCO2concentrationwithoutanydigitalfiltering.
Theconcentrationisreportedinthefollowingunits
Type
Range
Units
COZIRA
MISIR
COZIRW
SprintIRW
MinIR5
COZIRW100
SprintIRW100
MinIR100
Example
Upto2%
ppm
Z00631=631ppm
Upto65%
ppm/10
Z01200=12000ppm=1.2%
Upto100%
ppm/100
Z01500=150000ppm=15%
Notethatthesameunitsmustbeusedwhensendingconcentrationinformationtothesensor(for
example,theXcommandandtheFcommand).Ifindoubt,the.Command(seebelow)willindicate
whatmultipliershouldbeappliedtotheZoutputtoconverttoppm.
Z 00842 z 00765
Sampleoutputfromasensorwithfactory
Z 00842 z 00738
settings.
Z 00842 z 00875
Z 00842 z 00858
ThisisaCOZIRA,sothereportedCO2reading
Z 00842 z 00817
is842ppm.
Z 00842 z 00839
Z 00842 z 00817
Thesecondfigureshowstheinstantaneous
Z 00842 z 00828
(unfiltered)CO2reading.
Z 00842 z 00850
SeeDigitalFilterformoredetails.
Z 00842 z 00875
Z 00842 z 00804
Notethatalloutputfromthesensorhasaleadingspace.
Thetemperaturemeasurementisreportedas:
T #####\r\n
where#####isafivedigitnumber.
ToconverttoC,subtract1000anddivideby10.
Forexample:
T 01235\r\n
Represents23.5C
NBThetemperatureandhumiditysensorisafactoryfitoption.Ifitisnotfitted,thesensorwillreturnT
01000.
9
H #####\r\n
Where#####isafivedigitnumber.
Forexample:
H 00551\r\n
Represents55.1% RH
NBThetemperatureandhumiditysensorisafactoryfitoption.Ifitisnotfitted,thesensorwillreturn
H00000.
Whenshipped,thesensordefaultoutputisCO2only.Tooutputtemperature,humidityandCO2,send
M4164\r\n(seeOutputFields).Theoutputformatwillhavetheform:
10
3 Command Summary
Forcompletedetailsofthecommandsandtheircorrectusage,pleaserefertotheCommand
Reference.
IMPORTANT:
Allcommandsmustbeterminatedwithacarriagereturnandlinefeed<CR><LF>.Inthisdocument,this
isshownas\r\n.
Commandswhichtakeaparameteralwayshaveaspacebetweentheletterandtheparameter.
Thesensorwillrespondwitha?ifacommandisnotrecognized.Thetwomostcommoncausesare
missingspacesormissing<CR><LF>terminators.
Command
Use
Example
Response
Comments
A###\r\n
a\r\n
SetthedigitalFilter
Returnthedigital
filtersetting
FineTunethezero
point
Zeropoint
calibrationusing
freshair.
Returnmostrecent
humidity
measurement
Selectsthe
operatingmode
Setstheoutput
fields
Setsauser
configurablefieldin
EEPROM
Readsauser
configurablefield
fromEEPROM
Returnmostrecent
fields
Setsthespan
calibrationvalue
Returnthespan
calibrationvalue
Returnthemost
recenttemperature
measurement
Zeropoint
calibrationusing
nitrogen.
Manualsettingof
thezeropoint.
Zeropointsetting
usingaknowngas
calibration
A16\r\n
a\r\n
A00016\r\n
a00016\r\n
SeeUserSettings
SeeUserSettings
F410400\r\n
F33000\r\n
SeeZeroPointCalibration
G\r\n
G33000\r\n
SeeZeroPointCalibration
H\r\n
H00552\r\n
K1\r\n
K00001\r\n
=55.2%intheexample.
Humiditysensingisafactory
fitoption.
SeeOperatingModes
M6\r\n
M00006\r\n
SeeOutputFields
P110\r\n
P0000100010\r\n
SeeUserSettings
p10\r\n
p0001000001\r\n
SeeUserSettings
Q\r\n
SeeCommandReference
S8192\r\n
S08192\r\n
SeeSpanCalibration
s\r\n
s08192\r\n
SeeSpanCalibration
T\r\n
T01225\r\n
U\r\n
U33000\r\n
22.5Cintheexample.
Temperaturesensingisa
factoryfitoption.
SeeZeroPointCalibration
u32997\r\n
u32997\r\n
SeeZeroPointCalibration
X2000\r\n
X32997\r\n
SeeZeroPointCalibration
F##########\r\n
G\r\n
H\r\n
K#\r\n
M#####\r\n
P######\r\n
p###\r\n
Q\r\n
S#####\r\n
s\r\n
T\r\n
U\r\n
u#####\r\n
X#####\r\n
11
Command
Use
Example
Response
Comments
Y\r\n
Returnfirmware
versionandsensor
serialnumber
Returnthemost
recentCO2
measurement.
Autocalibration
configuration
Returnthe
multiplierrequired
toconverttheZ
outputtoppm
Return
configuration
information.
Y\r\n
Returnstwolines
SeeCommandReference
fordetails
Z\r\n
Z01521\r\n
1521ppmintheexample
@1.08.0\r\n
@1.08.0\r\n
.\r\n
.00100\r\n
SeeAutocalibrationfor
details
Multiplyby100inthe
example
*\r\n
Z\r\n
@#.##.#\r\n
.\r\n
*\r\n
SeetheCommand
Referencefordetails
AllcommunicationsareinASCIIandareterminatedbycarriagereturn,linefeed(ASCIIcharacters13and
10).Thisdocumentusestheprotocol\r\ntoindicatethecarriagereturnlinefeed.
Allresponsesfromthesensor,includingmeasurements,havealeadingspace(ASCIIcharacter32).
Thecharacter#representsanASCIIrepresentationofanumericcharacter(09).
Notethatthereisaspacebetweenthefirstletterandanyparameter.Forexample,theXcommand
readsXspace2000carriagereturnlinefeed.
Notethatallsettingsarestoredinnonvolatilememory,sothesensoronlyhastobeconfiguredonce.
Itshouldnotbeconfiguredeverytimeitispoweredup.
12
4 Operating Modes
TheCOZIR,SprintIR,MISIRandMinIRsensorscanbeoperatedinthreedifferentmodes.Users
canswitchbetweenthemodesusingtheKcommand.
4.1 Mode 0
Command Mode
Thisisprimarilyintendedforusewhenextractinglargerchunksofinformationfromthesensor(for
exampleusingtheYand*commands).
Inthismode,thesensorisstoppedwaitingforcommands.Nomeasurementsaremade,andthesensor
willrunthroughawarmupcycleafterexitingthiscommand.Thereisnolatencyincommandresponses.
Thepowerconsumptionislessthan3.5mWasnomeasurementactivitytakesplace.Commandswhich
reportmeasurementsoralterthezeropointsettingaredisabledinmode0.
Mode0isNOTretainedafterpowercycling.Thesensorwillalwayspowerupinstreamingorpolling
mode,whicheverwasthemostrecentlyused.
4.2 Mode 1
Streaming Mode
Thisisthefactorydefault.MeasurementsarereportedtwicepersecondforCOZIR,MinIRandMSIR
sensorsand20timespersecondforSprintIRsensors.Commandsareprocessedwhenreceived,except
duringmeasurementactivity,sotheremaybeatimedelayofupto100mSinrespondingtocommands.
Thepowerconsumptionis3.5mW(assumingonefieldofinformationistransmitted,andthereisno
temperatureandhumiditysensor).
4.3 Mode 2
Polling Mode
Inpollingmode,thesensoronlyreportsreadingswhenrequested.Themeasurementcyclecontinuesin
thebackground,buttheoutputstreamissuppressed.Thepowerconsumptiondependsonthe
frequencyofpolling,butisapproximatelythesameasthestreamingmodepowerconsumption.
Notethatthesensorwillpowerupinthemodelastused.IfitwaslastusedinK0mode,itwillpowerup
ineitherK1orK2mode,dependingonwhichwasmostrecentlyused.
InPollingMode,measurementscanbeaccessedusingthepollingcommandsH,L,Q,TandZ(see
CommandReference).
13
5 Output Fields
TheCOZIRsensorcanbeconfiguredtooutputuptofivefieldsofinformation.Typically,theonlyfields
ofinterestaretheCO2concentration,Temperature(iffitted)andHumidity(iffitted).
Thisallowsuserstocustomizetheoutputstringtransmittedbythesensor.Uptofivevaluescanbe
transmittedinthestring.Theformatisalwaysthesame:eachfieldisidentifiedbyasinglecharacter,
followedbyaspace,followedbythefivedigitnumberindicatingthevalueoftheparameter.
TheoutputfieldscanbesetbysendingacommandoftheformatM 12345\r\nwhere12345
representsamaskvaluewhichdefinestheoutputfields.
Themaskvalueiscreatedbyaddingthemaskvaluesfortheparametersrequired(seetablebelow).
Thesensorwilloutputamaximumoffivefields.Ifthemasksettingrepresentsmorethanfivefields,
onlythefirstfive(thosewiththehighestmaskvalues)willbeoutput.
SprintIRsensorshavealimitedtimetotransmitinformation,sonomorethantwofieldsshouldbe
selectedforoutput.
Parameter
Field
Mask
Comments
Identifier Value
Reserved
Reserved
Reserved
Humidity
32768
16384
8192
4096
Ddigitallyfiltered
2048
Dunfiltered
Reserved
ZeroSetPoint
SensorTemperature
(unfiltered)
Temperature
h
V
1024
512
256
128
64
LEDSignal(digitally
filtered)
LEDSignal(unfiltered)
32
16
SensorTemperature
(filtered)
CO2Output(Digitally
Filtered)
CO2Output(not
filtered)
Reserved
Reserved
Reserved
Reserved
ReportsthehumidityoutputoftheTemperatureandHumidity
Sensor(ifFitted).
ReportsavaluerelatedtothenormalizedLEDsignalstrength
(smoothed)
ReportsavaluerelatedtothenormalizedLEDsignalstrength
Reserved
ReportsavaluerelatedtothenormalizedLEDsignalstrength
Reportsavaluewhichvariesinverselywiththesensor
temperature.
ReportsthetemperatureoutputoftheTemperatureand
HumiditySensor(ifFitted).
ReportsavaluewhichgivesanindicationoftheLEDsignal
strength(smoothed)
ReportsavaluewhichgivesanindicationoftheLEDsignal
strength.
Reportsavaluewhichvariesinverselywiththesensor
temperature.(smoothed)
DigitallyfilteredCO2reading
InstantaneousCO2reading
Reserved
NotethatmostfieldsareforadvanceduseonlyandrequirespecificguidancefromGSSengineeringfor
theircorrectinterpretationanduse.Measurementfieldareindicatedinbold.
14
Forexample,tooutputthetemperature,humidityandCO2measurements,send:
M 4164\r\n
Theoutputstringwillthenbe:
H 12345 T 12345 Z 00010\r\n
Inallcases,thebestzeroisobtainedwhenthegasconcentrationisstableandthesensorisata
stabilizedtemperature.
send:
X 2000\r\n
response:
X 32950\r\n
send:
U\r\n
response:
U 32950\r\n
15
Placethesensorinafreshairenvironmentandallowtimeforthesensortemperaturetostabilize,and
forthefreshairtobefullydiffusedintothesensor.
SendthecommandG\r\n
Thesensorwillrespondwithanechoofthecommandandthenewzeropoint.
Forexample,
send:
G\r\n
response:
G 32950\r\n
Thecommandtakestwoparameters,separatedbyaspace.Thefirstparameteristhereadingreported
bythesensor.Thesecondisthecorrectedreading.Bothparametersmustbeinthesameunitsasthe
sensoroutput(seeReadingFormat)
Thesensorwillrespondwithanechoofthecommandandthenewzeropoint.
Forexample,
send:
F 400 380\r\n
response:
F 32950\r\n
Inthisexample,thesensorzeropointwouldbecorrectedsothatareadingof400ppm,wouldnowbe
reportedas380ppm.
7 AutoCalibration
7.1 Principle of Operation
COZIRsensorsarefullycalibratedpriortoshippingfromthefactory.Overtime,thezeropointofthe
sensorneedstobecalibratedtomaintainthelongtermstabilityofthesensor.
Inmanyapplications,thiscanhappenautomaticallyusingthebuiltinautocalibrationfunction.
16
CO2Concentration(ppm)
Thistechniquecanbeusedinsituationsinwhichsensorswillbeexposedtotypicalbackgroundlevels
(400450ppm)atleastonceduringtheautocalibrationperiod.Forexample,manybuildingswilldrop
quicklytobackgroundCO2levelswhenunoccupiedovernightoratweekends.Theautocalibration
functionusestheinformationgatheredattheseperiodstorecalibrate.
OneWeek>
Thisrecordingfromasensorshowsatypicaloneweekrecordinginanofficeenvironment.Theauto
calibrationfunctionusesthelowpoint(circled)andusesittorecalibratethezeropoint.
ContinuouslyPowered
Theautocalibrationinformationisdeletedwhenthesensorisswitchedoff.Thisensuresthateach
installationisunaffectedbyanyprevioushistoryofthesensor.Forautocalibrationtofunction,itmust
bepoweronforthewholeoftheautocalibrationperiod.
AutoCalibrationInterval
Thisdetermineshowoftentheautocalibrationtakesplace.
BackgroundConcentration
17
Typically400450ppm.Thisisthelevelthesensorwilluseasbackground.
InitialAutocalibrationInterval
Itispossibleforthefirstautocalibrationtotakeplacemorequicklythantheregularautocalibration
event.Thiscanbeusefultostabilizequicklyafterinstallation.
Notethattheautocalibrationtimersareresetwhenthepowertothesensorisinterrupted.Onpower
on,thesensorwillalwaystimeaninitialautocalibrationintervalfirst,thensettleintotheregular
autocalibrationcycle.
Theregularautocalibrationtimerisresetautomaticallyiftheusercalibratesthesensorusingthe
U,G,X,Forucommands.
Beforesettingtheautocalibrationparameters,pleasenotethefollowing:
Beforealteringtheautocalibrationparameters,switchthesensorintocommandmode:
send
K0<CR><LF>
Thisstopsthemeasurementprocessinthesensor.
Allcommandsmustbeterminatedwith\r\n(carriagereturn,linefeed).NBHyperTerminaldoes
notaddthelinefeedcharacterasstandard.TheASCIISetupmustbeconfiguredtoappendline
feeds.
Tosettheautocalibrationintervals,thecommandstructureis
@initialintervalregularinterval\r\n
Whereboththeinitialintervalandregularintervalaregivenindays.Bothmustbeenteredwitha
decimalpointandonefigureafterthedecimalpoint.
Forexample
send:
@ 1.0 8.0\r\n
response:
@ 1.0 8.0\r\n
Willsettheautocalibrationintervalto8days,andtheinitialintervalto1day.
Notethatthereisaspacebetweenthe@andthefirstnumber,andaspacebetweenthetwonumbers.
Inhex,theexampleabovereads
4020312E3020382E300D0A
18
send:
@ \r\n
response:
@ 1.0 8.0\r\n
Iftheautocalibrationisenabled,thesensorwillrespondwiththeformataboveshowingtheinitialand
regularautocalibrationintervals.Iftheautocalibrationisdisabled,thesensorwillrespondwith
send:
@ \r\n
response:
@ 0\r\n
send:
@ 0\r\n
response:
@ 0\r\n
ie,@followedbyaspacefollowedbyazeroterminatedwith0x0d0x0a
Tosetthis,send
P 8 x\r\n
P 9 y\r\n
wherexandydependontheconcentrationyouwanttoset.
Concentration
x
Y
380
1
124
400
1
144
425
1
169
450
1
194
Thisisstoredasatwobytevalue,thehighbytebeinginlocation8andthelowbyteinlocation9.
Thevaluerepresentstheconcentration.
19
Tocalculateothervalues,
x=int(concentration/256)
y=theremainderafterdividingconcentration/256
8 Altitude Compensation
Important
ThisfeaturewasintroducedinsensorsmanufacturedafterJuly2013usingfirmwareversionAL17or
higher.ThefirmwareversioncanbeidentifiedbysendingtheYor*command.
Altitudecompensationappliesapermanentcorrectiontothesensorresponse,soshouldonlybeused
whenitisknownthatthesensorwillbeoperatingataltitudepermanently.
NDIRgassensors,suchastheCOZIR,SprintIRandMISIRfamilyofsensors,detecttheconcentrationof
gasbymeasuringthedegreeoflightabsorptionbythegasanalysis.Thedegreeoflightabsorptionis
thenconvertedintoaconcentrationreportedbythesensor.
Theabsorptionprocessispressuredependent,sothatachangeinpressurewillcauseachangeinthe
reportedgasconcentration.Asthepressureincreases,thereportedgasconcentrationalsoincreases.
Asthepressuredecreases,thereportedconcentrationdecreases.
ThiseffecttakesplaceatamolecularlevelasiscommontoallNDIRgassensors.
Innormaluse,thereadingwillvaryby0.1%ofreadingforeachmbarchangeinbarometricpressure(the
sensorarecalibratedat1013mbar).
Ifthesensorisinstalledatanelevatedaltitude,themeanbarometricpressurewillbelowerthan
1013mbar.Itispossibletoconfigurethesensortocorrectforthiseffect,bysettingthealtitudewhen
installing.Thiswillapplyapermanentcorrectiontotheoutputofthesensor,dependingonthealtitude
settingselected.
Toapplythiscorrection,
1) Selecttheappropriatecodefromthetablebelow(intermediatevaluescanbeinterpolated)
2) SendtheS ####\r\ntothesensor,where####isthecodefromthetablebelow.
Forexample,tocorrectthesensorforpermanentinstallationat305melevation,
send:
S 8494\r\n
response:
S 08494\r\n
20
Altitude(ft.)
1000
0
1000
2000
3000
4000
5000
Altitude(m)
305
0
305
610
915
1219
1524
BarometricPressure(mbar)
1050
1013
976
942
908
875
843
Code
7889
8192
8495
8774
9052
9322
9585
Thecurrentsettingcanbedeterminedbysendingalowercases:
send:
s\r\n
response:
s 08494\r\n
21
9 User Settings
9.1 Digital Filter
9.1.1 Customizing the Sensor Response
TheCO2measurementispassedthroughadigitalfiltertoconditionthesignal.Thecharacteristicsof
thefiltercanbealteredbytheusertotunethesensorperformancetospecificapplications.
Thefilteroperatesasalowpassfilterincreasingthefilterparameterreducesmeasurementnoise,but
slowstheresponse.Thereisatradeoffbetweennoise(resolution)andspeedofresponse.
Thefiltercanbesettoavaluebetween1and65535.Settingslargerthan64arenotrecommendedfor
normaluse.Alowvaluewillresultinthefastestresponsetochangesingasconcentration,ahighvalue
willresultinaslowerresponse.Notethattheresponseisalsodeterminedbythediffusionrateintothe
sensor.Thedefaultsettingis32.
Thischartshowstheeffectofchangingthefiltersetting:
SensorNoise
SensorNoisevsFilterSetting
FilterSetting
Increasingthefiltersettinghasabeneficialimpactonnoise,soimprovesthesensorresolution.Italso
slowsthesensorresponsetotransients.ThiscanbeusedtoimprovethedetectionofaverageCO2
conditions.Inbuildingcontrol,forexample,afastresponsetobreathingnearthesensorisundesirable.
Ifthetransientresponseisimportanteitherforspeedofresponseorbecausetheshapeofthetransient
isrequired,alowfiltersettingshouldbeused.
Thefollowingchartshowsthesametransienteventcaptureusingafiltersettingof4,andusingafilter
settingof32.
22
ReportedCO2
EffectofFilteronTransientResponse
Filter=4
Filter=32
Formostapplications,afiltersettingof32isrecommended.
send:
A 32\r\n
response:
A 00032\r\n
Ifthefilterissettozero,asmartfiltermodewillbeusedinwhichthefilterresponseisalteredtosuit
theprevailingconditions.Thisisusefulifthereisacombinationofsteadystateconditions,withsome
periodsofrapidlychangingconcentrations.
a\r\n
a 00032\r\n
23
P ### ###\r\n
Wherethefirstparameteristheaddress,andthesecondisthevalue.
Notethattwobytevaluesmustbesetonebyteatatime.
Forexample,tochangethedefaultvalueoftheambientgasconcentrationusedforambientcalibration
(i.e.theassumedCO2concentrationinfreshair)to380ppm,send
send:
P 10 1\r\n
response:
P 00010 00001\r\n
send:
P 11 124\r\n
response:
P 00011 00124\r\n
Notethattwobytevaluesmustbereadonebyteatatime.
Forexample,toreadthevalueoftheambientgasconcentrationusedforambientcalibration(iethe
assumedCO2concentrationinfreshair)
send:
p 10\r\n
response:
p 00010 00001\r\n
send:
p 11\r\n
response:
p 00011 00124\r\n
Location
Name
Purpose
DefaultValue
0
AHHI
Reserved
0
1
ANLO_
Reserved
0
2
ANSOURCE Reserved
0
24
ACINITHI
4
5
ACINITLO
ACHI
6
7
8
ACLO
ACONOFF
ACPPMHI
9
10
ACPPMLO
AMBHI
11
12
AMBLO
BCHI
13
200231
BCLO
AutocalibrationPreload.Thispreloadsthe
autocalibrationtimersothatthefirstautocalibration
occursafterashortertime.
Lowbyteofabove.
AutocalibrationInterval.Setsthetimeinterval
betweenautocalibrations.
Lowbyteofabove.
SwitchesAutocalibrationON/OFF
AutocalibrationBackgroundConcentration.This
determineswhatbackgroundCO2levelisassumed
forautocalibration.
Lowbyteofabove.
AmbientConcentration(forGcommand).This
determineswhatbackgroundCO2levelisassumed
forambientcalibrationusingtheGcommand.
Lowbyteofabove.
Buffercleartime.Thiswillclearanyincomplete
commandsfromtheserialbufferafterafixedperiod
ofinactivity.Thetimeisinhalfsecondincrements.
Lowbyteofabove.
UserEEPROM
87
192
94
128
0
1
194
1
194
0
8
255
E.g.tostorethenumber42inthefirstuserEEPROMlocation:
send:
P 200 42\r\n
response:
P 00200 00042\r\n
andtoreadit
send:
p 200\r\n
response:
p 00200 00042\r\n
NotethattheEEPROMisonlyguaranteedfor100,000writecycles.
25
10 Command Reference
This gives the complete command set for the COZIR, SprintIR and MISIR sensors and illustrates
use of some of the more commonly used options.
Key points to note are:
In all cases, commands are terminated with a carriage return, line feed (\r\n).
Commands are case sensitive.
The commands use all use ASCII characters. Each command lists the ASCII letter and
includes the hex code for avoidance of doubt.
Always check for a correct response before sending another command.
If a command is unrecognized, the sensor will respond with a ?
WARNING
This document is provided to give a complete reference of the command set and outputs from the
COZIR sensor. It is intended for advanced users only. If in doubt, please contact CO2Meter.com
prior to use.
10.1 Customization
ACOMMAND(0x41)
Example:
USERCONFIGURATION
A 128\r\n
Description:
Set the value for the digital filter.
Syntax:
ASCII character 'A', SPACE, decimal, terminated by 0x0d 0x0a (CR & LF) Response:
A 00032\r\n
aCOMMAND(0x61)
INFORMATION
Example:
a\r\n
Description:
Syntax:
Response:
MCOMMAND(0x4D)
USERCONFIGURATION
Example:
M 212\r\n
Description:
Syntax:
Response:
26
PCOMMAND(0x50)
USERCONFIGURATION
Example:
P 10 1\r\n
Description:
Syntax:
Response:
pCOMMAND(0x70)
USERCONFIGURATION
Example:
p 10\r\n
Description:
Syntax:
Response:
10.2 Information
YCOMMAND(0x59)
INFORMATION
Example:
Y\r\n
Description:
Syntax:
Response:
NB This command returns two lines split by a carriage return line feed, and terminated by a carriage
return line feed. This command requires that the sensor has been stopped (see K command).
*COMMAND(0x59)
Example:
INFORMATION
*\r\n
Description:
Returns a number of fields of information giving information about the sensor
configuration and behavior.
Syntax:
ASCII character '*', terminated by 0x0d 0x0a (CR & LF)
Response:
Contact GSS for details.
.COMMAND(0x2E)
Example:
INFORMATION
.\r\n
Description:
Returns a number indicating what multiplier must be applied to the Z or z output
to convert it into ppm.
27
Syntax:
Response:
KCOMMAND(0x4B)
Example:
Description:
Syntax:
Response:
USERCONFIGURATION
K 1
Switches the sensor between the operating modes.
ASCII character "K", SPACE, followed by the mode number, terminated by 0x0d
0x0a (CR & LF).
K 1\r\n
(the number mirrors the input value).
10.4 Zeroing and Calibration
Seeexamplesofeachofthezeroandcalibrationcommandsinthefollowingsection.
UCOMMAND(0x55)
CALIBRATIONUSEWITHCARE
Example:
U\r\n
Description:
Syntax:
Response:
GCOMMAND(0x47)
CALIBRATIONUSEWITHCARE
Example:
G\r\n
Description:
Syntax:
Response:
F COMMAND (0x46)
Example:
CALIBRATIONUSEWITHCARE
F 410 390\r\n
Description:
Calibrates the zero point using a known reading and known CO2 concentration.
Syntax:
ASCII character 'F' then a space, then the reported gas concentration then a
space then the actual gas concentration.
Response:
F 33000\r\n
(the numbers are variable).
28
XCOMMAND(0x58)
CALIBRATIONUSEWITHCARE
Example:
X 1000\r\n
Description:
Syntax:
Response:
Calibrates the zero point with the sensor in a known concentration ofCO2.
ASCII character 'X' then a space, then the gas concentration.
X 33000\r\n
(the number is variable).
SCOMMAND(0x53)
CALIBRATIONUSEWITHCARE
Example:
S 8192\r\n
Description:
Syntax:
Response:
sCOMMAND(0x73)
Example:
INFORMATION
s\r\n
Description:
Reports the Altitude Compensation value in EEPROM. See Altitude
Compensation.
Syntax:
ASCII Character 's' terminated by 0x0d 0x0a (CR & LF)
s 8193\r\n
Response:
uCOMMAND(0x75)
USEONLYWITHCO2Meter.comGUIDANCE
Example:
u 32767\r\n
Description:
Syntax:
Response:
NB For advanced use only. Contact GSS before using this command.
There are three variants of the autocalibration configuration command:
@COMMAND(0x40)
INFORMATION
Example:
@\r\n"
Description:
Syntax:
Response:
29
@COMMAND(0x40)
CALIBRATIONUSEWITHCARE
Example:
@ 0\r\n
Description:
Syntax:
Response:
@COMMAND(0x40)
CALIBRATIONUSEWITHCARE
Example:
@ 1.0 8.0\r\n
Description:
Syntax:
Response:
10.5 Polling Commands
HCOMMAND(0x48)
Example:
INFORMATION
H\r\n
Description:
Reports the humidity measurement from the temperature and humidity sensor (if
fitted). Divide by 10 to get the %RH
Syntax:
ASCII Character 'H', terminated by 0x0d 0x0a (CR & LF)
H 00551\r\n
Response:
TCOMMAND(0x54)
Example:
INFORMATION
T\r\n
Description:
Reports the humidity measurement from the temperature and humidity sensor (if
fitted). Subtract 1000 and divide by 10 to get the temperature in C.
Syntax:
ASCII Character 'T', terminated by 0x0d 0x0a (CR & LF)
Response:
T 01224\r\n
ZCOMMAND(0x5A)
INFORMATION
Example:
Z\r\n
Description:
Syntax:
Response:
30
QCOMMAND(0x51)
Example:
INFORMATION
Q\r\n
Description:
Reports the latest measurement fields as defined by the most recent M
command.
Syntax:
ASCII Character 'Q', terminated by 0x0d 0x0a (CR & LF)
H 12345 T 12345 Z 00010\r\n
Response:
31
Therearethreedistinctwaystooperatethesensor:
ContinuousPower,ContinuousMeasurement(3mW3.5mW)
COZIRsensorsaredesignedforcontinuouspoweroperation.Thetypicalpowerconsumptionis3mWin
pollingmode,and3.5mWinstreamingmode.Inthesemodes,thesensorisconstantlymeasuring,two
freshmeasurementspersecond(COZIR,MSIR,MinIR)or20timespersecond(SprintIR).Instreaming
mode,allmeasurementsaretransmitted.Inpollingmode,measurementsareonlytransmittedwhen
requested.
ContinuousPower,InterruptedMeasurement(powerdependsonusage)
Switchingtoalowpowercommandmode(150w3)betweenmeasurementsgreatlyreducesthe
averagepowerconsumption,thoughwithsomelossoffunctionality.
PowerCycledOperations(powerdependsonusage)
Shortstartupallowspowercyclingwhichgivesthelowestpowerconsumption.Thereissomelossof
functionalitywhichmustbeaddressedbytheuser.
Operation
Measurements
Power
Autocalibration
Consumption1
Available
Streaming
2/20persec.
3.5mW
Yes
Polling
2/20persec.
3.0mW
Yes
CommandMode ondemand
270W*3
Yes,butwith
modification.
PowerCycling
ondemand
120W*
UserRoutine
*
Powerconsumptionbasedon1readingevery5minutes,sensorpowered for10sperreading
32
33
Eachmeasurementcyclelasts30ms40msdependingonthenumberofoutputfieldsbeingtransmitted.
Betweenmeasurementscycles,thepowerconsumptionreducesto150W3.
34
TheCOZIRwarmuptimecomprisestwoparts;startupcycle,andsignalprocessingdelay.
Thestartupcycletakes1.2s,duringwhichtimethesensorwilluseapproximately6mJofenergy.The
firstreadingsaretransmittedbythesensorinstreamingmodeimmediatelyfollowingthestartupcycle.
Thesignalprocessingdelaydependsonusersettings.Thesensorhasalowpassdigitalfilterwhich
smoothestheCO2reading(reportedinthefilteredCO2outputZ).Ittakessometimeforthedigitalfilter
toreachafinalvalue.Thistimedependsonthedigitalfiltersetting,whichisuserconfigurable.Toset
thedigitalfilter,usetheAcommand:
A#\r\n
where#isthedigitalfiltersetting(seeCOZIRSoftwareUsersGuideformoreInformation).
Thewarmuptimemustbelongenoughtoallowthefilterresponsetoreachafinalvalue.Therequired
warmuptimeinsecondsisapproximatelyequaltothefiltervalue.
FilterSetting
WarmupTime
1
1.2s
2
3s
4
5s
8
9s
16
16s
32
32s
Thegraphshowsatypicalstartupfromcommandmodeorfrompowerup(thereisnodifference).In
thiscase,thedigitalfiltervaluewas8.Inthiscase,thedigitalfiltersettingwas8.
Thechoiceoffiltersettingisatradeoffbetweenreducingnoiseandreducingpower(higherfilter=
lowernoise,lowerfilter=shorterwarmup).
35
Theseshowsthesamesensordata,butwithfiltersettingsof1,4and8,andthecorrespondingwarmup
period.ThefiguregraphedistheCO2readingreportedbythesensorattheendofthewarmupperiod.
36
Additionalfeatureswillincreasethepowerconsumption,forexample,temperatureandhumidity
measurement,voltageoutput,oradditionaloutputfields.Theseshouldbeavoidedinlowpower
applications.
Usepollingmodetominimizetransmissiontime.Thiswillreducetheaveragepower
consumptionbyapproximately0.5mW,dependingonthepollingfrequency.
EnsurethatonlynecessaryoutputfieldsareturnedontominimizethemeasurementTxtime.
UsetheMcommandtoconfiguretheoutputfields.ToreturnthefilteredCO2valueonly
(recommended)sendM4\r\ntothesensor.Eachadditionaloutputfieldwilladdapproximately
0.25mWtothetotalpowerconsumption.
Usethedigitaloutputfromthesensoronly.Thevoltageoutput(optionalfit)increasesthe
powerconsumption.
ThetemperatureandHumiditysensor(optionalfit)increasesthepowerconsumptionby
approximately1mW.
Thelowestachievablepowerusingcontinuousmeasurementsisapproximately3mW.
Allfunctionalityispreservedandthesensorwillbefullyresponsivetocommandsatalltimes.
37
ThisissimpletoimplementusingtheCOZIRcommands:
send
response
K2\r\n
K00002\r\n
Switchtopollingmode
waitdseconds
send
response
Z\r\n
Z00610\r\n(eg)
send
response
K0\r\n
K00000\r\n
waitnseconds
Waitforthewarmup
period.
RequesttheCO2
reading
Switchtocommand
mode
Waituntilthenext
readingisrequired.
where:
disthewarmupdelay
and
n+disthegapbetweenmeasurements
Thismethodoffersmuchloweraveragepowerthanconventionalpowerupmodes,thoughwithsome
lossoffunctionality.
38
Whenexitingfromcommandmode,thesensormustrunthroughthesamewarmupperiodasa
newlypoweredsensor.Seethewarmupsectionfordetailsandrecommendedtimes.
Noneofthezeroingfunctionsareoperationalincommandmode.
Theautocalibrationprocessistimedbymeasurementcycles.Asmeasurementcyclesare
suspendedincommandmode,theautocalibrationperiodmustbeadjustedtotakeaccountof
thedecreasednumberofmeasurements.Forexample,ifthesensorisusedincommandmode,
andpoweredupforonly10severy5minutes,theautocalibrationcounterwillrun30xslower
thaninstreamingorpollingmode,sotheautocalibrationperiodshouldbeadjustedtoreflect
that.SeeCOZIRApplicationNoteAutoCalibrationfordetailsoftheautocalibrationsetup.
Thepowerlevelwilldependonthedutycycleofthesensor.Itwilltypicallybepossibleto
achievelevelsoflessthan300W.
Thedigitalfilterwillretainthelastreadingwhenswitchingintocommandmode,andusethisas
itsinitialvaluewhenthesensormeasurementisswitchedonagain(filteredoutputonly).If
thereisaverylargestepchangebetweenreadings,thefiltermaynotreachafinalstablevalue
inonewarmupcycle.Userscanavoidthispotentialissuebyimplementingtheirownsignal
conditioningusingtheunfiltered(z)outputfromthesensor.
ThesensorwillalwayspowerupinStreamingorPollingmode(whicheverwasthelastselected).
Itwillnotpowerupincommandmodethishastobeselectedbytheuser.
39
Thetypicalimplementationis:
Selectpollingmodeandset
filtertoappropriatevalue.
Poweronthesensor
PowerOnthesensor
Waitforthewarmup
waitdseconds
period.
send:
Z\r\n
RequesttheCO2
response:
Z00610\r\n(eg)
reading
Poweroffthesensor
Poweroffthesensor
Waitnseconds
Waituntilthenext
readingisrequired.
40
Ensurethatthesensorisconfiguredforpollingmode.
Ensurethatthefiltersettingmatchestheplannedpoweronperiod.
COZIRsensorswillstoreconfigurationinformationinnonvolatilememory,sothisdoesnot
needtoberefreshedwhenthesensorispoweredup.
Oneachpowerup,thesensormustrunthroughthesamewarmupperiod.Seethewarmup
sectionfordetailsandrecommendedtimes.
Theautocalibrationisdisabledwhenthesensorispowereddown,andtheautocalibration
timersareresetonpowerup.Usersmustimplementtheirownautocalibrationroutinewhen
powercycling.SeeImplementingaUserAutocalibrationRoutine.
Thepowerlevelwilldependonthedutycycleofthesensor.
Thepowerswitchtothesensormustensurethatthesensorpowersupplyrequirementscanbe
met,inparticular,thepeakcurrentrequirement(33mA)andminimumvoltage(3.2V).
41
Itispossibletocalibratethesensorusingthestandardzeroingcommands.
Inmanycases,itispreferabletoimplementaversionofautocalibrationwhichrecalibratesthesensor
zeropointusingtheCO2backgroundofapproximately400ppmtorecalibratethesensorzeropoint.This
reliesonthesensorbeingexposedtofreshairatleastonceduringthecalibrationinterval.Formany
applications,thisconditionismetovernightorduringweekendswhenbuildingsarelittleoccupied.
TheCOZIRsensorhasazerocalibrationoptiondesignedtoallowuserstoimplementanautocalibration
routinewhenthesensorisnotcontinuouslypowered.
First,selectacalibrationperiod.Thechoiceofperiodshouldbelongenoughtoensureexposuretofresh
air,soshouldusuallybenolessthanoneweek.
Next,selectthevalueofbackgroundCO2expected.COZIRsensorshaveadefaultof400ppm,butusers
canselectanyvalue.
NowreviewthesensoroutputduringthecalibrationperiodandnotethelowestCO2valuerecorded.
Thisisassumedtobeambientlevels.
Finally,sendacorrectiontothesensortoinstructitthatthislevelshouldbecorrectedtoreadthe
backgroundCO2level.ThisusestheCOZIRFcommand.
ThiscommandhastheformatF#####*****\r\n
Where#####isthereadingdisplayedbythesensor,and*****isthecorrectedreading.
Forexample,ifthelowestreadingmeasuredover3weekswas415ppm,andtheuserwantstocorrect
thattoread400ppm,thecommandwouldbeF415400\r\n.
Notethatthiscommandcanonlybeusedonceonasetofhistoricreadings.TorepeattheFcommand,a
newsetofreadingsmustbegenerated.
Notes
1
PowermeasurementsaretypicalvaluesforsensorsmeasuredatGSSatroomtemperature.Unlessotherwise
stated,powerlevelsassumethateachmeasurementcomprisesaCO2measurementonly.Theoptionalhumidity
sensorandvoltageoutputwillincreasethepowerconsumption.Thepowerconsumptionwillincreasewith
temperature.
2
Throughoutthisdocument,\r\nisusedtosignifytheASCIIcharactersCarriageReturnandLinefeed,0x0d,0x0a.
3
Powerlevelsincommandmodevarywithtemperature.Thisisduetoincreasedcurrentinsomeoftheindividual
components.Thepowerlevelat50Ccanbe2xthepowerlevelat20C
42
The voltage output is derived from the digital output (it is a PWM driven).
A digital interface is required to configure the COZIR.
Even if the end application will use only a voltage interface, we recommend that
designers use a digital interface (eg GSS USB to serial cable) when evaluating the
sensor.
The voltage output is for CO2 measurement only. Temperature and humidity outputs
(optional) are only available as digital (UART) outputs.
The COZIR range of sensors can be fitted with an optional voltage output in addition to the standard
digital (UART) output. This is available to facilitate interfacing to legacy systems which can only handle a
voltage input. GSS recommends that a digital sensor is used wherever possible.
The voltage output is proportional to the CO2 concentration.
Key points to note are:
The maximum voltage output (full scale) will always be that applied to pin 3 of the 10 way
connector.
Care must be exercised in selecting the load resistance connected between the voltage output
(pin 9) and GND (pin 1)
The voltage output pin (pin 9) is an output pin only. Take care not to feed any voltage/current into
the voltage output pin.
The voltage output is a factory fit option. It is not present unless requested.
The supply voltage should be 3.3V+/- 0.1V. The sensor will continue to operate up to 5V,
however the voltage output is valid only when the supply is in the range 3.2V to 3.4V.
AllMISIRsensorshaveavoltageoutput.ThisoperatesinthesamewayastheCOZIRvoltageoutput,
exceptthatthefullscalevoltageis3V,regardlessofthesupplyvoltage.
43
COZIRASeriesConnections
COZIRWSeriesConnections
Load Resistance
4k7
10k
100k
500k
Loading Error
3%
1.5%
0.1%
0.03%
ToconvertavoltageintoaCO2concentration:
Concentration=FS*Vout/Vsupply
Where
FS=FullScaleConcentration
44
Vout=voltageoutput(atpin9)
Vsupply=supplyvoltage(atpin3)
AllvoltagesrelativetoGND(pin1)
Notethatthereisaslightzerooffset(seebelow)whichshouldbetakenintoaccountforreadingsbelow
10%oftheFullScale.
Note also that for CO2 concentrations less than 10% of full scale, the sensor output voltage is
affected by the output Operation Amplifier offset voltage (~14mV). See below.
AnalogueVoltageoutputin
Volts
AnalogueVoltage
outputinVolts
3.500
2.500
OutputLinearity(Thisgraph
assumesasupplyvoltageof3.3V)
1.500
0.500
0.500 0
50
100
PercentageofsensorCO2ppmrange
0.350
0.300
0.250
0.200
0.150
Effectofzerooffsetcloseto0.(This
graphassumesasupplyvoltageof3.3V)
0.100
0.050
0.000
0
10
PercentageofsensorCO2ppmrange
45
140Vrmsmeasuredina20kHzbandwidth.
450Vrmsmeasuredina10MHzbandwidth.
Ina10MHzbandwidththehighestnoisevoltageamplitudeisatleast70dBbelowthedesiredDC
outputvoltage.
Forexample,tochangea5000ppmsensorFSto2000
Highbyte=int(2000/256)=7
LowByte=2000%256=208
andtherelevantcommandsandresponsesare:
send:P 0 7\r\n
response:p 00007 00007\r\n
send:P 1 208\r\n
response:p 00001 00208\r\n
46
NotethatconcentrationMUSTbeexpressedintheunitsusedbythesensor.ForCOZIRA(mbient)and
MISIR,theunitsareppm.ForCOZIRW(ideRange),theunitsareppm/10.For100%rangesensors,the
unitsareppm/100.
Examples:
TargetFullScale
Type
HighByte
LowByte
PCommands
2000ppm
COZIRA
208
5000ppm
COZIRA
19
136
10000ppm(1%)
COZIRA
39
16
10000ppm(1%)
COZIRW
232
5%
COZIRW
19
136
10%
COZIRW
39
16
70%
COZIRW(100% 27
range)
88
P07
P1208
P019
P1136
P039
P116
P03
P1232
P019
P1136
P039
P116
P027
P188
Warning.Ifthefullscalevalueissethigherthanthesensorrange(ietherangewhenfirstsupplied)
thevoltagevalueswillbeincorrectandmustnotbeused.
Additionally,twozerocalibrationpinsareaavailable.
NitrogenZero(Pin8)
Thispinisnormallyhigh.Holditlowfor1.5stotriggeranitrogenzero.Thisassumesthatthesensoris
freefromanyCO2.
AmbientZero(Pin10)
Thispinisnormallyhigh.Holditlowfor1.5stotriggeranambientzero.Thisassumesthatthesensoris
infreshair(defaultsettingis450ppm).
47
ContinuouslyPowered
Theautocalibrationinformationisdeletedwhenthesensorisswitchedoff.Thisensuresthateach
installationisunaffectedbyanyprevioushistoryofthesensor.Forautocalibrationtofunction,itmust
bepoweronforthewholeoftheautocalibrationperiod.
ThenextsectionsshowhowtosetuptheautocalibrationusingHyperTerminaloryourownsoftware.
Autocalibrationperiod
Thisdetermineshowoftentheautocalibrationtakesplace.
BackgroundConcentration
Typically400450ppm.Thisisthelevelthesensorwilluseasbackground.
InitialAutocalibrationPeriod
Itispossibleforthefirstautocalibrationtotakeplacemorequicklythantheregularautocalibration
event.Thiscanbeusefultostabilizequicklyafterinstallation.
Beforesettingtheautocalibrationparameters,pleasenotethefollowing:
Beforealteringtheautocalibrationparameters,switchthesensorintocommandmode:
send
K0<CR><LF>
Thisstopsthemeasurementprocessinthesensor.
48
Allcommandsmustbeterminatedwith\r\n(carriagereturn,linefeed).NBHyperTerminaldoes
notaddthelinefeedcharacterasstandard.TheASCIISetupmustbeconfiguredtoappendline
feeds.
Fordetailsonthecommandsused,pleaseconsulttheCOZIRSoftwareInterfaceGuide
Foranexampleofatypicalsetting,seeAutocalibrationExample.
Tosetthis,send
P8x\r\n
P9y\r\n
wherexandydependontheconcentrationyouwanttoset.
Concentration
x
Y
380
1
124
400
1
144
425
1
169
450
1
194
Thisisstoredasatwobytevalue,thehighbytebeinginlocation8andthelowbyteinlocation9.
Thevaluerepresentstheconcentration.
Tocalculateothervalues,
x=int(concentration/256)
y=theremainderafterdividingconcentration/256
P5x\r\n
P6y\r\n
wherexandydependontheautocalibrationintervalyouwanttoset.
Interval
x
y
1week
47
64
2weeks
94
128
3weeks
141
192
49
Thisisstoredasatwobytevalue,thehighbytebeinginlocation5andthelowbyteinlocation6.
Thevaluerepresentsthenumberofcountsbetweenautocalibrationevents,whereeachcountlasts
50seconds.
Tocalculateothervalues,
a=autocalibrationperiod(indays)*1728
x=int(a/256)
y=theremainderafterdividinga/256
P3x\r\n
P4y\r\n
Ifthefirstautocalibrationeventistooccurattheregularautocalibrationperiod,setbothxandyto0.
Otherwise,xandymustbecalculatedusingthedesiredinitialautocalibrationtimeandtheregular
autocalibrationperiod.
Ifthefirstautocalibrationeventistooccurattheregularautocalibrationperiod,setbothxandyto0.
Otherwisecalculateasfollows:
a=autocalibrationperiod(indays)
b=initialautocalibrationperiod(inhours)
c=(a*24b)*72
x=int(c/256)
y=theremainderafterdividingc/256
TheInitialautocalperiodworksbypreloadingtheautocalperiodcount.Sothevaluestoredisthe
autocalibrationperiodminustheinitialautocalperiod.Botharemeasuredinautocalcounts,
whereacountis50s.
Todisable,settheinitialautocalperiodto0.
Thisisstoredasatwobytevalue.thehighbytebeinginlocation5andthelowbyteinlocation6.
Thevaluerepresentsthenumberofcountsbetweenautocalibrationevents,whereeachcountlasts
50seconds.
50
K0
P70
P337
P432
P547
P664
P81
P9194
P71
Thenswitchthesensorofffor30secondsandonagain.
Example2
Tosetautocalibrationtotakeplaceevery3weeks,withnoinitialautocalibration.Thebackgroundis
assumedtobe420ppm:
K0
P70
P30
P40
P5141
P6191
P81
P9164
P71
Thenswitchthesensorofffor30secondsandonagain.
51