SLYA086 February   2024 TMAG3001

 

  1.   1
  2.   2

Introduction

As the rate of security systems have been steadily increasing, so has the need for innovations for door and window contact sensors. Door and window sensors are often used in home security on each door and window throughout a household as a foundation to any home security system. Contact sensors are an essential part of security systems as the sensors alert a system to the opening or closing of each monitored entry point. Historically, reed switches were the design used in contact sensors due to their simplicity; however, reed switches provide erratic detection fields which leaves the system vulnerable to tampering unlike Hall-effect sensors.

If a door or window is opened while the alarm system is active, the main alarm can be immediately triggered when the Hall-effect sensor sends an alert to the main control panel. Contact sensors are mostly battery powered where the Hall-effect sensor alternates between active measure mode and low power sleep mode to reduce the average current consumption. It is crucial to use the most power efficient sensing design possible as these systems are designed to be compact and remain powered on continuously checking for entry and exit alerts.

Operation of Door and Window Sensors

Traditional door and window contact sensors are used to alert when someone enters or leaves a building or when an entry point is left open. Sensors are an essential part of security systems, making sure for peace of mind. The terms door and window sensors are interchangeable as they are both classified as contact sensors. Typically, one dimensional magnetic switches are used to recognize the alterations in magnetic field when a door or window is opened or closed; however, one concern with this implementation is that these sensors only indicate one of two states. The sensed 1D magnetic flux density is either above or below the device's trip points. As a result, it is possible to tamper with the system to think that the door or window is closed by using a strong enough external magnet to cause the switch's trip point to be triggered despite the fact that the door or window can be opened.

Also, linear 3D Hall-effect sensors can be used to sense the exact magnetic flux density in all three directions, which allows the system to differentiate the magnetic signature of a door or window actually being closed from a tamper magnet being used in an attempt to fool the security system. 3D Hall-effect sensors can be used for open and close detection in space-constrained applications that require variations in mounting such as the position shown in Figure 1. The mounting position shown in Figure 1 has the door frame raised from the door which creates a change in distance in both the x and y axes.

GUID-20210810-SS0I-CTBK-R5TQ-PMSBTXTXTRVN-low.pngGUID-20210810-SS0I-8PDL-8XNZ-C6T523JSQNCZ-low.pngFigure 1 Typical Door Mounted Sensor with Raised Frame

Hall-effect Innovations in Door and Window Applications

The TMAG3001 is one of Texas Instruments three-axis linear Hall-effect sensors with a dedicated interrupt (INT) pin that acts as a system interrupt during low power wake-up and sleep mode. This device also features a configurable low power switch mode for magnetic or angle measurements. The TMAG3001 can be used in contact sensors for open and close detection as well as tamper detection. The ultra-small WCSP package offers flexible mechanical placement in space constrained applications like contact sensors.

Additionally, linear 3D Hall-effect sensors can be used in resistance to tampering. The TMAG3001 features advanced field detection capabilities and can detect magnetic fields in the x, y, and z planes, allowing the system to detect when a sensor is being tampered with. Once the device detects tampering, the system can alert the user. Figure 2 shows a testing setup of a Hall-effect sensor mounted on a sliding glass entry door. In this test, a magnet is brought close to the door from the opposite side until the LED goes off, indicating the sensor has detected a change in the magnetic field due the tamper magnet. As shown below, the tamper magnet in this test was able to trip the Hall-effect sensor through the door.

GUID-20210810-SS0I-T17X-SFP9-FT54WRXBG04M-low.pngFigure 2 Tamper Test Setup

Wake-up and Sleep Mode

To optimize power consumption, the TMAG3001 features a wake-up and sleep mode in which the device can be configured to go to sleep and wake up at a specific interval to measure the x, y, z directions, or temperature data. The device asserts an interrupt signal once the magnetic threshold cross is detected and exits wake-up and sleep mode and goes to the wait state for a period of time. In the wait state, the last measured data will be stored in the corresponding result registers. The wake and sleep time period can be configured using predefined intervals. If the microcontroller does not respond to the interrupt in the wait state, then the device continues to be in wake-up and sleep mode. If the interrupt condition is not met, the device will continue to be in the wake-up and sleep mode to wake up and measure data at the specified interval. Figure 3 below shows an example where the controller responds to the interrupt during the wait state and places the device back in wake up and sleep mode. The wake-up and sleep mode conserves energy during idle periods thus making the TMAG3001 ideal for low-power applications such as contact sensors.

GUID-20221207-SS0I-2K3D-6NCJ-NP4F9NRTFPFZ-low.svgFigure 3 TMAG3001 Interrupt Through SCL

Significance of Wake on Change

Similarly, a vital feature that the TMAG3001 offers is wake on change, which in this mode, the device monitors either one of the magnetic axes or the angle output for a change and wakes the system by providing an interrupt. In order to save power for battery applications, such as contact sensors, the TMAG3001 remains in wake on change mode until an interrupt is detected. This device can be configured to provide a wake on change response in standby, continuous or wake and sleep mode, when an interrupt response is obtained. The new sensor measurement is used as the reference threshold for the successive measurement. Figure 4 shows the device response where the device is responsive to the x-axis magnetic field and Figure 5 shows the device response where the device is responsive to the angle measurements. Traditionally, door and window sensors continuously consume power to monitor change, but the TMAG3001 eliminates the potential energy inefficiencies that this can present by enabling relative magnetic limit checks for both magnetic field and angle measurements.

GUID-20221207-SS0I-BSKZ-8ZJH-F3MFGFHZV6SW-low.svgFigure 4 TMAG3001 Wake on Change with Magnetic Axes Measurements
GUID-20221212-SS0I-BHZN-H9R8-LMPKLT2MJVXV-low.svgFigure 5 TMAG3001 Wake on Change with Angle Measurements

Conclusion

Door and window contact sensors are becoming more common in consumer and industrial security systems due to the added convenience and energy conservation abilities they provide. Many factors need to be accounted for to offer the most robust design while also offering tamper detection. Low-power linear 3D Hall-effect sensors such as the TMAG3001, TMAG5170, and TMAG5273 provide designers with added mechanical flexibility for space-constrained applications and advanced field detection capabilities. The incorporation of the wake-on-change feature in Hall-effect sensors proves to be highly beneficial; especially when used for security purposes. By allowing sensors to remain in a low-power state until a significant magnetic field change is detected, the energy efficiency is optimized extending battery life. The implementation of the wake on change feature can make Hall-effect sensors a key component in security systems across various diverse industries.

Table 1 Recommended Hall-Effect Devices
DeviceCharacteristicsDesign Considerations
TMAG3001Low power 3D linear and angle Hall-effect sensor with I2C interface and wake up detection in YBG package.Measures magnetic field strength on X,Y, and Z axes and reports data over I2C interface. Great for low power applications. This device can operate on as little as 1.65V. Configurable power mode options allow for system performance and current consumption optimization.
TMAG5273Low power linear 3D Hall-effect position sensor with I2C interface available in 6 pin SOT-23 package.Measures magnetic field strength on all 3 axes and reports data over I2C interface. This device can operate on as little as 1.7V. Configurable power mode options allow for system performance and current consumption optimization.
TMAG5170High-precision linear 3D Hall-effect position sensor with SPI available in 8 pin DGK package.Measures magnetic field strength on all 3 axes and reports data over SPI. This device offers high precision and self-diagnostic features beneficial for system monitoring.
DRV5032Ultra-low-power digital switch Hall-effect sensor available in SOT-23, X2SON, and TO-92 packages. Both omnipolar and unipolar options available.Great for low power applications. This device can operate on as little as 1.65V with typical current consumption below 1uA. DU and FD variants in X2SON have dual unipolar functionality.
Table 2 Related Technical Resources
NameDescription
Measuring 3D Motion With Absolute Position SensorsA discussion on the differences between a linear output and switched output Hall effect sensors.
Angle Measurement With Multi-Axis Hall-effect SensorsA guide to monitoring absolute angle position using a 3D Hall effect sensor
TMAG3001EVMGUI and attachments incorporate angle measurement using a precise three dimensional linear Hall-effect sensor
TMAG5170UEVMGUI and attachments incorporate angle measurement using both precise three dimensional linear Hall-effect sensors integrated in this one device
TMAG5273EVMGUI and attachments incorporate angle measurement using a three dimensional linear Hall-effect sensor
TI Precision Labs - Magnetic SensorsA helpful video series describing the Hall effect and how to use the Hall effect in various applications.
6 More Myths about Hall-effect SensorsA Technical Article on common misconceptions on Hall-effect witches and latches, including common applications where designs can benefit from using Hall-effect se
Reed Switch Replacement with TI's Hall-effect and Linear 3D Hall-effect SensorsAn Application Note that delivers side-by-side performance comparisons of a Reed switch, the DRV5032, and the TMAG5170.