hi!
it seams that this library does not work with my sensor, which is a cozir wx 60, slightly different from cozir ambient. here is the datasheet of my sensor:
cozir wx 60the pin scheme seems the same as ambient sensor.
i have connected the same way described in this thread: pin2-tx, pin3-rx.
if i use the sketch provided by co2meter, it works fine. but it is in streaming mode, and i need to use it in polling mode, in order to read co2 values each 30 sec.
i tryied cozir.h library version 1.0, and 1.0 and 1.03, but the only thing i was able to get is:
Celcius : 0.00
Fahrenheit : 32.00
Humidity : 0.00
CO2 : 0
Digital Filter : 0
i did not find the link at 1.05 version, which should be stable, if you can tell me where to download this, i could try.
just to give you some informations, if i run the sketch of dirtgambit:
#include <SoftwareSerial.h>
#include "cozir.h"
SoftwareSerial nss(2,3);
COZIR czr(nss);
void setup()
{
Serial.begin(9600);
delay(5000);
//czr.SetOperatingMode(CZR_POLLING);
//czr.SetOperatingMode(CZR_STREAMING);
//czr.CalibrateFreshAir();
// czr.SetDigiFilter(64);
}
void loop()
{
delay(4000);
float t = czr.Celsius();
float f = czr.Fahrenheit();
float h = czr.Humidity();
int c = czr.CO2();
int digi = czr.GetDigiFilter();
Serial.print("Celcius : ");Serial.println(t);
Serial.print("Fahrenheit : ");Serial.println(f);
Serial.print("Humidity : ");Serial.println(h);
Serial.print("CO2 : ");Serial.println(c);
Serial.print("Digital Filter : ");Serial.println(digi);
Serial.println("");
}
and something happen, because after this sketch, the sensor probably is set in polling mode, because my sketch, which works in streamning mode, does not work anymore. i must send the command to put the sensor in streaming mode, to make it work again whit my sketch.
if anyone could help me, it would really be appreciated, since i need this sensor working in polling mode!
thanks,
bye!
EDIT: i use arduino uno and ide 1.6.7