Keine Werte beim Multichannel Gas Sensor

Hallo,

ich muss für die Uni ein Gasmessung durchführen. dafür haben wir einen Arduino Uno ein base shield und ein Multichannel Gas Sensor. Ich habe nun das Problem das ich im seriellen Monitor nur "Power ON!" raus bekomme und keine Messwerte. Woran liegt das?

mein Code:

// Read Data from Grove - Multichannel Gas Sensor
#include <Wire.h>
#include "MutichannelGasSensor.h"

void setup()
{
   Serial.begin(115200);  // start serial for output
   Serial.println("power on!");
   gas.begin(0x04);//the default I2C address of the slave is 0x04
   gas.powerOn();
   Serial.print("Firmware Version = ");
   Serial.println(gas.getVersion());
}

void loop()
{
   float c;

   c = gas.measure_NH3();
   Serial.print("The concentration of NH3 is ");
   if(c>=0) Serial.print(c);
   else Serial.print("invalid");
   Serial.println(" ppm");

   c = gas.measure_CO();
   Serial.print("The concentration of CO is ");
   if(c>=0) Serial.print(c);
   else Serial.print("invalid");
   Serial.println(" ppm");

   c = gas.measure_NO2();
   Serial.print("The concentration of NO2 is ");
   if(c>=0) Serial.print(c);
   else Serial.print("invalid");
   Serial.println(" ppm");

   c = gas.measure_C3H8();
   Serial.print("The concentration of C3H8 is ");
   if(c>=0) Serial.print(c);
   else Serial.print("invalid");
   Serial.println(" ppm");

   c = gas.measure_C4H10();
   Serial.print("The concentration of C4H10 is ");
   if(c>=0) Serial.print(c);
   else Serial.print("invalid");
   Serial.println(" ppm");

   c = gas.measure_CH4();
   Serial.print("The concentration of CH4 is ");
   if(c>=0) Serial.print(c);
   else Serial.print("invalid");
   Serial.println(" ppm");

   c = gas.measure_H2();
   Serial.print("The concentration of H2 is ");
   if(c>=0) Serial.print(c);
   else Serial.print("invalid");
   Serial.println(" ppm");

   c = gas.measure_C2H5OH();
   Serial.print("The concentration of C2H5OH is ");
   if(c>=0) Serial.print(c);
   else Serial.print("invalid");
   Serial.println(" ppm");

   delay(1000);
}

Serial.print("Firmware Version = ");
Serial.println(gas.getVersion());

Das macht auch keine Ausgabe?

Sieht so aus, als ob diese Funktion nicht zurückkehrte.

    gas.begin(0x04);//the default I2C address of the slave is 0x04

Stimmt die Adresse 4 denn?

Was sagt der I2C Scanner?

Eher OT: Warum eine Angabe in zweistelliger Hexdarstellung wenn der Wert kleiner als 10 ist?

ne es wird wirklich nur das Pauer on ausgegeben.

ja die Addresse stimmt mit 0x04

jonybery:
ja die Addresse stimmt mit 0x04

Der I2C Scanner bestätigt dir das?

ok ja das war der Fehler vielen dank.
Hatte die Adresse 0x19