Bureaucrats, emailconfirmed, Administrators
5,340
edits
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
=Self-defence system for plants= | |||
'''Self defence system for plants''' | |||
The goal of this project was to use a houseplant as a touch sensor via meassuring resistance changes inside the plant. When it gets touched by any other living organism an attached motor will rock the plantpot. | |||
This sudden reaction is likely to shake off any potential predator. | |||
'''Materials''' | |||
plant and plantpot, sponges, motor (DC Motor Johnson - NF), cupper plate, cables and wires, 220 Ohm resistor, transistor BDX 53 C, Arduino | |||
'''Project details''' | |||
I started experimenting with Martin Howse's [https://www.uni-weimar.de/medien/wiki/GMU:Bioelectronics,_aesthetics_and_other_interesting_things/Plant_sensing circuit for microvoltage resistance measurement] and displaying the outcome with the help of a simple Pure Data patch. | |||
[[File:Pd1.jpg]] | |||
The "arduino" object used in this patch is part of the [https://puredata.info/downloads/pduino pduino] project. | |||
Martin Howse's circuit: | |||
[[File:MartinH.jpg]] | |||
Although there was a certain reaction to the enviroment the received data was so chaotic and unpredictable that it was not possible for me to logicaly seperate the meassured reactions to touch from the rest. | |||
After some further experiments i ended up with a rather simple circut, ignoring all i've learned about voltage dividers. | |||
[[File:ppschem.jpg]] | |||
An cupper plate electrode is plunged in the soil beneath the plant and a needle, sticked in a branch of the plant is connected to one of arduinos analog inputs. | |||
The received data is stable enough to set thresholds for simple if-else conditions in the arduino code, but with the disadvantage that it has to be adjusted form time to time. | |||
void setup() { | |||
pinMode(13, OUTPUT); | |||
Serial.begin(9600); | |||
} | |||
void loop() { | |||
int plant = analogRead(A0); | |||
Serial.println(plant); | |||
if(plant < 900 && plant > 850) { | |||
digitalWrite(13, HIGH); | |||
delay(10); | |||
digitalWrite(13, LOW); | |||
} | |||
else { | |||
digitalWrite(13, LOW); | |||
} | |||
} | |||
Pin 13 is switching the motor on when the plant gets touched. The motor is out of balance and attached to the plantpot (a motor directly attached to the plant would eventually break it). | |||
[[File:ppquer.jpg]] | |||
A sponge underneath the plantpot will let the whole thing slightly move around. | |||
[[File:shl_ps_pic2.jpg]] | |||
[[File:shl_ps_pic1.jpg]] |