Skip to main content

Motion Tracking with Sensors for Microcontrollers 

Motion Tracking with Sensors for Microcontrollers 

Research by Blackbox into various sensors that can used with microcontrollers to track persons, objects, colours or other motions. What kind of differents sensors are there to use and what are the pro’s and con’s of each sensor?


Sensors of Interest:

Sensing Distance and Proximity:

  • Ultrasonic Sensor
  • Infrared Sensors / IR
  • PIR Motion Sensor
  • Microwave Doppler Radar Sensor

More advanced sensing:

  • LiDAR, 
  • ToF, Time-of-flight sensors
  • HuskyLens AI Vision

Can also be used:

  • LDR Photocell sensors
  • Capacitance sensors
  • PhotoDiodes


Ultrasonic Sensor 

grove-ultrasonic-distance-sensor-preview_1-1-1030x773.png

The Ultrasonic Sensor is arguably the most common distance measuring sensor, also known as the Sonar sensor. It detects the distance to objects by emitting high-frequency sound waves. The object needs to be in line with the sensors not so wide range. Used a lot in DIY distance measurement projects, robotics, smart cars, drones. Most common used sensor is the HC-SR04.

+

  • not affected by colour object or transparency.
  • Works well in dim places

- 

  • limited detection range
  • Not good in tracking fast objects
  • Unable to measure objects with extreme textures or surfaces.

Detection is good for example; knowing if someone ‘entered’ the space and switch on video. Not so good for when you want one or multiple persons tracked. 

Screenshot 2023-04-25 at 15.54.47.png


Infrared Sensor (IR)  

Screenshot 2023-04-25 at 15.54.51.png

IR distance sensors work through the principle of triangulation; measuring distance based on the angle of the reflected beam. Used a lot in TV’s, computers and laptops, distance measurement projects, security systems, monitoring and control applications.

+

  • Small size
  • Daytime and Nighttime usage
  • Able to measure the distance of objects that have complex surfaces unlike ultrasonic sensors

-

  • Limited measurement range
  • Affected by environment conditions and hard objects


Screenshot 2023-04-25 at 15.55.03.png

PIR Motion Sensor

Screenshot 2023-04-25 at 15.54.55.png 

Passive infrared (PIR) sensors are sensitive to infrared (IR) rays and are mostly used for motion detection where humans move in or out of the sensor range.

Used a lot in appliances and gadgets for home or business (room detection). Also in DIY projects.

All living objects, whose body temperature is more than 0°C, emit the heat in form of infrared radiation through their body, also called as thermal radiations. This Radiated energy is invisible to human eye. These Signals can be detected by using PIR sensor which is specially designed for such purpose.

Grid Eye Illusion
Grid eye illusion


PIR sensor i.e. Passive Infrared Sensor, passive word indicates PIR Sensor does not generate or radiate any energy for detection purposes. PIR Sensors don't detect or measure "HEAT"; they detect the infrared radiation emitted or reflected from objects.They are small, inexpensive, low power and easy to use. They are commonly found at home, medical, factories etc. areas.



Microwave Doppler Radar Sensor

Screenshot 2023-04-25 at 16.00.00.png

For most of our Arduino projects that require knowing if someone has left or entered the area, the PIR sensor is an excellent choice. However, because they only detect movement from living things, they will generate fewer false alarms.

This is where a microwave sensor like the RCWL-0516 comes in handy. The RCWL-0516 microwave sensor detects any movement from any object and does not rely on heat signatures, making it more reliable in hot environments where a PIR sensor may not be as effective.

More about Doppler Microwave sensors here

Screenshot 2023-04-25 at 16.01.44.pngAnd a tutorial explaining the RCWL-0516 Microwave Doppler Radar sensor and running a beginner test can be found here by CircuitDigest .


Lidar Sensors and other motion sensors info coming soon! :)

Let us know if you worked with any of these sensors or want to know more about them via Blackbox.ibb-pastoe@hku.nl