Monday, December 7, 2015

Final Presentation

For the past week we have been working on our power point for the final presentation and making sure our prototype is working correctly.

Monday, November 23, 2015

Final Touches.

We have the prototype for our Project, today we met to decide on meeting times to rehearse for the final presentation.

We will meet on Monday November 30, 2015 and December 2nd in the Library.

Monday, November 16, 2015

Almost there.

We worked on the code and revised it as needed to make sure it works and controls the lights and temperature in the greenhouse.
we tested the prototype which when tested works with this revised code, as temperature increases lights 1 or 2 lights go out or turn on when the temperature is low:


//declaring inputs and outputs

//*******Global Declarations

    int sensorLightValue=0;

    int sensorHeatValue=0;

  //Input Variables
    int sensorLightPin=A0;

    int sensorHeatPin=A2;

  //Output Variables  
    int LED1= 11;

    int LED2= 12;

    int LED3= 13;

//******End Global Declarations

void setup() 
{
  Serial.begin(9600);


 //declares the LED's as an output:

  pinMode(LED1, OUTPUT);

  pinMode(LED2, OUTPUT);

  pinMode(LED3, OUTPUT);

}  //End void setup()

void loop() {

 //reads the values from sensors:

sensorLightValue= analogRead(sensorLightPin);
sensorHeatValue= analogRead(sensorHeatPin);



//***print values to serial output for testing

    //Serial.println(sensorLightValue);
    //Serial.println(sensorHeatValue);

//delay(1000);

if (sensorHeatValue > 175)
  
//Begin first light sensor block  
  {  
    if (sensorLightValue > 165)
      {
        digitalWrite(LED1, HIGH);
        digitalWrite(LED2, HIGH);
        digitalWrite(LED3, HIGH);
      }
    
    else if (sensorLightValue <=165 && sensorLightValue >= 80)
      {
        digitalWrite(LED1, HIGH);
        digitalWrite(LED2, HIGH);
        digitalWrite(LED3, LOW);
      }

    else if (sensorLightValue <80 && sensorLightValue >= 30)
      {
       digitalWrite(LED1, HIGH);
       digitalWrite(LED2, LOW);
       digitalWrite(LED3, LOW);
      }
    
    else if (sensorLightValue <30 )
      {
       digitalWrite(LED1, LOW);
       digitalWrite(LED2, LOW);
       digitalWrite(LED3, LOW);
      }
  }
//*******************end first light sensor block


else if (sensorHeatValue <= 175 && sensorHeatValue >=120)

//begin second light sensor block
  {
    if (sensorLightValue > 165)
      {
        digitalWrite(LED1, HIGH);
        digitalWrite(LED2, HIGH);
        digitalWrite(LED3, LOW);
      }

   else if (sensorLightValue <=165 && sensorLightValue >= 80)
      {
       digitalWrite(LED1, HIGH);
       digitalWrite(LED2, LOW);
       digitalWrite(LED3, LOW);
      }

  else if (sensorLightValue <80 && sensorLightValue >= 30)
     {
      digitalWrite(LED1, HIGH);
      digitalWrite(LED2, LOW);
      digitalWrite(LED3, LOW);
     }
    
  else if (sensorLightValue <30 )
    {
     digitalWrite(LED1, LOW);
     digitalWrite(LED2, LOW);
     digitalWrite(LED3, LOW);
    }
  }
//************End second light sensor block


else if (sensorHeatValue < 120)

//Begin Third light sensor block
{
   if (sensorLightValue > 165)
    {
     digitalWrite(LED1, LOW);
     digitalWrite(LED2, LOW);
     digitalWrite(LED3, LOW);
    }

  else if (sensorLightValue <=165 && sensorLightValue >= 80)
   { 
    digitalWrite(LED1, LOW);
    digitalWrite(LED2, LOW);
    digitalWrite(LED3, LOW);
   }

  else if (sensorLightValue <80 && sensorLightValue >= 30)
    {
     digitalWrite(LED1, LOW);
     digitalWrite(LED2, LOW);
     digitalWrite(LED3, LOW);
    }
    
  else if (sensorLightValue <30 )
    {
     digitalWrite(LED1, LOW);
     digitalWrite(LED2, LOW);
     digitalWrite(LED3, LOW);
    }
}
//**************End Third light sensor block

} //end void loop()



"Peek into the Greenhouse"

Friday, November 6, 2015

What we are building

Our team has met every Wednesday since we have formed. This time, we get the begin to see the fruits of our labor. Well, I guess you can say we are beginning our labor. We all took a part in the construction which is actually pretty fun.























Wednesday, October 21, 2015

What are we even doing?

The goal of this project is to design a working circuit to provide passive energy saving functions. Our scope is limited to a greenhouse. We will aim to control the lighting and heating of this greenhouse to showcase simple methods to save energy.  We will use Arduino and a breadboard to build a prototype that can be shown to save energy use. We will construct our own greenhouse to test this prototype.  We must work as a team because this will take all of our combined skills to deliver. We must accomplish, being a little lucky: building a greenhouse, building a circuit with an arduino, and coding the arduino. Luckily for us, the circuit isn't very complicated. Our greatest challenge will be in the code. 
  

Plan Of Action

We changed the purpose of our project from making a passive circuit that limits the energy usage in homes or offices that will reduce energy consumption, and instead, decided to design a working circuit that can be used to provide passive controls for lighting and heating in a greenhouse. We will use Arduino and a breadboard to build the prototype. We chose this project so we could incorporate all the different disciplines of our studies. Two of us are interested in coding, two in Environmental and one in Electronics.

Oct 21, 2015
As planned, we met today at Hagerty Library.
We outlined our plan, identified what parts to order and did some more research on our project.

Monday, October 19, 2015

Last minute



Group meeting at the last minute to complete the Proposal. We came up with an idea of making a "Lighting bug", a passive circuit that limits the energy usage in homes or offices that will reduce energy consumption.

We decided on a time and place to meet every week for a couple of hours to work on our project.

Time: 5:00pm
Location: Hagerty Library