Week 5- First Group Meeting:
1) Planned to meet every Wednesday 5 pm-8 pm, thereafter.
2) Developed Schematic voltage divider
3)Budget ($60.00)
Week 6- we worked on the circuit by the items that were provided by our Class TA
Items provided:
Breadboard
Wires
Resistors
Arduino kit
LED's
Ordered from DigiKey (Total $15.72)
Thermistor
Photo Resistor
Week 7- Building greenhouse
List of the items from Home Depot:
1" x 12" x 6' ($16.50)
Dimmer 120V ($12.95)
Light bulbs ($5.00)
Thermometer ($5.00)
Items already had:
11.5 x 11.5 Poly-carbonate
Screws 1&5/8" (Drywall screws)
Hair Dryer
Light Fixture
Extension wire 22Ga
Scale down green house was built out of 1"x 12" (.75" x 11.50" nominal) pine and .75" poly-carbonate
The 1" x 12" was cut down for 5 of the 6 sides
The bottom - 11.50" x 13"
The back - 11.50" x 11.50"
Two sides - 11.50" x 11.50"
Top - 11.50" x 12.25"
Front (.75" Poly-carbonate) 11.75" x 11.75" (it was pre-cut at a glass shop)
The green house is secured together by 1.625 drywall screws.
A 2.5 inch hole was drilled in the side for a port to add heat
A 1.5" hole was drilled in the top piece to allow a light to be mounted through
2 - 1/4" holes were drilled in the side near the base to pass wires through
and so far...
Week 8- Today we were testing and updating our circuit board, sketch of the green house using CREO and hand-sketches.
We plan on spending most of our time this week on coding to control the Arduino which is an open-source electronic prototype platform. By coding we should be able to control overall lighting by turning the Lights ON/OFF based on the natural light input and current temperature of the green.
The code so far is:
//declaring inputs and outputs
int sensorLightValue=0;
int sensorHeatValue=0;
int sensorLightPin=A0;
int sensorHeatPin=A2;
int LED1= 13;
int LED2= 14;
int LED3= 15;
void setup() {
Serial.begin(9600);
//declares the LED's as an output:
pinMode(LED1, OUTPUT);
//pinMode(LED2, OUTPUT);
//pinMode(LED3, OUTPUT);
}
void loop() {
//reads the values from sensors:
sensorLightValue= analogRead(sensorLightPin);
Serial.println(sensorLightValue);
sensorHeatValue= analogRead(sensorHeatPin);
Serial.println(sensorHeatValue);
delay(1000);
//turning on LED's
if (sensorLightValue > 250) digitalWrite(LED1, HIGH);
if (sensorHeatValue >50) digitalWrite(LED2,HIGH);
if (sensorLightValue >100) digitalWrite(LED3, HIGH);
if(sensorLightValue <250) digitalWrite(LED1,LOW);
//wait for sensorlightvalue seconds long
//delay(sensorLightValue);
//turn off sensors
//digitalWrite(LED1,LOW);
//digitalWrite(LED2,LOW);
//digitalWrite(LED3,LOW);
No comments:
Post a Comment