Build a plant watering system - Internet of Things - ثاني ثانوي

Lesson 2: Build a plant watering system

Build a Plant Watering System

Lesson 2: Build a plant watering system

Let's start by adding the components that you will need for this project to the workplane.

Lesson 2: Build a plant watering system

Next, find the rest of the components, the DC Motor, the Temperature Sensor and the Soil Moisture Sensor, and add them to the workplane.

Lesson 2: Build a plant watering system

Now, wire the DC Motor to the Arduino UNO R3.

Lesson 2: Build a plant watering system

Next, wire the Temperature Sensor to the Arduino UNO R3.

Lesson 2: Build a plant watering system

Continue by wiring the Soil Moisture Sensor to the Arduino UNO R3.

Lesson 2: Build a plant watering system

The Serial Monitor

Lesson 2: Build a plant watering system

As an example, if you want to print the string "Soil Moisture: " without a newline, use:

Lesson 2: Build a plant watering system

The Temperature Sensor sends analog

Code Implementation

Lesson 2: Build a plant watering system

Table 3.2: System input values and output states

Lesson 2: Build a plant watering system

If we wanted to set up the Smart Watering System in a more arid area where the water evaporates faster and the atmosphere is drier, what changes should we make? Describe a possible solution a

In this lesson’s project, the sensors and actuator did not require a breadboard to connect to the Arduino, in contrast with other projects. Describe the reasons why below.

Check with a tick the output of the following blocks.

Lesson 2: Build a plant watering system

Evaluate the following conditions of the code blocks as either True or False, by taking into consideration the values of the analog pins given:

Extend the Smart Watering System to inform the user when the plant is being watered by printing the message “Watering Plant Now!” only when moisture is under 150 and temperature is over 30.

Extend the Smart Watering System so the DC Motor stays on for longer if the soil moisture levels are extremely low (under 50). Use wait blocks to make the DC Motor operate for longer.