Difference between revisions of "Team:NCKU Tainan/wi fi"

 
(27 intermediate revisions by 6 users not shown)
Line 11: Line 11:
 
     <!--Page_Content-->
 
     <!--Page_Content-->
 
     <div class="container content">
 
     <div class="container content">
        <h1 class="head">Wi-fi Sensor</h1>
+
            <div class="headstyle">
 +
                <h1 class="head">Wi-Fi Module</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="#list-item-1">Motivation</a>
+
                         <a class="list-group-item list-group-item-action" href="#Motivation">Motivation</a>
                         <a class="list-group-item list-group-item-action" href="#list-item-2">Experiments</a>
+
                         <a class="list-group-item list-group-item-action" href="#Experiments">Experiments</a>
                         <a class="list-group-item list-group-item-action" href="#list-item-3">Wiring</a>
+
                         <a class="list-group-item list-group-item-action" href="#Wiring">Wiring</a>
                        <a class="list-group-item list-group-item-action" href="#list-item-4">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 31:
 
                     <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/9/9b/T--NCKU_Tainan--wifi_sensor.jpg">
 
+
                            <p class="pcontent">
                            <div id="list-item-1">
+
                                About this section, we are showing how to use the Wi-Fi module in arduino.
 
+
                            </p>
                                <p class="pcontent">
+
                            <div id="Motivation">
                                    About this section, we are showing how to use the Wi-Fi sensor in arduino.
+
                                </p>
+
                                </br>
+
 
+
 
                                 <h3>Motivation</h3></br>
 
                                 <h3>Motivation</h3></br>
  
 
                                 <div id="pt">
 
                                 <div id="pt">
 
                                     <p class="pcontent">
 
                                     <p class="pcontent">
                                         In order to send data to firebase, we use Wi-fi sensor to upload it.
+
                                         In order to send data to firebase, we use Wi-Fi module to upload it.
 
                                     </p>
 
                                     </p>
 
                                 </div>
 
                                 </div>
Line 49: Line 49:
  
  
                             <div id="list-item-2">
+
                             <div id="Experiments">
                                </br></br></br></br>
+
 
                                 <h3>Experiments</h3></br>
 
                                 <h3>Experiments</h3></br>
  
 
                                 <ul>
 
                                 <ul>
                                     <li>Experiment 1: Temperature measuring</li></br>
+
                                      
  
 
                                     <ol>
 
                                     <ol>
Line 60: Line 59:
  
 
                                         <ul>
 
                                         <ul>
                                             <li>We need to send data from one sensor to another sensor. We would like
+
                                             <li class="none">We need to send data from one sensor to another one. We would like
                                                 to send the Arduino sensor data to Wi-fi sensor, and send the Wi-fi
+
                                                 to send the Arduino sensor data to Wi-Fi module, and send the Wi-Fi
 
                                                 time data to Arduino.</li></br>
 
                                                 time data to Arduino.</li></br>
 
                                         </ul>
 
                                         </ul>
Line 68: Line 67:
  
 
                                         <ul>
 
                                         <ul>
                                             <li>We use Arduino TX to send sensor data to Wi-fi RX, then upload data to
+
                                             <li class="none">We use Arduino TX to send sensor data to Wi-Fi RX, then upload data to
 
                                                 <a href="https://2018.igem.org/Team:NCKU_Tainan/Software#Database" style="color:#28ff28;">database</a>.
 
                                                 <a href="https://2018.igem.org/Team:NCKU_Tainan/Software#Database" style="color:#28ff28;">database</a>.
                                                 And we use Wi-fi TX to send time data to Arduino RX, then print it on
+
                                                 And we use Wi-Fi TX to send time data to Arduino RX, then print it on
 
                                                 LCD. </li></br>
 
                                                 LCD. </li></br>
 +
                                                <h5 class="smalltitle">Wi-Fi (Node mcu) Code</h5>
 +
                                                <div style="overflow: auto; width:100%; height:250px; background-color:#272625; border:3px solid #a6a6a6;">
 +
                                                    <script src="https://gist.github.com/yiiju/2f96c728a52ab2fa5c03a4145cc6da81.js"></script>
 +
                                                </div>
 
                                         </ul>
 
                                         </ul>
  
 
                                         <li>Precaution</li></br>
 
                                         <li>Precaution</li></br>
 
                                         <ul>
 
                                         <ul>
                                             <li>Because we only can send data by byte, so we need to separate the data
+
                                             <li class="none">Because we cannot send data by float, so we need to separate the data before
                                                 into one by one. For instance, 25 may be send by 2 and 5. Then merge it
+
                                                 and after the decimal. For instance, 25.35 may be send by 25 and 35. Then merge  
                                                 on another sensor. For instance, 2 and 5 may merge by 2*10+5=25.</li></br>
+
                                                 it on another sensor. For instance, 25.35 may be merged by 25 + 0.01 * 35
 +
</li></br>
 
                                         </ul>
 
                                         </ul>
  
 
                                         <li>Result</li></br>
 
                                         <li>Result</li></br>
 
                                         <ul>
 
                                         <ul>
                                             <li>We send an array which is 25、26、27 from Arduino to Wi-fi sensor. And we
+
                                             <li class="none">We send an array which is 25.35、26.56、27.54 from Arduino to Wi-Fi module. And  
                                                 let the Wi-fi sensor Serial to print the data read by byte. Then we
+
                                                 we let the Wi-Fi module Serial to print the data which are send separately.  
                                                 merge the data to what it should be originally. </li></br>
+
                                                 Then we merge the data to what it should be originally. </li></br>
 
                                         </ul>
 
                                         </ul>
 
                                        <img class="contentimg col-6" src="https://static.igem.org/mediawiki/2018/f/f4/T--NCKU_Tainan--software_manual_wifi_%E5%9C%96%E4%B8%80.jpg">
 
  
 
                                     </ol>
 
                                     </ol>
  
                                     </br>
+
                                     <div><img class="contentimg col-6 result" src="https://static.igem.org/mediawiki/2018/8/8c/T--NCKU_Tainan--wifi_results.jpg"></div>
                                    <li>Materials used</li></br>
+
 
 +
                                        <ul>
 +
                                            <li class="none">We check the format of the header and end of the packet and also check if there
 +
                                                are 6 values in each packet. If it had, we translate the contents of the packet
 +
                                                into pH value, temperature and CO<sub>2</sub> concentration, and upload the translated
 +
                                                result to the cloud. </li></br>
 +
                                        </ul>
  
                                    <ol>
+
                                 
  
 +
                               
 +
                                    <li>Materials used</li></br>
  
                                         <li>Arduino UNO</li></br>
+
                                    <ol>
                                         <li>Wi-fi sensor (NodeMcu)</li>
+
                                         <li>Arduino UNO</li>
 +
                                         <li>Wi-Fi module (NodeMcu)</li>
 
                                         <li><a href="https://github.com/vicky87106/2018iGEM_NCKU-Tainan" style="color:#28ff28;">Arduino
 
                                         <li><a href="https://github.com/vicky87106/2018iGEM_NCKU-Tainan" style="color:#28ff28;">Arduino
 
                                                 Code</a></li>
 
                                                 Code</a></li>
 
                                     </ol>
 
                                     </ol>
  
                                    </ol>
+
 
                                    </ol>
+
 
 
                                 </ul>
 
                                 </ul>
  
 
                             </div>
 
                             </div>
  
                             <div id="list-item-3">
+
                             <div id="Wiring">
 
+
                                </br></br></br></br>
+
 
+
 
                                 <h3>Wiring</h3></br>
 
                                 <h3>Wiring</h3></br>
 
+
                                     <img class="contentimg col-12" src="https://static.igem.org/mediawiki/2018/a/ac/T--NCKU_Tainan--manual_wifi_%E5%9C%96%E4%BA%8C.jpg">
                                <div id="centerimg" class="TPwiring">
+
                             
                                     <img class="oneimg" src="https://static.igem.org/mediawiki/2018/a/ac/T--NCKU_Tainan--manual_wifi_%E5%9C%96%E4%BA%8C.jpg">
+
                                </div>
+
 
+
 
                             </div>
 
                             </div>
  
Line 131: Line 136:
 
     <style>
 
     <style>
 
         .head {
 
         .head {
             width: 85% !important;
+
             width: 55% !important;
 
         }
 
         }
 
     </style>
 
     </style>
 
  
 
     <script>
 
     <script>
 
         $(document).ready(function () {
 
         $(document).ready(function () {
 
             $(window).scroll(function () {
 
             $(window).scroll(function () {
                 if ($(this).scrollTop() >= 90) {
+
                 if ($(this).scrollTop() >= 500) {
 
                     var position = $("#sidelist").position();
 
                     var position = $("#sidelist").position();
 
                     if (position == undefined) {} else {
 
                     if (position == undefined) {} else {
Line 163: Line 167:
 
     </script>
 
     </script>
 
     <script src="https://2018.igem.org/Team:NCKU_Tainan/js/frame/T--NCKU_Tainan--jquery-1_12_4_min_js?action=raw&amp;ctype=text/javascript"></script>
 
     <script src="https://2018.igem.org/Team:NCKU_Tainan/js/frame/T--NCKU_Tainan--jquery-1_12_4_min_js?action=raw&amp;ctype=text/javascript"></script>
     <script src="https://2018.igem.org/Template:NCKU_Tainan/js/bootstrap_min_js?action=raw&amp;ctype=text/javascript">
+
     <script src="https://2018.igem.org/Template:NCKU_Tainan/js/bootstrap_min_js?action=raw&amp;ctype=text/javascript"></script>
        < /body>
+
</body>
  
        <
+
</html>
        /html>
+
  
 
{{NCKU_Tainan/footer}}
 
{{NCKU_Tainan/footer}}

Latest revision as of 14:19, 3 November 2018

Wi-Fi Module

Follow us

Contact us

igem.ncku.tainan@gmail.com
No.1, Daxue Rd., East Dist., Tainan City 701, Taiwan (R.O.C.)