官术网_书友最值得收藏!

Building a smart gardening system

In this section, we will develop a smart gardening system. We will use a PID controller to manage all inputs from our sensors, which will be used in decision system. We'll measure soil moisture, temperature, and humidity as parameters for our system. To keep it simple for now, we'll only use one parameter, soil moisture level.

A high-level architecture can be seen in the following figure:

You can replace the MCU board and computer with a mini computer such as a Raspberry Pi. If you use a Raspberry Pi, you should remember that it does not have an analog input pin so you need an additional chip ADC, for instance the MCP3008, to work with analog input.

Assuming the watering system is connected via a relay, if we want to water the garden or farm, we just send digital value 1 to a relay. Some designs use a motor.

Let's build!

主站蜘蛛池模板: 上杭县| 绥芬河市| 常州市| 仁布县| 兰州市| 普格县| 渑池县| 巴林左旗| 茂名市| 建昌县| 绥阳县| 嘉鱼县| 基隆市| 体育| 武山县| 宿松县| 赤峰市| 芦山县| 潜山县| 贺州市| 专栏| 虎林市| 永泰县| 山阴县| 鹰潭市| 淮滨县| 永平县| 治多县| 新巴尔虎右旗| 新竹县| 四子王旗| 成武县| 玉林市| 南木林县| 安平县| 淮安市| 金华市| 夏津县| 澄江县| 唐河县| 天津市|