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

Soil moisture sensor

If you wanted to build an automated smart garden system, having a soil moisture sensor is required. The name of this sensor is pretty self-explanatory: it measures the moisture level in the soil. The following is a photograph of a soil moisture sensor:

As you can see in the photograph, the sensor is made up of two parts. The bottom piece is the part that is actually inserted into the soil. It connects to the other piece, the controller, via a wire. The four pins in the controller are as follows:

  • VCC: Used to provide power to the sensor
  • GND: For ground
  • D0: For digital output (either high or low) from the sensor
  • A0: For analog output from the sensor

The following diagram is an example of an edge analytics application using a soil moisture sensor. As you can see, one end of the moisture sensor is inserted into the soil of our plant pot. The other end of the sensor is connected to our Raspberry Pi computer. This allows our Raspberry Pi access to the soil moisture data:

Our Raspberry Pi uses this data to determine when to open the valve and add more water to our plant. Our Raspberry Pi also sends data to the cloud to which we would connect our computer or device. This data may be as simple as the soil level, or it may be modified in some way by our Raspberry Pi before it is sent to the cloud.

It is the logic programmed into our Raspberry Pi that makes our application an edge analytics one as opposed to a standard IoT application that would just send the reading. 

主站蜘蛛池模板: 绥德县| 牙克石市| 尤溪县| 元阳县| 台中县| 眉山市| 开封市| 铜陵市| 闽清县| 大安市| 盘锦市| 永宁县| 丹巴县| 德昌县| 驻马店市| 客服| 出国| 绵阳市| 山东省| 忻州市| 师宗县| 乌拉特中旗| 那曲县| 修武县| 石泉县| 镶黄旗| 陆丰市| 崇信县| 海伦市| 建阳市| 崇阳县| 嵩明县| 东乡族自治县| 德安县| 鄢陵县| 浦东新区| 黑水县| 康定县| 芦山县| 子长县| 蓬溪县|