Difference between revisions of "Team:UNIK Copenhagen/Arduino"

Line 8: Line 8:
 
}
 
}
  
li{
+
ol, ul, li{
 
font-family: "Trebuchet MS", Helvetica, sans-serif;
 
font-family: "Trebuchet MS", Helvetica, sans-serif;
 
}
 
}
Line 131: Line 131:
 
<li>Download the Arduino Software IDE  (Different versions depending on what operating system you have)</li>
 
<li>Download the Arduino Software IDE  (Different versions depending on what operating system you have)</li>
 
<li>Install the “One Wire” library in order to run the code for the temperature sensor  This code looks like this:</li>
 
<li>Install the “One Wire” library in order to run the code for the temperature sensor  This code looks like this:</li>
 +
</ol>
 +
 +
<br>
 +
<img src="https://static.igem.org/mediawiki/2015/8/81/UNIK_Copenhagen_Arduino_software_one_wire.png" width=90% style="margin:0px 0px 0px 50px">
 +
<br><br>
 +
 +
<ol start="3">
 +
<li>Then we can run the Serial Monitor from the Tools menu which should give you a reading of the temperature every second</li>
 +
</ol>
 +
 +
<br>
 +
<img src="https://static.igem.org/mediawiki/2015/c/c8/UNIK_Copenhagen_Arduino_software_serial_monitor.png" width=90% style="margin:0px 0px 0px 50px">
 +
<br><br>
 +
 +
<p><b>Multiple thermosensors</b></p>
 +
 +
<p>For Multiple thermosensors we need to install the following libraries:</p>
 +
<li>“One Wire” library as above</li>
 +
<li>“Dallas Temperature Control Library” </li>
 +
 +
<p>The code looks like this: </p>
 +
 +
<br>
 +
<img src="https://static.igem.org/mediawiki/2015/2/20/UNIK_Copenhagen_Arduino_software_multiple_thermosensors_code.png" width=90% style="margin:0px 0px 0px 50px">
 +
<br><br>
  
 +
<p>With data being shown as output on the computer in the following form: </p>
  
 +
<img src="https://static.igem.org/mediawiki/2015/c/ce/UNIK_Copenhagen_Arduino_software_multiple_thermosensors_output.png" width=50% style="margin:0px 0px 0px 200px">
 
</html>
 
</html>

Revision as of 13:31, 2 September 2015


Arduino protocol

Aim

The aim of this experiment is to build a prototype for conducting gradient temperature experiments. We will do this by programming an arduino to receive input from 5 DS18B20 temperature sensors and display this data. More specifically our experiment will involve testing moss’s survivability at 5 different temperatures by placing petri dishes of wild type moss on a temperature gradient.

Materials

  • Flamingo box
  • Dry ice
  • 5 Petri dishes with wild-type moss
  • Tape
  • Arctic silver thermal adhesive
  • Pencil soldering iron
  • Solder
  • Aluminium rod
  • Arduino UNO
  • Breadboard
  • USB A to B cable
  • Temperature Sensor DS18B20
  • Five 4.7k resistors


  • Method

    Physical set up

  • Hammer aluminium rod into the flamingo box
  • Mark 5 places 12 cm apart on the aluminium stick
  • Estimate using the eye where the middle of the moss culture is on the petri dishes
  • Place the middle of the moss culture roughly on the line marked on the aluminium rod
  • Tape the petri dishes onto the aluminium rod
  • Glue thermosensors onto aluminium rod as close to the petridishes as possible
  • Fill the box with __ kg of dry ice



  • Arduino Hardware

    Removing thermosensors from breadboard

    Soldering:

    1. Remove about 2 cm of wire insulation
    2. Twist both ends of the wire into a braid
    3. How to connect the wires:
      • Inline splice: crisscross the wires and twist them together
      • Pigtail splice: have the two wires parallel and twist them together
    4. Choose either of the above options, however make sure that the wires are well physically connected before beginning to solder
    5. Use an alligator clip or some other device to secure the wires in place so that they do not move during the soldering
    6. Heat soldering iron and put some soldering on the tip of the iron
    7. Knock off excess solder onto some paper
    8. Tin the tip again (step 6)
    9. Gently place the tip of soldering iron against the wires: heat the wire and melt some solder onto the wire joint
    10. The solder should begin to flow onto the wire
    11. Do this until the wire joint is completely covered and silver


    One thermosensor

    1. Insert DS18B20 sensor into breadboard with outer pins on rows 1 and 3 and middle pin on row 2.
    2. Insert resistor into breadboard with pins going into row 2 and 6
    3. Connect a wire:
      • From pin 10 on Arduino to pin 2, in order to get data input from thermo sensor
      • From GND ( ground pin on the arduino) to row 1
      • From 5V (power pin on the arduino) to row 3 and 6



    Multiple thermosensors

    This has a similar setup to the one above, however now there are multiple thermosensors connected in series to pin 11 and use the same resistor connected to the first thermosensor.

    Two sensors connected according to the method shown to te method shown above

    Arduino Software

    One temperature sensor

    1. Download the Arduino Software IDE (Different versions depending on what operating system you have)
    2. Install the “One Wire” library in order to run the code for the temperature sensor This code looks like this:



    1. Then we can run the Serial Monitor from the Tools menu which should give you a reading of the temperature every second



    Multiple thermosensors

    For Multiple thermosensors we need to install the following libraries:

  • “One Wire” library as above
  • “Dallas Temperature Control Library”
  • The code looks like this:




    With data being shown as output on the computer in the following form: