This is a fake plant I made inside the garden. Luckily, it attracted a cat.
Process of Making a Fake Plant
I use corduroy to make this fake plant. The process is easy.




Structure for the Servo
I grab the leftoverr material of another class project to make a simple base for the plant to move.


Code Problem
I put a velostat in the sensing leaf and the output of the velostat would contain some small disturbing value.
At first, I set the plant to shake if the velostat is pressed. However, the velostat would sometimes sense a disturbing value. This caused my plant to be shaking all the time.
Then I change the code a little bit. I ask it to always delay for 200ms, which means that arduino is getting the velostat value every 200ms. This would reduce the risk of the plant receiving disturbing data.

Environment
Then I put the whole piece into the garden.


