Zilog ZEPIR0BA User Manual

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
Warning:
User Manual
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.
ii
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

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
ZMOTION® Detection Module II Evaluation Kit
User Manual
iii
Date
Apr 2013
Revision Level Description
01 Original Issue. All
Page Number
UM026001-0413 Revision History

Safeguards

Caution:
The following precautions must be observed when working with the devices described in this document.
Always use a grounding strap to prevent damage resulting from electrostatic discharge (ESD).
ZMOTION® Detection Module II Evaluation Kit
User Manual
iv
UM026001-0413 Safeguards

Introduction

Zilog’s ZMOTION Detection Module II (ZDM II) Evaluation Kit includes all of the neces­sary 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 pur­poses:
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 tim­ing.
ZMOTION® Detection Module II Evaluation Kit
User Manual
1
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 detec­tion solution ideal for lighting control and other occupancy and proximity detection appli­cations. 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 require­ments.
The features of the ZMOTION Detection Module II include:
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
UM026001-0413 Introduction
ZMOTION® Detection Module II Evaluation Kit
User Manual
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
2

Kit Contents

The ZMOTION Detection Module II Evaluation Kit contains the following components:
ZDM II Evaluation Board ZMOTION Detection Module II RS-232 Serial Cable DB9-DB9 5 V DC Universal Power Supply
UM026001-0413 Kit Contents
ZMOTION® Detection Module II Evaluation Kit
Figure 1 shows the contents of the ZMOTION Evaluation Kit.
User Manual
3
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:
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
UM026001-0413 Evaluation Board
ZMOTION® Detection Module II Evaluation Kit
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
User Manual
5
UM026001-0413 Evaluation Board

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
ZMOTION® Detection Module II Evaluation Kit
User Manual
6
Hardware Interface Mode provides the simplest mode of operation and allows basic con­trol 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 (Sen­sitivity , 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 HARDWA RE position.
2. Turn the AMBIENT potentiometer fully counterclockwise, towards ambient light threshold to its maximum brightness, as shown in Figure 2 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
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
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 volt­age on this pin will be between 0 V and 1.8 V and determine its selection to be
ware Interface Mode
while the ambient light threshold, delay and sensitivity are monitored continuously.
section on page 9.
section on page 8.
. This interface mode is detected once, and only after reset,
Light, to set the
on page 4.
Hard-
UM026001-0413 Operation
ZMOTION® Detection Module II Evaluation Kit
User Manual
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 maxi­mum 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.
7
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 Essentially, the maximum amount of ambient will be required to disable the Motion
UM026001-0413 Serial Interface Mode
on page 4.
ZMOTION® Detection Module II Evaluation Kit
Note:
Note:
User Manual
Detection output (LED). For details about the AMBIENT pot, see the Ambient Light
Threshold section on page 8.
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 inter-
face 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 maxi­mum of about 30 seconds. During this stabilization time, the module will still accept commands over the serial interface.
8
6. From your keyboard, send the following commands to the module to place it into a convenient testing mode.
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

Sensitivity

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.
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 pat­tern. 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 voltag e 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

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 (V 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.
) and ground are also provided to this
DD
10
.
To learn more about developing your own ZDM II hardware and software, refer to the
Schematic Diagrams Product Specification (PS0305). For a description of the ZDM II software operation, see
the ZMOTION Detection Module II Reference Design (RD0026)
section on page 12; also see the ZMOTION Detection Module II

Evaluation Board Hardware Functions

Table 1 describes the functions provided by the ZMOTION Detection Module II Evalua­tion Kit hardware.
.
UM026001-0413 Hardware and Software Development Support
ZMOTION® Detection Module II Evaluation Kit
Table 1. ZMOTION Detection Module II Functions
Operational Mode (SW1—MODE)
User Manual
11
Evaluation
Feature
System Reset RESET (SW2) Push Button Reset ZDM II by momentarily interrupting power.
Ambient Light Threshold
Sensitivity SENS (R3) Potentiometer Contr ols th e ZM O T ION
/MD Output Delay Time
SBC State STATE (J11) Ju mper Places ZDM II into a low power sleep mode.
Board Name
AMBIENT (R6) Potentiometer Sets the amount of ambient light required to prohibit the
DELA Y (R4) Potentiometer Controls the amount of time
Function Type Hardware Mode Serial Mode
MOTION LED from activating. Turn clockwise to increase the amount of light required.
No effect. Use the serial Detection Module II’s sensi­tivity to motion. It provides an adjustable voltage between 0 V and 1.8 V to the SBC’s TXD/SNS input. Turn clockwise to increase sensitivity.
that the MOTION LED is activated after motion has been detected. Turn clock­wise to increase the time.
interface to control sensitiv-
ity.
No effect. Use the serial
interface to control /MD
output delay time.
CDS Enable CDS ENABLE
(J7)
OCD Interface DBG INTER-
FACE (J9)
UM026001-0413 Evaluation Board Hardware Functions
Jumper 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.
6-pin Header This 6-pin header provides the interface to the USB
SmartCable (debugger) when developing softwa re on ZDM II.

Schematic Diagrams

-SLP / -DBG
LG
-MD / -RST
RXD / DLY TXD / SNS
VCC
VCC
VCC
U2
ZRE200B
D
1
S
2
GND
3
LS1
ZNCL-10IL
J1
1x8 RT-ANGL
1 2 3 4 5 6 7 8
R1 47K
C2
1μF
J2
1
C1
1μF
J3
1
J4
1
U1
Z8FS040BSB20EG
PA2/RESET/DE0/T1OUT
4
PA1/T0OUT/XOUT/ANA3/VREF/CLKIN
3
PA0/T0IN/T0OUT/XIN/DBG
2
PA5/TXD0/T1OUT/ANA0/CINP
7
PA4/RXD0/ANA1/CINN
6
ANA2
5
VSS
8
VDD
1
Figures 4 and 5 show schematics for the ZMOTION Detection Module II and the ZDM II Evaluation Board, respectively.
ZMOTION® Detection Module II Evaluation Kit
User Manual
12
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

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 fac­ets 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
.
ZMOTION® Detection Module II Evaluation Kit
User Manual
14
.
UM026001-0413 Customer Support
Loading...