0

Adafruit_SGP30 repository
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit_SGP30 repository

by delsan on Tue Dec 19, 2017 12:39 pm

Hi everyone,

I just got a couple of Sensirion SGP30 gas sensors and connected to an Arduino Uno running on the 1.8.3 IDE version.

I downloaded the sgp30 test example codes from GitHub but it keeps coming back with "sensor not found"

I connected SDA to pin A4 and SCL to pin A5 and external 1.8 V DC power.

Appreciate your assistance

delsan
 
Posts: 3
Joined: Tue Dec 19, 2017 12:33 pm

Re: Adafruit_SGP30 repository

by ZipSnipe on Tue Dec 19, 2017 1:03 pm

Looks like your below voltage from SGP30 website " supply voltage range of 2.4 to 5.5 V"

ZipSnipe
 
Posts: 20
Joined: Sat Dec 09, 2017 4:41 pm

Re: Adafruit_SGP30 repository

by Elnuma on Wed Dec 20, 2017 3:36 am

Hi Delsan,

Your supply voltage is correct with 1.8V, please refer to the datasheet:
https://www.sensirion.com/file/datasheet_sgp30

However the levels on the I2C bus need to be adjusted as well. Max. rating is VDD + 0.5V which means you'll require level shifters to make it work.

Elnuma
 
Posts: 9
Joined: Wed Dec 20, 2017 3:33 am

Re: Adafruit_SGP30 repository

by delsan on Wed Dec 20, 2017 6:16 am

Thanks, Elnuma.

Do you have any specific level shifter to use?

delsan
 
Posts: 3
Joined: Tue Dec 19, 2017 12:33 pm

Re: Adafruit_SGP30 repository

by Elnuma on Wed Dec 20, 2017 6:20 am

A specific one isn't required.
If you'd like to receive a circuit suggestion, you can fill out the contact form on Sensirions website:
http://www.sensirion.com/contact

Elnuma
 
Posts: 9
Joined: Wed Dec 20, 2017 3:33 am

Re: Adafruit_SGP30 repository

by delsan on Fri Jan 05, 2018 3:29 pm

Hi everyone,

Happy new year.

In continuation of extracting data from the SGP30 using an Arduino Uno, I purchased a couple of Logic Level converter from digikey:

https://www.digikey.ie/products/en?keyw ... 0converter

Despite connecting the SGP30 SDA and SCL pins through the level converter, on running the Adafruit_SGP30 sample code, I am still getting "Sensor not found"

The Adafruit_SGP30 sample code is below:
Code: Select all | TOGGLE FULL SIZE
#include <Wire.h>
#include "Adafruit_SGP30.h"

#define SGP30_ADDR 0x58

Adafruit_SGP30 sgp;

void setup() {
  Serial.begin(115200);
  Serial.println("SGP30 test");
  Wire.begin();

  if (! sgp.begin()){
    Serial.println("Sensor not found :(");
    while (1);
  }
  Serial.print("Found SGP30 serial #");
  Serial.print(sgp.serialnumber[0], HEX);
  Serial.print(sgp.serialnumber[1], HEX);
  Serial.println(sgp.serialnumber[2], HEX);
}


void loop() {
  sgp.IAQmeasure();
  Serial.print("TVOC "); Serial.print(sgp.TVOC); Serial.print("\t");
  Serial.print("eCO2 "); Serial.println(sgp.eCO2);
  delay(1000);
}


Appreciate your assistance.
Last edited by franklin97355 on Fri Jan 05, 2018 9:14 pm, edited 1 time in total.
Reason: Please use code tags when posting code or logs to the forums. It preserves formatting and makes it easier for everyone to read the code. Click the code button above the reply box and past your code between the tags created.

delsan
 
Posts: 3
Joined: Tue Dec 19, 2017 12:33 pm

Please be positive and constructive with your questions and comments.