MOD-ZIGBEE-PIR sensor development board USER S MANUAL All boards produced by Olimex LTD are ROHS compliant

Similar documents
PIC-LCD-3310 development board Users Manual

PIC-32MX development board Users Manual

MOD-MRF24J40 development board Users Manual

PIC-P67J60 development board Users Manual

AVR-P development board Users Manual

LPC-P1227 development board USER S MANUAL Initial release, March 2012 Designed by OLIMEX Ltd, 2011

AVR-P20 development board Users Manual

PIC-MAXI-WEB development board Users Manual

MSP430-PG2231 development board Users Manual

AVR- M16 development board Users Manual

PIC-P28-USB development board Users Manual

MOD-IO2 extension board USER S MANUAL Revision B, October 2012 Designed by OLIMEX Ltd, 2012

LPC-P1227 development board USER S MANUAL Revision B, July 2013 Designed by OLIMEX Ltd, 2011

MOD-BT development board Users Manual

PIC-P40 development board Users Manual

MOD-RS485-ISO. Isolated extension board with RS485 interface. USER S MANUAL Revision B, October 2012 Designed by OLIMEX Ltd, 2012

LPC-P1114 development board Users Manual

MSP-RFLINK development board Users Manual

MOD-RS485-ISO. Isolated extension board with RS485 interface. USER S MANUAL Document revision C, April 2017 Designed by OLIMEX Ltd, 2017

LPC-H1343 development board Users Manual

SBAT90USB162 Atmel. SBAT90USB162 Development Board User s Manual

AVR-TLCD-128CAN development board Users Manual

LBAT90USB162 Atmel. LBAT90USB162 Development Board User s Manual

eip-24/100 Embedded TCP/IP 10/100-BaseT Network Module Features Description Applications

MOD-RFID125 User Manual. All boards produced by Olimex are ROHS compliant. Rev.A, February 2008 Copyright(c) 2008, OLIMEX Ltd, All rights reserved

AKKON USB CONTROLLER BOARD

MOD-RFID125-BOX User Manual

MOD-IO development board Users Manual

DEVBOARD3 DATASHEET. 10Mbits Ethernet & SD card Development Board PIC18F67J60 MICROCHIP

HOW TO USE ESP8266 WITH ARDUINO IDE

PIC-MICRO-WEB development board User's manual

Olimex PIC-KIT3 In-circuit programmer/debugger

OLIMEXINO-85. Arduino-compatible board USER S MANUAL. Revision A, November 2013 Designed by OLIMEX Ltd, 2013

Mercury System SB310

LPC-P1114 development board Users Manual

HOW TO UPGRADE ESP8266 BOARDS USING ESP FLASH DOWNLOAD TOOLS

PIC-32MX development board User's Manual

RFID: Read and Display V2010. Version 1.1. Sept Cytron Technologies Sdn. Bhd.

Capacitive Touch Remote Control Reference Design User s Guide

PIC16F87X. 28/40-pin 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram PDIP. Microcontroller Core Features:

Breeze Board. Type A. User Manual.

PIC-IO development board User's Manual

CAN4VSCP - RS232. Smart CAN4VSCP serial interface. Reversion

KPIC-0818P (V050919) Devices Included in this Data sheet: KPIC-0818P

CB-1 Peripheral Board Technical Manual

Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform.

BC-USB-Kit Manual. First Edition. February, BeatCraft, Inc.

PIC Microcontroller Introduction

Ethernet1 Xplained Pro

I/O1 Xplained Pro. Preface. Atmel MCUs USER GUIDE

Introducing: New Low-Cost & Low Pin Count PIC Microcontrollers for the 8-, 16- & 32-bit Markets

Hello, and welcome to this presentation of the STM32L4 power controller. The STM32L4 s power management functions and all power modes will also be

eip-10 Embedded TCP/IP 10-BaseT Network Module Features Description Applications

BIG8051. Development system. User manual

LPC2148 DEV BOARD. User Manual.

Display Real Time Clock (RTC) On LCD. Version 1.2. Aug Cytron Technologies Sdn. Bhd.

PVK40. User's manual. Feature Rich Development and Educational Kit for 40-pin Microchip PIC microcontrollers

CM5000 DATASHEET v0.1

USER GUIDE. ATWINC1500 Xplained Pro. Preface

CHANGING THE MODES OF MOD-WIFI-ESP8266-DEV

VINCULUM-BASED TEMPERATURE / HUMIDITY / VOLTAGE DATA LOGGER FEATURES:

AppNote-US2400-EVB Low Power 2.4GHz Transceiver

Arduino Uno R3 INTRODUCTION

Bolt 18F2550 System Hardware Manual

ET-PIC 24 WEB-V1. o Central Processing Unit (CPU) o System. o nanowatt Power Managed Modes. o Analog Features

ZigBee Compliant Platform 2.4G RF Low Power Transceiver Module for IEEE Standard. DATA SHEET Version B

PCB-STM32-F3U. Development baseboard for the STMicro Discovery-F3 module (STMicro part# STM32F3DISCOVERY)

Manual of Board ET-PIC STAMP 18F8722-K22 ET-PIC STAMP 18F8722-K22

USER GUIDE. Atmel QT1 Xplained Pro. Preface

AVR XMEGA Product Line Introduction AVR XMEGA TM. Product Introduction.

PICado Alpha Development Board V1.0

DBAT90USB162 Atmel. DBAT90USB162 Enhanced Development Board User s Manual

USER GUIDE. Atmel QT6 Xplained Pro. Preface

BIGdsPIC6. Development System. User manual

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad

MOD-RFID1356 User Manual. All boards produced by Olimex are ROHS compliant. Rev.A, May 2008 Copyright(c) 2008, OLIMEX Ltd, All rights reserved

Smart RF Device Family - Getting Started Guide. Features. Description. References ATAN0115 APPLICATION NOTE

32 bit Micro Experimenter Board Description and Assembly manual

Part Number: PCB-STM32-F4B1 (unpopulated PCB with Discovery module sockets, no other parts) STM32-F4B1 (assembled board, not presently available)

Linux Kernel Hacking Free Course, 3rd edition. HWMPS: Hardware Monitor & Protection System

USER GUIDE. Atmel OLED1 Xplained Pro. Preface

An Introduction to Designing Ham Radio Projects with PIC Microcontrollers. George Zafiropoulos KJ6VU

SimPLC. User Manual.

[MG2420] MCU Module Datasheet. (No. ADS0705) V1.0

Breeze Board. Type B. User Manual.

QT2 Xplained Pro. Preface. Atmel QTouch USER GUIDE

Nuvoton 4T 8051-based Microcontroller NuTiny-SDK-N78E715 User Manual

Prototyping Module Datasheet

AIM: To create a project for implement a wireless communication protocol on an embedded system- ZigBee.

USER GUIDE. Atmel PROTO1 Xplained Pro. Preface

n/a PIC12F629-I/P (RC) n/a PIC12F629-I/SN (RC) n/a PIC12F675-I/P (RC) n/a PIC12F675-I/SN MICROCONTROLLER (RC)

Nuvoton 1T 8051-based Microcontroller NuTiny-SDK-N76E885 User Manual

MOD-IO development board user's manual

Wireless-Tag WT51822-S1

[Type here] M907. Bluetooth 4.2 Low Energy/Zigbee/RF4CE/Thread SiP Module with MCU and integrated antenna

Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their

TDSDB Features. Description

QT3 Xplained Pro. Preface. Atmel QTouch USER GUIDE

Product Datasheet: DWM1001-DEV DWM1001 Module Development Board. Key Features and Benefits

BV511 Hardware Guide ByVac ByVac Revision 1.0

Transcription:

sensor development board USER S MANUAL All boards produced by Olimex LTD are ROHS compliant Revision B, Januray 2013 Designed by OLIMEX Ltd, 2011

Disclaimer: 2012 Olimex Ltd. Olimex, logo and combinations thereof, are registered trademarks of Olimex Ltd. Other terms and product names may be trademarks of others. The information in this document is provided in connection with Olimex products. No license, express or implied or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Olimex products. Neither the whole nor any part of the information contained in or the product described in this document may be adapted or reproduced in any material from except with the prior written permission of the copyright holder. The product described in this document is subject to continuous development and improvements. All particulars of the product and its use contained in this document are given by OLIMEX in good faith. However all warranties implied or expressed including but not limited to implied warranties of merchantability or fitness for purpose are excluded. This document is intended only to assist the reader in the use of the product. OLIMEX Ltd. shall not be liable for any loss or damage arising from the use of any information in this document or any error or omission in such information or any incorrect use of the product. Thank you for purchasing the MOD-ZIGBEE-PIR board manufactured by Olimex! Olimex 2012 Page 2 of 20

TABLE OF CONTENTS SECTION 1 OVERVIEW. 4 SECTION 2 SETTING UP THE DEVELOPMENT BOARD..... 6 SECTION 3 MOD-ZIGBEE-PIR BOARD DESCRIPTION 8 SECTION 4 THE PIC18F26K20 MICROCONTROLLER......10 SECTION 5 CONTROL CIRCUITRY 12 SECTION 6 HARDWARE 13 SECTION 7 MEMORY. 16 SECTION 8 SCHEMATICS. 17 SECTION 9 REVISION HISTORY AND ORDER CODES.. 20 Olimex 2012 Page 3 of 20

SECTION 1 OVERVIEW Thank you for choosing the MOD-ZIGBEE-PIR development board from Olimex! This document provides a User s Guide for the Olimex MOD-ZIGBEE- PIR sensor module. As an overview, this chapter gives the scope of this document and lists the board s features. The document s organization is then detailed. 1.1 Scope The MOD-ZIGBEE-PIR is a motion detector unit equipped with passive infrared (PIR) sensor which utilizes open source ZigBee stack, and has the option to be configured to use MiWi stack. This guide focuses on MOD-ZIGBEE-PIR board. 1.2 Features MRF24J40 + PIC18F26K20 with open source MiWi and Zigbee stack PIR sensor motion detector, sends wireless alarm to Zigbee nodes when motion is detected RF Transceiver MRF24J40 IEEE 802.15.4 Standard compliant 2.4 GHz RF transceiver UEXT connector to all boards with UEXT mini ICSP connector On-board antenna On-board temperature sensor TCN75A Option for external power supply through EXT_PWR EXT/BAT switch Reset circuit two user buttons two status LEDs RST button 2x1,5V AA battery holders PCB: FR-4, 1.00 mm (0,039"), solder mask, silkscreen component print Dimensions: 93 mm x 32 mm (3.66 x 1.2 ) 1.3 Board highlights Perfect board for sensor networks with its PIR sensor and built-in temperature sensor. Olimex 2012 Page 4 of 20

The bundle PIC18F26K20 + mini ICSP + 2 buttons + 2 LEDs (green and red) + reset button means that the board can be reprogrammed and used as a development board and allows modifications. Two supported free stacks Microchip s MiWi or ZigBee. Three ways of powering the board via batteries, via external power supply, via ICSP programmer. The board has UEXT connector for easier communication. FR-4 is the most used glass-reinforced epoxy laminate for PCBs. 1.4 Similar boards MOD-ZIGBEE-UEXT is a version of MOD-ZIGBEE-PIR without the motion detection sensor. It is supplied by a single battery and has a female UEXT connector. MOD-ZIGBEE-UEXT is thinner than MOD-ZIGBEE-PIR because of the different battery types used for battery powering of the board. 1.5 Organization Each section in this document covers a separate topic, organized as follow: - Section 1 is an overview of the board usage and features - Section 2 provides a guide for quickly setting up the board, software features and introduces its strong points - Section 3 contains the general board diagram and layout - Section 4 describes the component that is the heart of the board: the PIC18F26K20 microcontroller - Section 5 is an explanation of the control circuitry associated with the microcontroller to reset, power and clock the board - Section 6 covers the connector pinout, peripherals and jumper description - Section 7 shows the memory map - Section 8 provides the schematics - Section 9 contains the revision history Olimex 2012 Page 5 of 20

SECTION 2 SETTING UP THE MOD-ZIGBEE-PIR DEVELOPMENT BOARD This section helps you set up the MOD-ZIG-BEE-PIR development board for the first time. Please consider first the electrostatic warning to avoid damaging the board, then discover the hardware and software required to operate the board. The procedure to power up the board is given, and a description of the default board behavior is detailed. 2.1 Electrostatic Warning The MOD-ZIG-BEE development board is shipped in a protective anti-static package. The board must not be exposed to high electrostatic potentials. A grounding strap or similar protective device should be worn when handling the board. Avoid touching the component pins or any other metallic element. 2.2 Requirements In order to set up the MOD-ZIGBEE-PIR evaluation board, the following items are required: - The MOD-ZIG-BEE development board itself - 2 x 1,5V batteries AA type OR 3,3 V external supply OR ICSP programmer Note: The board is not delivered with an ICSP debugger/programmer, which is needed if you want to use software different than the one the board is preprogrammed with. The board comes preprogrammed as a RFD end device (you will need a coordinator device to accomplish communication). Remember that the connector on the board is mini ICSP (6 pin, step 0.5 ). You may use one of the following device combinations for this purpose: - Olimex s PIC-ICD2-POCKET + Olimex s PIC-ICSP - Olimex s PIC-KIT3 + Olimex s PIC-ICSP Or any compatible device you already have. For the wireless communication you can download the stack software for free from the MiWi web page or ZigBee s web page. Also, a host-based software toolchain might be required in order to program/debug the MOD-ZIGBEE-PIR board. Olimex 2012 Page 6 of 20

2.3 Powering up the board On applying power via one of the three options available (2 x 1.5V AA batteries, 3.3V from mini ICSP or 3.3V external supply) the red LED (LED1) should light. 2.4 Prebuilt software The board comes preprogrammed as a ZigBee communication device. This means if you want to accomplish ZigBee connectivity you have to program your other device as a host. The ZigBee and Microchip s MiWi can be downloaded for free. Note that you can use MiWi if you don t use Microchip s transceiver + Microchip s processor. For general programming we recommend you use Microchip s MPLAB IDE and compiler C18. Olimex 2012 Page 7 of 20

SECTION 3 MOD-ZIGBEE-PIR BOARD DESCRIPTION Here you get acquainted with the main parts of the board. Note the names used on the board differ from the names used here to describe them. For the actual names check the MOD-ZIGBEE-PIR board itself. For example: BUTTON (seen on the op view below) is named BUT; RESET is named RST; etc 3.1 Layout (Top view): Olimex 2012 Page 8 of 20

3.2 Layout (Bottom view): Olimex 2012 Page 9 of 20

SECTION 4 THE PIC18F26K20 MICROCONTROLLER 4.1 Features High-Performance RISC CPU: C Compiler Optimized Architecture: - Optional extended instruction set designed to optimize re-entrant code 1024 bytes Data EEPROM 64 Kbytes Linear Program Memory Addressing 3936 bytes Linear Data Memory Addressing 16 MIPS Operation 16-bit Wide Instructions, 8-bit Wide Data Path Priority Levels for Interrupts 31-Level, Software Accessible Hardware Stack 8 x 8 Single-Cycle Hardware Multiplier Flexible Oscillator Structure: Precision 16 MHz Internal Oscillator Block: - Factory calibrated to ± 1% - Software selectable frequencies range of 31 khz to 16 MHz - 64 MHz performance available using PLL no external components required Four Crystal modes up to 64 MHz Two External Clock modes up to 64 MHz 4X Phase Lock Loop (PLL) Secondary Oscillator using Timer1 @ 32 khz Fail-Safe Clock Monitor: - Allows for safe shutdown if peripheral clock stops - Two-Speed Oscillator Start-up Special Microcontroller Features: Operating Voltage Range: 1.8V to 3.6V Self-Programmable under Software Control Programmable 16-Level High/Low-Voltage Detection (HLVD) module: - Interrupt on High/Low-Voltage Detection Programmable Brown-out Reset (BOR): - With software enable option Extended Watchdog Timer (WDT): - Programmable period from 4 ms to 131s Single-Supply 3V In-Circuit Serial Programming (ICSP ) via Two Pins In-Circuit Debug (ICD) via Two Pins Extreme Low-Power Management with nanowatt XLP: Sleep mode: < 100 na @ 1.8V Watchdog Timer: < 800 na @ 1.8V Timer1 Oscillator: < 800 na @ 32 khz and 1.8V Analog Features: Analog-to-Digital Converter (ADC) module: - 10-bit resolution, 13 External Channels - Auto-acquisition capability - Conversion available during Sleep Olimex 2012 Page 10 of 20

- 1.2V Fixed Voltage Reference (FVR) channel - Independent input multiplexing Analog Comparator module: - Two rail-to-rail analog comparators - Independent input multiplexing Voltage Reference (CVREF) module - Programmable (% VDD), 16 steps - Two 16-level voltage ranges using VREF pins Peripheral Highlights: 25 I/O Pins plus 1 Input-only Pin: - High-Current Sink/Source 25 ma/25 ma - Three programmable external interrupts - Four programmable interrupt-on-change - Eight programmable weak pull-ups - Programmable slew rate Capture/Compare/PWM (CCP) module Enhanced CCP (ECCP) module: - One, two or four PWM outputs - Selectable polarity - Programmable dead time - Auto-Shutdown and Auto-Restart Master Synchronous Serial Port (MSSP) module - 3-wire SPI (supports all 4 modes) - I2C Master and Slave modes with address mask Enhanced Universal Synchronous Asynchronous Receiver Transmitter (EUSART) module: - Supports RS-485, RS-232 and LIN - RS-232 operation using internal oscillator - Auto-Wake-up on Break - Auto-Baud Detect For comprehensive information on the microcontroller visit the Microchip s web page for a datasheet. At the moment of writing the microcontroller datasheet can be found at the following link: http://ww1.microchip.com/downloads/en/devicedoc/41303g.pdf Olimex 2012 Page 11 of 20

SECTION 5 CONTROL CIRCUITRY 5.1 Power supply MOD-ZIGBEE-PIR can be powered from 4 sources: - 2 x 1,5V AA batteries placed in the BAT1 and BAT2 slots - Providing 3 to 3.6V to EXT_PWR pin holes (near UEXT connector) - Providing 3.3V via the mini ICSP - Providing 3.3V via the UEXT When powered and functional the current consumption is ~30 ma. 5.2 Reset MOD-ZIGBEE-PIR reset circuit includes D1 (0.2W, SMD), R1 (10kΩ), R2 (330Ω), C21 (100nF), PIC18F26K20 pin 1 (MCLR#) and a RESET button. 5.3 Clock Quartz crystal Q1 20.000 MHz is connected to PIC18F26K20 pin 33 (OSC2) and pin 34 (OSC1). Olimex 2012 Page 12 of 20

SECTION 6 HARDWARE 6.1 miniicsp The miniicsp connector provides option to reprogram the board. Pin # Signal Name 1 RESET 2 +3.3V 3 GND 4 PGD 5 PGC 6 Not connected 6.2 UEXT MOD-ZIGBEE-PIR board has UEXT connector and can interface Olimex's UEXT modules. Note that the UEXT connector on MOD-ZIGBEE-PIR is a female one. The Tx and Rx by default are in DEVICE mode. To switch to HOST mode set the jumpers to position 1-3 (D). For more information on UEXT please visit: http://www.olimex.com/dev/other/uext.pdf For the UEXT Pin-signal table check the next page Olimex 2012 Page 13 of 20

Pin # Signal Name 1 +3.3V 2 GND 3 TXD 4 RXD 5 SCL 6 SDA 7 Not connected 8 Not connected 9 Not connected 10 Not connected 6.3 Jumper description JP1 & JP2 These jumpers, when both in position 2-3, enable DEVICE UEXT. These jumpers, when both in position 1-2, enable HOST UEXT. Default state is 2-3. UEXT_SUPPLY When closed the board is powered by the UEXT. Default state is open. Olimex 2012 Page 14 of 20

6.4 Test pads There are two test pads RA1 and RA2 near the PIC MCU. They are connected to pins 9 and 10 of the MCU, resepctively. 6.5 LEDs & Buttons The board has 2 LEDS: LED1 is RED; LED2 is GREEN. The board has 2 user buttons: B1 and B2. Olimex 2012 Page 15 of 20

SECTION 7 MEMORY 7.1 Memory map Olimex 2012 Page 16 of 20

SECTION 8 SCHEMATICS 8.1 Eagle schematic MOD-ZIGBEE-PIR schematic can also be downloaded at our web page for MOD-ZIGBEE-PIR: http://olimex.com/dev/mod-zigbee-pir.html. They are located in HARDWARE section. The EAGLE schematic is situated on the next page for quicker reference. Olimex 2012 Page 17 of 20

Olimex 2012 Page 18 of 20

8.2 Physical dimensions Here you can find the physical dimensions of the board in millimeters. 8.2.1 Top view 8.2.2 Bottom view Olimex 2012 Page 19 of 20

SECTION 9 REVISION HISTORY 9.1 Document revision and order codes Revision Changes Modified Pages A Initial Creation All B Fixed several mistakes and added newer schematic All ORDER CODES: MOD-ZIGBEE-PIR - assembled, programmed, tested, calibrated development boards PIC-ICD2-POCKET + PIC-ICSP - for custom programming/debugging (if you do not wish to use PINGUINO IDE) PIC-KIT3 + PIC-ICSP - for custom programming/debugging (if you do not wish to use PINGUINO IDE) How to order? You can order from our online shop directly or from any of our distributors. The full list of distributors might be found here: https://www.olimex.com/distributors/. Check our webpage https://www.olimex.com/ for more info. Olimex 2012 Page 20 of 20