Eltec 442-3 to Handy Board Example
Last Modified: 2006-10-31
find:

basket

Acroname Robotics PDF webpage version Eltec 442-3 to Handy Board Example PDF

Related
Products

Product image for Pyroelectric sensor package
Pyroelectric sensor package

Contents

Image of Eltec wired to a Handyboard controller.

Introduction

In this example, the Eltec 442-3 sensor package provides human motion information.  It is interfaced to the commonly used Handy Board micro-controller.  The controller continually polls the detector and displays text indicating the current movement in the field of view of the detector. 

Circuit Schematic

This circuit is extremely simple.  The power (Vcc) and ground lines are taken from the Handy Board's analog port and the output of the detector is fed directly to the analog input.  This example uses input number 0 but any will do. 

image of the Eltec wiring diagram

Source Code

This code is written in Interactive C.  This code is not meant to be elegant.  It is meant only to demonstrate a simple example.  Note, the routine name below is "eltec1" not "eltec-1" which is not acceptable to the Interactive C compiler. 

void eltec1(void) { int value; while (1) { /* delay to stop the display from flickering */ sleep(0.05); /* the analog port may change, check which one */ /* you are plugged into */ value = analog(0); /* neutral values hover around 128 (~2.5V) */ if (value > 134) { printf("Moving Left\n"); } else { if (value < 122) { printf("Moving Right\n"); } else { printf("Neutral\n"); } } } }

Comments

This circuit demonstrates several things about the Eltec Pyroelectric detector package.  The Sensor is very sensitive.  Try this example out in a large room and notice that the detector can pickup a person's movement from quite a distance. 

Notice that the detector's output is relative.  You can either move in front of the detector or move the detector across and area (sweep it) to get a measurement. 

Revision History:

  • 1999-11-03: Example created.
  • 2000-07-03: Fixed some problems in the code (invalid comments) to compile under IC.
 
 
voice: 720-564-0373, email: sales@acroname.com, address: 4822 Sterling Dr., Boulder CO, 80301-2350, privacy
© Copyright 1994-2008 Acroname, Inc., Boulder, Colorado. All rights reserved.