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

  • Android Things Projects
  • Francesco Azzola
  • 330字
  • 2021-07-02 20:46:27

PIR sensor

In the previous paragraph, we talked about PIR sensors and it is useful to describe these briefly so that we have a common base to start our project. PIR sensor stands for a Passive InfraRed (PIR) sensor. This is a class of sensors that are able to detect movement by measuring the infrared (IR) light emitted by an object. All objects especially human bodies, animals, and so on emit energy using infrared rays. This type of energy is not visible to human eyes, but we can measure it using special sensors like this one. As a matter of fact, what we really measure is a variation in the emitted energy. The passive term refers to the fact that this sensor does not produce or radiate infrared rays, but it simply detects the energy emitted. Before digging into the project it is convenient to know how it works to better understand how to use it in the right way. A PIR sensor is a quite complex sensor that uses two different components. Each component is sensitive to infrared rays, as described previously.

The following figure describes how a PIR sensor works:

When a warm body (like the cat in the picture) passes through the detection area, the first component gets excited while the second component remains idle. As the body moves and leaves the first component detection area, the first component gets idle and the second component gets excited. Using this simple principle the sensor can detect when a body is moving. At the end of this process, an event is triggered. PIRs have several configurations with different features.

The most common model is the one that uses Fresnel lenses that help to widen the detection area. The following image shows the PIR sensor that we will use in this Android Things project:

The sensor has two potentiometers:

  • One to adjust the sensitivity
  • The other one to control the time the signal is high when an object is detected
主站蜘蛛池模板: 邹平县| 曲靖市| 武城县| 长子县| 永康市| 濮阳县| 湄潭县| 阿拉善右旗| 新乐市| 深水埗区| 金平| 巴彦县| 阳泉市| 盐池县| 刚察县| 壤塘县| 福安市| 克山县| 崇文区| 赤城县| 凌源市| 凉城县| 麻栗坡县| 龙泉市| 鄂尔多斯市| 库尔勒市| 洪雅县| 齐齐哈尔市| 望谟县| 嘉兴市| 页游| 封开县| 三河市| 梅州市| 廊坊市| 罗甸县| 安达市| 凯里市| 龙川县| 渭源县| 双鸭山市|