当前位置:网站首页>Sensor: introduction of soil moisture sensor (xh-m214) and STM32 drive code

Sensor: introduction of soil moisture sensor (xh-m214) and STM32 drive code

2022-07-07 02:10:00 The moon shines on the silver sea like a dragon

Soil moisture sensor (XH-M214) And stm32 Driver code

This paper mainly introduces :stm32f103 ADC Read voltage Collect soil moisture sensor (XH-M214) data

XH-M214 brief introduction

XH-M214 The real object looks like this :
 Insert picture description here

The one that looks like a fork is a sensor , Measuring soil moisture changes with the change of soil conductivity ( Soil resistance increases with drought ). Measure the resistance between the two electrodes of the sensor .
The blue module is a voltage comparator and a voltage divider , The pin is defined as follows :
 Insert picture description here
One is analog signal output , And measured soil moisture , There is also a switch signal output , Because there is a comparator , When the threshold is exceeded, the flag bit is output .
Its and schematic diagram are as follows :
 Insert picture description here
Working voltage 3.3v-5v, Working current :100mA within

advantage

原网站

版权声明
本文为[The moon shines on the silver sea like a dragon]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207061823093984.html