IoT Smart Plant Assistant Made With ESP32 Future Board

by KittenBot in Circuits > Electronics

2024 Views, 15 Favorites, 0 Comments

IoT Smart Plant Assistant Made With ESP32 Future Board

14.png
IMG_3414.jpg
IMG_3416.jpg

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 TwitterFacebook, and Youtube for more interesting STEM projects and ideas.

Supplies

things needed.png

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

Backplane PCB Proofing

qrcode.png
1.jpeg

Scan the QRcode below to download the PCB file that we prepare for you, which can be used to make a proof directly.

Wield Our Board

2.png
3.png
4.png
5.png

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)

Register an MQTT Topic

6.png
7.png
8.png

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. 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.

Connect Future Board to the Editor Kittenblock

9.png
10.png
11.png

Open Kittenblock, connect to the Future board, click the hardware to connect it to the computer

Write the Program

screenshoot-2112131203.png
download 2.png

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.

Adjust the Program

12.png
13.png
14.png

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.

Check the Real-time Data Through WeChat Mini Program

17.png
16.jpg
18.png
19.png
20.png
21.png
  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.

Test It Out!

result