Detect. Sense. Control: Simplify building automation designs with MSP430™︎ MCUs

Other Parts Discussed in Post: MSP430FR2355, DRV8428, MSP430FR2155, DRV8837C

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 and sense 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.

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 1.


Figure 1: 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.”

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 2 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.

Figure 2: 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.


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 LaunchPadTm Development Kits.

Additional resources