Introduction: Low-cost Smart Garden
When the soil is dry, the water pump will be triggered to start watering the plant. Water will be pumped out from the water reservoir to the plant. The updated humidity and watering information is saved on the cloud which can be accessed from PC, smart phone, or tablet.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Assemble the Hardware
We will need the following hardware:
- Intel Edison module x 1
- 9VDC power supply for Arduino expansion board x 1
- USB cable x 1
- Arduino expansion board x 1
- 12VDC water pump x 1. I order water pump from Amazon. Here is an example.
- 12VDC water pump driver circuit x 1(2N3904 transistor x 1, 100 ohms resistor x 1, Bread board x 1, and Bread board connection wires)
- Airline tubing for aquarium x 1. I order Airline tubing from Amazon. Here is an example.
- 12VDC, 5W power supply x 1
- Soil moisture sensor x 1. I order soil moisture sensor from Amazon. Here is an example.
- Water bottle for water reservoir x 1
We will need to build a 12VDC water pump driver circuit. See picture above.
- Plug the Intel Edison module on Arduino expansion board.
- Plug USB cable from PC to J16 of Arduino expansion board.
- Plug 9VDC power supply on J1 of Arduino expansion board.
- Connect soil moisture sensor to Arduino expansion board (VCC -> 5V, GND->GND, A0->A0).
- Connect the water pump, water pump driver circuit, plant, and the water reservoir together.
Step 2: Intel Edison Board Configuration and SW
Intel Edison board configuration:
- Assemble the Intel Edison board with Arduino expansion board. Here is an instruction.
- Use “FlashToolLite” to flash image to Intel Edison board. Here shows good instruction.
- Download Arduino IDE from here.
Create database on data.sparkfun.com:
- Follow the instruction here to create a database. Public key and private key will be provided after the account is set.
- Open Arduino IDE. Choose Intel Edison board from “Tool”. Open the following code.
- Modify “SSID” and “password” in the code based on router setting.
- Modify “public key” and “private key” string which is created above.
- Upload the code.
Intel Edison software download page is here.
Step 3: System Operations
When soil humidity is greater than “7”, water pump will be triggered. Watering time is about 10 seconds. The humidity data will be posted to the database about every two minutes. The “remark” column will show “watering”.
Soil is dry:
When soil humidity is less or equal to “7”, water pump is not triggered. The humidity data will be posted to the database about every two minutes. The “remark” column will show “ok_for_now”.
Please see screen shot of database above.
Step 4: Arduino Code
Please see attached Arduino code.
Step 5: Conclusion
Hope you like it!!
Participated in the
Intel® IoT Invitational