Difference between revisions of "Team:Newcastle/Code"

 
(28 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Newcastle/navbar}}
+
{{Newcastle/navbar2}}
 
<html>
 
<html>
  
Line 21: Line 21:
 
     ================================================== -->
 
     ================================================== -->
  
     <section id="home" class="s-home target-section" data-parallax="scroll" data-image-src="https://static.igem.org/mediawiki/2018/8/87/T--Newcastle--HardwareCode.jpg" data-natural-width=3000 data-natural-height=2000 data-position-y=center>
+
     <section id="home" class="s-home target-section" data-parallax="scroll" data-image-src="https://static.igem.org/mediawiki/2018/b/bc/T--Newcastle--SoftwareHeader.jpeg">
  
 
         <div class="overlay"></div>
 
         <div class="overlay"></div>
Line 30: Line 30:
 
             <div class="row home-content__main">
 
             <div class="row home-content__main">
  
                 <h3>Alternative Roots</h3>
+
                 <h3>Newcastle Hydroponics</h3>
  
 
                 <h1>
 
                 <h1>
Line 40: Line 40:
 
                     <a href="#code" class="smoothscroll btn btn--stroke">
 
                     <a href="#code" class="smoothscroll btn btn--stroke">
 
                         Our Code
 
                         Our Code
 +
                    </a>
 +
                    <a onclick="location.href='https://static.igem.org/mediawiki/2018/f/f1/T--Newcastle--SoftwareGuide.pdf'" class="smoothscroll btn btn--stroke">
 +
                        Software Guide
 
                     </a>
 
                     </a>
 
                 </div>
 
                 </div>
Line 55: Line 58:
 
         </div> <!-- end home-content -->
 
         </div> <!-- end home-content -->
  
   </div> <!--video -->
+
   </div>
   </source> <!-- end s-home -->
+
   </section> <!-- end s-home -->
 
   <!-- about
 
   <!-- about
 
================================================== -->
 
================================================== -->
Line 66: Line 69:
 
                 <h3 class="subhead subhead--dark">NH-1</h3>
 
                 <h3 class="subhead subhead--dark">NH-1</h3>
 
                 <h1 class="display-1 display-1--light">Software</h1>
 
                 <h1 class="display-1 display-1--light">Software</h1>
 +
                <div class="home-content__buttons" style="text-align:center;padding-top:0;">
 +
                    <a onclick="location.href='https://static.igem.org/mediawiki/2018/f/f1/T--Newcastle--SoftwareGuide.pdf'" class="smoothscroll btn btn--stroke">
 +
                        Software Guide
 +
                    </a>
 +
                </div>
 
             </div>
 
             </div>
 
         </div> <!-- end section-header -->
 
         </div> <!-- end section-header -->
Line 71: Line 79:
 
         <div class="row about-desc" data-aos="fade-up">
 
         <div class="row about-desc" data-aos="fade-up">
 
             <div class="col-full">
 
             <div class="col-full">
                 <p class="about-para">Adaptability was a major issue with the existing plant growth infrastructure within the University and, in fact, with many traditional growth facilities. We designed the NH-1 to combat this. The NH-1 is controlled entirely by an Arduino micro-controller. The Arduino offers a low-cost, easy-to-use solution to control and adapt the function of the LEDs. The Arduino also offers an open-source electronic prototyping platform and offers plenty of opportunities for further development of the NH-1, in terms of user interface and interaction. All the code and the IDE are freely available online and the UNO board can be purchased online from Arduino for less than £20. The Arduino language is based on C/C++ so it is incredibly easy to become familiar with, especially if you already have experience with C/C++ but if not there is a wealth of resources online that can help with this. We have designed a guide to using the IDE and included some examples of the capabilities of the NH-1. Some of the features that you can incorporate include:</p>
+
                 <p class="about-para">Adaptability was a major issue with the existing plant growth infrastructure within the University and, in fact, with many traditional growth facilities. We designed the NH-1 to combat this. The NH-1 is controlled entirely by an Arduino micro-controller. The Arduino offers a low-cost, easy-to-use solution to control and adapt the function of the LEDs. The Arduino also offers an open-source electronic prototyping platform and offers plenty of opportunities for further development of the NH-1, in terms of user interface and interaction. All the code and the IDE are freely available online and the UNO board can be purchased online from Arduino for less than £20. The Arduino language is based on C/C++ so it is incredibly easy to become familiar with, especially if you already have experience with C/C++ but if not there is a wealth of resources online that can help with this. We have designed a <a href="https://static.igem.org/mediawiki/2018/f/f1/T--Newcastle--SoftwareGuide.pdf" class="white">guide to using the IDE</a> and included some examples of the capabilities of the NH-1. Some of the features that you can incorporate include:</p>
 
                 <ul style="list-style-type:circle;display:grid;text-align:left;">
 
                 <ul style="list-style-type:circle;display:grid;text-align:left;">
 
                     <li>Solid colours across the system</li>
 
                     <li>Solid colours across the system</li>
Line 80: Line 88:
 
                 </ul>
 
                 </ul>
 
                 <p class="about-para" style="margin-top:4%;">The list goes on as the possibilities with the NH-1 are incredibly varied. This makes it the ideal system for plant-based experimentation, with the added bonus that the system is completely contained and portable. The end result is a highly adaptable, semi-autonomous system that is simple to code and even easier to run.</p>
 
                 <p class="about-para" style="margin-top:4%;">The list goes on as the possibilities with the NH-1 are incredibly varied. This makes it the ideal system for plant-based experimentation, with the added bonus that the system is completely contained and portable. The end result is a highly adaptable, semi-autonomous system that is simple to code and even easier to run.</p>
 
+
                <div class="home-content__buttons" style="text-align:center">
 +
                    <a onclick="location.href='https://static.igem.org/mediawiki/2018/f/f1/T--Newcastle--SoftwareGuide.pdf'" class="smoothscroll btn btn--stroke">
 +
                        Software Guide
 +
                    </a>
 +
                </div>
 
 
 
             </div>
 
             </div>
Line 90: Line 102:
 
     </section> <!-- end s-about -->
 
     </section> <!-- end s-about -->
  
 +
    <section id='team' class="s-services">
  
  
 +
        <div class="row section-header has-bottom-sep" data-aos="fade-up">
 +
                <div class="col-full">
 +
                            <br>
 +
<br>
 +
<br>
 +
<br>
 +
<h3 class="subhead"></h3>
 +
                <h1 class="display-2">References & Attributions</h1>
 +
            </div>
 +
 +
        </div>
 +
 +
<button class="collapsible">Click for References & Attributions</button>
 +
<div class="content">
 +
              <div class="row about-desc" data-aos="fade-up">
 +
                <div class="col-full">
 +
 +
<p class="about-para"><font size="3"><b>Attributions: Umar Farooq, Luke Waller<b></p>
 +
                   
 +
 
 +
</div>
 +
</section>
 +
 +
        <!-- about
 +
    ================================================== -->
  
 
  <!-- Java Script
 
  <!-- Java Script
Line 101: Line 139:
 
     <script type="text/javascript" src="https://2018.igem.org/Template:Newcastle/JSmain?
 
     <script type="text/javascript" src="https://2018.igem.org/Template:Newcastle/JSmain?
 
     action=raw&ctype=text/javascript"></script>   
 
     action=raw&ctype=text/javascript"></script>   
 +
        <script>
 +
var coll = document.getElementsByClassName("collapsible");
 +
var i;
  
 +
for (i = 0; i < coll.length; i++) {
 +
  coll[i].addEventListener("click", function() {
 +
    this.classList.toggle("active");
 +
    var content = this.nextElementSibling;
 +
    if (content.style.maxHeight){
 +
      content.style.maxHeight = null;
 +
    } else {
 +
      content.style.maxHeight = content.scrollHeight + "px";
 +
    }
 +
  });
 +
}
 +
</script>
  
 
</html>
 
</html>
 
{{Newcastle/footer}}
 
{{Newcastle/footer}}

Latest revision as of 13:38, 15 October 2018

Alternative Roots/Code

NH-1

Software

Adaptability was a major issue with the existing plant growth infrastructure within the University and, in fact, with many traditional growth facilities. We designed the NH-1 to combat this. The NH-1 is controlled entirely by an Arduino micro-controller. The Arduino offers a low-cost, easy-to-use solution to control and adapt the function of the LEDs. The Arduino also offers an open-source electronic prototyping platform and offers plenty of opportunities for further development of the NH-1, in terms of user interface and interaction. All the code and the IDE are freely available online and the UNO board can be purchased online from Arduino for less than £20. The Arduino language is based on C/C++ so it is incredibly easy to become familiar with, especially if you already have experience with C/C++ but if not there is a wealth of resources online that can help with this. We have designed a guide to using the IDE and included some examples of the capabilities of the NH-1. Some of the features that you can incorporate include:

  • Solid colours across the system
  • Cyclically varying colours (rainbow) in the system
  • Linear gradients of colours across the system
  • Colours can be defined by RGB, HSV values or HTML standard
  • Brightness can be varied, for example to simulate a day/night cycle or a gradual sunrise/sunset

The list goes on as the possibilities with the NH-1 are incredibly varied. This makes it the ideal system for plant-based experimentation, with the added bonus that the system is completely contained and portable. The end result is a highly adaptable, semi-autonomous system that is simple to code and even easier to run.





References & Attributions

Attributions: Umar Farooq, Luke Waller