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
SGP 30 sensor issue
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- rpiloverbd
- Posts: 198
- Joined: Mon Nov 29, 2021 8:13 am
Re: SGP 30 sensor issue
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?
- arsood
- Posts: 9
- Joined: Fri Oct 15, 2021 1:33 pm
Re: SGP 30 sensor issue
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.
I am physically blowing air onto the sensor so the values should change for sure.
- adafruit_support_carter
- Posts: 29056
- Joined: Tue Nov 29, 2016 2:45 pm
Re: SGP 30 sensor issue
It sounds like it was working then not working?
- adafruit_support_carter
- Posts: 29056
- Joined: Tue Nov 29, 2016 2:45 pm
Re: SGP 30 sensor issue
Can you correlate that to anything? What was the last thing done before it went from working to not working?
- arsood
- Posts: 9
- Joined: Fri Oct 15, 2021 1:33 pm
Re: SGP 30 sensor issue
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
Thanks
- adafruit_support_carter
- Posts: 29056
- Joined: Tue Nov 29, 2016 2:45 pm
Re: SGP 30 sensor issue
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.
Please post a photo of your setup showing how everything is connected.
- arsood
- Posts: 9
- Joined: Fri Oct 15, 2021 1:33 pm
Re: SGP 30 sensor issue
yes correct
- Attachments
-
- The attached PCB board goes on top a raspberry pi
- Picture 1.png (455.5 KiB) Viewed 148 times
- adafruit_support_carter
- Posts: 29056
- Joined: Tue Nov 29, 2016 2:45 pm
Re: SGP 30 sensor issue
What is that carrier board?
- arsood
- Posts: 9
- Joined: Fri Oct 15, 2021 1:33 pm
Re: SGP 30 sensor issue
its a PCB i designed and got it manufactured from SEEED
- adafruit_support_carter
- Posts: 29056
- Joined: Tue Nov 29, 2016 2:45 pm
Re: SGP 30 sensor issue
Does it have other items that are using the I2C bus?
- arsood
- Posts: 9
- Joined: Fri Oct 15, 2021 1:33 pm
Re: SGP 30 sensor issue
yes. 1 other sensor is using I2C as well but i haven't yet integrated them together
- adafruit_support_carter
- Posts: 29056
- Joined: Tue Nov 29, 2016 2:45 pm
Re: SGP 30 sensor issue
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.
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.
- arsood
- Posts: 9
- Joined: Fri Oct 15, 2021 1:33 pm
Re: SGP 30 sensor issue
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 (112.56 KiB) Viewed 116 times
-
- Screenshot 2022-01-11 172831.png (135.92 KiB) Viewed 116 times
Please be positive and constructive with your questions and comments.