Z8F3224 ZMOTION Development Kit
UM029501-0321
SAMPLE APPLICATIONS
User Manual
14
ZM_LP_Command
This project uses the Low Power MCU configuration to provide motion detection with ZMOTION
Digital PIR validation.
The MCU stays in Low Power Stop mode until a motion event is detected by the analog PIR
interface. When the MCU wakes up it runs the ZMOTION Engine on the PIR signal to validate the
motion event.
When the motion event is validated, the status LED is flashed, motion trigger output is pulsed, and
a message can be sent via Serial interface.
Typical current consumption is <15uA @ 3.0V.
The serial command interface has the following features that help adjust system operations and
performance:
•
Pet Immunity mode
•
Programmable Digital and Analog sensitivity
•
Programmable LED, trigger, and motion delay time
•
Ambient light levels and threshold
•
Temperature Compensation
– adjusts Analog PIR thresholds based on ambient
temperature
•
Temperature Change Protection
– Ignores motion events generated by temperature
changes
•
Vdd Shift Protection
– Ignores motion events generated by shifts in supply voltage
•
Smart Sense Mode
– Intelligent micro motion
•
Pass Through Mode
– Intelligent motion delay time
•
Boot Loader
Refer to the
“Serial Command Functions LP” file included with the project for a full description of
operation and list of functions and features.
ZM_NP_Basic
This project demonstrates the use of the ZMOTION Library and API to detect motion. In Normal
Power mode, the MCU is continuously sampling and processing the PIR sensor signal.
When motion is detected, an LED is turned on, output is driven active, and a message is sent via
the VCOM USB serial interface (connected to UART0 on the NP MCU).
Typical current consumption is <1mA @ 3.0V
Move SW4 from the LP position to the NP position. The LP MCU will be powered off. The NP MCU
will start running and display the following messages: