• Home
  • 2017
  • 2016
  • 2015
  • 2014
  • 2013
  • 2012
  • 2011

PDI Studio 5

Design to make a difference

Feed on
Posts
comments

Furnäture

Dec 8th, 2016 by arenav

Furnature is a sem-automatd urban garden built into furnature!

furna%cc%88ture furna%cc%88ture2 furna%cc%88ture3 furna%cc%88ture4 furna%cc%88ture5 furna%cc%88ture6 furna%cc%88ture7 furna%cc%88ture8 furna%cc%88ture9 furna%cc%88ture10 furna%cc%88ture11 furna%cc%88ture12 furna%cc%88ture13 furna%cc%88ture14

 

 

What we learned:

Use same air stones

Use same length of tubing attached to each stone (air takes path of least resistance)

Use T5 Lighting (keep 6-8 inches from plants) to not burn them

Keep ph from 5.5-6.5

Temperature varies on plants

Nutrients need to be added to the water about 2x a week depending on size of the tank





 

Arduino Code:

#include <DHT.h>
#include <dht.h>
#define DHTTYPE DHT11
#define DHT11_PIN 9 //PIN 9 HUMITURE SENSOR
DHT dht (DHT11_PIN, DHTTYPE);
#define SensorPin A2 //phValue meter Analog output to Arduino Analog Input 2
#define Offset 0.00 //deviation compensate
#define LED 13
#define samplingInterval 20
#define printInterval 800
#define ArrayLenth 40 //times of collection
int phValueArray[ArrayLenth]; //Store the average value of the sensor feedback
int phValueArrayIndex=0;
int lightSensorA = A0;
int waterLevelSensor = A1;
int lightSensorD = 8;
int phValue = 7;
int analogVal;
int waterLevel;
int redPin = 3; //Red LED, connected to digital pin 3
int grnPin = 5; //Green LED, connected to digital pin 5
// digital pin 4 unused
int bluPin = 6; //Blue LED, connected to digital pin 6
int black[3] = { 0, 0, 0 };
int white[3] = { 100, 100, 100 };
int red[3] = { 100, 0, 0 };
int green[3] = { 0, 100, 0 };
int blue[3] = { 0, 0, 100 };
int yellow[3] = { 40, 95, 0 };
int dimWhite[3] = { 30, 30, 30 };

// etc.
// Set initial color
int redVal = black[0];
int grnVal = black[1];
int bluVal = black[2];
//int temperature;
//int humidity;
boolean stat;
void setup(void)
{
dht.begin();
pinMode(LED,OUTPUT);
pinMode(lightSensorA, INPUT);
pinMode(lightSensorD, INPUT);
pinMode(waterLevelSensor, INPUT);
pinMode(redPin, OUTPUT);
pinMode(grnPin, OUTPUT);
pinMode(bluPin, OUTPUT);
redVal = 250;
grnVal = 250;
bluVal = 250;
analogWrite(redPin, redVal);
analogWrite(grnPin, grnVal);
analogWrite(bluPin, bluVal);

Serial.begin(9600);

Serial.println(“Welcome to Furnature”); //Test the serial monitor
}
void loop(void)
{
// phValue Color RGB
// 3 red 255-0-0 3 * X + Y = 0
// 4 orange 255-130-0 6 * 85 + -255 = 255
// 5 yellow orange 255-200-0
// 6 yellow 255-255-0
// 7 green 0-255-0
// 8 blue 0-0-255
// 9 purple 255-0-255

float t = dht.readTemperature();
float h = dht.readHumidity();
int analogVal = analogRead(lightSensorA);
int waterLevel = analogRead(waterLevelSensor);

static unsigned long samplingTime = millis();
static unsigned long printTime = millis();
static float phValue,voltage;
if(millis()-samplingTime > samplingInterval)
{
phValueArray[phValueArrayIndex++]=analogRead(SensorPin);
if(phValueArrayIndex==ArrayLenth)phValueArrayIndex=0;
voltage = avergearray(phValueArray, ArrayLenth)*5.0/1024;
phValue = 3.5*voltage+Offset;
samplingTime=millis();
}
if(millis() – printTime > printInterval) //Every 800 milliseconds, print a numerical, convert the state of the LED indicator
{

Serial.print(“Voltage: “);
Serial.print(voltage,2);
Serial.print(” phValue value: “);
Serial.println(phValue,2);
//int phValue = (phValue,2);
//Serial.print(phValue);
Serial.print(“Light: “);
Serial.print(analogVal);
Serial.print(” Water Level: “);
Serial.println(waterLevel);

Serial.print(“Temp: “);
Serial.print(t);
Serial.print(” Humidity: “);
Serial.println(h);
Serial.println(“——————-“);

if (phValue < 4)
{
redVal = 255;
bluVal = 0;
grnVal = 0;
}
if (phValue > 4 && phValue < 5)
{
redVal = 255;
bluVal = 0;
grnVal = 130* (phValue-4);
}
if (phValue > 5 && phValue < 6)
{
redVal = 255;
bluVal = 0;
grnVal = 255 * (phValue – 5);
}
if (phValue > 6 && phValue < 7)
{
redVal = 255 – 255* (phValue-6);
bluVal = 0;
grnVal = 255;
}
if(phValue > 7 && phValue < 8)
{

redVal = 0;
bluVal = 255 * (phValue-7); // at 7 will be 0, 8 will be 255
grnVal = 255 – 255* (phValue-7); // at 7 will be 255, at 8 will be 0;
}
if(phValue > 8 && phValue < 9)
{
redVal = 255* (phValue-8); // goes from 0 to 255
bluVal = 255; // at 8 will be 255, at
grnVal = 0;
}
if(phValue > 9)
{
redVal = 255;
bluVal = 255;
grnVal = 255* (phValue-9)/5;
}
analogWrite(redPin, redVal);
analogWrite(grnPin, grnVal);
analogWrite(bluPin, bluVal);
// digitalWrite(LED,digitalRead(LED)^1);
printTime=millis();

}
}
double avergearray(int* arr, int number){
int i;
int max,min;
double avg;
long amount=0;
if(number<=0){
Serial.println(“Error number for the array to avraging!/n”);
return 0;
}
if(number<5){ //less than 5, calculated directly statistics
for(i=0;i<number;i++){
amount+=arr[i];
}
avg = amount/number;
return avg;
}else{
if(arr[0]<arr[1]){
min = arr[0];max=arr[1];
}
else{
min=arr[1];max=arr[0];
}
for(i=2;i<number;i++){
if(arr[i]<min){
amount+=min; //arr<min
min=arr[i];
}else {
if(arr[i]>max){
amount+=max; //arr>max
max=arr[i];
}else{
amount+=arr[i]; //min<=arr<=max
}
}//if
}//for
avg = (double)amount/(number-2);
}//if
return avg;
}

 

Comments Off on Furnäture



Comments are closed.

  • Projects

    • 2017
      • Artistic Prosthetic
      • Cell Protobox Activity
        • Background
        • Overview and Lesson Plan
        • Pictures from the Activity
        • Final Prototypes from the Activity
        • Recount of the Activity
        • Demo Day with PDI Students
        • Final Protobox
        • Next Steps
        • Vision
      • Hue Harmony
        • Project Scope
          • HueHarmony2.ino
          • Sampler_12bit.ino
        • Future Development
        • User Feedback
        • Research
      • infinish.ed
        • Proposed Solution – Unfini-shed
        • Proposed Solution – infinish.ed
        • User Experience Mapping
        • Design Justification
        • Roadblocks/Challenges
        • User Feedback
        • Conclusion
      • Pop-Up Symphony
      • Saltwater Greenhouse
      • Smart Protection Brace
        • Background Research
        • Initial Prototype
        • Iterations and Second Prototype
        • Next Steps
        • Potential Methods
        • User Group
    • 2016
      • Creation Station: An Interactive Kiosk
        • User Group
        • Feedback #1: Oakwood Community Dinner-November 14th, 2016
        • Feedback #2: Uncle Sam’s Bus Stop-November 15th, 2016
        • Feedback #3: Farmer’s Market- November 19th, 2016
        • Prototype and Final Build of the Kiosk
        • Final Testing and Final Thoughts
      • ElektroTone
      • Furnäture
      • Media Sanctuary Mobile Experience
        • Prototype 1
        • Prototype 2
        • Prototype 3
        • Next Steps
        • Presentation Slides
      • ObservaStory
        • Background Research
        • First Iteration
        • Second Iteration
        • Evaluation & Dissemination
      • People Library
        • Target User Group
        • Primary Iteration: The Event
        • Secondary Iteration: The System
          • The Website
          • The App
        • User Feedback: The Process
        • The Final Product
      • Physics Plank
        • Physics Plank 1.0
          • Design
          • User Feedback
        • Physics Plank 2.0
          • Design
          • User Feedback
        • Next Steps
          • Ideal Code and Construction
      • Portable Foundation Finder (PFF)
        • Background Research
        • Customer Discovery
          • Personas
          • Survey Responses
        • Prototype
        • User Testing
        • Working Demo
    • 2015
      • Alien Adaptation
        • Target User Group
        • First School Visit (September 28, 2015) – Prototype #1
        • Second School Visit (October 15, 2015) – Prototype #2
        • Third School Visit (November 9, 2015) – Prototype #3
        • Fourth School Visit (December 10th, 2015) – Prototype #4
        • Background Research
        • Alien Cards
        • Methods of Organization
        • Other Resources
      • Zoe the Green Monkey
        • Background Research
        • Evaluation & Dissemination
        • Sources for Further Teaching
      • Recipe Ratios
        • School 2 Visits
        • Background Research and Information
        • Context
        • Evaluation & Assessment
      • Space Race
        • Background Research
        • Evaluation and Assessment
        • Field Work : 1st Visit to School 2
        • Field Work : 2nd Visit to School 2
        • Field Work : 3rd Visit to School 2
        • Field Work : Final Visit to School 2
      • Rhythmatic
        • Overview/Background Research
        • User Research & Design Specifications
        • Lesson Plan
        • User Testing
        • Ethnographic Observations
        • Final Interface Design
    • 2014
      • Ghanaian Solar Heat Collection
        • Solar Production of Adinkra Ink
          • Adinkra Ink Background Information
            • Interview with Mae-Ling Lokko
            • Production of Adinkra Ink
        • Solar Production of Biochar
          • Biochar Information
          • Heliostat Development
            • Codes and Hardware
            • Phase 1: Small setup
            • Phase 2: Medium Setup
            • Phase 3: Future Design Considerations
          • Interviews with Marianne Nyman and Alex Allen
          • Planning the process
          • Prototype Design Process Images
        • Prototype Iterations
        • Testing
        • Future Prospects
      • Cheap Sensors for Quality Education
        • Building the Sensor
        • CSnap Integration for Data Visualization
        • Future Work
        • Hardware
        • Previous Iterations
        • Professional Development Integration
          • Compost Computing PD Outline
        • Transferring Data from Arduino to CSnap
        • Code (Integration with SD card data collection)
          • SD Card Readout Example
        • Code (Temperature and Humidity sensors only)
      • Condom Vending Machine
        • Cultural Background
        • Why Open Source?
        • Screen Printing Vs. Stickers
          • Hints for stickers!
        • Intitial Design Ideas
          • Initial Designs
        • Prototypes and feedback
        • Final Design
        • Feedback
        • Future Plans
      • Music & Sound: Earthquake Simulator
        • Prototyping & Iterations
          • Rounds 1 & 2
          • Round 3: Final Prototype
        • Field-Testing: User Feedback
        • How-To/DIY Projects
        • Future Testing
        • Dissemination
    • 2013
      • Edu-Ponics
        • The Community Garden
        • The Tower
        • The Monitoring Unit
          • Code
          • Prototype
        • Dissemination
        • User Feedback
        • About
      • Fraction Bot
        • Future Iterations
        • Primary Market Research
        • Prototyping/Testing
        • Source Code–Please Use
      • Ghana Outreach Solar Reflector
        • Cultural Background
        • Partnership with KNUST
        • Prototyping
          • Initial Mock-up
          • Lamination
          • Plywood Model
          • Reaction Chamber
          • Stainless Steel Ribs
        • Testing
        • Future Iterations
      • iQube
      • Lean Green Clean Machine
        • Background
        • Redesign Proposal
      • Music Factory
        • Prototype
        • Field Testing
        • Dissemination
      • Nutrition Kitchen
        • The Game
        • Learning About Nutrition
        • Children’s Reactions and Results
      • Solar Tracker
    • 2012
      • 2 Fast, 2 Curious
        • Learning Objectives
        • Make It Yourself!
          • Hardware
          • The Code
        • Responses
        • The Game
        • Downloads
      • Apollo 2 1/4
        • Children’s Reactions
        • Final Trip Notes
        • Fraction Practice
        • Materials & Software Used
        • Source Code
      • Coordinate Kinection
        • The Game
          • How to Play
          • Screenshots
        • Student Reactions
        • Do It Yourself
          • main.cpp
          • Instructions
          • Download
      • Discover The Universe
      • Power Up!
        • Make Your Own
        • Platform Theory
          • Software Theory
        • Research and Development
        • Student Reaction
      • Squid Learn
        • Building the Lesson Plan
        • How It’s Made
        • Research and Iterations
          • 1st Visit
          • 2nd Visit
          • 3rd Visit
        • Student Reactions
    • 2011
      • Alien Frontier
        • Downloads
        • The Process
          • Ethnographic Description
          • Ethnographic Description 1
          • Ethnographic Description 2
      • Cookie Creations
        • Cookie Creation Game
        • Classroom Process
        • Assessments and Surveys Used
        • Research
      • Fast Track
        • DIY
        • Learning Objectives
        • Materials
        • Response
        • Components
      • Make ’em Fresh
        • Make ’em Fresh: How It’s Made
          • Team Contributions
        • Make ’em Fresh: Research and Iterations
          • Early Concepts
          • Images: First and Second Visits
          • Future Iterations
        • Make ’em Fresh: Student Response
          • Pre- and Post-Testing
      • Rap Star
        • The Game
          • What?
          • When & Where?
          • Who?
          • Why?
        • Field Testing and Iterations
          • First Visit
          • Second Visit
          • Final Visit
          • Ethnographic Descriptions
        • What Now?
          • Conclusion
          • Future Iterations
          • Additional Images
      • Rush More
      • School House of Pop
        • Educational Goals
        • Student Response
        • Design Evolution
        • Future Design Aspirations
        • Culture and Society
        • Pictures at School

Theme: MistyLook by Sadish. WPMU Theme pack by WPMU-DEV.