-
-
-
when I checked the voltage espruino return now I've got 0.88volt when start and sensor is warmed, and 0.72volt when I blow on it
var co2 = analogRead(A5)*3.3;
when used this code
var co2=1-analogRead(pin); var ppm=400+co2*(10000-400)
I've got readings at about 7400ppm, I fixed it but just for 400ppm level
var co2 = 1 - analogRead(A5); var ppm = 400 + co2*(10000-400); console.log(co2); console.log(ppm*0.054163846);
can't get readings of about 10000ppm when voltage on the sensor is 0.72volt
-
-
Tnx DrAzzy, it looks like Dout is like you said, some kind of alarm pin (HIGH/LOW), Aout giving value from 0-2volts (that is from the auction description) but I measured that when I power it by 6V high efficient power supply then have something like 1.07volt at the beginning and when I blew on the sensor got minimum of 0.73volt (however it depends what level of gain you use, there is small potentiometer - but it's not changing it from 0 to 2 volts as I seen)
so, 0.73-1.07volt in my case should be 'map' to 400-10000ppm -
Hi, anyone could help to run measurements from this sensor run on Espruino?
there is only few arduino codes I found, but they are made for different module I have,
pinout are not the same.
My module is one of this http://www.aliexpress.com/store/product/1PCS-X-New-CO2-sensor-module-MG811-module-free-shipping/437150_1374147854.html
Found somewhere in the web that it is equipped into op amp to.
There is 5 pins: Vcc,Aout,Dout,GND and Tcm.
I think Aout is analog output, Dout digitalone? and not sure about Tcm,
there is two potentiometers for TTL signal adjustments and signal amplification.
Module needs 6V for heating and after while should give correct readings.
I get some value on analogRead but first they are inverted, so when blow into the sensor reading decrease and when stop readings rise to the start level. So can't map it like in arduino style way eg.float co2 = analogRead(A0); float ppm = map(co2,0,1023,400,10000);
and get readings like when blow ppm rise, when stop ppm drop
sensor measure CO2 concentration from 400ppm to 10000ppm - like datasheet said
in this range it will change voltage output at very small range (30mV)would like to run it on Espruiono, if anyone could help I can provide links about this module I found till this time
-
-
now it was connected into WebIDE but got info that WebIDE can't find a stm32 bootloader, but pico is in bootloader mode, it is pulsing LED's,
after while It was possible to flash the firmware, pico can connect into WebIDE but I can't write anything in console, I have also Esprino board (green one) and it is working in all of that terminals,
dont' know what was wrong, but after plenty of times and few flash firmware operations It came back to live ;)
-
-
-
-
-
-
-
-
Hi, I wonder about digole displays and this library for espruino http://www.espruino.com/Digole
how about those displays
http://www.digole.com/index.php?productID=859
http://www.digole.com/index.php?productID=1194
http://www.digole.com/index.php?productID=1205
should they work whit this code? -
-
-
this is how it looks on maple board
https://drive.google.com/open?id=0BzvGs-oFJWtTTUZSRVdZMk16b28
and here on the arduino uno - sorry LQ
https://drive.google.com/open?id=0BzvGs-oFJWtTakxBWVZRUko3Y0k -
-
-
it is working but display is doing little flash when changing values
i used this examplefunction showData() { lcd.clear(); lcd.setCursor(0,0); lcd.print("Current data:"); lcd.setCursor(4,1); lcd.print("D1 = "+analogRead(D1)); } setInterval(showData, 1000);
I think it should only flash in section where the D1 value is, not all display?
-
hi, wanted to use this module again,
used this code on the green Espruino
and got this error
before it was working well
is something wrong with the code? or module from "require function"?