I have some questions regarding the (gas)sensor board..:) Maybe there are some more problems which have to be solved..but to be sure, I start with the following first.
I've tried to use this board with an O2 sensor. However, it seems to be that the board is not working correctly. According to the manual, I have to write the following lines to get the voltage value from the sensor:
SensorGas.configureSensor(SENS_O2, GAIN); //GAIN = 1
value = SensorGas.readValue(SENS_O2);
Unfortunately, this example doesnt work for me :D I've observed that the board is rebooting every time when executing this instruction:
In the loop(), I've surrounded this instruction with some println()-commands to test whether it is really this command which let the board crash/reboot. And yes, it is. However..the funny thing is: after putting SENS_OFF instead of SENS_ON into the argument, everything is working fine! Ok, I just get 0.00000..... but this is quite ok in my oppinion, if the board is turned off...
But now things are going to be more interesting:
I do not get every time 0.0000..sometimes I get stuff like 0.0096xxx, 0.003xxx, 0.006xxx..which means 9,6mV for example..and this is in the range of what the sensor does provide. And even better: After pressing (and holding) the board at the side where the pins are connected to the 'main-board', I get much higher values like 0.13xxxx (-> over 100mV which is not in the sensors range anymore). In addition, I figured out that these values are completely independing of the GAIN factor.
Therefore, I've currently the following questions:
-Why is it not possible to use SENS_ON?
-Why do I still get values, even the board is apparently turned off?
-Why do I get complete wrong and senseless data after pressing on the board?
-Why does the GAIN not affect the measured values?
-Why is SENS_ON defined to be 0 (zero) and SENS_OFF to be 1 :D
I do own more boards of the base and sensor boards..but I've observed this behavior on all of them :(
I hope that someone has an idea and can help me..:)
Thanks a lot,