ZEPIR000103KITG
ZMOTION® Detection
Module II Evaluation Kit
User Manual
UM026001-0413
Copyright ©2013 Zilog Inc. All rights reserved.
www.zilog.com
ZMOTION® Detection Module II Evaluation Kit
User Manual
ii
Warning: DO NOT USE THIS PRODUCT IN LIFE SUPPORT SYSTEMS.
LIFE SUPPORT POLICY
ZILOG’S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE
SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS PRIOR WRITTEN APPROVAL OF
THE PRESIDENT AND GENERAL COUNSEL OF ZILOG CORPORATION.
AS USED HEREIN
Life support devices or systems are devices which (a) are intended for surgical implant into the body, or (b)
support or sustain life and whose failure to perform when properly used in accordance with instructions for
use provided in the labeling can be reasonably expected to result in a significant injury to the user. A
critical component is any component in a life support device or system whose failure to perform can be
reasonably expected to cause the failure of the life support device or system or to affect its safety or
effectiveness.
DOCUMENT DISCLAIMER
©2013 Zilog, Inc All rights reserved. Information in this publication concerning the devices, applications,
or technology described is intended to suggest possible uses and may be superseded. ZILOG, INC. DOES
NOT ASSUME LIABILITY FOR OR PROVIDE A REPRESENTATION OF ACCURACY OF THE
INFORMATION, DEVICES, OR TECHNOLOGY DESCRIBED IN THIS DOCUMENT. ZILOG ALSO
DOES NOT ASSUME LIABILITY FOR INTELLECTUAL PROPERTY INFRINGEMENT RELATED
IN ANY MANNER TO USE OF INFORMATION, DEVICES, OR TECHNOLOGY DESCRIBED
HEREIN OR OTHERWISE. The information contained within this document has been verified according
to the general principles of electrical and mechanical engineering.
ZMOTION® and Z8 Encore! XP™ are trademarks or registered trademarks of Zilog, Inc., an IXYS
Company. All other product or service names are the property of their respective owners.
UM026001-0413
ZMOTION® Detection Module II Evaluation Kit
User Manual
iii
Revision History
Each instance in the following Revision History table reflects a change to this document
from its previous version. For more details, refer to the corresponding pages or appropriate
links listed in the table below.
Table 1. History of this Document
Date
Apr
2013
Revision
Level
Description
Page
Number
01
All
UM026001-0413
Original Issue.
Revision History
ZMOTION® Detection Module II Evaluation Kit
User Manual
iv
Safeguards
The following precautions must be observed when working with the devices described in
this document.
Caution: Always use a grounding strap to prevent damage resulting from electrostatic discharge
(ESD).
UM026001-0413
Safeguards
ZMOTION® Detection Module II Evaluation Kit
User Manual
1
Introduction
Zilog’s ZMOTION Detection Module II (ZDM II) Evaluation Kit includes all of the necessary components required to begin development with ZDM II.
The kit includes an evaluation board into which the ZMOTION Detection Module II is
plugged and a prototyping area to add your own custom application hardware.
The ZMOTION Detection Module II Evaluation Kit is intended for the following purposes:
1. Experiment with ZDM II in hardware mode by configuring the jumpers and trim pots
located on the ZDM II Evaluation Board to control sensitivity, range and output timing.
2. Experiment with ZDM II using the built-in serial interface to gain advanced control
over its settings and performance. Use the kit to tailor the settings required for your
own custom application.
3. Experiment with your own hardware using the prototype area on the Evaluation
Board.
4. Using a separately-purchased USB SmartCable (debugger) and ZDS II, Zilog’s
Integrated Development Environment, to develop your own custom software
applications on ZDM II.
ZMOTION Detection Module II
Zilog’s ZMOTION Detection Module II is a complete and fully functional motion detection solution ideal for lighting control and other occupancy and proximity detection applications. It is a board-level module that combines the unique features of Zilog’s Z8FS040
ZMOTION Detection Microcontroller with a Pyroelectric Sensor and a low-profile
Fresnel lens.
The ZMOTION Detection Module II can operate in a simple-to-use Hardware mode,
which provides an output signal when motion is detected, or in an advanced asynchronous
serial mode when greater control over the motion detection performance is required. In
both modes, sensitivity and delay time can be controlled to match application requirements.
The features of the ZMOTION Detection Module II include:
•
•
•
UM026001-0413
Complete, fully functional motion detector including lens
Small form factor: 25.5 mm x 16.7 mm
95-degree detection pattern with adjustable sensitivity and range up to 7m
Introduction
ZMOTION® Detection Module II Evaluation Kit
User Manual
2
•
•
•
•
•
•
•
•
•
Sensitivity control via simple hardware configuration
Advanced commands and control via serial (asynchronous) interface
Sleep mode for low power applications
No temperature compensation required
Input to support CDS photocell input for ambient light detection
Minimal components ensure highest possible Mean Time Between Failures (MTBF)
Operates from 2.7 V to 3.6 V power supply
Simple 8-pin interface
Standard operating temperature 0ºC to 70ºC
Kit Contents
The ZMOTION Detection Module II Evaluation Kit contains the following components:
•
•
•
•
•
UM026001-0413
ZDM II Evaluation Board
ZMOTION Detection Module II
RS-232 Serial Cable DB9-DB9
5 V DC
Universal Power Supply
Kit Contents
ZMOTION® Detection Module II Evaluation Kit
User Manual
3
Figure 1 shows the contents of the ZMOTION Evaluation Kit.
Figure 1. ZMOTION Detection Module II Evaluation Kit Components
Evaluation Board
The ZDM II Evaluation Board provides all of the support functions required to evaluate
the ZMOTION Detection Module II plus a prototype area and debug interface to be used
when developing your own hardware or software.
Figure 2 shows the ZDM II Module connected to the ZDM II Evaluation Board.
UM026001-0413
Evaluation Board
ZMOTION® Detection Module II Evaluation Kit
User Manual
4
Figure 2. Overhead View of the ZDM II Evaluation Board Showing the
ZDM II Module and the AMBIENT, SENS and DELAY Pots
The Evaluation Board provides the following features:
•
•
•
•
•
•
UM026001-0413
8-pin connector for ZDM II
3.3 V regulated power supply for ZDM II
Trim pots for motion sensitivity, ambient light sensitivity and output delay timing
Switch selection for hardware or serial interface modes
Reset button
CDS photocell for ambient light detection
Evaluation Board
ZMOTION® Detection Module II Evaluation Kit
User Manual
5
•
•
•
•
•
UM026001-0413
Green LED for power indication
Blue LED for motion detected status
RS-232 interface with DB-9 connector to support serial interface mode
On-Chip Debugger (OCD) interface
Prototype area for custom hardware
Evaluation Board
ZMOTION® Detection Module II Evaluation Kit
User Manual
6
Operation
The ZMOTION Detection Module II Evaluation Board provides a number of features to
control its overall operation. It operates in two basic modes:
•
•
Hardware Interface Mode
Serial Interface Mode
Each of these modes is described in this section.
Hardware Interface Mode
Hardware Interface Mode provides the simplest mode of operation and allows basic control of the ZMOTION Detection Module II with hardware jumpers and potentiometers. In
this mode, the serial interface is disabled and the trim pots on the Evaluation Board (Sensitivity, Delay and Ambient Light Threshold) are used to control operation.
To enable Hardware Interface Mode and test its basic operation, observe the following
steps.
1. Place SW1 in the HARDWARE position.
2. Turn the AMBIENT potentiometer fully counterclockwise, towards Light, to set the
ambient light threshold to its maximum brightness, as shown in Figure 2 on page 4.
Essentially, the maximum amount of ambient light will be required to disable the
Motion Detection output (LED). For details about the AMBIENT pot, see the
Ambient Light Threshold section on page 8.
3. Turn the DELAY potentiometer fully counterclockwise, towards ‘–’, to select the
minimum LED “on” time (2 seconds). For details about the DELAY pot, see the /MD
Output Delay Time section on page 9.
4. Turn the SENSITIVITY potentiometer fully clockwise, towards ‘+’, to select the
maximum motion-detection sensitivity. For details about the SENSITIVITY pot, see
the Sensitivity section on page 9.
5. Press Reset or apply power.
At this point, ZDM II will power up and check the voltage applied to the TXD/SNS
pin to determine its Interface Mode. With SW1 in the HARDWARE position, the voltage on this pin will be between 0 V and 1.8 V and determine its selection to be Hardware Interface Mode. This interface mode is detected once, and only after reset,
while the ambient light threshold, delay and sensitivity are monitored continuously.
UM026001-0413
Operation
ZMOTION® Detection Module II Evaluation Kit
User Manual
7
After power-on, ZDM II waits for the pyroelectric sensor to stabilize before it begins
detecting motion. This power-up delay can take as little as a few seconds to a maximum of about 30 seconds.
6. Wave your hand in front of the ZMOTION Detection Module II’s lens to create
motion and observe that the Blue LED turns on for 2 seconds.
Controlling Operation in Hardware Interface Mode
1. Slowly rotate the AMBIENT potentiometer while creating motion in front of the lens
until the LED no longer illuminates. This point, then, is the threshold of the ambient
light in your room. In lighting control applications, this method allows you to adjust
the amount of ambient light allowed in the room without turning the lights on when
motion is detected; i.e., the lights are not turned on when it is already bright enough in
the room.
2. Return the AMBIENT potentiometer to its fully clockwise position.
3. Rotate the DELAY potentiometer slightly clockwise to increase the amount of time
the LED stays on after motion is detected.
4. Return the DELAY potentiometer to its fully counterclockwise position.
5. Decrease sensitivity by rotating the SENS Potentiometer counterclockwise and
observe that additional motion is required to turn on the LED or that the range/
distance of detection is decreased.
Serial Interface Mode
Serial Interface Mode provides more control over the operation of ZDM II by providing a
serial command interface to monitor and control the device. In Serial Interface Mode,
commands are sent over the provided DB9 RS-232 interface. Refer to the ZMOTION
Detection Module II Product Specification (PS0305) for a complete list and description of
the supported commands.
To enable Serial Interface Mode and test its basic operation, observe the following steps.
1. Connect the provided serial cable between the DB9 connector on the Evaluation
Board and a serial port on your PC.
2. Launch Hyperterminal or other serial terminal program and configure it to the
following settings:
9600 bps, No Parity, 8 Data bits, 1 Stop bit, No Flow Control
3. Place SW1 in the SERIAL position.
4. Turn the AMBIENT potentiometer fully counterclockwise, towards Light, to set the
ambient light threshold to its maximum brightness, as shown in Figure 2 on page 4.
Essentially, the maximum amount of ambient will be required to disable the Motion
UM026001-0413
Serial Interface Mode
ZMOTION® Detection Module II Evaluation Kit
User Manual
8
Detection output (LED). For details about the AMBIENT pot, see the Ambient Light
Threshold section on page 8.
Note: The DELAY and SENS potentiometers are not used in Serial Interface Mode.
5. Press Reset or apply power.
At this point, ZDM II will power up and check the voltage applied to the TXD/SNS
pin to determine the interface mode. With SW1 in the SERIAL position, the voltage
on this pin will be greater than 2.5 V when selecting Serial Interface Mode. The interface mode is detected once, and only after reset, while the ambient light threshold is
monitored continuously.
After power-on, ZDM II waits for the pyroelectric sensor to stabilize before it begins
detecting motion. This power-up delay can take as little as a few seconds to a maximum of about 30 seconds. During this stabilization time, the module will still accept
commands over the serial interface.
6. From your keyboard, send the following commands to the module to place it into a
convenient testing mode.
Note: The following commands are case-sensitive; additionally, do not include the comma.
C, M
Configure the MD/RST pin as MD (causes the Blue LED to turn on when
motion is detected.
K, A
Enable ASCII command mode.
M, Y
Send motion status automatically over the serial interface (without polling).
7. Wave your hand in front of the ZMOTION Detection Module II’s lens to create
motion and observe that the Blue LED turns on for 2 seconds. Also notice that an
uppercase M is transmitted from the module.
8. Refer once again to the ZMOTION Detection Module II Product Specification
(PS0305) to test other commands and status responses. This document contains a
complete list and description of all supported commands.
Ambient Light Threshold
In various lighting control applications, the decision of when to turn the lights on can
depend on current ambient light levels in addition to detecting motion. A CDS photocell is
UM026001-0413
Ambient Light Threshold
ZMOTION® Detection Module II Evaluation Kit
User Manual
9
provided in the kit to demonstrate this function. When light shines on the photocell, its
resistance decreases, thereby providing a lower voltage to the light gate (LG) signal on the
ZMOTION Detection Module II. When the module detects this voltage to be below 1.0 V
in Hardware Mode or the programmed threshold in Serial Mode, the MOTION LED (/MD
signal) will not activate when motion is detected. The AMBIENT potentiometer (R6) sets
the amount of ambient light required to cross the threshold.
Sensitivity
The amount of motion required to trigger the MOTION LED (/MD signal) can be adjusted
using the SENS potentiometer (R3). This adjustment also has the effect of controlling the
range that the detector can see—lower sensitivity reduces the range of the detection pattern. The SENS potentiometer provides a voltage between 0 V and 1.8 V to the TXD/SNS
signal on ZDM II. A higher voltage means lower sensitivity. The SENS potentiometer is
used only in Hardware Interface Mode. In Serial Interface Mode, the sensitivity is set via
commands sent over the serial interface.
/MD Output Delay Time
The amount of time that the MOTION LED (MD signal) is activated can be controlled by
the DELAY (R4) potentiometer. You can set this range between 2 seconds and 15 minutes.
This feature is typically used in power control applications in which the amount of time
that a device is activated must be controlled. The potentiometer provides a voltage
between 0 V and 1.8 V to the RXD/DELAY input on the ZMOTION Detection Module II.
A higher voltage yields a longer activation time.
UM026001-0413
Sensitivity
ZMOTION® Detection Module II Evaluation Kit
User Manual
10
Hardware and Software Development
Support
The ZMOTION Detection Module II Evaluation Kit provides support for developing
hardware and software for the module. Signals from ZDM II are available to the prototype
area as four through-hole connections. 3.3 V (VDD) and ground are also provided to this
area. Do not exceed 90 mA of current draw from the 3.3 V supply.
Software development is supported on the ZDM II Evaluation Board by using the Debug
connector (J9) with a separately available USB SmartCable and ZDS II. ZDS II is Zilog’s
Integrated Development Environment (IDE) and is available free from the Zilog website.
The USB SmartCable provides a means to download and debug the software developed on
ZDS II.
To learn more about developing your own ZDM II hardware and software, refer to the
Schematic Diagrams section on page 12; also see the ZMOTION Detection Module II
Product Specification (PS0305). For a description of the ZDM II software operation, see
the ZMOTION Detection Module II Reference Design (RD0026).
Evaluation Board Hardware Functions
Table 1 describes the functions provided by the ZMOTION Detection Module II Evaluation Kit hardware.
UM026001-0413
Hardware and Software Development Support
ZMOTION® Detection Module II Evaluation Kit
User Manual
11
Table 1. ZMOTION Detection Module II Functions
Operational Mode (SW1—MODE)
Feature
Evaluation
Board Name
Function
Type
System Reset RESET (SW2) Push Button
Hardware Mode
Serial Mode
Reset ZDM II by momentarily interrupting power.
Ambient Light
Threshold
AMBIENT (R6) Potentiometer Sets the amount of ambient light required to prohibit the
MOTION LED from activating. Turn clockwise to
increase the amount of light required.
Sensitivity
SENS (R3)
Potentiometer Controls the ZMOTION
No effect. Use the serial
Detection Module II’s sensi- interface to control sensitivtivity to motion. It provides ity.
an adjustable voltage
between 0 V and 1.8 V to
the SBC’s TXD/SNS input.
Turn clockwise to increase
sensitivity.
/MD Output
Delay Time
DELAY (R4)
Potentiometer Controls the amount of time No effect. Use the serial
that the MOTION LED is
interface to control /MD
activated after motion has output delay time.
been detected. Turn clockwise to increase the time.
SBC State
STATE (J11)
Jumper
CDS Enable
CDS ENABLE Jumper
(J7)
OCD Interface DBG INTERFACE (J9)
UM026001-0413
6-pin Header
Places ZDM II into a low power sleep mode.
When this jumper is installed, the CDS Photo Cell is
used. When this jumper is not installed, you can control
the LG signal from the prototype area.
This 6-pin header provides the interface to the USB
SmartCable (debugger) when developing software on
ZDM II.
Evaluation Board Hardware Functions
ZMOTION® Detection Module II Evaluation Kit
User Manual
12
Schematic Diagrams
Figures 4 and 5 show schematics for the ZMOTION Detection Module II and the ZDM II Evaluation Board, respectively.
VCC
VCC
C1
C2
1μF
1μF
J1
U2
ZRE200B
D
8
7
6
5
VDD
VSS
PA0/T0IN/T0OUT/XIN/DBG
PA5/TXD0/T1OUT/ANA0/CINP
PA1/T0OUT/XOUT/ANA3/VREF/CLKIN
PA4/RXD0/ANA1/CINN
PA2/RESET/DE0/T1OUT
ANA2
2
Z8FS040BSB20EG
S
GND
1
2
3
4
LS1
3
VCC
RXD / DLY
TXD / SNS
-MD / -RST
LG
-SLP / -DBG
1
U1
1
2
3
4
5
6
7
8
ZNCL-10IL
1x8 RT-ANGL
R1
47K
J3
1
1
J2
J4
1
Figure 4. Schematic Diagram of the ZMOTION Detection Module II
UM026001-0413
Schematic Diagrams
ZMOTION® Detection Module II Evaluation Kit
User Manual
13
Figure 5. Schematic Diagram of the ZDM II Evaluation Board
UM026001-0413
Schematic Diagrams
ZMOTION® Detection Module II Evaluation Kit
User Manual
14
Customer Support
To share comments, get your technical questions answered, or report issues you may be
experiencing with our products, please visit Zilog’s Technical Support page at
http://support.zilog.com.
To learn more about this product, find additional documentation, or to discover other facets about Zilog product offerings, please visit the Zilog Knowledge Base at http://
zilog.com/kb or consider participating in the Zilog Forum at http://zilog.com/forum.
This publication is subject to replacement by a later edition. To determine whether a later
edition exists, please visit the Zilog website at http://www.zilog.com.
UM026001-0413
Customer Support