Re:Ask HN: What do you do with your Raspberry Pi?
by 2sk21 on Monday June 24, 2019 @01:58PM
(#20266411)
Using several Raspberry Pis to monitor CO2 levels in my house. Each Raspberry Pi has a CO2 sensor - wrote a little Python script to retrieve data from sensor and upload it to a server Which is also a Raspberry Pi.
[ Parent
| on HN ]
Re:Ask HN: What do you do with your Raspberry Pi?
by jdsnape on Monday June 24, 2019 @02:02PM
(#20266460)
What sensor did you use? All the ones I’ve seen tend to be pretty expensive
Re:Ask HN: What do you do with your Raspberry Pi?
by 2sk21 on Monday June 24, 2019 @03:19PM
(#20267375)
Yes - the sensors are a bit expensive at about US$ 90 apiece but as I explained in another comment, I think that it has paid for itself
Re:Ask HN: What do you do with your Raspberry Pi?
by anfractuosity on Monday June 24, 2019 @06:56PM
(#20269396)
You can get cheap NDIR based sensors from aliexpress (around $20) such as MH-Z14A, which I've used with a Pi, via the UART interface. I just hooked it up to the 5V line on the Pi pin header and then used the Pis UART lines for the data, as that runs at 3.3V.
Re:Ask HN: What do you do with your Raspberry Pi?
by loisaidasam on Monday June 24, 2019 @02:39PM
(#20266894)
I'm also interested, although my curiosity is more about what you are doing with the data.
Just storage? Some sort of charting? Graphite? Maybe some other data monitoring tool? Maybe something custom?
Re:Ask HN: What do you do with your Raspberry Pi?
by 2sk21 on Monday June 24, 2019 @03:15PM
(#20267322)
I had a suspicion that winter-time headaches we were having might be triggered by high CO2 levels so I simply wanted to record the CO2 levels in different rooms. Thanks to the sensors, I did, in fact, find that CO2 levels were very high in our bedroom. Once I improved ventilation, things seem to have gotten better.
Re:Ask HN: What do you do with your Raspberry Pi?
by orpheline on Monday June 24, 2019 @02:46PM
(#20266985)
I like this! I'm already using Pi Zero's like this for temperature sensing; adding a CO2 sensor sounds like a good enhancement!
Re:Ask HN: What do you do with your Raspberry Pi?
by 2sk21 on Monday June 24, 2019 @03:42PM
(#20267626)
This would be a good application for a Pi Zero W (with WiFi) - if you want to collect the data in a central location. I've linked the CO2 sensor I used in another comment.
Re:Ask HN: What do you do with your Raspberry Pi?
by orpheline on Monday June 24, 2019 @08:27PM
(#20270010)
Yep - Pi Zero W's for the sensors reporting to a Pi 3 for aggregation and reporting.
Re:Ask HN: What do you do with your Raspberry Pi?
by DavideNL on Monday June 24, 2019 @02:24PM
(#20266715)
I'm interested in this too. It would be even cooler to link these CO2 sensors into Apple's HomeKit somehow...
Re:Ask HN: What do you do with your Raspberry Pi?
by spacemanmatt on Monday June 24, 2019 @02:53PM
(#20267063)
I have been using Home Assistant to integrate everything. I have Google flavored, but it also has HomeKit support.
Re:Ask HN: What do you do with your Raspberry Pi?
by DavideNL on Monday June 24, 2019 @04:11PM
(#20267912)
Thanks for the tip!
Home Assistant has a module for the "MH-Z19 CO2 Sensor" (1) which is on AliExpress for $20 (2). So i'll probably give that a try...
1) https://www.home-assistant.io/components/mhz19/
2) https://aliexpress.com/item/1PCS-ORIGINAL-Brand-New-MH-Z19-C...
Re:Ask HN: What do you do with your Raspberry Pi?
by mef51 on Monday June 24, 2019 @02:06PM
(#20266493)
which CO2 sensor do you use?
Re:Ask HN: What do you do with your Raspberry Pi?
by inson on Monday June 24, 2019 @02:16PM
(#20266616)
I am also interested in your CO2 sensor. What kind of CO2 sensor?
Re:Ask HN: What do you do with your Raspberry Pi?
by 2sk21 on Monday June 24, 2019 @03:16PM
(#20267341)
This is the sensor that I'm using: https://www.co2meter.com/collections/desktop/products/co2min...
Re:Ask HN: What do you do with your Raspberry Pi?
by sparker72678 on Monday June 24, 2019 @07:13PM
(#20269507)
Are you running Windows on the Pi, or did you write your own software to interface with the sensor over USB?
Re:Ask HN: What do you do with your Raspberry Pi?
by 2sk21 on Monday June 24, 2019 @08:03PM
(#20269837)
I'm running standard Raspbian on the Raspberry Pi. I modified some sample Python code I found here: https://github.com/vfilimonov/co2meter
It turned out to be quite straightforward
Re:Ask HN: What do you do with your Raspberry Pi?
by preston4tw on Monday June 24, 2019 @08:10PM
(#20269886)
Any reason you picked that sensor over others?
Re:Ask HN: What do you do with your Raspberry Pi?
by 2sk21 on Tuesday June 25, 2019 @04:15AM
(#20272087)
Someone had posted on HackerNews that they had good experience with this sensor. Furthermore, it appeared to be easy to use the USB interface to get the data
Re:Ask HN: What do you do with your Raspberry Pi?
by inson on Monday June 24, 2019 @06:20PM
(#20269127)
thanks
Re:Ask HN: What do you do with your Raspberry Pi?
by thachnb on Monday June 24, 2019 @07:09PM
(#20269487)
I think CO is more dangerous than CO2! Why not CO?
Re:Ask HN: What do you do with your Raspberry Pi?
by H8crilA on Monday June 24, 2019 @08:16PM
(#20269921)
CH4 is also dangerous. It's a different problem. CH4 blows up your house and is very rare. CO kills you and is very rare. CO2 buildup causes mild issues (like headaches, sleepiness) but is very common.