Cubic Sensors & Instruments CM1107 CO2 Sensor

Here is a simplified flow that reads and displays the CO2 and sensor serial number on a simple UI from the CM1107 CO2 sensor from Cubic Sensors & Instruments.

Regards, Don - Innovaer Tech

[{"id":"b9a93181.31dfd","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"cdf0015.242a9","type":"inject","z":"b9a93181.31dfd","name":"Read CO2","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"1","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[\"0x11\",\"0x01\",\"0x01\",\"0xED\"]","payloadType":"bin","x":110,"y":80,"wires":[["6d8ac9b5.1b5038"]]},{"id":"b4b978d6.b5fa48","type":"debug","z":"b9a93181.31dfd","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":410,"y":40,"wires":[]},{"id":"22787682.6ea46a","type":"debug","z":"b9a93181.31dfd","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":670,"y":40,"wires":[]},{"id":"c68cb9a0.4e67c8","type":"inject","z":"b9a93181.31dfd","name":"Read SW Version ASCII","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[\"0x11\",\"0x01\",\"0x1E\",\"0xD0\"]","payloadType":"bin","x":140,"y":180,"wires":[["6243829d.5aa68c"]]},{"id":"8de725d2.69a028","type":"debug","z":"b9a93181.31dfd","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":490,"y":140,"wires":[]},{"id":"e49372d8.17da3","type":"buffer-parser","z":"b9a93181.31dfd","name":"","data":"payload","dataType":"msg","specification":"spec","specificationType":"ui","items":[{"type":"ascii","name":"ASCII SW","offset":3,"length":10,"offsetbit":0,"scale":"1","mask":""}],"swap1":"","swap2":"","swap3":"","swap1Type":"swap","swap2Type":"swap","swap3Type":"swap","msgProperty":"payload","msgPropertyType":"str","resultType":"value","resultTypeType":"output","multipleResult":false,"fanOutMultipleResult":false,"setTopic":true,"outputs":1,"x":510,"y":180,"wires":[["62f61c75.7675a4","85a0e55a.535e08"]]},{"id":"62f61c75.7675a4","type":"debug","z":"b9a93181.31dfd","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":690,"y":180,"wires":[]},{"id":"6d8ac9b5.1b5038","type":"serial request","z":"b9a93181.31dfd","name":"Serial 1","serial":"2aa39a2c.2c9056","x":260,"y":80,"wires":[["b4b978d6.b5fa48","43647861.83efe8"]]},{"id":"43647861.83efe8","type":"buffer-parser","z":"b9a93181.31dfd","name":"","data":"payload","dataType":"msg","specification":"spec","specificationType":"ui","items":[{"type":"uint16be","name":"CO2","offset":3,"length":1,"offsetbit":0,"scale":"1","mask":""}],"swap1":"","swap2":"","swap3":"","swap1Type":"swap","swap2Type":"swap","swap3Type":"swap","msgProperty":"payload","msgPropertyType":"str","resultType":"value","resultTypeType":"output","multipleResult":false,"fanOutMultipleResult":false,"setTopic":true,"outputs":1,"x":430,"y":80,"wires":[["22787682.6ea46a","d3eb3650.979dd8"]]},{"id":"6243829d.5aa68c","type":"serial request","z":"b9a93181.31dfd","name":"Serial 2","serial":"2aa39a2c.2c9056","x":340,"y":180,"wires":[["e49372d8.17da3","8de725d2.69a028"]]},{"id":"85a0e55a.535e08","type":"ui_text","z":"b9a93181.31dfd","group":"fa40ef59.a5535","order":1,"width":0,"height":0,"name":"Display","label":" Software Version ","format":"{{msg.payload}}","layout":"row-center","x":680,"y":240,"wires":[]},{"id":"d3eb3650.979dd8","type":"ui_gauge","z":"b9a93181.31dfd","name":"","group":"fa40ef59.a5535","order":2,"width":0,"height":0,"gtype":"gage","title":"CO2","label":"ppm","format":"{{value}}","min":"300","max":"5000","colors":["#00b500","#e6e600","#ca3838"],"seg1":"700","seg2":"1500","x":650,"y":80,"wires":[]},{"id":"2aa39a2c.2c9056","type":"serial-port","serialport":"COM6","serialbaud":"9600","databits":"8","parity":"none","stopbits":"1","waitfor":"","dtr":"none","rts":"none","cts":"none","dsr":"none","newline":"\\n","bin":"bin","out":"char","addchar":"","responsetimeout":"100"},{"id":"fa40ef59.a5535","type":"ui_group","name":"ppm","tab":"2db78011.a7e44","order":1,"disp":true,"width":"6","collapse":false},{"id":"2db78011.a7e44","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

Flow Info

Created 4 years, 5 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • debug (x4)
  • inject (x2)
Other
  • buffer-parser (x2)
  • serial request (x2)
  • serial-port (x1)
  • tab (x1)
  • ui_gauge (x1)
  • ui_group (x1)
  • ui_tab (x1)
  • ui_text (x1)

Tags

  • CM1107
  • CO2
  • Cubic
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option