IoT Smart Plant Assistant Made With ESP32 Future Board
Introduction: IoT Smart Plant Assistant Made With ESP32 Future Board
We have so many plants in the office because they can purify the air and bring us a pleasant mood. And there are three fundamental elements to grow a plant: light, carbon dioxide, and water. We'd love to take care of them carefully based on these three basic elements, so we took water as the main aspect this time to make this project.
We are going to make a plant assistant to measure the soil moisture in real-time, and we will get the information through our phone so that we can water our plant more precisely.
All the things we used are listed below, and the code for this project is also provided in this article, so let's give it a go!
If you like our projects and tutorials, you can follow us on Twitter, Facebook, and Youtube for more interesting STEM projects and ideas.
Supplies
Electronics:
1 × ESP32-based Future Board
1 × Soil Sensor Module
1 × 400mAh Rechargeable Lithium Battery
1 × Battery backplane PCB (need to make a proof, will be explained below)
7 × M3*12mm brass pillar
14 × M3 Screw
1 × PH2.0 3pin wire
1 × PH2.0 3pin terminal head
Step 1: Backplane PCB Proofing
Scan the QRcode below to download the PCB file that we prepare for you, which can be used to make a proof directly.
Step 2: Wield Our Board
1. We only need to weld a PH2.0 terminal head to plug the soil module.
2. Use screws to fix the brass pillars, paste double-sided tape on the wireframe of the circuit board to fix the lithium battery. After connecting the soil module, install the Future board on the PCB circuit through the brass pillars, then you have assembled the device basically. (The P0 of the Future board should be connected to the soil module)
Step 3: Register an MQTT Topic
1. Enter the Kittenbot IoT platform iot.kittenbot.cn (The platform is in Chinese currently, but don't worry, you can still finish this project easily with the step-by-step tutorial)
2. Create a new topic name, which should be unique, distinguishable, and easy to remember, such as /hum123
3. 33
After creating the topic, the topic /Hum will be shown on the left side. You can view the data under this topic by simply clicking it.
Step 4: Connect Future Board to the Editor <PERSON>
Open Kittenblock, connect to the Future board, click the hardware to connect it to the computer
Step 5: Write the Program
Write the program with Kittenblock according to the figure above, change the parameter of the name and password of your router, change your topic name.
Or you can download the program here.
Then Switch to the offline code download mode, download the code to the firmware.
Step 6: Adjust the Program
put the sensor in the air as shown in the figure
* The reading is 3406
* When completely immersed in water, the reading is 1525
* According to the requirements of different plants on the soil humidity, we should keep testing and find a suitable soil humidity value. The actual measured value of the soil I have on hand is around 2104, which is suitable for growing the plant.
Step 7: Check the Real-time Data Through WeChat Mini Program
1. Open the search bar and click the mini-program.
2. Type in "microbit", click "search" to enter the mini program.
3. Open the IoT panel.
4. Click "connect directly".
5. Type in your topic name, click "subscribe", then you can receive the messages of your topic.
6. According to the program you wrote in the third step, you can receive the soil data every 3 seconds.
Step 8: Test It Out! 141