Ever wondered how some rooms only light up when someone enters the room? The answer is motion sensors. But what’s more unclear is how you would connect a motion sensor to a Raspberry Pi. Let’s see how it works.
A motion sensor can be connected to the Raspberry Pi by using only 3 wires: power pins (+ and -) and signal. The GPIO Zero class, preinstalled on Raspberry Pi OS, can then be used in Python to detect movements in the room.
|
|
Scooped by
Gumersindo Fernández
onto tecno4 December 2, 2023 6:54 AM
|
Your new post is loading...