Skip to content

DiuLaMaX/Motion-Tracking-Fan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Motion-Tracking-Fan

The ultrasonic sensor measures the distance between the fan and the person. If the distance is less than the threshold, the fan will be turned on. Otherwise, the fan will stay off.
For motion detection, a camera is used to detect and track human faces. First, the camera captures raw images from the environment. Second, OpenCV processes the images and outputs the current position of each face. By comparing the current position of each face and the desired position, an error is calculated. Finally, the P controller determines the control effort that controls the stepper motor to track a person until the error reaches zero.

Below is the program flowchart.

plot

Below is the circuit.

plot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages