Infrared detection of human motion based on Dragonboard 410c

Infrared monitoring is a kind of sensor commonly used in security design. It can quickly detect moving objects. Many infrared camera motion detection switches are integrated on many cameras, which can quickly start the camera when there is a moving object. Observing and taking pictures, so that it can effectively avoid the waste of power and affect the service life of the camera in long-term work. This section of the blog will be based on the DragonBoard410c development board to detect the movement of the human body through the infrared motion detection sensor. The specific design is as follows: :

First, the preparation of hardware equipment

The hardware equipment to be prepared here first includes a Dragonboard 410c development board, power supply for the development board, breadboard and Duban line, as shown in Figure 1:

Figure 1 DragonBoard 410c development board and related kits

The Dragonboard 410c development board is a development kit for Maker Group launched by Qualcomm. It is small in size but very powerful. The specific materials and related learning content can be described in detail at http://qualcomm.csdn.NET/.

Then, you need to prepare an infrared sensor module. This article uses the commonly used HC-SR501 infrared module, as shown in Figure 2 below. The technical parameters of the module are as follows:

1) Working voltage: DC5V to 20V

2) Static power consumption: 65 microamps

3) Level output: high 3.3V, low 0V

4) Delay time: adjustable (0.3 seconds to 18 seconds)

5) Blocking time: 0.2 seconds

6) Trigger mode: L can not be repeated, H can be repeated, the default value is H

7) Sensing range: less than 120 degrees cone angle, within 7 meters

8) Working temperature: -15~+70 degrees

9) PCB Dimensions: 32*24mm, screw hole distance 28mm, screw hole 2mm, induction lens size: (diameter): 23mm (default)

Figure 2 HC-SR501 human body infrared sensor module

The above is the hardware used, the preparation of the development software tools can refer to the Linux system based on the implementation of the DragonBoard 410c GPIO control software and hardware environment construction process, because we finally need to complete the control of the infrared sensor switch mainly through the GPIO Control to achieve.

Second, the establishment of the software environment

In the process of designing the program, the Linux operating system is used. The installation and environment of the Dragonboard 410c development board linux system refer to the resources and tools on https://developer.qualcomm.com/hardware/dragonboard-410c/tools. The linux image and manual are installed according to the manual, and the linux environment is built.

After the completion of the linux environment, you need to install a QT library in the Linux environment. The library can refer to the blog QT+Opencv particle filter algorithm to achieve video target tracking. (3) QT environment installation and configuration, this library is mainly for Subsequent design and development of infrared human sensor modules provide corresponding display functions. The above is the construction of the software environment throughout the development process.

Third, the hardware connection

After the hardware is ready, our hardware modules are connected using the DuPont line, as shown in Figure 3 below. Here, the connection process needs attention. The power supply directly supplies power from the 5v power supply provided by the Dragoboard 410c development board to the infrared sensor module. After the connection is completed, if you have a multimeter in your hand, it is best to measure it first to see if there is a short circuit. In the process of I/O port connection, the output I/O port of the infrared module cannot be directly connected to the Dragoboard410c development board. The I/O voltage of the development board should be 1.8v, and the output voltage of the infrared module is 3.3. v, direct connection will cause the system to work without problems, the I / O port is burned out.

Figure 3 Hardware connection diagram

Fourth, software design

After the hardware connection is completed, the software design can be carried out. In the software design, QT is mainly used as the interface, and then the system function is called to access and control the related GPIO port to monitor and read the level change of the output of the infrared sensing module. The output is monitored. The specific software design is the same as the GPIO program design based on the Linux system implementation of DragonBoard 410c GPIO control. It only adds QT to the upper layer for processing, and controls the GPIO access through a timer in the QT environment. The frequency, then the results obtained will be displayed on the interface, the core program is designed as follows:

Int get_Infrared _status(int Key){

Int tmp=1;

Int TIme=0;

Write_GPIO(Infrared_stat, 1) ;

Do{

Delay_ms(10);

If(Read_GPIO(infrared_stat, &tmp)==0){

TIme++;

}

Else return -1;

If(TIme>=100){

Break; // The level of the output is maintained for more than 1s , indicating that the human body is detected and the detection is exited.

}

}while(!tmp)

If(TIme>=50){ //The output level is greater than 0.5s and it is considered that there is human body entering, not interference.

Return 1;

}

Else return 0;

}

Five, testing

After the software design is completed, use the qmake tool to cross-compile. The compiled file is downloaded to the Dragoboard 410c development board with linux installed, and the HDMI output of the development board is connected to the display. After running, it can be moved by hand on the sensor. See that the LED lights are on and off.

In summary, this article describes how to implement infrared sensor monitoring through the Dragobard 410c development board. Later, you can also combine the previous blog about using Dragobard and the camera to implement frame measurement, and realize an image based on the trigger method by using the infrared sensor to wake up the camera. And monitoring functions.

Lithium Polymer Battery Power Bank

Lithium Polymer Battery Power Bank is Build-in intelligent recognition voltage imported chip,is speed power bank and slim power bank. Lithium Polymer Battery Power Bank can automatically identify the mobile phone, tablets, and other digital products charge. Lithium Polymer Battery Power Bank is used Precise electronic board, and it have prevent overcharge,discharge, discharge and prevent leakage, short circuit and high temperature resistant.High quality high capacity batteries, durable. Lithium Polymer Battery Power Bank Support for fast charging, no memory effect, charging circuit number up to 1000 times. Lithium Polymer Battery Power Bank is very super slim(ultra thin, lightweight) . it have Standard USB output and Micro USB input so that simple and easy to carry it in our daily life.


New Products Cellphone Super Slim Power Bank 4000mah


Slim Lithium Polymer Battery Power Bank

Capacity: 4000mAh
Input: 5V-1000Ah
Output 1: 5V-1000Ah
Compatibility: All phones
Size: 115X65X10.2mm
Color: Black,Silver,Blue,Golden,Purple
Support for fast charging, no memory effect, charging circuit number up to 1000 times.
Standard USB output, Micro USB input, simple and easy to carry.

Ultra Slim Portable 4000mah Mobile Charger Power Bank


4000mah Lithium Polymer Battery Power Bank

Material: metal case
Weight: 120 g
Size: 116 (L) * 65 (W) * 7.5 (H) mm
Input: 5V-1A
Output: 5V-1A
Capacity: 4000mah
Interface: Micro USB

It is lightweight, portable, environmental friendly and economic efficiency.
It has high efficiency of power conversion and electricity-saving function.

Cheapest Price Wholesale Shenzhen Portable Power Bank


White Lithium Polymer Battery Power Bank

Size: 96*62*6.6mm
Color: White
Weight: 70g
It is small and protable, easy to carry.
Luxury plastic outer skin, delicate and cabinet.
Exquisite workmanship, high-capacity.

Metal Case Ultra Thin 3000mah Power Bank For Mobile Phone


Metal Lithium Polymer Battery Power Bank

Weight: 130 g
Size: 100 (L) * 60 (W) * 10 (H) mm
Input: 5V-1A
Output: 5V-1A
Repeatedly use of a single charge, portable design, convenient to carry.
Mobile power storage, portable for both indoors and outdoors.

Manufacturer Wholesale New Power Bank for Promotional Gifts


Promotional Gift Lithium Polymer Battery Power Bank

Weight: 170 g
Color: Silver, Gold, Blue, Black, Green
Size: 117mm * 65mm * 10mm
Input: 5V-1A
Output: 5V-1A
Capacity: 5000mah
Electricity-saving function.
Environmental friendly and economic efficiency.

These Lithium Polymer Battery Power Bank are compatible with:
Digital devices like mobiles , For iPhone 4s, For HTC Amaze, For Nokia, For Samsung galaxy S2, S3, Note, note2, For Nexus, For Samsung Gem, and other devices that uses Micro USB, Mini USB, For Apple 30 Pin and 2.0mm adapter.

Lithium Polymer Power Bank,Power Bank Li-Ion Polymer,Li-Po Power Bank,3000Mah Lithium Battery Power Bank

Reteck Electronic Co., Ltd. , https://www.reteck.com