27/02/2017
Hi All,
It can be hooked up to a simple usb/serial converter (only 4 wires required). Make sure the data lines (Tx and Rx) use 3V signalling. Running a simple powershell script the data is displayed. Script:
[Byte[]] $request = 0xff, 1, 0x86, 0, 0, 0, 0, 0, 0x79
[Byte[]] $res = 0, 0, 0, 0, 0, 0, 0, 0, 0
$port = new-Object System.IO.Ports.SerialPort COM57,9600,None,8,one
$port.Open()
$port.Write($request, 0, 9)
Start-Sleep -Milliseconds 50
For ( $i = 0; $i -lt 9; $i++ ) {
$res[$i] = $port.ReadByte()
}
Write-Host "CO2: $($res[2] * 256 + $res[3]) ppm, Temp: $($res[4]-40) C"
$port.Close()
Display:
CO2: 876 ppm, Temp: 24 C
If you try it, please set the port parameter (COM57 in my case) according to your system.
Bleph
Hi All,
It can be hooked up to a simple usb/serial converter (only 4 wires required). Make sure the data lines (Tx and Rx) use 3V signalling. Running a simple powershell script the data is displayed. Script:
[Byte[]] $request = 0xff, 1, 0x86, 0, 0, 0, 0, 0, 0x79
[Byte[]] $res = 0, 0, 0, 0, 0, 0, 0, 0, 0
$port = new-Object System.IO.Ports.SerialPort COM57,9600,None,8,one
$port.Open()
$port.Write($request, 0, 9)
Start-Sleep -Milliseconds 50
For ( $i = 0; $i -lt 9; $i++ ) {
$res[$i] = $port.ReadByte()
}
Write-Host "CO2: $($res[2] * 256 + $res[3]) ppm, Temp: $($res[4]-40) C"
$port.Close()
Display:
CO2: 876 ppm, Temp: 24 C
If you try it, please set the port parameter (COM57 in my case) according to your system.
Bleph
Hi All,
It can be hooked up to a simple usb/serial converter (only 4 wires required). Make sure the data lines (Tx and Rx) use 3V signalling. Running a simple powershell script the data is displayed. Script:
[Byte[]] $request = 0xff, 1, 0x86, 0, 0, 0, 0, 0, 0x79
[Byte[]] $res = 0, 0, 0, 0, 0, 0, 0, 0, 0
$port = new-Object System.IO.Ports.SerialPort COM57,9600,None,8,one
$port.Open()
$port.Write($request, 0, 9)
Start-Sleep -Milliseconds 50
For ( $i = 0; $i -lt 9; $i++ ) {
$res[$i] = $port.ReadByte()
}
Write-Host "CO2: $($res[2] * 256 + $res[3]) ppm, Temp: $($res[4]-40) C"
$port.Close()
Display:
CO2: 876 ppm, Temp: 24 C
If you try it, please set the port parameter (COM57 in my case) according to your system.
Bleph