Introduction: PlantCare Best DIY Present for Mothers
Hello everyone,
This is an instruction, how I built the perfect present for my mother. The project is a multifunctional, automatic plant watering device.
Features of the device:
- measures and shows the actual soil moisture level of the plant
- if the soil moisture level is lower as the threshold, it turns on a pump to water the plants.
- the user can change the threshold with a button, and see the actual threshold on LED-s.
- The threshold is stored in non-volatile (EEPROM) memory, after turning off the device the customised threshold will not be lost.
- the device is working on one 18650 Li-Ion batteries for weeks.
- the device has a built-in charger, the battery can be charged with a usual phone adapter.
- as a secondary usage, the device can be used as a 3.7 V 18650 Li-Ion battery charger if there are no plants to care for.
- if the water tank is empty the device turns off the pump and saves battery and the pump lifetime as well. However, it turns the pump regularly on for a short time to check if the water is refilled.
Step 1: How to Use
- prepare a water tank
- put the pump into to water
- push the moisture sensor into the soil
- turn on the device with the switch
- the measured value is shown every 8 seconds
- plug a phone adapter to charge the battery
- without crochet, it is a battery charger
- press the button to set the threshold
- if watering does not change measured value, it turns on pump only for a short time, this will save battery and lifetime of the pump
Step 2: BOM List
Materials needed for this project. BOM list:
- Single Slot 18650 Battery Holder 1 pc 0,28 $/pc 0,28 $/total row https://www.aliexpress.com/snapshot/.html?orderId...
- Submersible Water Pump 1 pc 1,30 $/pc 1,30 $/total row https://www.aliexpress.com/item/Mute-Mini-Micro-S...
- MOSFET transistor 1 pc 0,17 $/pc 0,17 $/total row https://www.aliexpress.com/item/10pcs-free-shippi...
- 10 kohm 1/4w Resistance 1% Metal Film Resistor 1 pc 0,01 $/pc 0,01 $/total row https://www.aliexpress.com/item/1Pack-300Pcs-10-1...
- 220 ohm 1/4w Resistance 1% Metal Film Resistor 3 pc 0,01 $/pc 0,02 $/total row https://www.aliexpress.com/item/1Pack-300Pcs-10-1...
- Arduino MiniPro Microcontroller Module 1 pc 1,68 $/pc 1,68 $/total row https://www.aliexpress.com/item/New-Pro-Mini-atme...
- Soil Moisture Sensor 1 pc 0,78 $/pc 0,78 $/total row https://www.aliexpress.com/item/Soil-Hygrometer-D...
- 5mm green LED diode 3 pc 0,02 $/pc 0,05 $/total row https://www.aliexpress.com/item/100pcs-5mm-LED-di...
- 3 Position Mini Slide Switch 1 pc 0,05 $/pc 0,05 $/total row https://www.aliexpress.com/item/20PCS-DC-50V-0-5A...
- Rechargeable battery 18650 Li-ion 2600mAh 1 pc 2,47 $/pc 2,47 $/total row https://www.aliexpress.com/item/4pcs-lot-2016-new...
- Micro USB 5V 1A 18650 TP4056 Lithium Battery Charger Module 1 pc 1,30 $/pc 1,30 $/total row https://www.aliexpress.com/item/5PCS-Micro-USB-5V...
- DIY Prototype PCB 1 pc 0,14 $/pc 0,14 $/total row https://www.aliexpress.com/item/10Pcs-DIY-Prototy...
- Push button 1 pc 0,02 $/pc 0,02 $/total row https://www.aliexpress.com/item/6-6-5mm-PCB-Momen...
- Plastic straw 1 pc 0,02 $/pc 0,02 $/total row https://www.aliexpress.com/item/100pcs-lot-Colorf...
- Screw TermInal Block Connector 1 pc 0,05 $/pc 0,05 $/total row https://www.aliexpress.com/item/IMC-hot-20pcs-2-P...
- Cable 1 pc 0,02 $/pc 0,02 $/total row https://www.aliexpress.com/item/5m-Red-5m-Black-S...
Total material cost of the project: 8,34 $/total project
Step 3: Tools
The following tools are needed:
- Soldering station 1 pc 67,8 $/pc 67,80 $/total row https://www.aliexpress.com/item/free-shipping-New...
- Diagonal Cutter 1 pc 7,78 $/pc 7,78 $/total row https://www.aliexpress.com/item/PM-396F-Good-Qual...
- Third Hand 1 pc 14,7 $/pc 14,70 $/total row https://www.aliexpress.com/item/magnifying-glass-...
- Wire Stripper 1 pc 9,11 $/pc 9,11 $/total row https://www.aliexpress.com/item/New-10-24AWG-Desi...
- Solder 1 pc 3,69 $/pc 3,69 $/total row https://www.aliexpress.com/item/New-Welding-Iron-...
- Forcep 1 pc 1,89 $/pc 1,89 $/total row https://www.aliexpress.com/item/2PCS-ESD-14-ESD-1...
- Screwdriver 1 pc 4,39 $/pc 4,39 $/total row https://www.aliexpress.com/item/Screwdriver-Set-2...
- Arduino mini pro programmer 1 pc 7 $/pc 7,00 $/total row https://www.aliexpress.com/item/FTDI-Basic-Breako...
Total tools cost of the project: 116,36 $/total project
Step 4: Circuit
Major components:
- Soil moisture sensor: analog output, which will be an A/D reads at microcontroller, usual between 0 and 500 digits.
- Button, input at PIN 9, pulled to GND by an external 10 kohm resistor, another button PIN is connected to PIN10 which is pulled up to VDC by an internal resistor. If it is pressed it will change the threshold and will show on LED-s.
- LED-s, 3 pcs external LEDs and 1 pc onboard LED. During operation it shows the actual readouts from moisture sensor 0-100 = all LEDs off, 100-200 = 1 LED on, 200-300 = 2 LEDs on, 300-400 = 3 LED-is on, 400 or bigger =4 LEDs on.
- Water pump, it switches on/off by an N-Type MOSFET, which is controlled by the 10th PIN of Arduino. LOW = pump off, HIGH= pump on.
- Switch, it decides if the device is in turned on/off mode or in charging mode
- Battery with a holder
- Battery charger
Take all component and connect them according to the schematic. Use a DIY Prototype PCB and solder everything, use wires to connect PIN-s. The moisture sensor should be soldered to the back of the Arduino board to save space.
Step 5: Software
Connect the Arduino board to a PC. Use Arduino IDE to compile an upload the program to the Arduino. The code is full of comments.See attached.
Attachments
Step 6: Housing
Create a housing to protect electronics to be damaged by touching. The housing can be a 3D printed or small plastic boxes. This device has a handmade crochet holder.
I used my crochet for gadget Android application to create a housing for the device. It helps to create crochet housing for any type of rectangular PCB. The link to the application:
https://play.google.com/store/apps/details?id=com....
The application is free with some restriction. Please buy the full version of 1$ to support my instructions.
Step 7: End Words
This project is still under testing. The measured consumption: 60uA. I expect to have months without recharging. The challenging part is to have fresh water in the water tank. I will install a buzzer to make some noise if the water tank is empty.
Have a nice day!