Skip to content

Code Doesn't Match Sensirion Datasheet #2

Description

@TFenby

Sensirion_Datasheet_SFA40.pdf

Specifically, the commands don't match:

#define SAF40_COMMAND_START      0x00AC 
#define SAF40_COMMAND_READ       0xE06D 
#define SAF40_COMMAND_STOP       0x50D2 
#define SAF40_COMMAND_ID         0x02CE
Image

and the status doesn't match:

uint8_t DFRobot_SFA40::readMeasurementData(void){
  memset(_buf,0,12);
  readReg(SAF40_COMMAND_READ,_buf,12);
  // HCHO= NAN;  
  // humidity=NAN;
  // temperatureC=NAN;
  // temperatureF=NAN;
  if(_buf[10]==0){  // <-- here, and other _buf[10] references
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions