Thingiverse
CO2-Sensor - Arduino/ESP/Display/Wifi by willie42
by Thingiverse
Last crawled date: 3 years, 4 months ago
This thing measures temperature, humidity and CO2-level. The values are displayed on the LCD. An rgb-LED indicates when it´s time to ventilate. Additionally all the data can be broadcasted via MQTT to a server and then been shown as a chart in your browser.
Basics
I times of corona we are told to ventilate quite often. On the other hand we don´t want to sit in the cold. So there are several projects that build a „traffic-light“ to indicate when it´s time to ventilate.
First I just wanted to experiment a bit and used an arduino nano that I had laying around. I bought a cheep MQ-135 sensor which measures serval gasses in the air. With the library installed, an equivalent CO2-value is calculated.This seamed to be good enough, cause I just wanted to have an indicator when it´s time to ventilate. But calibrating that thing in fresh air didn´t work for me - I didn´t get reproducible values.
So I tried a CCS811 next. This one has logic on board and does the calculation of eCO2 and the calibration (base curve) by itself. But one problem remained: Whenever a disinfectant with alcohol in it is used in the room, the values had extrem high peaks.
That´s when I decided to try an „real“ CO2-Sensor, a MH-Z19B.This one has a temperature-sensor build in as well, so that it can do the environmental adjustment of the measurements. It assumes, that the lowest measured level in the last past 24 hours was taken in fresh air (400 ppm). This is the way this thing does it´s self calibration. This works fine in, for example, an office. Over night the CO2-level drops to about 400 ppm. Bingo - this one finally seams to be reliable!
The second sensor used in the project, the DHT22, delivers temperature and humidity - the air should be to dry (not below 50%), when you do corona-prevention - so you can monitor this too.
But of course you can use the other eCO2-sensors as well to experiment for yourself and for doing some fun stuff. The simple case I made for this purpose can carry all of them in the vented compartment.
The Housings
This one won´t win a price for elegant design - but it has room left for further improvement and experiments. There is a fix place for the 1602 display and the used logic-board. On the left, there is a vented compartment for the sensors. The inner wall can be removed for an easy mounting of the elements. I just used double-sides-tape to mount my two sensors.
The RBG-LED (1) was installed later. I drilled a 16 mm hole for it and used hotglue to fix it. The LED-tube itself is printed from transparent plastic.
Feel free to install a lipo and a step-up-converter or whatever you want ...
There are three versions of the body, for
arnuino nano
node-esp8266 development boards - 49 x 26 mm
node-esp8266 development boards - 58 x 31 mm
The Sketch(es)
There is one that runs without WiFi. it just display the measurement locally on the display and by changing the color of the led. You can use this one with an arduino nano for example. Eventually you have to check/change the pins where sensor and so are connected.
The main sketch uses WiFi as well. Ad your credentials and the esp should connect to your router. Of course, this only makes sense if you want to use a mqtt-broker (add the ip) and node-red as well. If you do this, you can display the values over time in your browser and you can switch on/off the LCD-backlight as well :)
You can install both, mqtt-broker and node-red server on a rasperry. There are several tutorials online on how to do this.
As an alternative you can use a external service for that. This is a public and free one I found - but I haven´t testet it: https://www.hivemq.com/public-mqtt-broker/
Have a look at my screenshots. I add my Node-Red-flow as well.
You can influence the color-change by editing the constants for the colors. In case of corona-prevention you have to ventilate when 1000 ppm are reached. Against tiredness and for a better power of concentration do it at the latest from 1800 ppm. Thereafter, with the actual presets, the led will blink red!
I installed the following libraries
DHT sensor library (by Adafruit 1.4.0)
MHZ19 (by Jonathan Dempsey 1.5.1) https://github.com/WifWaf/MH-Z19
PubSubClient (by Nick O`Leary 2.8.0)
RunningAverage (by Bob Tillaard 0.3.1)
LiquidCrystal_I2C (by Frank de Brabander 1.1.2)
Adafruit NeoPixel (by Adafruit 1.7.0)
Parts Used
Display 1602 (Hitachi or compatible) with I2C-port
Arduino Nano or ESP8266 for the WiFi-Version
MH-Z19B
DHT-22
RGB-LED (2810, here one pixel)
Resitor 470k
Some wire, solder, srews ...
Alternatives
Here are the alternaives for the other mentioned sensors if you like to experiment with them:
CCS811
The library: https://github.com/maarten-pennings/CCS811
MQ - 135
The library - https://github.com/GeorgK/MQ135
In the libraries there are examples that show how to use them. It should be easy to change the sketch appropriate.
Live long and prosper!
Basics
I times of corona we are told to ventilate quite often. On the other hand we don´t want to sit in the cold. So there are several projects that build a „traffic-light“ to indicate when it´s time to ventilate.
First I just wanted to experiment a bit and used an arduino nano that I had laying around. I bought a cheep MQ-135 sensor which measures serval gasses in the air. With the library installed, an equivalent CO2-value is calculated.This seamed to be good enough, cause I just wanted to have an indicator when it´s time to ventilate. But calibrating that thing in fresh air didn´t work for me - I didn´t get reproducible values.
So I tried a CCS811 next. This one has logic on board and does the calculation of eCO2 and the calibration (base curve) by itself. But one problem remained: Whenever a disinfectant with alcohol in it is used in the room, the values had extrem high peaks.
That´s when I decided to try an „real“ CO2-Sensor, a MH-Z19B.This one has a temperature-sensor build in as well, so that it can do the environmental adjustment of the measurements. It assumes, that the lowest measured level in the last past 24 hours was taken in fresh air (400 ppm). This is the way this thing does it´s self calibration. This works fine in, for example, an office. Over night the CO2-level drops to about 400 ppm. Bingo - this one finally seams to be reliable!
The second sensor used in the project, the DHT22, delivers temperature and humidity - the air should be to dry (not below 50%), when you do corona-prevention - so you can monitor this too.
But of course you can use the other eCO2-sensors as well to experiment for yourself and for doing some fun stuff. The simple case I made for this purpose can carry all of them in the vented compartment.
The Housings
This one won´t win a price for elegant design - but it has room left for further improvement and experiments. There is a fix place for the 1602 display and the used logic-board. On the left, there is a vented compartment for the sensors. The inner wall can be removed for an easy mounting of the elements. I just used double-sides-tape to mount my two sensors.
The RBG-LED (1) was installed later. I drilled a 16 mm hole for it and used hotglue to fix it. The LED-tube itself is printed from transparent plastic.
Feel free to install a lipo and a step-up-converter or whatever you want ...
There are three versions of the body, for
arnuino nano
node-esp8266 development boards - 49 x 26 mm
node-esp8266 development boards - 58 x 31 mm
The Sketch(es)
There is one that runs without WiFi. it just display the measurement locally on the display and by changing the color of the led. You can use this one with an arduino nano for example. Eventually you have to check/change the pins where sensor and so are connected.
The main sketch uses WiFi as well. Ad your credentials and the esp should connect to your router. Of course, this only makes sense if you want to use a mqtt-broker (add the ip) and node-red as well. If you do this, you can display the values over time in your browser and you can switch on/off the LCD-backlight as well :)
You can install both, mqtt-broker and node-red server on a rasperry. There are several tutorials online on how to do this.
As an alternative you can use a external service for that. This is a public and free one I found - but I haven´t testet it: https://www.hivemq.com/public-mqtt-broker/
Have a look at my screenshots. I add my Node-Red-flow as well.
You can influence the color-change by editing the constants for the colors. In case of corona-prevention you have to ventilate when 1000 ppm are reached. Against tiredness and for a better power of concentration do it at the latest from 1800 ppm. Thereafter, with the actual presets, the led will blink red!
I installed the following libraries
DHT sensor library (by Adafruit 1.4.0)
MHZ19 (by Jonathan Dempsey 1.5.1) https://github.com/WifWaf/MH-Z19
PubSubClient (by Nick O`Leary 2.8.0)
RunningAverage (by Bob Tillaard 0.3.1)
LiquidCrystal_I2C (by Frank de Brabander 1.1.2)
Adafruit NeoPixel (by Adafruit 1.7.0)
Parts Used
Display 1602 (Hitachi or compatible) with I2C-port
Arduino Nano or ESP8266 for the WiFi-Version
MH-Z19B
DHT-22
RGB-LED (2810, here one pixel)
Resitor 470k
Some wire, solder, srews ...
Alternatives
Here are the alternaives for the other mentioned sensors if you like to experiment with them:
CCS811
The library: https://github.com/maarten-pennings/CCS811
MQ - 135
The library - https://github.com/GeorgK/MQ135
In the libraries there are examples that show how to use them. It should be easy to change the sketch appropriate.
Live long and prosper!
Similar models
thingiverse
free
Arduino CO2 Sensor v.1 by AndrewMaker98
...ensor useful!
p.s. :
-arduino co2 sensor v.2: "https://www.thingiverse.com/thing:2422144"
-arduino code under revision
thingiverse
free
Arduino CO-CO2 Sensor v.2 by AndrewMaker98
...;
-arduino code under revision
-here the libraries: "https://drive.google.com/file/d/0b9tc96icexppb2o4rwnvakm1vue/view"
thingiverse
free
WIFI Enabled "Recording" Sign by cyberreefguru
...- https://github.com/cyberreefguru/wifineopixels
node red module - https://github.com/cyberreefguru/node-red-contrib-led-animator
thingiverse
free
MH-Z19b real CO2 air quality sensor "traffic light" by Jori
...let of 5v led strip)
4 pcs of counter suck screws m3x16
... nice and easy build to visualize when it is time to open the windows!
thingiverse
free
TFA CO2 breadboard case for ESP32 Thing Plus or similar. by spacecap
...m so the esp32 did not reset.
on the tfa co2 sensor you have to add one header pin. for the 5v power supply.
feel free to use it.
grabcad
free
CCS811 Sensor
...ccs811 sensor
grabcad
ccs811 co2/tvoc sensor, made in fusion 360
thingiverse
free
MsgTerminal_WeMos_ESP8266_OLED_MQTT by bmjbmj
... program for the esp8266 is included and you can change font, topic, server etc. as you like and recompile using the arduino ide.
3dwarehouse
free
MH-Z19 CO2 sensor
...mh-z19 co2 sensor
3dwarehouse
co2 sensor mh-z19 iot arduino esp8266 esp32
thingiverse
free
Air quality CO2 sensor by Luc3as
...ill probably add some fan to force movement of air inside.
if you liked my work, you can buy me a coffee :)
or send some crypto
thingiverse
free
CO2 Sensor by jannis1602
...hree holes for the sensors must be drilled after printing.
the arduino program on github: https://github.com/jannis1602/co2sensor
Willie42
thingiverse
free
Masonic Stencil by willie42
...ncil by willie42
thingiverse
just a little masonic stencil.
use it for flour or cocoa and decorate your bread or your cappucino.
thingiverse
free
EiPhone - Eggbot-Design by willie42
...eiphone - eggbot-design by willie42
thingiverse
a very simple design - made for an iphone-fan.
thingiverse
free
Masonic SphereBot Themes by willie42
...n is near ...
one of the motifs was specially made for the 200th anniversary of the lodge in coblenz:https://youtu.be/t1jclrjx5ha
thingiverse
free
Screw Clamp Protective Covering by willie42
...screw clamp protective covering by willie42
thingiverse
i made them as a spare part for my old screw clamps.
thingiverse
free
Compass And Square by willie42
...e as they should.
the square is easy to print.
i painted both with color out of a spray-can and use them for dekorative purposes.
thingiverse
free
Ring - Compass and Square with skull by willie42
...ender (freehand sculpting) and printed from castable resin. then embedded in investment, burned out and finally casted in silver.
thingiverse
free
Old Window handle by willie42
...open markets, but had no success. so i drew one and printed it. a bit of colour and voila ... not perfect in style, but is works.
thingiverse
free
Ender-4 Display Tilt Mount by willie42
...
a simple way to mount the original display panel tilted 30 degrees.
all you need are the printed parts and three simple screws.
thingiverse
free
Celtic Wedding Ring - Highlander Inspired by willie42
...
i made this ring after i saw a episode of highlander.
it has a hand-crafted look and i casted it in silver. i hope, you like it.
thingiverse
free
YAKF - Yet Annother Keyboard Foot - K260 by willie42
...llie42
thingiverse
this one is for a logitech k 260.
the other feet on thingiverse looked all a bit different, so i made my own.
Esp
3ddd
free
ESP Explorer
...esp explorer
3ddd
гитара
esp explorer
знаменитая гитарка дядьки хэта
3d_export
$5
ESP FORESTB 3D Model
...esp forestb 3d model
3dexport
esp bass guitar
esp forestb 3d model okkervil 506 3dexport
3ddd
$1
ESP F STD
...esp f std
3ddd
esp
в сцене гитара в 2-х матах, v-ray и corona
3d_export
$25
Guitar ESP Snakebyte 3D Model
...guitar esp snakebyte 3d model
3dexport
guitar esp snakebyte
guitar esp snakebyte 3d model jarikart85939 90869 3dexport
cg_studio
$15
ESP controller3d model
...studio
.3ds .c4d .dae .fbx .max .obj - esp controller 3d model, royalty free license available, instant download after purchase.
turbosquid
$35
ESP Axxion HD_FR
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
free
Guitar ESP-LTD
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
3ddd
$1
ESP LTD d-5
...esp ltd d-5
3ddd
гитара
модель пятиструнной басухи esp ltd d-5. без текстур (faces - 100985)
3d_export
$15
ESP controller 3D Model
...to automotive safe safety system traction skidding steering brake brakes oversteer
esp controller 3d model fabelar 73343 3dexport
3ddd
$1
ESP Snakebyte Guitar
...esp snakebyte guitar
3ddd
гитара
james hettfield guitar, vocalist of mettalica
Co2
turbosquid
$5
CO2 Assembly
...royalty free 3d model co2 assembly for download as ma and obj on turbosquid: 3d models for games, architecture, videos. (1471659)
turbosquid
$25
Balloon CO2
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
$2
co2 tank
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
free
CO2 Rifle
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
$10
CO2 fire extinguisher
...yalty free 3d model co2 fire extinguisher for download as max on turbosquid: 3d models for games, architecture, videos. (1700115)
turbosquid
$3
CO2 Fire Extinguisher
...ee 3d model co2 fire extinguisher for download as max and fbx on turbosquid: 3d models for games, architecture, videos. (1292094)
turbosquid
$6
Paintball Co2 Tank
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
free
Fire Extinguisher CO2
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
3d_export
$10
co2 fire extinguisher
...096<br>refract - 4096х4096<br>the archive contains files of universal formats for import:<br>.fbx<br>.obj
3d_export
$99
Citroen C zerro 2011 3D Model
...detailed 3d model europe auto vehicle car france zero co2 emissions electric urban creativity qualify emotion citroen c zerro...
Wifi
turbosquid
$1
Wifi Icon
...rbosquid
royalty free 3d model wifi icon for download as fbx on turbosquid: 3d models for games, architecture, videos. (1546436)
turbosquid
$10
WiFi Camera
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
design_connected
$4
Wifi Coffee Table
...offee table
designconnected
liv'it wifi coffee table coffee tables computer generated 3d model. designed by stefan schöning.
turbosquid
$2
Wifi Signal Booster
...yalty free 3d model wifi signal booster for download as blend on turbosquid: 3d models for games, architecture, videos. (1281888)
turbosquid
$15
IOT Wifi Switch
...odel iot wifi switch for download as obj, fbx, blend, and dae on turbosquid: 3d models for games, architecture, videos. (1510115)
3d_export
$12
IPod WiFi 3D Model
...ipod wifi 3d model
3dexport
ipod wi-fi
ipod wifi 3d model fau 71186 3dexport
turbosquid
$59
iPad Air WiFi
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
$5
Nintendo USB WIFI
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
$2
Wireless WiFi Router
...eless wifi router for download as blend, x, fbx, stl, and obj on turbosquid: 3d models for games, architecture, videos. (1682399)
turbosquid
$7
Wifi internet logo
...nternet logo for download as max, ige, obj, fbx, dwg, and stl on turbosquid: 3d models for games, architecture, videos. (1369275)
Arduino
turbosquid
$7
Arduino
...turbosquid
royalty free 3d model arduino for download as max on turbosquid: 3d models for games, architecture, videos. (1197165)
turbosquid
$3
Arduino
...turbosquid
royalty free 3d model arduino for download as c4d on turbosquid: 3d models for games, architecture, videos. (1305484)
3d_export
$5
arduino satellite
...rt
this model is the exact arduino based satellite model with some basic sensors and camera modules and also includes batteries.
turbosquid
$1
Arduino UNO
...alty free 3d model arduino uno for download as , stl, and wrl on turbosquid: 3d models for games, architecture, videos. (1515932)
3d_export
$5
esp8266 box arduino
...esp8266 box arduino
3dexport
box for esp8266 module with wire hole. inside dimensions: 49x26 mm. height 15 mm.
3d_export
$60
Arduino Uno Rev3 Microcontroller 3D Model
...mega328p circuit board spark cable wire 5v 74v 9v 111v
arduino uno rev3 microcontroller 3d model danielgarnier4403 97237 3dexport
3d_export
free
arduino rover kit
...no!!! materials: no!!! rigged: no animated: no uv mapped: no it is not an exact copy of the original! not subject to 3d printing!
3d_ocean
$7
The housing for the 3d Printer
...the housing for the 3d printer 3docean arduino device housing stl the housing consists of two portions:...
3d_export
$5
arm 4 axis
...uno -4 servo motor 180° -3 joystick (x,y) for arduino -mdf wood -some wires -cnc laser cut...
3d_export
$5
solar tracker
...machine for the frame . list of material : -arduino uno -2 step motor with driver -4 ldr sensor...
Sensor
3d_export
free
parking sensor
...parking sensor
3dexport
car parking sensor
turbosquid
$1
Sensor
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
3d_export
$5
Smoke sensor
...port
smoke sensor, can be an impressive element for your projects. easy to use, realistic image, low polygon, quality materials.
3d_export
$5
Air Quality Sensor v1
...air quality sensor v1
3dexport
air quality sensor v1
3d_export
$15
float sensor
...e up render. - all parts and materials are logically named. other formats ================= - collada (.dae) - autodesk fbx - obj
turbosquid
$26
Wind sensor C
...free 3d model wind sensor c for download as 3ds, obj, and fbx on turbosquid: 3d models for games, architecture, videos. (1328943)
turbosquid
$26
Wind sensor B
...free 3d model wind sensor b for download as 3ds, obj, and fbx on turbosquid: 3d models for games, architecture, videos. (1328168)
3d_export
$5
ultrasound sensor
...ivers convert ultrasound into electrical signals, and transceivers can both transmit and receive ultrasound. export in: -obj -fbx
3ddd
free
Вытяжка Shindo pallada sensor
... вытяжка
вытяжка shindo pallada sensor. в двух размерах - 600 и 900. текстуры в комплекте.
turbosquid
$52
Wind sensor A B C
...
royalty free 3d model wind sensor a b c for download as fbx on turbosquid: 3d models for games, architecture, videos. (1408406)
Display
3ddd
$1
Display
...display
3ddd
терминал
display computer 3d model
3d_export
$5
Display
...display
3dexport
display<br>verts 2.262<br>faces 3.928
turbosquid
$8
Display
...turbosquid
royalty free 3d model display for download as fbx on turbosquid: 3d models for games, architecture, videos. (1634534)
3ddd
$1
Display cabinet
...display cabinet
3ddd
витрина
display cabinet
turbosquid
$50
display
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
$25
DISPLAY
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
$10
Display
...e 3d model display for download as ma, max, obj, fbx, and dae on turbosquid: 3d models for games, architecture, videos. (1387472)
3d_export
$6
display stand
...display stand
3dexport
super market display stand
3d_ocean
$12
Display Case
...rnishing furniture glass storage vetrinetta white
a 3d model of a display case. the texture for the back of the case is provided.
3d_export
$30
Vehicle display
...vehicle display
3dexport
vehicle display consists of podium and vehicle cover no vehicle there is a veiled vehicle silhouette