- No. A passive infrared (PIR) sensor can only detect abstract movement. You will need an active-type infrared sensor or a device like a thermal camera (and a lot more complex code) to extract richer movement information.
- An ultrasonic sensor measures the round-trip timing of ultrasonic pulses, which is then used to calculate distance. Factors that affect the ultrasonic pulse timing or the speed-of-sound constant used therefore affect the calculated distance. Some examples include temperature since this affects the speed of sound, the material of the detected object (for example, does it absorb sound?), the size of the object, and its angle relative to the sensor.
- Both latching and non-latching Hall effect sensors output a digital signal – their output pin is either HIGH or LOW. In contrast, ratiometric Hall effect sensors output an analog signal (varying voltage) relative to how close they are to a magnetic field.
- The callback_handler...
You're reading from Practical Python Programming for IoT
The rest of the page is locked
You have been reading a chapter from
Practical Python Programming for IoTPublished in: Nov 2020Publisher: PacktISBN-13: 9781838982461
© 2020 Packt Publishing Limited All Rights Reserved