Using Raspberry Pi to drive motion sensor and turn on LED

Generally speaking, motion sensor is made of thermoelectric sensor, and it can detect body motion. The motion sensor module generally uses the BISS0001 ("Micro Power PIR Motion Detector IC") to convert the analog signal from the sensor to digital output.

Experimental principle of this project is that, when the detection of the human body motion, GPIO output get high level and light is on; else, GPIO output would get low level and LED would be off. In this project, Python Language will help us achieve this experiment. Enjoy Raspberry Pi Python programming tour with us.

Experimental photo

Experimental Parts

Raspberry Pi board

x1

Motion Sensor

x1

LED

x1

Jumper wire

centain amount

breadboard

x1

1KΩ resistor

x1

T-type GPIO Extension Board40 Pin Ribbon Cable

optional

Circuit Graph

Motion sensor Schematic

Motion sensor Interface Layout

The two potentiometer can adjust delay time and sensitivity, as the follow picture:

The HC-06 is a class 2 slave Bluetooth module designed for transparent wireless serial communication. Once it is paired to a master Bluetooth device such as PC, smart phones and tablet, its operation becomes transparent to the user.
Address:
E-mail:
Tel: