Summary: | 碩士 === 國立勤益科技大學 === 電子工程系 === 107 === This article uses PIR sensors and ultrasonic sensors to detect the position of the human body and objects. The PIR sensor can block most of the infrared light through the sensor's Lens. Because Lens is coated with a multi-layer film, and the human body temperature is about 36.5 degrees, this coating only allows infrared rays near the wavelength of 36.5 degrees to pass,. Therefore, it is suitably used together as a detection of the human body. In this paper, the Arduino microcontroller will send a 10uS TTL pulse signal to trigger the ultrasonic sensor. After the ultrasonic sensor is ready to send,it will send eight 40KHz square waves to the object to be detected, and then the trip time from signals emitted to signals received is calculated and converted into distances.
This paper uses the coordinates to determine the position of the human body on the plane and control the stepper motor to obtain the angle. The distance coordinates are obtained by the super-wave to complete the position in the space where the human body is located. In practice, the stepper motor controls the rotation angle of 5.625 degrees.
The starting position of the stepping motor rotation angle is set to 0 degrees, and the planned angles are forward rotation and reverse rotation. Finally, the LCD screen is used to display the angle and distance when the human body or objects are detected, and then indicates that the motor displays a "+" angle when it rotates forward and "-" when it rotates reversed. When the system detects the human body, the "H" font will appear behind the distance, and no H indicates that the object is detected.
|