Skip to main content
  1. Projects/

Automatic Sprinkler Sprayer (STM32)

Table of Contents

This project originally take place between October - December 2023, due to demand from my relative, I decided to continue the effort.

Problem
#

This project was conceived due to my relative idea to automate watering plant process in his front yard and indoor garden. I proposed the idea and design the hardware right away with information from my relative.

Planning
#

After I propose and discuss my design with relative, relative agreed with my plan and then we move to program, component selection, PCB layout design and test. Here I provide the diagram block of the system.

Simplified Diagram Block Scheme
Sistem Block Diagram

System Concept
#

Program's Flowchart
Flowchart logic program

Program designed with automated operation without user intervention (user set alarm setpoint) however for the water pump actuation my relative want to retain manual activation as he deem he want to keep it simple at first. I use STElectronics’ HAL to program the STM32

Component Selection
#

Before we move further, I would like to address crucial component that determine the project viability

Moisture Sensor
#

Common Moisture sensor are suck, I don’t think we would use industrial grade sensor, and most available information online it is best to use capacitive based sensor in which we read the capacitive value in the soil and we would process the sensor with 555 timer outputting frequency based data.

Moisture Sensor atau Sensor kelembapan tanah merupakan salah satu komponen terpenting dalam skema otomasi penyiraman karena untuk menentukan apakah tanah perlu disiram atau tidak kita menggunakan sensor kelembapan tanah ini. Masalah terbesar terutama untuk bekerja menggunakan sensor grade Hobbyist adalah keandalan sensor yang bervariasi baik yang sangat bagus dan akurat hingga sensor yang mudah rapuh sehingga bersifat sekali pakai. Hal tersebut kita temui pada jenis Sensor Kelembapan ini dengan banyak varian ditemukan di E-commerce Indonesia. Jika kita kelompokan, bisa kita bagi menjadi 4 jenis sensor kelembapan.

I recommend to check Andreas Spiess’s video that discuss this moisture sensor topic to be able near-linear reading result.

PCB design layout
#

Schematics and PCB Layout
Schematics and PCB Layout

I designed both schematics and PCB layout using KiCAD. Most component connected using connector for easier plug n’ play and minimize reversed connection. For module board power I use 5V adapter with DC barrel jack connector.

Design limited to single layer as I want to make it as fast as possible and replicable.

Testing
#

Gallery #