People counting - Technology insights

A brief introduction to Time-of-Flight sensing. Part 1 The basics

Time-of-Flight is the latest technology for anonymous, accurate and affordable distance sensors.
optical sensor array

This is the first of two articles bringing you the fundamentals of Time-of-Flight technology.  Through the use of Time-of-Flight technology, which means no camera is ever used, personal information is fully protected and all data is fully GDPR compliant.

What is the Time-of-Flight principle?

Time-of-Flight (ToF) sensors are used for a range of applications, including robot navigation, vehicle monitoring, people counting and object detection. ToF distance sensors use the time that it takes for photons to travel between two points to calculate the distance between the points.

What is the Time-of-Flight principle?What is the Time-of-Flight principle?

What are Photons?

Photons are the elementary particles that make up light. They come in different wavelengths, from long-wavelength radio waves that bring you your favorite music, to short wavelength, high-energy X-rays that doctors use to see through your body.

Time-of-Flight sensors use wavelengths somewhere in the middle of the electromagnetic spectrum, close to visible light.

depth sensing camera

There are three critical attributes of photons that we need to remember for ToF: Photons carry energy; they travel at a constant speed, usually the speed of light; they rarely travel alone.

The number of photons emitted by ToF sensors is enormous. We can estimate the number of photons used by a ToF sensor in one measurement using our measurement parameters. If we use a TeraRanger Evo sensor that emits photons at 940 nm, 100 mW for 50 μs, we can work out the number of photons emitted in one measurement:

ToF Formula
time-of-flight distance sensor

How do we calculate distances from time?

So, we know photons travel at the speed of light, which is often abbreviated to ‘c’. The speed of light is incredibly fast, 300000km/s. In fact, it is impossible to travel any faster. This means that it takes photons a very short amount of time to travel vast distances.

For example, to travel from the sun to the earth takes a photon just eight minutes, while from the moon to the earth takes 1.28 seconds! For an idea of how long it takes to travel more earthly distances, it takes a photon just 33 ns to travel 10 m, and 1 m takes 3.3 ns. As a general rule of thumb, photons travel at 30 cm/ns.

How does the object you are detecting affect your Time-of-Flight measurements?

The object that the photons hit inevitably has its own characteristics, and all surfaces reflect light differently. When light hits a surface, it can be absorbed, reflected or transmitted. The proportion of light reflected by the surface is called its reflectance. However, the reflectance doesn’t only depend on the surface, but also the type of light being reflected. Be careful: Do not assume the reflectivity of a surface is the same for visible and near-infrared light! (4)

When a surface reflects light, it can also be reflected in a variety of different ways.

Time-of-Flight camera depth sensing
light sensor array

Irregular surfaces can cause significant complications for ToF measurements, as it can be difficult for the sensor to understand which photons came from where. In confined spaces, photons can also bounce off walls and other objects, further confusing the measured distance.

So with all these factors, how much light actually makes it back to the ToF sensor?

Our LED Evo sensors have a field of view instead of a point measurement, and the illumination density of the light gets lower as the distance increases. So, at a distance of 1m, the sensor illuminates an area approximately 4x4cm.

Let’s assume that the object has 88% reflectance. That means that about 21 billion of our 24 billion photons are reflected by the surface. If the light is reflected equally in all directions, the reflected photons will form a half-sphere. Our Evo receiver lens is 1cm2, representing 0.00000039% of the area of the half-sphere when it reaches the detector. So, our Evo sensor will receive around 80,000 of the 24 billion photons that it sent out!

The art of making great ToF sensors is creating a sensor that can send the light out and receive as many of the returning photons as possible!

How does the environment affect your Time-of-Flight measurements?

Time-of-Flight sensors are sensitive to ambient light, as they can’t tell if photons were emitted by the sensor or have arrived from other light sources. ToF sensors tend to work better indoors, where there is little or no ambient light. Outdoors light from the sun travels through the atmosphere at different angles, interacting with dust and vapor as it goes.

As a result, outdoor ToF sensors encounter a characteristic spectrum of light (see Figure 5) with gaps in the light spectrum at energies where water vapor, oxygen, and CO2 absorb light. In theory, these gaps in the solar spectrum are ideal wavelengths for ToF sensors to operate, as there is less interference from ambient light.

optical sensor array

In the second article of this ‘Introduction to Time of Flight’ series, we will talk about the two varieties of ToF, direct ToF and indirect ToF. Direct ToF uses short pulses of light, and we measure the time until each pulse returns to the sensor to measure the distance to an object. Indirect ToF sensors emit a continuous wave of modulated light, and the phase of the reflected light is used to calculate the distance to the object. Stay tuned for the next part in this series!

References and further reading

1. ‘Time-of-Flight Cameras: Principles, Methods and Applications’ — M. Hansard, S. Lee, O. Choi, R.P. Horaud, Springer, 2013.
2. ‘Time of Flight Principle’
3. ‘The Nature of Light’ — C. Roychoudhuri, A.F Kracklauer, K. Creath, CRC Press, 2017.
4. ‘Theory of Reflectance and Emittance Spectroscopy’ — B. Hapke, Cambridge University Press, 2012.

Related products

TeraRanger Neo ES

TeraRanger Neo ES - Extra compact, low-power ToF distance sensor
from 149.00 ex. VAT
The TeraRanger Neo ES provides the best combination of small size, low power consumption and distance ranging on the market. Weighing only 6 g and consuming just 50 mA, it can measure distances up to 30 m. Its flat front panel and rectangular shape greatly simplify mechanical integration. The sensor is ideally suited for applications where space and power need to be conserved, such as drone navigation and collision avoidance, and other battery-powered range finding solutions. It also delivers high performance outdoors in bright sunlight.

TeraRanger Evo 60m Evaluation Kit

TeraRanger Evo 60m ToF Evaluation Kit
from 115.00 ex. VAT
The kit includes the TeraRanger Evo 60m sensor - our flagship long-range Time-of-Flight range finder as well as two clip-on, interchangeable interface boards - USB Backboard and I2C/UART Backboard. With a 10% saving on individual product prices, the TeraRanger Evo 60m evaluation kit offers great value, making our technology even more accessible to R&D, education and developer communities.

TeraRanger Evo 60m

Extra long-range ToF distance sensor (60 m)
from 79.00124.00 ex. VAT
TeraRanger Evo 60m is our longest range Time-of-Flight sensor. Thanks to its 60 meter detection range within indoor environments, it is often used as a range finder, navigation and collision-avoidance tool for robotics and for materials stock level sensing.

TeraRanger Evo 64px

Multi-pixel ToF depth sensor
from 99.00124.00 ex. VAT
Developed for indoor use, Evo 64px outputs a matrix of 8x8 high-speed distance readings over a 15 degree Field of View, with a maximum range of up to 5 meters. All in a small and lightweight form-factor, only 12 grams. A free graphical user interface is available for quick tests on your PC, and drivers for ROS are also written adding to the plug and play convenience.

Terabee 3Dcam 80x60

3D Time-of-Flight depth camera
from 250.00 ex. VAT
Enable the third dimension with an 80x60 pixel resolution and 74° x 57° Field-of-View. The 3D Time-of-Flight camera benefits from a robust aluminum casing while still offering a compact (83 grams) and discrete design. It is easy to set up and to stream depth data via the USB interface on Windows or Linux OS. Terabee 3Dcam comes with an OpenNI-based SDK, C/C++ samples, Python samples, and ROS package.

Terabee People Counting L-XL

GDPR compliant people counting device. Optimize value and reduce costs from your retail operation, smart building or office space
Using advanced Time-of-Flight technology, Terabee People Counting L-XL is GDPR compliant and provides accurate people counting data (98% accuracy or more) by monitoring the number of people entering and exiting doorways or corridors.

Easy to configure and install on high ceilings, the Terabee People Counting L-XL fits any kind of wide indoor entrance, up to 15 meters in a multi-device setup. Our people counting algorithm is capable of filtering out static objects and counting multiple people passing in both directions below the device as they enter or leave a space.

The solution consists of an IoT people counting device and an optional IoT platform. Two product variations allow transmission of the data via Power over Ethernet or LoRaWAN. Interested? Contact us.

Terabee People Counting M 2.0

Get real-time people counting data for single doorways and narrow corridors
Real-time data is the backbone of our modern, fast-paced world especially when it comes to monitoring space usage, occupancy, energy efficiency, security, building performance or tailored services. The Terabee People Counting M 2.0 device is GDPR compliant by design, with a real-time data capability, providing seamless, accurate, and highly effective footfall measurement, at a competitive price.

Using Time-of-Flight technology, the People Counting M 2.0 solution guarantees anonymity in its operations, prioritizing data privacy protection while offering robust, reliable occupancy monitoring.

People Counting M 2.0 is the perfect addition to your Building Management System. The “smaller sibling” of People Counting L-XL, People Counting M 2.0 is designed for smaller doorways and narrow corridors. It comes in both Power over Ethernet (PoE) and LoRa models to best suit your needs.
My Cart