SSZT138 august   2021 DRV8428 , DRV8837C , MSP430FR2155 , MSP430FR2355 , MSP430FR2675 , MSP430FR2676

 

  1.   1
  2.   2
    1.     3
    2.     Detect Motion Accurately: PIR Solution
    3.     Sense in All Environments: Touch Keypads
    4.     Motor Control: Camera Motor Module
    5.     Conclusion
    6.     Additional Resources

Shreya Mandal

Building automation systems control many functions that improve worker comfort and security in industrial and commercial environments. These functions can become even smarter and more cost-effective through innovations in microcontroller (MCU) technology. To design optimized building automation solutions, it’s important to select the right components to support different functions for these applications. Implementing a dedicated MCU adds flexibility to designs by enabling your system to detect, sense and control various parameters in its environment.

Detect Motion Accurately: PIR Solution

Passive infrared or pyroelectric infrared (PIR) sensors are popular in security systems and motion detection applications. You can choose a variety of different technologies to design PIR solutions into motion detector systems to detect a “hot” object or person passing in front of a sensor. PIR sensors require low power consumption, small components, low noise and high-precision sensing in any environment in order to correctly “see” the infrared radiation of an object or person. Figure 1 illustrates a PIR sensor block diagram.

GUID-2CE3B65F-FCDD-404E-8E51-0BC200275B34-low.png Figure 1 Block Diagram of a PIR Sensor Using MSP430FR2355

Motion detectors often use analog band-pass filters, although these filters can be more complex to design. The discrete analog approach can be susceptible to noise (through capacitors) and can produce low-frequency noise that is not beneficial for motion detection. The Smart Analog Combo integration in an MCU such as the MSP430FR2355, on the other hand, can provide the PIR sensor’s entire signal chain, and is software-configurable to adjust its sensitivity and range, provide digital feedback loops, and optimize the sensor for low-power performance. Various benefits of an MSP430 MCU-based PIR sensor are shown in Figure 2.

GUID-6D64988A-CBF7-4BBD-91FA-445E5D0E3B24-low.png Figure 2 Analog PIR and MSP430 Signal-Conditioning Technique Benefits

It is not possible to easily adapt both digital analog and digital PIR solutions to change ranges, target speeds, ambient temperatures and lighting conditions. Results from testing at TI show that a PIR motion detector designed with an MSP430 MCU was able to detect motion out to 36 ft (11 m) without analog and digital signal processing.

Digital PIR solutions with an integrated signal chain are simpler to design but can be more expensive. MSP430 MCUs integrate the signal chain into the MCU, which enables low noise, low power consumption (≅6 µA) and a high-performance signal chain for motion-detection applications through the use of the MCU’s low-power modes to maximize battery life. Using fewer components enables a smaller printed circuit board with a simpler layout, and up to 20% bill-of-material savings compared to similar digital PIR solutions.

Implement this PIR sensor design with the MSP430FR2355 and see the application report PIR Motion Detector Using Integrated Smart Analog on MSP430FR2355.

Sense in All Environments: Touch Keypads

Capacitive touch technology is becoming more commonly used than traditional mechanical keypad buttons in building security panels or residential electronic locks. MSP430 MCUs with CapTIvate technology are often used in these applications to measure changes in the button’s capacitance by a finger’s touch.

A common limitation of touch keypads such as e-locks, especially in an outdoor environment, is touch detection when there is physical interference, such as the user wearing gloves, or moisture build-up on the keypad. One way to overcome this limitation is through piezoelectric sensors, which are made of a crystalline material that generates a voltage when deformed, allowing pressure detection in the keypad.

Using this piezo solution, shown in Figure 3, can help users in day-to-day activities regardless of the environment outside whether it is raining or chilly. The piezo sensors are mounted behind the keypad and measure the force that is applied as the user’s gloved finger is pressing on the keypad. Then, the pressure generates the voltage comparator to the microcontroller and signals a CapTIvate device such as the MSP430FR2676  to increase sensitivity for a short period.

GUID-2C11954E-EB6F-4341-96DA-9E7E31A45421-low.png Figure 3 Liquid-Tolerant Capacitive Touch Keypad Using MSP430FR2675

Motor Control: Camera Motor Module

Automated security applications, including Internet Protocol and videoconferencing cameras, need to automatically control tilt, focus and iris. These cameras use an electronic or manual motorized control module to pan, tilt and zoom the camera’s lens. The motor module operates from an external voltage power-supply unit, and an MCU within that unit must communicate with the motor drivers to generate control signals for full operation.

The motor control design shown in Figure 4 uses a dedicated MSP430FR2155 MCU and two DRV8428 stepper motor drivers. The MSP430 MCU controls a variety of functions within the motor, including:

  • The speed of the motor’s rotation.
  • The direction of rotation.
  • The voltage output for the DC motor.
  • The position of the stepper motors using universal asynchronous receiver/transmitter.
  • Power reduction when the system is not in operation.
GUID-0F72F084-F49E-4A9D-A1CA-4C92A3ABD57D-low.png Figure 4 Block Diagram of a Motor Module Using an MSP430 MCU and DRV8428 Motor Drivers

Two DRV8428 drive stepper motor drivers provide focus and tilt control as a DC motor utilizing a precise microstepping indexer (1/256 microstep) and adjustable current regulation. An additional device, the DRV8837C DC-brushed motor driver for iris control, protects the system against short circuits, undervoltage and overtemperature situations. This solution also offers multiple modes for ultra-smooth and quiet motion profiles.

Ready-to-use design resources include a motor module PCB, the application report Motor Module Design for IP Network Camera Based on MSP430FR2155, and software and project collateral.

Conclusion

Using MSP430 MCUs for high-accuracy detection, sensing and control in optimizes building automation performance and increases efficiency. Get started today by diving into our application reports and evaluate with our LaunchPad™ development kits.

Additional Resources