10. Plant Monitor in @SunFounder Controller

With this project, you will learn how to build a plant watering system using the Sunfounder Controller APP.

In the APP, you can check the current temperature and humidity of the environment, as well as the level of water in potted plants. To water the plants, you can also click the button on the APP.

plant_monitor

Note

It is recommended that you complete the previous project 9. Play in @SunFounder Controller, as that will help you get to grips with the basic use of the SunFounder Controller.

  1. Build the circuit.

    ../_images/10.sc_2_bb.png
  2. Create a new controller, add the following widgets and change their names.

    ../_images/10_plant2.jpg
  3. Open the 10_plant_monitor.py under the path of kepler-kit-main/iot. Click the Run current script button or press F5 to run it. After successful connection, you will see the IP of Pico W.

    ../_images/10_plant_monitor.png
  4. Returning to the SunFounder APP, click Run after connecting to PicoW. On the APP, you will be able to see the temperature and humidity of the environment, as well as the water level of the potted plant. You can click the button to water the potted plant for five seconds if you think it’s short of water.

    ../_images/10_plant2.jpg
  5. If you want this script to be able to boot up, you can save it to the Raspberry Pi Pico W as main.py.

How it works?

This project works basically the same way as 9. Play in @SunFounder Controller.

In addition the project also uses DHT11, pump and water level module, you can see the details of using these components in 6.2 Temperature - Humidity , 3.6 Pumping, 2.14 Feel the Water Level.