It is a simple automated watering system but working reversed. The plant waters you in the case you try to water it. :P
You need a simple automated watering circuit. You can find different examples online, and you can find details in the schematics of this project.
Hardware
The simplest way to wire up all the components you can follow the details on the circuit.io.
- For the input you need a Soil Moisture Sensor. (This is a kind of resistor which changes its value based on the moisture.)
- As an output you should connect a water pump to the system. But as the pump needs 12V you need to use a N-Channel Power Mosfet. (There are simple Arduino Power Mosfet Modules in what the tricks of the mosfets is already resolved.)
- Yes, the pump needs to be in a buck of water. And the tubing goes from the bucket to the plant.
- You can wire up the piezo buzzer as well even though that is not necessary for the whole project.
Software
First of all you need to test the main components so as to validate whether you had wired up everything right. You can use the code/firmware from this project's circuit.io page.
- The code could be very simple: when the analogInput from the soil moisture sensor resistor is too low then the digitalOutput become high and the pump works for a short period of time.
- Then you could make a much more complex code to use minimum and maximum moister limits and even a kind of PID controller. But for our small prank we do not need fancy code.
- For the prank we should reverse the code: when the value of the analogInput is too high (means, that somebody is watering the plant right now) then the digitalOuput could be raised high immediately. That switches on the pump. But in this prank-case the end of the silicone tubing is not at the roots of the plant but it raises up so that somebody can be splashed. :D
Have Fun! And take care our Mother Nature.
Comments