This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:examples:sensor:ir_passive [2015/12/17 09:17] – kaupo.raid | en:examples:sensor:ir_passive [2020/07/20 09:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ~~PB~~ | + | < |
| ====== Passive infrared sensor (PIR) ====== | ====== Passive infrared sensor (PIR) ====== | ||
| - | //Vajalikud teadmised: | + | //Necessary knowledge: |
| - | [HW] [[et: | + | [HW] [[en: |
| - | [AVR] [[et:avr:io]], | + | [AVR] [[en:avr:io]], |
| - | [LIB] [[et: | + | [LIB] [[en: |
| ===== Theory ===== | ===== Theory ===== | ||
| [{{ : | [{{ : | ||
| - | Passive infrared sensor measures infrared (IR) radiation from objects in it's field of view. All objects emit some low level of radiation. The hotter something is the more radiation is emitted. Human eye is not capable to see IR radiation, but it's possible to use special cameras and sensors to detect it. | + | Passive infrared sensor measures infrared (IR) radiation from objects in it's field of view. All objects emit some low level radiation. The hotter something is the more radiation is emitted. Human eye is not capable to see IR radiation, but it's possible to use special cameras and sensors to detect it. |
| - | The sensor is called passive | + | The sensor is called passive |
| PIR sensor is mostly used for detecting living being movement and thus is generally known as passive infrared detector (PID). The sensor is also sensitive enough to even detect IR radiation source movement while the object is already in it's field of view. | PIR sensor is mostly used for detecting living being movement and thus is generally known as passive infrared detector (PID). The sensor is also sensitive enough to even detect IR radiation source movement while the object is already in it's field of view. | ||
| Line 18: | Line 18: | ||
| * passive infrared sensor (PIR) | * passive infrared sensor (PIR) | ||
| * lens for directing radiation to the sensor | * lens for directing radiation to the sensor | ||
| - | * control | + | * control |
| [{{ : | [{{ : | ||
| Line 24: | Line 24: | ||
| ===== Practice ===== | ===== Practice ===== | ||
| - | PID sensors output is usually simple digital | + | PID sensors output is usually simple digital signal. If the sensor has detected something then it usually outputs high impulse which stays high for a given time period (the time might be adjustable). This gives the sensor |
| - | Using the detector with a microcontroller is not much different from reading a reagular pushbutton | + | Using the detector with a microcontroller is not much different from reading a regular push button |
| - | On Homelab | + | On Robotic HomeLab |
| - | ~~PB~~ | + | < |
| <code c> | <code c> | ||
| - | // Homelab | + | // Robotic HomeLab |
| #include < | #include < | ||