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 10:04] – raivo.sell | 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) ====== | ||
| Line 24: | Line 24: | ||
| ===== Practice ===== | ===== Practice ===== | ||
| - | 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 senor capability to switch a relay or be used as an input for microcontroller. These devices can turn on a light or be used as a part of alarm system. | + | 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 regular push button switch. PID can be connected to digital or analog input. Be sure to check the pinout of the detector before connecting it to microcontroller. It is especially important to not mix up power and ground pins cause failure to do so usually ends up in breaking the detector. | Using the detector with a microcontroller is not much different from reading a regular push button switch. PID can be connected to digital or analog input. Be sure to check the pinout of the detector before connecting it to microcontroller. It is especially important to not mix up power and ground pins cause failure to do so usually ends up in breaking the detector. | ||
| On Robotic HomeLab III the detector has to be connected to Combo module encoder input if the sensor requires 5V power or analog/ | On Robotic HomeLab III the detector has to be connected to Combo module encoder input if the sensor requires 5V power or analog/ | ||
| - | ~~PB~~ | + | < |
| <code c> | <code c> | ||
| // Robotic HomeLab PID sensor (detector) example program | // Robotic HomeLab PID sensor (detector) example program | ||