Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

MinIR digital CO2 meter serial connection no reading


Jeff3003 Jun 6, 2015 12:51 AM

Can anyone help me on setting up data collection from MinIR CO2 meter using CR1000 through a serial connection?

The specs of the sensor are:
Baud Rate 9600
Data Bits 8
Parity None
Stop Bits 1
Format UART (normally high)
Hardware flow control None
Voltage Voh 3V
Voltage Vin 3V-5V

Here is the link to the manual from pp5--pp9.
http://www.co2meters.com/Documentation/Manuals/Manual-COZIR-Sensor.pdf

The sensor has Rx, Tx, 0V and Vin 4 pins. I connected Vin to 5V, 0V to ground, Rx to C1, Tx to C2.

On the manual it says the output from the sensor is in the format of Z ##### z #####\r\n

So I tried the following code I learned from examples,

Public SerialIndest As String * 100, NBytes, Receive, NBytesReturned

BeginProg
SerialOpen (Com1,9600,0,0,10000)

Scan (1,Sec,3,0)

SerialInRecord(Com1,SerialInDest,32,0,&H0D0A,NBytesReturned,00)

NextScan
EndProg

Then there is nothing showing in the SerialInDest.

I appreciate your help in advance!

Jeff


JDavis Jun 11, 2015 04:21 PM

The UARTs on the CR1000 are 5V only. That particular sensor has a 3V UART. You will need to use a voltage level shifter circuit to bump up the voltage of the serial signal from the sensor. The CR6 datalogger has UARTs that can be set to 5V or 3V and could be directly connected.

You can find examples of level shifter circuits on the internet.

Log in or register to post/reply in the forum.