Cypress CY3236A Manual

Pyroelectric infrared (pir) motion sensor evaluation kit

Advertisement

Quick Links

CY3236A
Pyroelectric Infrared (PIR) Motion Sensor
Evaluation Kit Guide
Doc. # 001-68617 Rev. *A
Cypress Semiconductor
198 Champion Court
San Jose, CA 95134-1709
Phone (USA): 800.858.1810
Phone (Intnl): 408.943.2600
http://www.cypress.com
[+] Feedback

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CY3236A and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Cypress CY3236A

  • Page 1 CY3236A Pyroelectric Infrared (PIR) Motion Sensor Evaluation Kit Guide Doc. # 001-68617 Rev. *A Cypress Semiconductor 198 Champion Court San Jose, CA 95134-1709 Phone (USA): 800.858.1810 Phone (Intnl): 408.943.2600 http://www.cypress.com [+] Feedback...
  • Page 2 Cypress Source Code and derivative works for the sole purpose of creating custom soft- ware and or firmware in support of licensee product to be used only in conjunction with a Cypress integrated circuit as speci- fied in the applicable agreement.
  • Page 3: Table Of Contents

    Contents 1. Introduction Kit Contents .........................5 Prerequisites........................6 Reference Documents ....................6 Document Revision History ..................7 Documentation Conventions ..................7 2. Getting Started Kit Installation ......................9 PSoC Designer ......................13 PSoC Programmer ....................14 3. Kit Operations Introduction ........................15 Evaluating the PSoC Device..................15 3.2.1 Programming Specifications and Connections..........16 4.
  • Page 4 Contents Pyroelectric Infrared Motion Sensor Evaluation Kit Guide, Doc. # 001-68617 Rev. *A [+] Feedback...
  • Page 5: Introduction

    Quick start guide Release notes ❐ Inspect the contents of the kit. If any parts are missing, contact your nearest Cypress sales office for further assistance. Pyroelectric Infrared Motion Sensor Evaluation Kit Guide, Doc. # 001-68617 Rev. *A [+] Feedback...
  • Page 6: Prerequisites

    For a list of PSoC Designer-related trainings, go to: ■ http://www.cypress.com/?rID=40543 Application note, AN2414 – Proximity Sensing Using PIR ■ http://www.cypress.com/?rID=279 Datasheet – CY8C27443 Cypress PSoC device ■ http://www.cypress.com/?rID=3324 Pyroelectric Infrared Motion Sensor Evaluation Kit Guide, Doc. # 001-68617 Rev. *A [+] Feedback...
  • Page 7: Document Revision History

    Added Kit Operations, Hardware, and Code Examples chapters. Added BOM and board images in Appendix. 09/19/2011 RKPM Content updates throughout the document. Changed title to “CY3236A Pyroelectric Infrared (PIR) Motion Sensor Evaluation Kit Guide”. Documentation Conventions Table 1-2. Document Conventions for Guides Convention...
  • Page 8 Introduction Pyroelectric Infrared Motion Sensor Evaluation Kit Guide, Doc. # 001-68617 Rev. *A [+] Feedback...
  • Page 9: Getting Started

    Three different types of installers are available for download: CY3236A-PIRMOTION_ISO: This file (ISO image) is an archive file of the optical disc provided ■ with the kit. You can use this to create an installer DVD or extract information using WinRar or similar tools.
  • Page 10 Getting Started Note If auto-run does not execute, double-click cyautorun.exe file on the root directory of the DVD. Figure 2-2. Root Directory of DVD 3. The InstallShield Wizard screen appears. On this screen, choose the folder location to install the setup files.
  • Page 11 Getting Started Figure 2-4. Installation Type Options 7. When the installation begins, a list of packages appears on the Installation Page. A green check mark appears adjacent to every package that is downloaded and installed (see Figure 2-5). 8. Wait until all the packages are downloaded and installed successfully. Pyroelectric Infrared Motion Sensor Evaluation Kit Guide, Doc.
  • Page 12 Getting Started Figure 2-5. Installation Page 9. Click Finish to complete the installation. Figure 2-6. Installation Complete Pyroelectric Infrared Motion Sensor Evaluation Kit Guide, Doc. # 001-68617 Rev. *A [+] Feedback...
  • Page 13: Psoc Designer

    Code Examples on page PSoC Designer 1. Click Start > All Programs > Cypress > PSoC Designer <version> > PSoC Designer <version>. 2. Click File > New Project, to create a new project; click File > Open Project to work with an exist- ing project.
  • Page 14: Psoc Programmer

    Getting Started PSoC Programmer 1. Click Start > All Programs > Cypress > PSoC Programmer <version> > PSoC Programmer <version>. 2. Select the MiniProg from Port Selection. Figure 2-8. PSoC Programmer Window 3. Click File Load to load the hex file.
  • Page 15: Kit Operations

    Evaluating the PSoC Device To evaluate the default project programmed on the CY3236A-PIRMOTION board. Ensure that the jumper (shunt) is not connected on J4. Power the board using the 12-V adapter at the power jack, J1. Stimulate the infrared sensor by moving your hand over as shown in Figure 3-1.
  • Page 16: Programming Specifications And Connections

    3.2.1 Programming Specifications and Connections When the MiniProg is connected, you can use PSoC Programmer to program the CY3236A-PIRMO- TION Evaluation kit. Plug in the USB cable into the MiniProg before attaching it to the ISSP header on the board. When using MiniProg, the LEDs blink at a variable rate to track connection status. The green LED near the USB connector turns on after MiniProg is plugged into the computer and is con- figured by the operating system.
  • Page 17 1. Connect the USB cable to the PC and MiniProg1 (Figure 3-2) 2. Plug in the MiniProg1 to the ISSP header on the CY3236A-PIRMOTION board 3. When USB is connected to the MiniProg1, LED (green) glows in the MiniProg1 4. Open PSoC Programmer 5.
  • Page 18 Kit Operations Pyroelectric Infrared Motion Sensor Evaluation Kit Guide, Doc. # 001-68617 Rev. *A [+] Feedback...
  • Page 19: Hardware

    This chapter provides an overview of the hardware, including power system, jumper setting, and pro- gramming interface. To start using the board, go to Code Examples on page System Block Diagram The CY3236A-PIRMOTION board has the following sections: PSoC CY88C27443 silicon ■ Power supply and regulator ■...
  • Page 20 Hardware Figure 4-1. Hardware Block Diagram Test Points Regulator  Power LED 12 DC GPIO  expansion port Status LEDs  PIR sensor  PSoC  CY8C27443  silicon Relay  ( via  Ambient Light  transsitor)   sensor  ISSP  Potentiometer  Shunt for  AC terminal  programming  Relay time  & light  block  header light sensitivity  sensitivity  Pyroelectric Infrared Motion Sensor Evaluation Kit Guide, Doc. # 001-68617 Rev. *A [+] Feedback...
  • Page 21: Functional Description

    Hardware Figure 4-2. CY3236A-PIRMOTION Board ISSP/I2C Programming AC Terminal Header Block PSoC Relay CY8C27443 12-V Power DAC Debug Jack Test Point Relay Time Adjust LED for Relay Status Light Sensitivity Adjust Status LEDs Ambient Light Sensor PIR Sensor with Fresnel...
  • Page 22 Hardware 2. Power supply and Regulator The kit can be powered by a 9 V to 12 V DC wall transformer with a positive tip barrel plug and 1 A current rating. The onboard regulator converts the input voltage to a regulated 5 V required by PSoC and other passive components.
  • Page 23 Hardware 4. PIR Sensor The CY3236A-PIRMOTION board consists of a Glolab's PIR325 PIR sensor. Humans, at normal body temperature, radiate infrared light waves at an approximate wavelength of 10 µm. A PIR sen- sor can detect this infrared radiation and convert it to an electric charge. This charge is buffered through a FET and can be converted to voltage variations using a load resistor.
  • Page 24 Hardware 6. Test Points The DAC Debug Test Point is used to view the output of the processed PIR signal. Connect a scope to the test point to view the sensor performance after the PSoC has filtered, amplified, and digitized the analog signal from the PIR sensor.
  • Page 25 Hardware 9. Relay and AC Terminal Block The on board really is a 12 V relay that is controlled by PSoC via a transistor as shown in the follow- ing circuit diagram. The normally open and common pins of Relay are connected to an AC terminal block This unit allows you to connect a small AC powered device (the device is controlled by the relay).
  • Page 26 Hardware Pyroelectric Infrared Motion Sensor Evaluation Kit Guide, Doc. # 001-68617 Rev. *A [+] Feedback...
  • Page 27: Code Examples

    Code Examples All code examples are available on the CY3236A-PIRMOTION kit DVD or at this location: <Install_directory>:\Cypress\CY3236A-PIRMOTION\<version>\Firmware Project Description This code example demonstrates Cypress's PSoC device's ability to control a PIR sensor to imple- ment motion sensing applications such as automatic lighting controls, automatic door openers, secu- rity systems, kiosk wakeup, and activating wireless cameras.
  • Page 28 Code Examples Figure 5-1. PSoC Designer Analog and Digital User Module Placement The firmware uses an infinite loop during which the PIR signal, relay-on time, and the output voltage of the ambient light sensor are sampled. Activation of the relay and motion LEDs are then deter- mined by the values acquired from sampling.
  • Page 29: Flowchart

    Code Examples 5.2.1 Flowchart START Enable Global Interrupts Initialize IIR Filter, ADC and Timer Wait for approximately 30 secs for PIR signals to initialize Setup ADC input to read PIR signal Is ADC data ready Change ADC input to read ambient light Is ADC data ready...
  • Page 30: Verify Output - Pir Sensing

    Code Examples Is relay ON time EXIT counter > 0 Decrement the relay ON counter Is relay ON time counter = 0 Turn OFF the relay Verify Output - PIR Sensing 1. Ensure that jumper (shunt) is not placed on J4. 2.
  • Page 31: Ambient Light Sensing

    Code Examples The amount of time the relay is active can be changed. Adjust the relay ‘On’ time by turning the potentiometer, R7, so that the relay remains on for longer periods. To increase the relay ‘on’ time, turn the potentiometer counterclockwise. Turn it clockwise to decrease the ‘on’ time. Ambient Light Sensing Figure 5-3.
  • Page 32 Code Examples Pyroelectric Infrared Motion Sensor Evaluation Kit Guide, Doc. # 001-68617 Rev. *A [+] Feedback...
  • Page 33: Appendix

    Appendix schematic, board layouts, available <Install_directory>:\Cypress\CY3236A-PIRMOTION\<version>\Hardware. PIR Motion Sensor Board Schematic 0805 0805 0805 0805 Pyroelectric Infrared Motion Sensor Evaluation Kit Guide, Doc. # 001-68617 Rev. *A [+] Feedback...
  • Page 34: Board Images

    Board Images Figure A-1. Layout Primary Side Figure A-2. Layout Secondary Side Bill of Materials Table A-1. BiOM CY Part Item Qty Reference Description Manufacturer Mfr Part Number Number CAP ELECT 10UF 25V KS 710R-13952 C3,C1 Panasonic - ECG ECE-A1EKS100 RADIAL CAP .1UF 50V CERAMIC 730R-11026...
  • Page 35 630R-10197 Panasonic - ECG ERJ-6GEYJ104V 5% 0805 SMD IC REG VOLT POS 500R-13829 STMicroelectronics L78M05CDT-TR 500MA 5V DPAK CY8C27443- IC PROGRAMMABLE Cypress CY8C27443- 24PXI SOC DIP28 Semiconductor 24PXI 870R-13824 PIR Motion Sensor, 3POS Glolab Corp. PIR325 PRINTED CIRCUIT Cypress PDCR-9377 ** PCB...
  • Page 36 Pyroelectric Infrared Motion Sensor Evaluation Kit Guide, Doc. # 001-68617 Rev. *A [+] Feedback...

Table of Contents