SSZT372 november   2019 DRV5032 , DRV5055 , HDC2080 , HDC3020 , LDC0851 , OPT3002 , TMAG5273

 

  1.   1
  2.   2
    1.     3
    2.     Do you need tamper detection in your design?
    3.     How to select the right sensor for tamper detection
    4.     Additional resources

ReedKacz

HDC2080Many systems require a method to detect tampering. In some cases, that could mean that the door of a product has been opened. In other cases, it could mean that a seal on a device has been breached, or that an external element is affecting measurement precision. Device tampering can have many negative impacts, including unexpected changes in functionality, a safety risk to humans, security breaches or ruined devices. The good news is that many different kinds of sensors can assist in the effectiveness of tamper detection.

In this technical article, I will compare several tamper detection methods in order to help you choose the right option for your next design. It is possible to implement tamper detection in constrained applications when you need to minimize space and power consumption, such as in battery-powered or other applications where the standby power must stay below a certain level. Sensors from TI, for example, have been optimized to be small in device size and low in quiescent current draw.

Do you need tamper detection in your design?

Tamper detection is appropriate when there is:

  • A safety-critical need to shut off a portion of a product if opened, such as a smart lock or a high-voltage power supply.
  • Any possibility that a device will be damaged once tampered with, such as products submerged in water or other harsh environments.
  • The potential that a user may tamper with a device to alter its functionality, such as an electricity meter.

Let’s look at four different tamper detection sensor technologies.

How to select the right sensor for tamper detection

Hall-effect switches detect the type of tampering where a case is opened by mounting a magnet to the door of the device; see the Magnetic Tamper Detection Using Low-Power Hall-Effect Sensors Reference Design shown in Figure 1. Once the door moves away from the sensor, the magnetic flux is no longer present and the sensor can then determine whether the case has been opened. Hall-effect sensors have the advantage of being very low in power consumption; for example, the DRV5032 has an average current draw of 0.54 µA.

In systems where case tampering is important, Hall-effect linear devices can also determine the strength of external magnetic fields not present during normal operation. In some parts of the world, disabling a system with large magnetic fields produced by strong magnets does occur. A linear device such as the DRV5055 can detect whether a large magnet is in close proximity to the system and alert the service provider. In some cases, multidimensional axes of detection offer a more robust solution.

GUID-B1820276-82D7-482A-B987-F36EE7F42714-low.png Figure 1 The magnetic tamper detection reference design with an external tamper magnet

Inductive sensors, in conjunction with a printed circuit board (PCB) coil and a metallic object, can detect the changing inductance of a coil and thus are a good fit for detecting tampering where a case is opened. An inductive sensor used for this type of tamper detection, as illustrated in Figure 2, has the advantage of being able to perform detection with the target being a metal object, such as a safe door. But because the PCB must have sufficient space for the coil, this is the most complex of the four sensor methods. If you choose this method, make sure to consult the additional resources at the end of this article.

GUID-79226321-5200-4CDA-8BD6-E4A657B2F302-low.png Figure 2 LDC0851 inductive sensor block diagram

Humidity sensors, as shown in Figure 3 and Figure 4, are able to measure relative humidity and temperature. This type of sensing can detect a broken seal or leak tamper. For devices that are sealed to protect against harsh environments, a humidity sensor is an effective way to control the environment inside the device. As soon as the humidity level rises, the sensor will detect the broken seal and take corrective action. Humidity sensors are particularly useful for underwater devices. A humidity-based solution does not require any external elements; however, it is more expensive than other sensor technologies.

GUID-BF4922A4-6835-4BB7-B9C5-4BCAFD458EB9-low.png Figure 3 HDC2080 humidity sensor package
GUID-55B82523-C513-4654-B1D4-E31220F5EC1E-low.png Figure 4 HDC2080 block diagram

Ambient light sensors, as shown in Figure 5 and Figure 6, can determine a change in illumination and can sense an increased optical response during a broken seal or opened case. For a design with a known amount of light at the PCB, an ambient light sensor offers an easy way to implement tamper detection. Once the light level rises, the end equipment has entered an unexpected state. One example is a money drawer in a cash register. If the register is closed and light enters unexpectedly, that indicates a tampering scenario.

GUID-1CF01775-CD1F-426D-90D7-8881C909F25B-low.png Figure 5 OPT3002 ambient light sensor package
GUID-48D85C05-7FCB-477B-B146-539DF8A2FC0D-low.png Figure 6 OPT3002 ambient light sensor block diagram

Table 1 is a high-level comparison of the four tamper detection sensor technologies.

Table 1 Sensor comparison
Sensor Type Cost External elements Type of tampering Environmental needs Detectability Power consumption Design complexity Key products and size
Hall-effect sensors Low Magnet Case open, system tampering Access to two pieces of the case Magnetic field Switch: 0.54 µA at 5Hz Linear: 2.3 mA Medium DRV5032 1.54 mm2 TMAG5273 4.64 mm2
Inductive sensors Medium PCB coil and metallic object Case open, impervious to magnetic fields Access to place the PCB coil; needs metal to sense Conductive targets (such as copper) 2 µA to 4 µA at 1 Hz Highest LDC0851   4 mm2
Humidity sensors High None Broken seal None Change in humidity 550 nA 400nA Low HDC2080   9mm2 HDC3020   6.25mm2
Ambient light sensors Medium     None Broken seal, case open Needs to have light levels change when case opens Any light (broad spectrum to include infrared) 1.8 µA Low OPT3002   4mm2

Each of the four different methods leverages low-power and small-size sensors to implement tamper detection. Which method will work best for your system?