1 of 30

Smart

PLANT system

CS460 G1T4 Jian Lin, Gadman, Kok Wee, Yi Xin

2 of 30

01

02

04

05

PROBLEM

FUTURE WORKS

LESSONS LEARNT

SOLUTION

TABLE OF CONTENTS

03

PROTOTYPE

Improvements

Live till old,

Learn till old

WHY

HOW

SEE

3 of 30

Problem

4 of 30

PROBLEM

Singaporeans love growing plants but many do not have the time or physical capacity to care for them properly.

5 of 30

SOLUTION

A cyber-physical system that monitors and water/fertilise plants to reduce the effort required to care for plants while increasing care quality.

6 of 30

PrototypE

7 of 30

OUR PROTOTYPE

Smart Plant System

8 of 30

System features

MONITORing

AUTOMATED

The plant environment such as the soil moisture and sunlight level is actively monitored

Pump systems that automatically dispense a set volume of water/fertiliser

9 of 30

System features

INTERFACE

portability

A web application present users with system information and configurations

A reservoir system that stores water and alerts user of water levels

10 of 30

OUR ProtoTYPE as a CPS

Sensing

Computation

Networking

Control

  • Moisture
  • Light
  • Water Level
  • Raspberry PI
  • ADC
  • Python
  • GPIOs
  • WiFi
  • Relay Module
  • Watering Pump
  • Fertilising Pump

11 of 30

CIRCUIT DIAGRAM

12 of 30

PROTOTYPE COMPONENTS

TYPE

name

details

Sensor

1x Soil Moisture Sensor

3.3-5V, Analog

Sensor

1x Light Sensor

3.3-5V, Analog

Sensor

1x Water Level Sensor

3.3-5V, Analog

Sensor

1x Temp & Humidity Sensor

3.5-5.5V, Digital

Actuator

2x Water Pump

6V, 30ml/s

Actuator

1x Relay Module

3.3-5V, 4-Channel

Microcontroller

1x Analog-To-Digital Converter

3.3-6V, PCF8591T Chip

Microcontroller

1x Raspberry PI 4B

-

Power Source

1x Battery

9V

Storage

1x Micro SD-Card

32GB

Not necessary since I will be covering the components in the demo anyway

13 of 30

FEATURE 1

MONITORING

14 of 30

What?

why?

how?

Soil moisture and sunlight sensors to take measurements of plant environment. Soil moisture measurement is processed by backend system to carry out watering action, based on set moisture threshold.

By taking in soil moisture data and watering the plant based on this measurement, it creates a closed-loop system that ensures automated watering capabilities. Sunlight data is collected for plant owners to understand the amount of sunlight their plants are getting so that they can adjust the plants location to get the best sunlight.

We connected the analog sensors to an ADC which feeds 8-bit data to the microcontroller (Raspberry Pi). This data is processed by a flask-based server that controls the system and which settings are configurable via the web app.

15 of 30

FEATURE 2

automated

16 of 30

What?

why?

how?

While the fertiliser dispense system runs based on a configurable time-interval, the water dispense system is part of an automated closed-loop system together with the soil moisture sensor.

This two dispense systems allow the prototype to automatically care for the plants without the plant owner’s intervention, fulfilling the core functions of our solution.

The water pump runs based on the configured soil moisture threshold data from the backend server. Meanwhile, the fertiliser pump runs based on the time-interval data. The frequency of instructions is in tandem with the logging of the sensor data, which is every 1 minute.

17 of 30

FEATURE 3

interface

18 of 30

What?

why?

how?

A web application is created to allows the presentation of system data in a visualised manner and allows the configuration of system settings.

This makes it easy for the user to understand data collected. At the same time, it is simple to configure the system parameters based on the user’s preferences.

The web application is built with the React framework that utilised API data sent from the Flask backend server. This application contains data calibration and formatting functions, and is integrated with several lightweight libraries such as ChartJS to create a user-friendly interface.

19 of 30

FEATURE 4

PORTABILITY

20 of 30

What?

why?

how?

A reservoir system is integrated into the prototype which allows it to be portable and easy to set-up. This system is also set up with automated notification via SMS to alert plant owner’s that water level is low.

As a prototype, it is important for the hardware to be portable so that testing can be performed efficiently. Additionally, when deployed for application, this portability feature will allow the plant owner’s to adjust the plant location easily and reduce the cost needed to connect a fixed water source.

A water level sensor is used to collect reservoir levels. The data received is sent to the backend server for processing. Twilio API is used to send notifications to the plant owner whenever the reservoir level is below the customised threshold.

21 of 30

Demonstration

22 of 30

23 of 30

Future

Works

24 of 30

FUTURE WORKS

autonomy

MONITORING

scalability

A variety of high-quality sensors can be added to the system to enhance the capabilities of the system, such as nutrients and PH sensor.

Connect the water pump to a water pipe to make the system fully automatic. However, will trade off portability.

Although the circuits are relatively independent, more can be done to improve the software to allow more sensors and actuators to be added onto the system.

25 of 30

Lessons learnt

26 of 30

Learning Phases

Research

Planning

Application

Troubleshooting

Improvement

Learn about the problem

Study potential solutions and approaches

Learn to build

Identify issues and learn from mistakes

Apply knowledge

27 of 30

Lesson 1: RESEARCH

  • Challenges
    • Digital Raspberry Pi pins vs Analog sensors

  • Learning Point
    • Research on the parts to determine compatibility and availability

28 of 30

Lesson 2: CALIBRATION

  • Challenges
    • Inaccurate and inconsistent results

  • Learning Point
    • Systematically calibrate the operational ranges of sensors
    • Account for invalid readings

29 of 30

Lesson 3: PROBLEM SOLVING

  • Challenges
    • Troubleshooting in a multi-faceted system

  • Learning Point
    • Tracing through data flow
    • Tape and do some cable management for the wire connections for better durability.
    • Label the wires for more clarity and easier troubleshooting

30 of 30

THANK YOU

Let’s make Singapore technologically GREEN!