Oscarliu117 (Talk | contribs) |
Huiyee11186 (Talk | contribs) |
||
(44 intermediate revisions by 5 users not shown) | |||
Line 7: | Line 7: | ||
</head> | </head> | ||
− | <body> | + | <body data-spy="scroll" data-target=".navbar-example"> |
<!--Page_Content--> | <!--Page_Content--> | ||
<div class="container content"> | <div class="container content"> | ||
− | + | <div class="headstyle"> | |
+ | <h1 class="head">CO<sub>2</sub> Sensor</h1> | ||
+ | </div> | ||
+ | <div class="righttitle"> | ||
+ | <h6 class="subtitle"></h6> | ||
+ | </div> | ||
<div class="navbar-example"> | <div class="navbar-example"> | ||
<div class="row"> | <div class="row"> | ||
<div class="col-2 side"> | <div class="col-2 side"> | ||
<div id="sidelist" class="list-group"> | <div id="sidelist" class="list-group"> | ||
− | <a class="list-group-item list-group-item-action" href="# | + | <a class="list-group-item list-group-item-action" href="#Motivation">Motivation</a> |
− | <a class="list-group-item list-group-item-action" href="# | + | <a class="list-group-item list-group-item-action" href="#Experiments">Experiments</a> |
− | <a class="list-group-item list-group-item-action" href="# | + | <a class="list-group-item list-group-item-action" href="#Wiring">Wiring</a> |
− | <a class="list-group-item list-group-item-action" href="# | + | <a class="list-group-item list-group-item-action" href="#Reference">Reference</a> |
<a class="list-group-item list-group-item-action" href="#"><i class="fa fa-arrow-up fa-1x" | <a class="list-group-item list-group-item-action" href="#"><i class="fa fa-arrow-up fa-1x" | ||
aria-hidden="true"></i></a> | aria-hidden="true"></i></a> | ||
Line 27: | Line 32: | ||
<div data-spy="scroll" data-target="#sidelist" data-offset="0" class="scrollspy-example"> | <div data-spy="scroll" data-target="#sidelist" data-offset="0" class="scrollspy-example"> | ||
<div class="container"> | <div class="container"> | ||
− | + | <img class="contentimg col-12" src="https://static.igem.org/mediawiki/2018/3/32/T--NCKU_Tainan--CO2_sensor.jpg"> | |
− | + | <p class="pcontent"> | |
− | < | + | About this section, we are showing how to use the CO<sub>2</sub> sensor in Arduino. |
− | + | </p> | |
− | + | <div id="Motivation"> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
<h3>Motivation</h3></br> | <h3>Motivation</h3></br> | ||
<div id="pt"> | <div id="pt"> | ||
<p class="pcontent"> | <p class="pcontent"> | ||
− | We want to detect if the | + | We want to detect if the CO<sub>2</sub> concentration at the outlet is decreasing as |
expected. | expected. | ||
</p> | </p> | ||
Line 50: | Line 51: | ||
− | <div id=" | + | <div id="Experiments"> |
− | + | ||
<h3>Experiments</h3></br> | <h3>Experiments</h3></br> | ||
Line 61: | Line 61: | ||
<ul> | <ul> | ||
− | <li>Because the analog value returned by each sensor may be inaccurate, and | + | <li class="none">Because the analog value returned by each sensor may be inaccurate, and |
the carbon dioxide concentration in each area may be slightly | the carbon dioxide concentration in each area may be slightly | ||
different, it must be corrected before use.</li></br> | different, it must be corrected before use.</li></br> | ||
Line 73: | Line 73: | ||
<li>Let the sensor enter a steady state and operate in an unventilated | <li>Let the sensor enter a steady state and operate in an unventilated | ||
environment for at least 48 hours.</li></br> | environment for at least 48 hours.</li></br> | ||
− | <li>At this time, the | + | <li>At this time, the analog value of the atmospheric carbon dioxide |
− | concentration (about 400 ppm) was measured, and we measured 705.</li></br> | + | concentration (about 400 ppm) was measured, and we measured 705 ppm.</li></br> |
− | <li>The known carbon dioxide concentration is adjusted by a | + | <li>The known carbon dioxide concentration is adjusted by a CO<sub>2</sub> |
− | + | incubator, and the ppm can be obtained according to the formula | |
− | conversion, and the | + | conversion, and the analog value of the concentration is obtained.</br> |
− | Ex: We put the carbon dioxide sensor into | + | Ex: We put the carbon dioxide sensor into 5% carbon dioxide and |
− | measured its | + | measured its analog value to 530 ppm.</li></br> |
<li>We assume that the carbon dioxide logarithmic concentration is | <li>We assume that the carbon dioxide logarithmic concentration is | ||
negatively linearly related to the output analog value, and can be | negatively linearly related to the output analog value, and can be | ||
Line 87: | Line 87: | ||
<li>Formula</li></br> | <li>Formula</li></br> | ||
+ | |||
+ | <img class="contentimg CO2img-2 col-14" src="https://static.igem.org/mediawiki/2018/9/9c/T--NCKU_Tainan--CO2_Results.jpg"> | ||
+ | |||
+ | <ol type="a"> | ||
+ | <li>X% = 10000X ppm Ex: 5% CO<sub>2</sub> concentration = 50000 ppm</li></br> | ||
+ | <li>Let we assume the unknown CO<sub>2</sub> concentration is C ppm.</li></br> | ||
+ | </ol> | ||
+ | |||
+ | <div id="pt"> | ||
+ | <p class="pcontent"> | ||
+ | $$slope={V_{50000}-V_{400}\over | ||
+ | log50000-log400}={V-V_{400}\over logC-log400}$$</br></p> | ||
+ | </div> | ||
+ | |||
+ | <ul> | ||
+ | <li class="none">From the graph, we have shown that V<sub>50000</sub> = 530 、V<sub>400</sub> | ||
+ | = 705</li> | ||
+ | <li class="none">Therefore, we can get the slope value.</li> | ||
+ | <li class="none">After shifting the equation we will get</li> | ||
+ | </ul> | ||
+ | |||
+ | <div id="pt"> | ||
+ | <p class="pcontent"> | ||
+ | $${logC-log400}={V-V_{400}\over slope}$$</br> | ||
+ | $$C={10^{log400+{V-V_{400}\over slope}}}$$</br></p> | ||
+ | </div> | ||
+ | |||
+ | <ul> | ||
+ | <li class="none">We can then get the unknown CO<sub>2</sub> concentration from this formula.</li> | ||
+ | </ul> | ||
+ | |||
+ | <li>Picture</li></br> | ||
+ | |||
+ | <ul> | ||
+ | <li class="none">We put CO<sub>2</sub> sensor into the CO<sub>2</sub> incubator and measure its analog value.</li> | ||
+ | </ul> | ||
+ | |||
+ | <img class="contentimg CO2img col-8" src="https://static.igem.org/mediawiki/2018/7/71/T--NCKU_Tainan--IMG_2109.jpg"> | ||
+ | |||
+ | </br></br> | ||
+ | |||
</ol> | </ol> | ||
− | <li>Experiment 2: | + | <li>Experiment 2: CO<sub>2</sub> trend line verification</li></br> |
<ol> | <ol> | ||
<li>Purpose</li></br> | <li>Purpose</li></br> | ||
<ul> | <ul> | ||
− | <li>To verify whether the logarithmic concentration of carbon dioxide is | + | <li class="none">To verify whether the logarithmic concentration of carbon dioxide is |
negatively linear with the output analog value.</li></br> | negatively linear with the output analog value.</li></br> | ||
</ul> | </ul> | ||
Line 102: | Line 143: | ||
<ul> | <ul> | ||
− | <li>Use a | + | <li class="none">Use a CO<sub>2</sub> incubator to adjust the known carbon dioxide concentration and measure its analogy to see if it is on this line.</li></br> |
− | + | ||
</ul> | </ul> | ||
Line 110: | Line 150: | ||
<ul> | <ul> | ||
− | <li></li></br> | + | <li class="none">We put our sensor in the environment of CO<sub>2</sub> 2.7%, and we measured that |
+ | the analog value 550, which is quite match with the theoretical analog | ||
+ | value 552.</li></br> | ||
</ul> | </ul> | ||
+ | |||
</ol> | </ol> | ||
Line 118: | Line 161: | ||
<ul> | <ul> | ||
− | <li>It is best to preheat for the first time for 24 hours, use it for more than | + | <li class="none">It is best to preheat for the first time for 24 hours, use it for more than |
six hours, preheat for 1-2 hours, power off for more than 72 hours, and | six hours, preheat for 1-2 hours, power off for more than 72 hours, and | ||
preheat for 24 hours.</li> | preheat for 24 hours.</li> | ||
Line 130: | Line 173: | ||
<li>Arduino UNO</li></br> | <li>Arduino UNO</li></br> | ||
− | <li>MG811 | + | <li>MG811 CO<sub>2</sub> Sensor</li> |
<ol type="a"> | <ol type="a"> | ||
<li>Heating power supply: 7.5-12V</li> | <li>Heating power supply: 7.5-12V</li> | ||
<li> Operating Temperature: -20 – 50 °C</li> | <li> Operating Temperature: -20 – 50 °C</li> | ||
− | <li>Measuring range: 400-10000ppm | + | <li>Measuring range: 400-10000ppm CO<sub>2</sub></li> |
</ol> | </ol> | ||
</br> | </br> | ||
− | <li> | + | <li>Float flowmeter or CO<sub>2</sub> incubator</li></br></li></br> |
− | <li><a href="https://github.com/vicky87106/2018iGEM_NCKU-Tainan">Arduino code</a></li></br> | + | <li><a href="https://github.com/vicky87106/2018iGEM_NCKU-Tainan" style="color: #28ff28;">Arduino |
+ | code</a></li></br> | ||
</ol> | </ol> | ||
Line 147: | Line 191: | ||
</div> | </div> | ||
− | <div id=" | + | <div id="Wiring"> |
− | + | ||
− | + | ||
− | + | ||
<h3>Wiring</h3></br> | <h3>Wiring</h3></br> | ||
<div id="centerimg" class="TPwiring"> | <div id="centerimg" class="TPwiring"> | ||
− | <img class=" | + | <img class="contentimg col-12" src="https://static.igem.org/mediawiki/2018/b/b9/T--NCKU_Tainan--home_08-co2_sensor-1.jpg"> |
</div> | </div> | ||
Line 160: | Line 201: | ||
− | <div id=" | + | <div class="reference" id="Reference"> |
− | + | ||
− | + | ||
− | + | ||
<h3>Reference</h3></br> | <h3>Reference</h3></br> | ||
<ol> | <ol> | ||
− | <li>Tiequan Shao.Peng Wei.(2016)Arduino 二氧化碳感測器MG811 校正計算.Retrieved from</br> | + | <li class="smallp">Tiequan Shao.Peng Wei.(2016)Arduino 二氧化碳感測器MG811 校正計算.Retrieved |
+ | from</br> | ||
http://a-chien.blogspot.com/2016/03/arduino-mg811.html</li> | http://a-chien.blogspot.com/2016/03/arduino-mg811.html</li> | ||
</ol> | </ol> | ||
Line 191: | Line 230: | ||
$(document).ready(function () { | $(document).ready(function () { | ||
$(window).scroll(function () { | $(window).scroll(function () { | ||
− | if ($(this).scrollTop() >= | + | if ($(this).scrollTop() >= 500) { |
var position = $("#sidelist").position(); | var position = $("#sidelist").position(); | ||
if (position == undefined) {} else { | if (position == undefined) {} else { | ||
Line 214: | Line 253: | ||
}); | }); | ||
</script> | </script> | ||
− | + | <script src="https://2018.igem.org/Team:NCKU_Tainan/js/frame/T--NCKU_Tainan--jquery-1_12_4_min_js?action=raw&ctype=text/javascript"></script> | |
+ | <script src="https://2018.igem.org/Template:NCKU_Tainan/js/bootstrap_min_js?action=raw&ctype=text/javascript"></script> | ||
+ | <script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML' async></script> | ||
</body> | </body> | ||
Latest revision as of 21:33, 17 October 2018
CO2 Sensor