This tutorial uses the Hexabitz modular hardware system to create an all-in-one plant monitoring and watering system. Automate your way to happy plants 😀🪴

Hardware:

Load Cell Sensor (H26R0x): H26R0x is a load cell (strain gauge) sensor interface module based on Avia Semiconductor HX711 Wheatstone bridge ADC and STM32F0 MCU. This module is a precision 24-bit analog-to-digital converter (ADC) designed for weigh scales and industrial control applications. It interfaces to load cells (strain gauges) in a Wheatstone bridge configuration. The module accepts a full bridge (5-pin connection) as well as a secondary sensor connection (2 pins).

To use a load cell module, first you need to calibrate it. To do this add the following APIs to your Hexabitz load cell module code.

Calibration(20, 1.9242, 0.0094);
ZeroCal(1);

Note:

The weight sensor was used because the soil moisture sensor only detects plant desiccation at a certain depth. However, the condition of weight gives more accurate results to monitor the plant, especially if the size of the pot is large.

Load Cell: A load cell is a transducer which converts force into a measurable electrical output. Although there are many varieties of force sensors, strain gauge load cells are the most commonly used type.

A load cell consists of a metal core and a set of electrical resistances that transform when a force is applied to it. But after the force is removed, it returns to its original state. The reversibility of this material determines the quality and accuracy of the load cell. The equivalent electrical circuit of a load cell is as follows:

Our load cell has 4 wires:

🔴 Red for Excitation+

⚫ Black for Excitation-

🟡 Yellow for Output+

🟢 Green for Output-

STLINK-V3MODS Programmer (H40Rx): H40Rx is a programmer module which contains STLINK-V3MODS stand-alone debugging and programming mini probe for STM32 microcontrollers (Hexabitz modules and other MCUs).

It supports the SWD (Serial Wire Debugging) interface for the communication with any STM32 microcontroller located on an application board.

It also provides bridge interfaces to several communication protocols, allowing for instance the programming of the target through bootloader.

SPDT Mechanical DC Relay (H0FR1x): H0FR1x is a compact mechanical DC relay module capable of driving DC loads up to 30V / 8A.

It is based on Omron G5LE-14-DC3 SPDT relay and STM32F0 MCU.

Moisture Sensor: Analog Soil Moisture Sensor can read the amount of moisture present in the soil surrounding it. It's a low tech sensor, but ideal for monitoring an urban garden or your pet plant's water level. This is a must have tool for a connected garden!

This moisture sensor uses the two probes to pass current through the soil, and then it reads that resistance to get the relative moisture level. More water makes the soil conduct electricity more easily (less resistance), while dry soil conducts electricity poorly (more resistance).

It can be helpful to remind you to water your indoor plants or to monitor the soil moisture in your garden.

How does it work? The voltage that the sensor outputs changes accordingly to the water content in the soil.

When the soil is:

Wet: the output voltage decreases

Dry: the output voltage increases

DC Water Pump Motor: DC powered pumps use direct current from motor, battery, or solar power to move fluid in a variety of ways. This diaphragm pump is the perfect choice for any project that requires liquid to be moved from one place to another. The pump requires a hose that you can cut to your requirements, the hose provides a good seal and will not leak.

DC water pump motor is a miniature water pump, operates at 6-12 volt.

3.7v Lithium Rechargeable Batteries 🔋:

The 3.7v lithium battery is a lithium battery with a nominal voltage of 3.7v and a full-charge voltage of 4.2v. Its capacity ranges from several...

Read more »