16 In 1 Sensor Module Kit For Raspberry Pi 2 Pi2 Pi3

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
16 in 1 Sensor Kit module.

Resources

http://www.weikedz.com/plus/view.php?aid=959

1. One channel TCRT5000 tracing module:

Detection distance: about 10mm
Operating voltage: 5V, black line output low level, white line output high level

TCRT5000

Pinout

Connect VCC to pin 1, connect GND to pin 6, connect OUT to pin 40 (GPIO 21).

Raspberry pi 3b+ pinout.

Create python3 code

Create the following python3 code called ‘light_sensor.py’.

import RPi.GPIO as GPIO
import time

GPIO.setmode(GPIO.BCM)

PIR_PIN = 21
CNT = 0

GPIO.setup(PIR_PIN, GPIO.IN)

print('PIR Module Test (CTRL+C to exit)')
time.sleep(2)
print('Ready')

while True:
	if GPIO.input(PIR_PIN):
		CNT = CNT + 1
		print('Motion Detected: ' + str(CNT))
	time.sleep(1)
Python3 code.

As you move your hand away from the sensor, it will stop counting.

Adjust the on-board setting to adjust the sensitivity.

3. Vibration sensor module SW420.

2. HC-SR-501 Infrared human body induction module.

Power = Red, Output = yellow, GND = Black.
Connect the Power, output and ground as shown.

Download the github files.

git clone https://github.com/burrsutter/rpi_HC-SR501.git

cd rpi_HC-SR501/

Edit the python3 code.

Open ‘poll_motion.py’ and edit the python2 code to suit python3.

import RPi.GPIO as GPIO
import time

GPIO.setmode(GPIO.BCM)

PIR_PIN = 21
CNT = 0

GPIO.setup(PIR_PIN, GPIO.IN)

print('PIR Module Test (CTRL+C to exit)')
time.sleep(2)
print('Ready')


while True:
	if GPIO.input(PIR_PIN):
		CNT = CNT + 1
		print('Motion Detected: ' + str(CNT))
	time.sleep(1)
Change the code to python3 syntax.

To run the code, enter the following at the linux prompt.

python3 poll_motion.py

Adjust the ‘Sensitivity’ and ‘Time delay’ to reduce false signals.

Output.

You should see the following on your screen. As you move your hand in front of the sensor the count will increase.

If the count increases without your hand present, the sensitivity and time delay settings need to be adjusted.

You can adjust these setting while the program is running.

Success!
SW420.

Pinout.

VCC: Pin 1, GND: Pin 6, DO: Pin 40 (GPIO21)

Python3 Code.

import RPi.GPIO as GPIO
import time

GPIO.setmode(GPIO.BCM)

PIR_PIN = 21
CNT = 0

GPIO.setup(PIR_PIN, GPIO.IN)

print('PIR Module Test (CTRL+C to exit)')
time.sleep(2)
print('Ready')

while True:
	if GPIO.input(PIR_PIN):
		CNT = CNT + 1
		print('Motion Detected: ' + str(CNT))
	time.sleep(1)
Python3 code.

Adjust the onbaord setting to adjust the sensitivity.

Success!

KY-008 laser sensor module:

Operating voltage: 5V
Specifications: 15 * 24 mm
Light source wavelength: 650 nm
Weight: 2.2 g

4. Sound sensor module:

Operating voltage: 3.3V-5V
Small PCB board size: 3.4cm x 1.6cm

same as all…..

Obstacle avoidance sensor module:

VCC: 3.3V-5V external voltage (can be directly connected to the 5v and 3.3v microcontroller MCU)
GND: External GND
OUT: Small board digital output interface (0 and 1)
Connection method: VCC-VCC; GND-GND; OUT-IO
Board size: 3.2 x 1.4cm

Flame sensor module:

Operating voltage: 3.3V-5V
Output form: DO digital switching output (0 and 1) and AO analog voltage output
Size: 3.2cm x 1.4cm
Detect flame or wavelength range (approx): 760 nm to 1100 nm, lighter flame test distance is 80cm, the greater flame, the farther test distance
Detection angle is about 60 degree, particularly sensitive to flame photometry
Adjustable sensitivity

315M wireless transceiver module:

Operating voltage: DC5V
Quiescent current: 4Ma
Receiving frequency: 315MHz
Receiving sensitivity: -105DB
Size: 30 x 14 x 7mm

Emission head parameters:
Transmission distance: 20-200 meter (different voltage, different effect)
Operating voltage: 3.5-12V
Dimension: 19 x 19mm
Work: AM
Transfer rate: 4KB / S
Transmitting power: 10mW
Transmission frequency: 315M
Pinout left → right: (DATA, VCC, GND)

Shock sensor module:

Operating voltage: 3.3V-5V
Output type: Digital switching output (0 and 1)
Small PCB board size: 3.2cm x 1.4cm

MQ-2 gas sensor module:

Dimension: 32 x 22 x 27mm (L x W x H)
The main chip: LM393, ZYMQ-2 gas sensor
Operating voltage: 5V DC
Dual signal output (analog output, and TTL level output)
TTL output valid signal is low level. (When the output low level signal light can be directly connected microcontroller)
Analog output: 0 ~ 5V voltage, the higher the concentration the higher the voltage.

DHT11 temperature and humidity sensor module:

VDD: 3.3-5.5V DC
DATA: Serial data
NC: No connection
GND: Grounding, negative power supply

HC-SR04 ultrasonic sensor module:

Operating voltage: 5V
Ultra-small quiescent current: less than 2mA
Induction angle: not more than 15 degrees
Detection distance: 2cm-400cm
High precision: up to 0.3cm

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.