beautypg.com

Zilog ZMOT0BHH User Manual

Page 25

background image

UM023902-1013

21

ZMOTION

®

20-Pin Detection and Control Development Kit

User Manual

8) Hypersense Mode/Level.

There are three settings that control sensitivity to motion

during Hypersense; these settings are Major Sensitivity, Minor Sensitivity and Range. This
menu option allows you to enable and set each of these settings individually.

9) Normal Sense Level.

When in normal motion sense mode (i.e., not in Hypersense

mode), this selection allows you to set the sensitivity levels of the three settings (Major
Sensitivity
, Minor Sensitivity and Range).

Making Changes to the ZMOTION_Serial_Config Project

The operation of the motion detection software can be changed by making modifications
directly to the source code. Follow the comments in the code (generally in

main.h

and

main.c

) to make any permanent changes. For example, to change the lens configuration

file and the duration of the LED ON time, observe the following procedure.

1. Change the following line in the

main.h

file:

#define DEF_LED_ON_TIME DELAY_500MSEC

//Time the LED

//stays on

//when motion

//is detected

2. Change the line as follows to select a five-second LED ON time:

#define DEF_LED_ON_TIME DELAY_5SEC

//Time the LED

//stays on when

//motion is

//detected

LED ON time

definitions are provided in the

main.h

file for values from 50 ms to 30 min-

utes.

3. Click the

Rebuild

icon to build the project. The build output should not indicate any

errors. Click the

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.

// This file must match the lens and PIR sensor used in the application

//#include "API_INIT_00.h"

// Generic settings: non-lens-specific

//#include "API_INIT_01.h"

// API configuration file for AA 0.9 GI V1 Lens

//#include "API_INIT_02.h"

// API configuration file for CM 0.77 GI V3 Lens

//#include "API_INIT_03.h"

// API configuration file for CM 0.77 GI V5 Lens

#include "API_INIT_04.h"

// API configuration file for CWM 0.5 GI V1 Lens

//#include "API_INIT_05.h"

// API configuration file for NCL-9(26) Lens

//#include "API_INIT_06.h"

// API configuration file for NCL-10IL Lens

//#include "API_INIT_07.h"

// API configuration file for NCL-3B Lens

//#include "API_INIT_08.h"

// API configuration file for NCL-3R Lens

//#include "API_INIT_09.h"

// API configuration file for NCL-10S Lens

//#include "API_INIT_0A.h"

// API configuration file for NCL-11 Lens

//#include "API_INIT_IML-0643.h+"

// API configuration file for IML-0643 Lens

Note:

This manual is related to the following products: