Table of Contents

Advertisement

Quick Links

Document
04/02/2018
MC27561 Tiger – User's Guide
MC27561 - TIGER
User's Guide
All information contained in these materials, including products and product
specifications, represents information on the product at the time of publication
and is subject to change by Arrow Electronics without notice.
Doc: MC27561 Tiger User's Guide, Rev 1.0
1 of 44

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MC27561-TIGER and is the answer not in the manual?

Questions and answers

Summary of Contents for Arrow MC27561-TIGER

  • Page 1 All information contained in these materials, including products and product specifications, represents information on the product at the time of publication and is subject to change by Arrow Electronics without notice. Doc: MC27561 Tiger User’s Guide, Rev 1.0 1 of 44...
  • Page 2 Arrow Electronics does not assume any liability arising out of the application or use of any of its products or designs. Products designed or distributed by Arrow Electronics are not intended for, or authorized to be used in, applications such as life support systems or for any other use in which the failure of the product could potentially result in personal injury, death or property damage.
  • Page 3: Table Of Contents

    Document 04/02/2018 MC27561 Tiger – User’s Guide Outline INTRODUCTION ............................6 1.1............................6 ESCRIPTION 1.2............................6 IT CONTENTS 1.3..........................6 ETTING STARTED SYSTEM OVERVIEW ..........................7 2.1............................. 7 OARD LAYOUT 2.2........................... 8 LOCK DIAGRAM 2.3........................
  • Page 4 Document 04/02/2018 MC27561 Tiger – User’s Guide MQTT Demo application code ....................32 AT bridge application code ...................... 33 8.3........................33 ETUP THE ENVIRONMENT 8.4. MQTT D ......................... 39 EMO APPLICATION Gateway setup and MQTT topics determination ..............39 Thread node commissioning and network join ................
  • Page 5 Document 04/02/2018 MC27561 Tiger – User’s Guide 34 - D ....................36 IGURE INK DRIVE 35 - B ................37 IGURE UILD APPLICATION PROJECT 36 - D ................37 IGURE EBUG ONFIGURATION TAB 37 - D ................ 38 IGURE OWNLOAD AND DEBUG THE CODE 38 - D .................
  • Page 6: Introduction

    • 1x Tiger board 1.3. Getting started The Tiger board, developed by IOTEAM for Arrow Electronics, is a ready-to-use Internet of Things (IoT) hardware for prototyping new devices. It can be used in conjunction with Arrow’s shield with a lot sensors.
  • Page 7: System Overview

    Document 04/02/2018 MC27561 Tiger – User’s Guide 2. System overview 2.1. Board layout The layout of the Tiger board is shown in the picture below. Figure 1 Board Layout The top and bottom board layouts (component placement and overlay) are provided for reference purposes.
  • Page 8: Block Diagram

    Document 04/02/2018 MC27561 Tiger – User’s Guide 2.2. Block diagram An overview of the functions of the Tiger board is shown in the figure below: Figure 3 Block diagram 2.3. Board Specifications Characteristics Value SAMD21 CPU Clock speed 48MHz Flash Memory 256Kb SRAM 32Kb...
  • Page 9: Atsamd21J18A Ultra Low-Power Arm

    Document 04/02/2018 MC27561 Tiger – User’s Guide 2.4. ATSAMD21J18A Ultra low-power ARM Atmel® | SMART SAM D21 is a series of Ultra low-power microcontrollers using the 32-bit ARM® Cortex® -M0+ processor at a maximum of 48MHz. The size of the SAMD21 used in the Tiger has the following characteristics: Memory •...
  • Page 10: Nxp Mcu With Standard Radio Chip (Mkw41Z512Vht4)

    Document 04/02/2018 MC27561 Tiger – User’s Guide The device’s cascading feature allows up to eight devices to share a common 2- wire bus. The device is optimized for use in many industrial and commercial applications where low-power and low-voltage operations are essential. The device operates from 1.7V to 5.5V.
  • Page 11: Eeprom Nxh5104

    Document 04/02/2018 MC27561 Tiger – User’s Guide 2.9. EEPROM NXH5104 This EEPROM is connected to KW41 only. The NXP NXH5104 is a 4 Mbit serial electrically erasable and programmable read only memory (EEPROM). It provides byte level and page level serial EEPROM functions, sector level protection and power-down functions.
  • Page 12: Section One (Samd21 As Primary Mcu)

    Document 04/02/2018 MC27561 Tiger – User’s Guide 3. SECTION ONE (SAMD21 as primary MCU) This section describes the Tiger board using SAMD21 as primary MCU. In this case the KW41 can be used as multi standard radio module. In this case the Board is supported by the Arduino IDE for a fast and easy software development cycle (https://www.arduino.cc/en/Main/Software).
  • Page 13: J1 Usb Device

    Document 04/02/2018 MC27561 Tiger – User’s Guide J1 USB device The board is equipped with an USB (J1) Full-Speed (12 Mbps) device port on J1 connector. The Tiger can be powered through this interface. Figure 5 USB interface J2 DEBUG The Tiger board features an on-board DEBUG (J2) that can be used to program and debug the microcontroller SAMD21.
  • Page 14: Arduino Headers

    Document 04/02/2018 MC27561 Tiger – User’s Guide Arduino Headers The connectors J3, J4, J5, J6 provide the user with a standard Arduino shield slot as listed below. Figure 7 Arudino Zero pinout Arduino pin label Driven by Description Conn. Digital I/O D8 / PWM MCU Port PA06 Digital I/O D9 / PWM MCU Port PA07...
  • Page 15: J7 Vcc Wifi

    Document 04/02/2018 MC27561 Tiger – User’s Guide J7 VCC WIFI This is a bridge jumper to enable Wi-Fi Module. The module is factory-enabled; to disable it, it is necessary to remove the R24 resistance. Figure 8 WiFi jumper J8 Antenna conntector The Tiger board features a PCB Antenna and an on-board Antenna connector to use the KW41 as multi standard radio module The FRDM-KW41Z RF circuit provides an RF interface for users to begin...
  • Page 16: J9 Power Connector

    Document 04/02/2018 MC27561 Tiger – User’s Guide J9 Power connector This connector is use to power the board with external source with a 5Vdc voltage only. J13 UART selector This connector J13 is used to select the KW41 UART interface: •...
  • Page 17: Table 6 Battery Connector

    Document 04/02/2018 MC27561 Tiger – User’s Guide WARNING Li-Po batteries are charged at 4,2V with a current that is usually half of the nominal capacity (C/2). This board has a specialized chip that has a preset charging current of 350mAh. This means that the MINIMUM capacity of the Li-Po battery shall be 700 mAh.
  • Page 18: Section Two (Kw41 Mcu)

    Document 04/02/2018 MC27561 Tiger – User’s Guide 4. SECTION TWO (KW41 MCU) This section describes the Tiger board using KW41 as primary MCU. 4.1. Connectors This chapter gives you an overview of the additional Tiger connectivity for this mode of operation. Connector DEBUG VCC_KW41...
  • Page 19: J10 Debug

    Document 04/02/2018 MC27561 Tiger – User’s Guide J10 DEBUG The Tiger board features an on-board DEBUG (J10) that can be used to program and debug the Chip KW41Z Figure 13 J10 Debug connector for KW41Z Name Conn. Description Driven by +3.3V SWDIO SWDIO...
  • Page 20: J12 Ftdi Cable Connector

    Document 04/02/2018 MC27561 Tiger – User’s Guide J12 FTDI Cable connector This connector is used to connect the KW41 UART with a PC to be used as console or for programming particular components located on optional shields (e.g. must be used in conjunction MCS27561-SH-NXP shield to configure the Crypto chip.) To use FTDI interface the J13 jumper must be in “B”...
  • Page 21: J14 A 1006 I/F

    Document 04/02/2018 MC27561 Tiger – User’s Guide J14 A 1006 I/F This connector is used to connect the crypto chip mounted on the optional SHIELD to the KW41. Figure 16 A1006 I/F connector KW41 driven PTB3 WIRE PYB1 SDA PTB0 GROUND Table 11 A1006 I/F connector KW41 driven J16 Battery isolation...
  • Page 22: Usage

    Document 04/02/2018 MC27561 Tiger – User’s Guide 5. Usage This chapter describes how to connect, configure and interact with the Tiger board. 5.1. Power supply The board can be powered by three different power supply sources: • External power supply •...
  • Page 23: Push Buttons And Leds

    Document 04/02/2018 MC27561 Tiger – User’s Guide 5.2. Push buttons and LEDs A basic user interface is provided through on-board buttons and LEDs. ITEM COLOR DESCRIPTION Used with MCU RESET SAMD21 SAMD21 RESET KW41 KW41 User Button KW41 KW41 LED 1 Yellow SAMD21 PA17 LED 2...
  • Page 24: I2C Address

    Document 04/02/2018 MC27561 Tiger – User’s Guide 5.3. I2C ADDRESS The following table lists the I2C address of each component. All of them are 7-bits addresses (need to shift to left by 1 + bits R/W). COMPONENT DESCRIPTION ADDRESS 8bit EEPROM W 0xAE AT24C256C...
  • Page 25: Software Development

    Document 04/02/2018 MC27561 Tiger – User’s Guide 6. Software Development The following chapters provide an overview about how a user can develop their own software and use the Tiger board. There are two main ways to use the board: • Chapter 7 describe how to program the board using the SAMD21 as primary MCU.
  • Page 26: Getting Started With Arduino Ide And Sketch Projects Using Samd21 As Primary Mcu

    Document 04/02/2018 MC27561 Tiger – User’s Guide 7. Getting Started with Arduino IDE and Sketch Projects using SamD21 as primary MCU 7.1. Tools The following tools are required: • Arduino IDE (Release 1.8.5 or newer) • USB cable 7.2. Setup the Environment Download and install the Arduino IDE from the Arduino web site (See the link in chapter 9).
  • Page 27: Figure 21 Arduino Zero Core Installation

    Additional URL for board manager through setup panel as shown in the figure below 3) Select from “Type” combo Partner and choose the ARROW Boards in order to install the core of the SmartEverything. Figure 22 SmartEverything Core Installation Doc: MC27561 Tiger User’s Guide, Rev 1.0...
  • Page 28: Run The Software

    Document 04/02/2018 MC27561 Tiger – User’s Guide The installation procedure will automatically install all the necessary USB drives. Once the installation is completed, you can connect the Board and start coding. 7.3. Run the software Verify the code Figure 23 Arduino IDE: Verify the code Load the software on the connected board.
  • Page 29: Importing The Components Library

    Document 04/02/2018 MC27561 Tiger – User’s Guide 7.4. Importing the components Library In order to use the Wifi specific libraries is required. To include these libraries use the menu Sketch - Include Library - Manage Libraries. Figure 25 Arduino IDE: Launch Manage Libraries interface Once the Library Manager is started, you can filter the available libraries writing: •...
  • Page 30: Figure 27 Github Libraries Repository

    Document 04/02/2018 MC27561 Tiger – User’s Guide Another way to install the supported components Library is to go to the GitHub repository and download the zip file. Figure 27 GitHUB libraries repository Once it is downloaded, go to the “include Library” menu and use the “Add .ZIP Library…”...
  • Page 31: Official Github Library Repository

    Document 04/02/2018 MC27561 Tiger – User’s Guide 7.5. Official GitHub library repository Here is the official repository where the zip file can be downloaded from: WIFI www.arduino.cc/en/Reference/WiFi101 • EEPROM github.com/PaoloP74/extEEPROM • Doc: MC27561 Tiger User’s Guide, Rev 1.0 31 of...
  • Page 32: Getting Started With Kw41

    Document 04/02/2018 MC27561 Tiger – User’s Guide 8. Getting Started with KW41 8.1. Tools • MCUXpresso IDE (can be downloaded from: https://www.nxp.com/support/developer-resources/software- development-tools/mcuxpresso-software-and-tools/mcuxpresso- integrated-development-environment-ide:MCUXpresso-IDE). • DAP Link board (or SEGGER j-link with 10 pins adapter connector) • Other tools may be required depending on the software running on KW41 (see next paragraph).
  • Page 33: At Bridge Application Code

    Document 04/02/2018 MC27561 Tiger – User’s Guide Figure 28 - MQTT Demo system overview AT bridge application code TODO… 8.3. Setup the environment The procedure to setup the MQTT demo is explained herein after. The procedure for the AT bridge application is almost the same. •...
  • Page 34 Document 04/02/2018 MC27561 Tiger – User’s Guide Figure 29 - NXP Tiger folder structure • Launch MCUXpresso and select as a workspace the newly created folder. Figure 30 - MCUXpresso workspace selection • Import projects into workspace: File -> Import -> General -> Existing Projects into Workspace, then press Next.
  • Page 35: Figure 31 - Select Projects To Import

    Document 04/02/2018 MC27561 Tiger – User’s Guide Figure 31 – Select projects to import • Browse to select root directory C:\NXP_Tiger. The “Tiger-KW41Z- bootloader” and “Tiger-KW41Z-DemoApp” projects should appear in the projects list, then click Finish button. Figure 32 - Import projects into workspace Doc: MC27561 Tiger User’s Guide, Rev 1.0 35 of...
  • Page 36: Figure 33 - Build Bootloader Project

    MC27561 Tiger – User’s Guide • In the project explorer tab, select Tiger-KW41Z-bootloader project, then click on the down arrow next to the hammer icon and select Release to build the project in “release” mode. The bootloader project will be build and the executable files will be placed in the “C:\NXP_Tiger\Tiger-KW41Z-...
  • Page 37: Figure 35 - Build Application Project

    Document 04/02/2018 MC27561 Tiger – User’s Guide and the executable files will be placed in the C:\NXP_Tiger\Tiger-KW41Z- DemoApp\Release folder. Figure 35 - Build application project • The application project cannot be downloaded by copying the binary file in the DAPLINK folder as we did for bootloader. In this case we will download it using MCUXpresso IDE and, if needed, we could also debug or run step by step the code.
  • Page 38: Figure 37 - Download And Debug The Code

    Document 04/02/2018 MC27561 Tiger – User’s Guide • Double click on C/C++ (NXP Semiconductors) MCU Application, then Browse buttons to select correct Project and C/C++ Application. If the selected files are correct the Debug button should become enabled. Click on Debug button to download and debug the code. Figure 37 - Download and debug the code •...
  • Page 39: Mqtt Demo Application

    Document 04/02/2018 MC27561 Tiger – User’s Guide • After the code has been downloaded, press F8 to start running. Please note that with a SEGGER J-Link the procedure it is basically the same, but without the DAPLink the bootloader must be downloaded into the Tiger board by using the MCUXpresso IDE (or the SEGGER jlink tools) instead of dragging and drop the file.
  • Page 40: Figure 40 - Get Node Unique Id

    Document 04/02/2018 MC27561 Tiger – User’s Guide unique ID (MAC address). The board will reply with a 64 bits code. Figure 40 - Get Node Unique ID • From the MQTT server send the following message in the SubTopic topic: {"cmd":"add","id":"006037ff5e989166"}.
  • Page 41: At Bridge Application

    Document 04/02/2018 MC27561 Tiger – User’s Guide Figure 41 - The node succesfully join the network • From the MQTT server it is possible to send commands to control the RGB led on Tiger board. On the SubTopic topic the server must publish a message with the following structure: {eui:"BoardEUI",pay:{led:{r:redval,g:greenval,b:blueval}}} Where BoardEUI is the Tiger board unique ID, redval/blueval/greenval =...
  • Page 42: References And Useful Links

    Document 04/02/2018 MC27561 Tiger – User’s Guide 9. References and Useful Links 9.1. Data sheets ATMEL SAMD21 Ultra low-power ARM® Cortex®-M0+ MCU http://www.atmel.com/Images/Atmel-42181-SAM-D21_Datasheet.pdf NXP ARM® Cortex®-M0+ MCU with Multi Standard Radio MKW41Z512 https://www.nxp.com/docs/en/data-sheet/MKW41Z512.pdf Wi-Fi ATWINC1500-MR210 http://www.atmel.com/images/atmel-42376-smartconnect-winc1500- mr210pa_datasheet.pdf E2Prom ATMEL (AT24C256C) http://www.atmel.com/images/atmel-8568-seeprom-at24c256c-datasheet.pdf EEPROM NXH5104 https://www.nxp.com/docs/en/data-sheet/NXH5104.pdf...
  • Page 43: Web Sites

    Document 04/02/2018 MC27561 Tiger – User’s Guide 9.2. Tools Arduino IDE https://www.arduino.cc/en/Main/Software • Atmel Studio http://www.atmel.com/microsite/atmel-studio/ • 9.3. Web Sites Arrow www.arrow.com • www.nxp.com • Microchip www.microchip.com • IOTEAM www.ioteam.it • ipTronix www.iptronix.com • Axel Elettronica www.axelelettronica.it • Arduino www.arduino.cc •...
  • Page 44: Driver Installation Problems

    Unknown Device. If this happens, it is necessary to install the driver manually. The correct drivers can be found on the following directory: C:\Users\<login name> \AppData\Local\Arduino15\packages\Arrow\hardware\samd\<installed Rel>\drivers. Figure 42 Correct USB Driver installation Doc: MC27561 Tiger User’s Guide, Rev 1.0...

Table of Contents