-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SEK-SCD41 kit stopped working: "Invalid sample detected, skipping." self-test error code: 196 #15
Comments
Using:
I get the result code 196 What does that code mean? |
Hi @stolk This looks like multiple errors from the self test are returned. I have to ask the product group how to correctly interpret the result. |
@psachs Thank you Pascal. The worrying thing is that out of a batch of 6 or so, two of my devices started having this symptom, after having worked just fine for days. I really want to get to the root of this, so please let me know what the product group says. |
Hi @stolk I just contacted the product group. They suspect a defect with the device and gave me following advice: |
@psachs Pascal, no, that is not the case: I use the SCD41 sensirion development kit. It has the sensor mounted on a PCB, and only has a VDD,GND,SCL,SDA pin out. I cannot have made a wiring mistake for the sensor: the sensor was wired by Sensirion themselves! The board gets plenty of power: 5V 500mA from USB. |
The development kits should be wired correctly. I have several of them running directly connected to ESP32 without any problem. Since the self test fails it looks like its a problem with the sensor itself. |
Not sure how else to contact you. I received your sample and I was testing it for a couple of days. So far I couldn't reproduce your issue with it using our latest library. I think a problem with the older Version of the example was, that we have to check for data_ready before reading out sensor values, as else it can in some cases cause a problem with the ASIC causing a crash of the sensor that can only be resolved with a reset. I will do some further testing to ensure I can run the sensor reliably and send you a replacement within the next few days. |
Thank you, @psachs interesting… yeah, it could be some timing issue, I guess. Having said that, replacing the sensor board with another unit, using the exact same code on my microcontroller, resolved it for me. So the problem can vary between sensors. Some units would be more susceptible than others, somehow. |
Hi @stolk Sorry for the delay. I would like to send you a replacement for the sensor you sent me. Can you please contact me at pascal.sachs at sensirion.com and send me the missing information? |
Platform: Arduino NANO EVERY Atmega4809. Hello, I have four Sensiron SCD40 modules exhibiting the same semi-failure. They were bought over a period of time from separate suppliers. All these devices worked for a long time before spontaneously failing in this way. I suspect power-down mid-transaction but have no proof this is the cause. These devices, prior to total failure seemed to hang the I2C bus with SDA held permanently low from time to time. My hardware platform includes a relay to cut I2C power at reset for 2.5s which appeared to cure that particular problem, however, with the power cut there is a remaining trickle of current via the pullups into SCL and SDA. Has this fried the device? (10k pullups 3.3V VDD- seems unlikely to deliver much current to provoke a severe latch-up). The SCD40 is quite expensive and my project is eating them for breakfast. Any help appreciated. |
... also I have tried issuing the reinit and performFactoryReset commands, both of which are ACK'd but change nothing. |
For future reference, as I ran into this myself as well, the "Serial.println(testResult)" should probably be "Serial.println(tested)" as that is the output of the self-test.
|
I have the same problem. The sensors are operating in a humid environment. Could that be the cause? |
@andytrich |
When the self test returns an error code other than 0 this means that there is an internal error on the sensor. The print out is correct, as we want to print the result of the self tests and not success of sending the performSelfTest command over I2c. If you still face the problem, could you please give us more details about your setup? |
So, this device was working fine for a month.
But suddenly, today, it would only read 0 ppm, out of the blue.
I programmed the exampleUsage code, to check, and I get:
This is with v 0.3.1 of the library.
Also I did an I2C scan, and the device does show up at address 0x62.
Sending a factory reset command wit
performFactoryReset()
did not help.The text was updated successfully, but these errors were encountered: