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.
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...
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.
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.
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.
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.
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...
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).
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.
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...
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.
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.
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...
Need help?
Do you have a question about the CY3236A and is the answer not in the manual?
Questions and answers