SGP 30 sensor issue

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
arsood
 
Posts: 9
Joined: Fri Oct 15, 2021 1:33 pm

SGP 30 sensor issue

Post by arsood »

Hi there,
i Got a SGP30 sensor.
The sensor sends VOC and eCo2 levels to firebase via a raspberry pi .
I setup the project around november last year.
The code i used was the one on the adafruit website+ the edited version with the firebase connection.
The sensor sent the correct values. However when i booted up the project and reran the code the only values that change are the VOC levels and not the eCo2 levels. Please advise what can i do since this sensor is part of a larger capstone for my uni project.

Thanks

User avatar
rpiloverbd
 
Posts: 198
Joined: Mon Nov 29, 2021 8:13 am

Re: SGP 30 sensor issue

Post by rpiloverbd »

Hello, did you boot up the project and reran the code on the same day when you got the correct value? At the same time? Is it possible that the atmosphere has been changed for some reason? Are you cross-checking the values with any other trusted meter?

User avatar
arsood
 
Posts: 9
Joined: Fri Oct 15, 2021 1:33 pm

Re: SGP 30 sensor issue

Post by arsood »

It was running smoothly until Dec 17th. That was the last time i booted up the project and ran the exact same code I'm running now with the exact same hardware. The values for both co2 and voc changed then as compared to only voc changing now.
I am physically blowing air onto the sensor so the values should change for sure.

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: SGP 30 sensor issue

Post by adafruit_support_carter »

It sounds like it was working then not working?

User avatar
arsood
 
Posts: 9
Joined: Fri Oct 15, 2021 1:33 pm

Re: SGP 30 sensor issue

Post by arsood »

yes

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: SGP 30 sensor issue

Post by adafruit_support_carter »

Can you correlate that to anything? What was the last thing done before it went from working to not working?

User avatar
arsood
 
Posts: 9
Joined: Fri Oct 15, 2021 1:33 pm

Re: SGP 30 sensor issue

Post by arsood »

i didn't change anything in the hardware or the code. I setted up everything and went on to work on other parts of the project. Then i had the christmas break when i didnt work on anything. And when i booted up the project to show it to someone it wasnt working anymore.

Thanks

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: SGP 30 sensor issue

Post by adafruit_support_carter »

So nothing but time? It was working. Did nothing for days/weeks. Came back and repeated everything same as before, and now not working?

Please post a photo of your setup showing how everything is connected.

User avatar
arsood
 
Posts: 9
Joined: Fri Oct 15, 2021 1:33 pm

Re: SGP 30 sensor issue

Post by arsood »

yes correct
Attachments
The attached PCB board goes on top a raspberry pi
The attached PCB board goes on top a raspberry pi
Picture 1.png (455.5 KiB) Viewed 148 times

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: SGP 30 sensor issue

Post by adafruit_support_carter »

What is that carrier board?

User avatar
arsood
 
Posts: 9
Joined: Fri Oct 15, 2021 1:33 pm

Re: SGP 30 sensor issue

Post by arsood »

its a PCB i designed and got it manufactured from SEEED

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: SGP 30 sensor issue

Post by adafruit_support_carter »

Does it have other items that are using the I2C bus?

User avatar
arsood
 
Posts: 9
Joined: Fri Oct 15, 2021 1:33 pm

Re: SGP 30 sensor issue

Post by arsood »

yes. 1 other sensor is using I2C as well but i haven't yet integrated them together

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: SGP 30 sensor issue

Post by adafruit_support_carter »

Try an I2C scan as a sanity check:
https://learn.adafruit.com/scanning-i2c ... spberry-pi
Should see the SGP30 address of 0x58.

If the address is seen, then try the example from the library:
https://github.com/adafruit/Adafruit_Ci ... pletest.py
and see if you can get readings back with that.

User avatar
arsood
 
Posts: 9
Joined: Fri Oct 15, 2021 1:33 pm

Re: SGP 30 sensor issue

Post by arsood »

i tried doing both things. There is an i2c address of 58 present and when i run the code off github the only thing that changes is the VOC in the same testing condition i used before when it displayed both co2 and voc
Attachments
Screenshot 2022-01-11 173459.png
Screenshot 2022-01-11 173459.png (112.56 KiB) Viewed 116 times
Screenshot 2022-01-11 172831.png
Screenshot 2022-01-11 172831.png (135.92 KiB) Viewed 116 times

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”