Difference between revisions of "Team:Newcastle/Developments"

Line 155: Line 155:
  
 
                      
 
                      
                    <p style="font-size:100%">There was a number of ideas on how to control the day and night cycle (16-8 hours), one method would break the circuit from the ‘Vdd’ line (power line). We decided to pursue this method as we were under the impression this would reduce the power consumption when the night cycle was in effect. </p>
+
                  <p style="font-size:100%">In order to store data from the system the arduino needs a host shield. The ‘Mini Micro 3.3V’ would be suitable and there is plenty of forums online detailing the application of this device. [1] </p>
                    <p style="font-size:100%">In order to break the power line needs to be two pin outs, pin 11 for the data line and 12 for the switching circuit. 11 determines the light intensity and function of the lights. After a 16 hour cycle pin 12 is written to ‘LOW’ (logic zero), which turns the N channel power MOSFET off for 6 hours. This sequence repeats every day. The code can be seen in <body link="vlue"><a href="https://2018.igem.org/Team:Newcastle/Code">here.</a></p></body>
+
<p style="font-size:100%">With a memory stick attached, the system can record the data every hour. Later this can then downloaded onto a laptop and plotted showing if there is any fluctuations. Unfortunately this means we have to upgrade the Arduino model so we have enough memory to store the code for the extra sensors and the USB stick. There is a number of models that have more storage, Arduino Due has 512 KB flash memory and 96 KB SRAM. Which is more than enough for our project. </p>
                    <p style="font-size:100%">There was some issues when implementing this design. Which appeared to be caused by the Arduinos pin out voltage, 3.3V. Going of the MOSFET’s data sheet the threshold is between 1-2V [1]. Therefor for our purpose it should be adequate however the voltage at the source (MOSFET) was measured to be 3V, the LED’s need at least 4.2V.</p>
+
                  <p style="font-size:100%">Meaning we had to go back to the drawing board secondly, we looked at using a NAND gate. There is a truth table included to describe the function.</p>
+
  
                <p style="font-size:100%">Highlighted in red is the two functions we are interested in. Since ‘Vdd’ will always be read as ‘high’, 5V. We can eliminate the first two states and ‘Vdd’ making the logic straightforward. The basic operation is inverting P12 logic. This method worked in theory however in practice the LED’s demanded too much current up to 2A, leading the gate to heat up to an unsustainable level. Thirdly we attempted to implement a relay switch however this was also limited on current.
 
Finally, we discovered we can achieve the desired result through the code. Changing the brightness from a defined integer, to an 8 bit integer allowing a range between 0-255. Setting the brightness to ‘0’ would turn the LED’s off.</p>
 
  
 +
             
 
                 </div>
 
                 </div>
 
             </div>
 
             </div>

Revision as of 11:04, 17 September 2018

Menu
Alternative Roots/Developments

Alternative Roots

Developments

Sensors

Adding multiple sensors is a good way to collect a range of data for analysis purposes. Such as; Humidity, temperature, CO^2, PH level sensors. Which would allow for a greater control over the subject plant, in our case Arabidopsis. Which however would lead into a problem with memory. Currently the system is run by a Arduino Uno which has Flash Memory 32 KB of which 0.5 KB used by, bootloader, SRAM 2 KB, EEPROM 1 KB. With the Lux sensor 80% of the flash memory is already taken.


Figure 1.0; Schematic of a standard USB cable.


Figure 1.1; Above is 4 exposed wires. Red is power, black is ground, and the white and green wires are the data lines.


Figure 1.2; Schematic demonstrating how to power the Arduino and the LED's

ROUGHLY
2
AMPS ARE PULLED
FOR THE WHOLE SYSTEM
APPROXIMATELY
70
KWH OF POWER ANNUALLY
USED TO POWER SYSTEM
PROVIDES UP TO
1700
LUX OF LIGHT
TO GROW SEEDS
CONTAINS
120
INDIVIDUALLY ADDRESSABLE
LOW-POWER LED'S
================================================== -->

Data Storage

In order to store data from the system the arduino needs a host shield. The ‘Mini Micro 3.3V’ would be suitable and there is plenty of forums online detailing the application of this device. [1]

With a memory stick attached, the system can record the data every hour. Later this can then downloaded onto a laptop and plotted showing if there is any fluctuations. Unfortunately this means we have to upgrade the Arduino model so we have enough memory to store the code for the extra sensors and the USB stick. There is a number of models that have more storage, Arduino Due has 512 KB flash memory and 96 KB SRAM. Which is more than enough for our project.


The engineers, hard at work trying to troubleshoot issues with the system.


The finished product, set to a rainbow function that cycles through various wavelengths of light