Skip to content

Parallax P8X32A/Propeller, P2X8C4M64P/Propeller 2 driver object for the Sensirion SENxx-series environmental nodes

License

Notifications You must be signed in to change notification settings

avsa242/senxx-spin

Repository files navigation

senxx-spin


This is a P8X32A/Propeller, P2X8C4M64P/Propeller 2 driver object for the Sensirion SENxx environmental sensor nodes

IMPORTANT: This software is meant to be used with the spin-standard-library (P8X32A) or p2-spin-standard-library (P2X8C4M64P). Please install the applicable library first before attempting to use this code, otherwise you will be missing several files required to build the project.

Salient Features

  • SEN5x and SEN6x series (currently only SEN55 and SEN66 supported)
  • I2C connection at up to 100kHz
  • Read serial number, product number
  • Read particulate matter, RH, temperature, VOC (index), NOx (index), CO2, HCHO (as applicable to the connected model)
  • Measure all sensors, or RH&T, gases only (supported by SEN5x only)
  • Manual fan cleaning mode

Requirements

P1/SPIN1:

  • spin-standard-library
  • 1 extra core/cog for the PASM I2C engine (none if the bytecode-based I2C engine is used)
  • sensor.temp.common.spinh (source: spin-standard-library)
  • sensor.rh.common.spinh (source: spin-standard-library)
  • sensor.co2.common.spinh (source: spin-standard-library)

P2/SPIN2:

  • p2-spin-standard-library
  • sensor.temp.common.spin2h (source: p2-spin-standard-library)
  • sensor.rh.common.spin2h (source: p2-spin-standard-library)
  • sensor.co2.common.spin2h (source: p2-spin-standard-library)

Compiler Compatibility

Processor Language Compiler Backend Status
P1 SPIN1 FlexSpin (7.3.0) Bytecode OK
P1 SPIN1 FlexSpin (7.3.0) Native/PASM OK
P2 SPIN2 FlexSpin (7.3.0) NuCode OK
P2 SPIN2 FlexSpin (7.3.0) Native/PASM2 OK

(other versions or toolchains not listed are not supported, and may or may not work)

Hardware compatibility

  • Tested with SEN55, SEN66 (using Adafruit SEN5x and SEN6x to QT/Qwiic adapter boards 5964 and 6331, respectively)

Limitations

  • Models other than SEN55, SEN66 not yet supported or tested

About

Parallax P8X32A/Propeller, P2X8C4M64P/Propeller 2 driver object for the Sensirion SENxx-series environmental nodes

Topics

Resources

License

Stars

Watchers

Forks