This Quick Start Guide acquaints users with Zilog’s ZMOTION™ Development Kit and
provides instructions for setting up and using the kit to demonstrate its basic operation.
The following topics are covered:
•Getting Started
•Installing the Pyroelectric Sensor
•Installing the Lens
•Installing ZDS II and the USB Smart Cable
•Download and Run the Sample Project
•Board Design Information
: the quickest way to get the board up and running; see page 4
– see page 5
– see page 8
– see page 15
– see page 19
– see page 24
Kit Contents
•ZMOTION
™
Development Board
•USB Smart Cable Debugger
•0.9" Focal Flat Lens Holder
•0.77" Focal Circular Lens Holder
•Selection of Lenses
•Selection of Pyroelectric sensors
•DB9
•Wall mount power supply
•CD with Sample applications and product documentation
•CD with ZDS II
•Various mounting hardware
Figures 1 through 3 show images of the components of the kit plus the sensors and lenses
it contains. The Getting Started
Figure 2. The Three Pyroelectric Sensors, from left to right:
RE200B-P, SDA02-54-P, and SBDI46-504AA
QS007601-1010Page 3 of 28
Page 4
ZMOTION™ Detection and Control Development Kit
Quick Start Guide
Figure 3. The Five Lenses contained in this ZMOTION™ Development Kit
Getting Started
The kit contains several lens and pyroelectric sensor options. To provide a quick method
™
of getting the kit up and running, the ZMOTION
ZMOTION_Basic project using the RE200B-P pyroelectric sensor and the CWM 0.5 GI
V1 lens. By installing the pyroelectric sensor and the lens and then applying power, the
basic operation of the kit can be observed.
To get started with the kit, observe the following brief procedure.
1.Install the RE200B-P pyroelectric sensor as outlined in the Installing the Pyroelectric
Sensor section that follows.
2.Install the CWM 0.5 GI V1 lens as described on page 8
3.Insert the power supply output connector into jumper J1 on the ZMOTION
ment Board and apply AC power to the power supply.
4.The Blue power LED will illuminate and the Red LED will initially illuminate and remain on until the pyroelectric sensor stabilizes
MCU is initially programmed with a
.
™
Develop-
– a period of approximately 5 to 30 sec-
QS007601-1010Page 4 of 28
Page 5
ZMOTION™ Detection and Control Development Kit
Quick Start Guide
onds. After the PIR sensor has stabilized, the Red LED turns OFF, to turn ON only
when motion is detected.
5.To test this procedure, wave your hand over the lens and notice the LED turning ON
for approximately 1 second.
The following sections describe the operation of the kit in more detail, including how to
™
download and debug your own ZMOTION
project.
Installing the Pyroelectric Sensor
The Pyroelectric sensor used on the ZMOTION™ Development Board can be changed by
inserting the device into the appropriate socket. Proper orientation is ensured by aligning
the tab on the sensor to the silkscreened tab on the circuit board. The tab on each 3-pin
pyroelectric sensor aligns to the silkscreened tab labeled U9.
Ensure that the leads on the pyroelectric sensor are trimmed such that the device sits flush
on the board. If the leads are too long and the device is not firmly seated on the board,
focal length will be affected and performance will be reduced. A mica washer (provided)
must be installed between the pyroelectric sensor and the socket to ensure that the sensor’s
metal can will not come into contact with the sockets on the board, as shown in Figure 4.
QS007601-1010Page 5 of 28
Page 6
ZMOTION™ Detection and Control Development Kit
Quick Start Guide
Figure 4. Pyroelectric Sensor installation
The leads on the pyroelectric sensor should be trimmed no shorter than 2.3mm (.090") and
no longer than 3.3mm (0.130"), as indicated in Figure 5. For more information about the
Pyroelectric Sensor socket, see page 26
QS007601-1010Page 6 of 28
.
Page 7
ZMOTION™ Detection and Control Development Kit
Quick Start Guide
Figure 5. Trimming the leads on the pyro prior to installation
QS007601-1010Page 7 of 28
Page 8
ZMOTION™ Detection and Control Development Kit
Quick Start Guide
Installing the Lens
The ZMOTION™ Development Board supports four lens mounting options, as indicated
in Table 1.
Table 1. Lens Mounting Options
Lens MountingLens Supported
PIR Sensor Clip OnNCL-9(26)
Circuit Board Clip InCWM 0.5 GI V1
Circular Lens Holder 0.77 Focal CM 0.77 GI V3
CM 0.77 GI V5
Flat Lens Holder 0.9 FocalAA 0.9 GI T1
Installation Note: When mounting the ZMOTION development board vertically or from
the ceiling, special consideration should be taken regarding the height and levelness of the
board. Be sure to follow the lens manufacturer’s recommended height requirements to
ensure optimal performance.
Attaching the PIR Sensor Lens
This clip-on lens slides atop the PIR sensor and the notch on the PIR sensor aligns with the
notch in the base of the lens. Note the two notches in the base of the lens; the correct notch
to use is the one that is in line with the notch in the middle of the lens and aligned with the
horizontal axis of the beam pattern, as shown in Figure 6.
QS007601-1010Page 8 of 28
Page 9
ZMOTION™ Detection and Control Development Kit
Quick Start Guide
Figure 6. NCL-9(26) Lens and PIR Sensor installed
on the ZMOTION™ Developmen t Boa rd
QS007601-1010Page 9 of 28
Page 10
ZMOTION™ Detection and Control Development Kit
Quick Start Guide
Attaching the Circuit Board Lens
This clip-in lens style clips directly into the circuit board over top the PIR sensor. There
are 4 mounting clips on the lens that are aligned with the slots in the circuit board. Note
the locating tab on the side of the lens is to be aligned with the silkscreened tab, as indicated in Figure 7.
Figure 7. Assembled clip-in le ns ins talled on the ZMO T IO N Dev el opm e n t Bo ard
Circular Lens Holder
The circular lens holder, shown in Figure 8 is a 2-piece assembly that provides a 0.77"
focal length mounting.
QS007601-1010Page 10 of 28
Page 11
ZMOTION™ Detection and Control Development Kit
Quick Start Guide
Figure 8. Circular 0.77" Lens Holder (Cap and Base)
To assemble the lens and lens holder, observe the following brief procedure.
1.Place the circular lens into the base of the lens holder, aligning the notch on the lens
with the inside notch on the base.
2.Place the circular cap over the lens and the base ensuring the outside tab on the cap
aligns with the outside tab on the base. Use the provided ¾" machine screws (2) with a
nut to secure the cap in place.
3.Place the lens and lens holder assembly on the to ZMOTION
™
Development Board
aligning the primary placement arrow on the lens holder with the secondary placement
arrow on the circuit board, as shown in Figure 9. The 4 screw holes in the circuit board
should line up with the four center-mounting holes in the lens holder.
QS007601-1010Page 11 of 28
Page 12
ZMOTION™ Detection and Control Development Kit
Quick Start Guide
Figure 9. Top of lens holder on the ZMOTION™ Development Board
4.Use the provided ⅜" machine screws (4) with a nut to secure the lens holder in place.
See Figure 10.
The flat lens holder, shown in Figures 11 and 12, is a two-piece assembly that provides a
0.9" focal length mounting.
QS007601-1010Page 13 of 28
Page 14
ZMOTION™ Detection and Control Development Kit
Quick Start Guide
Figure 11. Flat 0.9" Lens Holder (Cap and Base)
Figure 12. Flat Lens: AA 0.9 GI T1
QS007601-1010Page 14 of 28
Page 15
ZMOTION™ Detection and Control Development Kit
Quick Start Guide
To assemble this flat lens and holder, observe the following brief procedure.
1.Place the lens into the inside of the cap, ensuring that the grooves of the lens are facing
inward.
2.Place the cap over the base, ensuring that the top of the lens is toward the arrow on the
base. Use the provided
3.Place the lens and lens holder assembly onto the ZMOTION
½" machine screws (2) with a nut to secure the cap in place.
™
Development Board
with the arrow on the lens holder aligned with the secondary placement arrow on the
circuit board, as shown in Figure 13. The four screw holes in the circuit board should
line up with the four center-mounting holes in the lens holder.
4.Use the provided
See Figure 13.
Figure 13. Assembled Flat 0.9" Lens Holder and Flat Lens
⅜" machine screws (4) with a nut to secure the lens holder in place.
Installing ZDS II and the USB Smart Cable
Observe the following the steps to install Zilog Developer Studio (ZDS II) and its associated documentation.
1.Insert the ZDS II CD into the CD-ROM drive. The DemoShield installer launches
automatically. If DemoShield does not launch automatically, open Windows Explorer,
browse to your CD-ROM drive and double-click
QS007601-1010Page 15 of 28
launch.exe to launch DemoShield.
Page 16
ZMOTION™ Detection and Control Development Kit
Quick Start Guide
2.From the product installer list, you have the option to choose to install ZDS II alone, or
both ZDS II and its associated documentation. You can also copy the documentation directly from your CD-ROM drive to your hard disk using Windows Explorer, or read
the documentation directly from the CD-ROM itself.
For customer service and technical support, Zilog recommends that you create an account
at support.zilog.com
.
Installing the USB Smart Cable
This section describes how to install the USB Smart Cable and associated driver software
for your particular operating system.
Windows Vista, 32-bit OS
Follow the steps below to install the USB Smart Cable for Windows Vista 32-bit systems.
1.Connect the USB Smart Cable to the host PC. The
is displayed.
2.Select
Installation
Cable
3.When prompted, select
4.When prompted, select
Locate and install the driver software (recommended). The Driver Software
window is displayed, followed by the Found New Hardware-USB Smart
dialog box.
I don't have the disc. Show me other options.
Browse my computer for driver software (advanced).
5.Browse to the following driver directory:
<ZDS II Installation Directory>\device drivers\USB
The Windows Security dialog box is displayed.
6.Select
Install this driver software anyway.
Found New Hardware dialog box
7.Upon successful installation, click
Windows XP
Follow the steps below to install the USB Smart Cable for Windows XP systems.
QS007601-1010Page 16 of 28
Close.
Page 17
ZMOTION™ Detection and Control Development Kit
Note:
Quick Start Guide
1.Connect the Zilog USB device to the host PC. The Found New Hardware wizard
should activate automatically after connecting the Zilog USB device for the first time.
If prompted to connect to Windows Update, select
No, not at this time.
2.Select
3.Select
search
4.Browse to the following driver directory, then click
<ZDS installation>\device drivers\USB\
[Install from a list or specific location (Advanced ) ]; then click Next.
If the Windows Logo testing dialog appears, select
Search for the best driver in these locations and Include this location in
Continue Anyway.
.
Next.
5.After the appropriate driver is found, click Next.
6.Click
Finish to complete the installation.
Windows 2000
Follow the steps below to install the USB Smart Cable for Windows 2000 systems.
1.Connect the Zilog USB device to the host PC. The
should activate automatically after connecting the Zilog USB device for the first time.
Found New Hardware wizard
2.After the
3.Select
4.Select
Found New Hardware wizard has been activated, click Next.
Search for a suitable driver for my device (Recommen ded), then click Next.
Specify a location and click Next.
5.Browse to the following driver directory, then click
<ZDS installation>\device drivers\USB\
6.After the appropriate driver is found, click Next.
7.Click
Finish to complete the installation.
Windows 98SE
Follow the steps below to install the USB Smart Cable for Windows 98SE systems.
QS007601-1010Page 17 of 28
OK.
Page 18
ZMOTION™ Detection and Control Development Kit
Caution:
Quick Start Guide
1.Connect the Zilog USB device to the host PC. The Add New Hardware wizard should
activate automatically after connecting the Zilog USB device for the first time.
2.After the
3.Select
4.Select
Next.
<ZDS installation>\device drivers\USB\
Add New Hardware wizard has been activated, click Next.
Search for the best driver for your device (Recommended) and click Next.
Specify a location and browse to the following driver directory, then click
5.After the appropriate driver is found, click Next.
6.Click
Finish to complete the installation.
Connecting the USB Smart Cable to the Development Board
The power to the development board must be disconnected or turned
OFF before connecting or disconnecting the USB Smart Cable.
1.Attach one end of the six-conductor ribbon cable (included) to the USB Smart Cable
six-pin DBG connector, as shown in Figure 14.
QS007601-1010Page 18 of 28
Page 19
ZMOTION™ Detection and Control Development Kit
Note:
Quick Start Guide
Figure 14. Connecting the Six-Conductor Ribbon Cable to the USB Smart Cable
2.Attach the free end of the ribbon cable to the DBG connector (ZDI Interface) on the
development board. Ensure that pin 1 on the ribbon cable (indicated by the dark stripe)
is aligned with pin 1 on the target connector (indicated by a
1 on P3 of the board).
Download and Run the Sample Project
Sample projects are included on the Application CD. Copy these projects to a convenient
folder on your PC. Once copied, ensure the folders are not set to
clicking the folder and selecting properties. Deselect the
OK. Make sure you apply changes to this and the other subfolders when prompted.
In this example we will use the
ZMOTION_Basic project, but the steps below will apply to
Read Only attribute and click
any additional project.
At this point you should have loaded ZDS II and the Smart Cable USB driver
on to your computer. If you haven’t yet done so, revisit the beginning of this
Installing ZDS II and the USB Smart Cable
section before proceeding.
Read Only by right-
QS007601-1010Page 19 of 28
Page 20
ZMOTION™ Detection and Control Development Kit
File Menu
Build Output
“Rebuild All” Icon
Right-click to
select Workbook Mode
Quick Start Guide
1.Open ZDS II and select File → Open Project, then navigate to the ZMOTION_Basic
project folder.
2.Open the
project is already loaded into the ZMOTION
area below the menu icons and select
ZMOTION_Basic.zdsproj project. When you first receive your kit, this
™
MCU. Right-click within the open grey
Workbook Mode to turn on the tabs at the bottom
of the editor and therefore make it easier to switch between files.
3.Click the
Rebuild All icon to build the project. The build output should not indicate any
errors. If you receive errors, try reloading the projects from the original Application CD
and ensure that the folders are not set to
Read Only. See Figure 15 for an example.
Figure 15. Building the ZMotion_Basic project in ZDS II
QS007601-1010Page 20 of 28
Page 21
ZMOTION™ Detection and Control Development Kit
“Reset” icon
Debug Window Output
after clicking Reset
“Go” Icon
Quick Start Guide
4.Make sure the ZMOTION™ Development Board is powered OFF, then connect the
USB Smart Cable (Debugger) to P3, as described above.
5.Apply power to the development board, then click the
Reset icon in ZDS II.
6.An information notice may appear, indicating that the silicon is not the latest version.
This occurrence is normal and is not an issue. Click
OK to continue. You should see a
message in the Debug Output Window indicating that the load was successful, as
shown in Figure 16.
Figure 16. ZDS II’s Debug Output Window for the ZMotion_Basic project
QS007601-1010Page 21 of 28
Page 22
ZMOTION™ Detection and Control Development Kit
Note:
Quick Start Guide
7.Click the Go icon to start the application running. The Red LED (LED3) will be ON
initially until the pyroelectric sensor stabilizes – a period that can take up to 30 seconds.
After it has stabilized, (LED3) turns OFF, to turn ON only when motion is detected.
8.To test this procedure, wave your hand over the lens and notice (LED3) turning ON for
approximately 1 second.
Making Changes to the ZMOTION_Basic Project
To change the duration of the LED on time, observe the following procedure.
1.Change the following line in main.c:
unsigned int cMDDelayTime = DELAY_1SEC;// LED ON time
2.Change the line as follows to select a five-second LED on time:
unsigned int cMDDelayTime = DELAY_5SEC;// LED ON time
LED on time definitions are provided in main.h for values from 200 ms to 30
minutes.
3.Click the
errors. Click the
Rebuild icon to build the project. The build output should not indicate any
Go icon to download the modified project and start the application
running. Generate motion and notice that the LED now stays on for 5 seconds.
4.To change the lens used by the project, edit the
file to include the appropriate
API_INIT_04.h to support the CWM 0.5 GI V1 (board clip-in) lens (see the code
API_INIT file. The project initially uses
include line at the top of the main.c
sample below). To use a different lens, edit out the comment characters (//) in the
main.c file corresponding to the new lens and comment out the lens that is no longer
in use.
// This file must match the lens and PIR sensor used in the
// application.
/ / # i n c l u d e " A P I _ I N I T _ 0 0 . h "
// Generic settings: non-lens-specific
/ / # i n c l u d e " A P I _ I N I T _ 0 1 . h "
// API configuration file for AA 0.9 GI V1 Lens
/ / # i n c l u d e " A P I _ I N I T _ 0 2 . h "
// API configuration file for CM 0.77 GI V3 Lens
QS007601-1010Page 22 of 28
Page 23
ZMOTION™ Detection and Control Development Kit
Quick Start Guide
/ / # i n c l u d e " A P I _ I N I T _ 0 3 . h "
// API configuration file for CM 0.77 GI V5 Lens
# i n c l u d e " A P I _ I N I T _ 0 4 . h "
// API configuration file for CWM 0.5 GI V1 Lens
/ / # i n c l u d e " A P I _ I N I T _ 0 5 . h "
// API configuration file for NCL-9(26) Lens
/ / # i n c l u d e " A P I _ I N I T _ 0 6 . h "
// API configuration file for IML-0643 Lens
The API_INIT file must match the lens and pyroelectric sensor being used on the Development Board. Use the Lens Selection Guide in the ZMOTION
™
Lens and Pyroelectric
Sensor Product Specification (PS0286) to determine which API_INT file is required for
each lens and Pyroelectric Sensor combination.
QS007601-1010Page 23 of 28
Page 24
QS007601-1010Page 24 of 28
ZMOTION™ Detection and Control Development Kit
Quick Start Guide
Board Design Information
Schematic Diagram
Figure 17. ZMOTION™ Development Board Schematic Diagram
5
5
4
4
3
3
2
2
1
1
DD
CC
BB
AA
3.3V
GND
PROTOTYPE AREA (.1X.1 GRID)
DO NOT POPULATE HEADERS
RS232LED
MOTION
3.3V
LIGHT
TXD0/ANA0
TXD0/ANA0
RXD0/ANA1
ANA2
RXD0/ANA1
TXD0/ANA0
RXD0/ANA1
GND
GND
3.3V
GND
GNDGND
GND
3.3V
GND
3.3V
GND
3.3V
GND
GND
GND
3.3V
GND
GND
3.3V
GND
GND
GND
3.3V
GND
3.3V
Title
Size
Document Number
Rev
Date:Sheet
of
=LORJ
=LORJ=LORJ
=LORJ
6800 Santa Teresa Blvd
San Jose, CA 95119
408-513-1500
Website: www.zilog.co m
UNCONTROLLED WHEN PRINTED UNLESS STAMPED 'CONT ROLLED COPY' IN RED BY DOCUMENT CONTROL
96C1289-001G
B
ZMOTION Bundled Solutions 8-Pin Series Development Kit
B
22Tuesday, September 14, 2010
Schematic
VR1
L78L33ACUTR
VR1
L78L33ACUTR
VIN3Vout
1
GND
2
J7
DB9 FEM/RTJ7DB9 FEM/RT
1
6
2
7
3
8
4
9
5M1M2
C3
0.1 uFC30.1 uF
U9
PyroSensor Generic
U9
PyroSensor Generic
D
1
S
2
GND
3
J6
HDR/PIN 1x1J6HDR/PIN 1x1
1
LED3
RED
LED3
RED
21
R3
470R3470
R8
0 ohmR80 ohm
J2
HDR/PIN 1x1J2HDR/PIN 1x1
1
R4
10KR410K
proto1
proto9x20
proto1
proto9x20
11223344556677889
9
1010111112121313141415151616171718
18
C1
1 uFC11 uF
J1
PJ-007J1PJ-007
1
2
3
C14
1 uF
C14
1 uF
C9
0.1 uFC90.1 uF
R7
100KR7100K
C5
0.1 uFC50.1 uF
LED2
RED
LED2
RED
21
C10
0.1 uF
C10
0.1 uF
C11
0.1 uF
C11
0.1 uF
C4
0.11 uFC40.11 uF
J10
HDR/PIN 1x3
J10
HDR/PIN 1x3
123
R5
10KR510K
U2
MAX3222U2MAX3222
EN
1
C1+
2
C1-
4
C2+
5
C2-
6
DIN1
13
DIN2
12
ROUT1
15
ROUT2
10
V+
3
V-
7
DOUT1
17
DOUT2
8
RIN1
16
RIN2
9
PWRDOWN
20
VCC
19
GND
18
NC
11
NC1
14
P3
HDR/PIN 2x3P3HDR/PIN 2x3
12
34
56
U10
Z8FS040xSB20EG
U10
Z8FS040xSB20EG
PA2/RESET/DE0/T1OUT
4
PA1/T0OUT/XOUT/ANA3/VREF/CLKIN
3
PA0/T0IN/T0OUT/ XIN/DBG2PA5/TXD0/T1OUT/ANA0/CINP
7
PA4/RXD0/ANA1/CINN
6
PA3/CTS0/ANA2/COUT/T1IN
5
VSS
8
VDD
1
J3
HDR/PIN 1x1J3HDR/PIN 1x1
1
R2
470R2470
J4
HDR/PIN 1x6 J4HDR/PIN 1x6
12345
6
U7
spareU7spare
1
1
2
2
3
3
4
4
5
5
6
6
7
7
889
9
10
10
11
11
12
12
13
13
14
14
15
15
16
16
C2
1 uFC21 uF
U6
spareU6spare
1
1
2
2
3
3
4
4
5
5
6
6
7
7
889
9
10
10
11
11
12
12
13
13
14
14
15
15
16
16
LED1
BLUE
LED1
BLUE
21
R6
47KR647K
R1
470R1470
Page 25
QS007601-1010Page 25 of 28
ZMOTION™ Detection and Control Development Kit
Quick Start Guide
Mechanical Information
Figure 18. ZMOTION™ Development Board Mechanical Diagram
Page 26
ZMOTION™ Detection and Control Development Kit
Quick Start Guide
Pyroelectric Sensor Socket
Mechanical information for the socket that holds the pyroelectric sensor is shown below.
The leads on the pyroelectric sensor should be trimmed no shorter than 2.3mm (.090") and
no longer than 3.3mm (0.130").
Figure 18. Pyrotechnic Sensor Mechanical Diagram
QS007601-1010Page 26 of 28
Page 27
ZMOTION™ Detection and Control Development Kit
Quick Start Guide
References
Refer to the documentation in Table 2 for additional information about Zilog’s ZMOTION
products.
Table 2. ZMOTION Documentation
Document
NumberDescription
PS0286ZMOTION™ Lens and Pyroelectric Sensor Product
Specification
PS0285ZMOTION™ Detection and Control Product
Specification
PB0225ZMOTION™ Detection and Control Product Brief
PB0223ZMOTION™ Detection Module Product Brief
PS0284ZMOTION™ Detection Module Product Specification
WP0017A New PIR Motion Detection Architecture White Paper
WP0018ZMOTION™ Detection Lens and Pyro Sensor
Configuration Guide
QS007601-1010Page 27 of 28
Page 28
ZMOTION™ Detection and Control Development Kit
Warning:
Quick Start Guide
DO NOT USE IN LIFE SUPPORT
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.