Planto: Plant Watering Checker Using ESP32 and Emojis
by vikramksc2604 in Living > Gardening
51 Views, 1 Favorites, 0 Comments
Planto: Plant Watering Checker Using ESP32 and Emojis



This Device is Powered By ESP32 XIAO C3. It will tell you if a plant require water or is lacking it using EMOJIS, a fun and a visual way to keep your plants healthy using easily available electronic parts.
Supplies

You will need Electronic and 3D printed Parts:
Electronic:
- Soil Moisture sensor
- SSD1306 128 X 64 I2C OLED
- XAIO ESP32 C3
- TP4056 Charger Module
- Lipo battery 3.7 V 400mAh(400mAh or more is fine)
- Slide switch
3D Printed Parts (Designed In Fusion 360) attached:
- planto_case_base.stl
- planto_top.stl
Tools:
- Soldering Iron
- Hot Glue Gun
Code:
Gather All the Required Parts



Solder each of these parts to the XIAO ESP32 as shown in Circuit Diagram
Connect ESP32 XIAO C3 Using the USB C PORT



If you dont have ARDUINO IDE yet, you can download it on their website.
once downloaded, connect your XIAO ESP32 C3 to your PC using a type c cable.
You will find the connected device as a "ESP32 Family Device" as shown in Image.
Then click on it and you will get a dropdown, press "select other board and port"
Search for XIAO and you will get a C3 option in the list select it.
Code on Github:
Optionally I have attached the files.
Download the code files attached, you will have two files, one animate.h and other as plantbot.ino
NOTE: Download both the files and store then in a single folder.
NOTE: In the code you will find Threshold values for Sad, Happy and nuetral functions. You can change the value based on the readings you get, in my case anything below 1800 meant the plant was watered well.
After extracting, In the folder simply press on plantbot file.
You will need the following libraries to be installed:
- Adafruit SSD1306
You can go to library manager, search for "SSD1306" and you will find it. Install it.
Flash the Code to ESP32


Press upload as shown, it will compile and then upload the code to your ESP32 XIAO Board.
As shown in second image it will be uplaoded.
Now press Ctrl+shift+M to open serial Monitor.
See the values being printed.
They will be 4095 as it hasnt been put in the soil.
Now for the final assembly
Assembly With 3D Printed Parts




Do check the video on how the parts have been assembled
And Thats It!, You Have a Planto Device


Do watch the video to see how the device Works!
Additional Note: You can set the sensitivity of the device using the hole on the front where u can use a screwdriver to set how sensitive it should be.
If you liked this, do leave a like!