This library also looks good - in fact goes a little further than the previous, but both have the ability to get all the data and completely set up and read all the max IC registers.
I have just looked at the examples in the arduino IDE and on the second, the output (of the library!) is really simple. In its most basic form, which appears to be all that is needed, you can get two integer values - one for heart rate - the other for Sp02. you could then then pass them to AM as two simple integers.
Worth grabbing this one as well.
All the background work of the libraries are in the .cpp files (and .h) in the library directory so you can look at the real background stuff and see how it compares to the datasheet. Bloody interesting and a thanks go out to the rather smart guys that go to the trouble of creating and releasing such wonderful work. This is one of the reasons I really love arduino. There is virtually a library for everything.
https://www.arduino.cc/reference/en/lib ... x30100lib/
There is, of course
- for the arduino - a simple library also for the MG811 sensor.
https://github.com/smart-tech-benin/MG811
This unit basically produces an analogue output that decreases as the C02 rises. The library allows a simple calibration routine listed in the link above. The sensor though, is MUCH more expensive at about 20 to 25 dollars as a breakout board.
but, there is another unit much cheaper
https://pt.aliexpress.com/item/10050016 ... hweb201603_
This looks to be - to all intents and purposes - a slightly less accurate version of the MG811 so will produce the same output more or less - and will probably work with the above library - as well as the adafruit one listed below. As incredibly high accuracy is simply not needed, this would be fine.
and apparently can be used with the adafruit CSS811 library.
https://learn.adafruit.com/adafruit-ccs ... iring-test
this gives C02 and TVOC.
Of course, if you just wanted to have the code to use the MG811, then it is really simple as it is an ADC output from the sensor so your code would only have to read the value - you can add the calibration by looking at the arduino library which is fairly simple. that could all be done in AM directly. I think though, that it would be better to pass a variable to AM (rather than have a direct ADC input value) via an arduino where all the main work is done on the arduino. (and the sensor(s) are hooked up to the arduino - That way the usage is sensor independent as the arduino is doing all the work. you could even make the arduino accept various c02 sensors and simply convert any outputs of ANY CO2 sensor to AM with the same variable range converted at arduino level, and of course, you could add both the Sp02 oximetry AND the C02 sensor(s) - and anything else - like temp, humidity etc - to the same arduino and the only output to AM is a few variables. Really neat.
All good fun
We use a log burner (stove) as our heating in the winter, and it will be nice to build a little unit to monitor 02 levels, CO and CO2.. - again, just for fun.
A nice little project for a wet day.