Hide thumbs Also See for Grid-EYE:

Quick Links

User Manual

Grid-EYE Evaluation Kit

QUICK START GUIDE

Grid-EYE Evaluation Kit
Table of Contents
loading

Summary of Contents for Panasonic Grid-EYE

  • Page 1: User Manual

    User Manual Grid-EYE Evaluation Kit QUICK START GUIDE Grid-EYE Evaluation Kit...
  • Page 2: Table Of Contents

    Firmware architecture ....................15 4.1.1 Independent Mode ....................15 4.1.2 Arduino Mode ....................... 17 Firmware development ....................19 4.2.1 Development Tools ....................19 4.2.2 Development on ATSAMD21 ................20 4.2.3 Development with Grid-EYE APIs ................21 User Manual Grid-EYE Evaluation Kit...
  • Page 3 Updating firmware ......................28 4.3.1 Use USB interface to update ATSAMD21G18A ............. 28 4.3.2 Use Serial interface to update PAN1740 ............... 30 Grid-EYE Demonstration Software for PC ................35 Preparation ........................35 5.1.1 Jumper Setting ...................... 35 Demonstration ......................... 36 5.2.1...
  • Page 4: Terms & Abbreviations

    Communications Device Class Hardware I2C / IIC / I Inter-Integrated-Circuit Input / Output Internet of Things Infrared JTAG Joint Test Action Group Microcontroller Personal Computer Software Serial Wire Debug UART Universal Asynchronous Receive Transmit Universal Serial Bus User Manual Grid-EYE Evaluation Kit...
  • Page 5: Introduction

    “Internet of Things” applications. To make it simpler and easier for the user, Panasonic has been flexible in the development of this evaluation kit. The board functions in a standalone mode or it can be connected to an Arduino host board if the user wants to realize the functionality of the sensor with more than the provided interfaces.
  • Page 6: Evaluation Kit Component Details

    USB and Bluetooth, respectively. Arduino mode Arduino mother board receives the data sampled by Grid-EYE sensor through the I interface and then sends the data to a PC and smartphone via USB and Bluetooth, respectively. In this mode the microcontroller, ATSAMD21G18, acts as USB CDC device and provides a communication channel between Arduino mother board and PC.
  • Page 7: Grid-Eye Sensor

    Bootloader.  The Grid-EYE board has Arduino headers soldered on for convenience, should the user choose to host the board onto an Arduino (DUE) mother board. Users are reminded to be careful so not short-out the pins or have the board resting on a conductive surface.
  • Page 8: Atsamd21- Smart Arm-Based Microcontroller

    All devices include intelligent and flexible peripherals, Atmel Event System for inter- peripheral signaling, and support for capacitive touch button, slider and wheel user interfaces. The Grid-EYE sensor board hosts the ATSAMD21G18A variant in a 48-pin QFN package, ideal for a wide range of home automation, consumer, metering, and industrial...
  • Page 9: Bluetooth Module Pan1740

    It includes dedicated hardware for the Link Layer implementation of Bluetooth® Smart and interface controllers for enhanced connectivity capabilities. Due to its high performance, Panasonic chose to use this for the evaluation kit. Basic specifications of this BT module can be seen below.
  • Page 10: Interface Definition

    The Micro USB interface on the evaluation kit is used for power supply and communication with the external PC. The definition of USB pins is defined below in the table: Pin Number Signal Function VBUS USB Data- USB Data+ USB ID User Manual Grid-EYE Evaluation Kit...
  • Page 11: Serial Wire Debug Interface Header Definition (J17)

    Standard 10-pin JTAG Debug & Download Interface are shown below in the table: Pin Number Signal Function SW debug data signal for PAN1740 P1_4/SWCLK SW debug clock signal for PAN1740 One time programming selecting pin for PAN1740 User Manual Grid-EYE Evaluation Kit...
  • Page 12: Arduino Interfaces (J2, J3, J4 And J5)

    3.1.4 Arduino Interfaces (J2, J3, J4 and J5) The following schematics define the pins for each header on the evaluation kit. Schematics: User Manual Grid-EYE Evaluation Kit...
  • Page 13: Arduino Analog I/O A0-A5 Pin Definitions (J2)

    D1 for Arduino / RX pin for PAN1740 UART D2 for Arduino D3 for Arduino UART1_TX D4 for Arduino / TX pin for ATSAMD21 UART1 UART1_RX D5 for Arduino / RX pin for ATSAMD21 UART1 D6 for Arduino D7 for Arduino User Manual Grid-EYE Evaluation Kit...
  • Page 14: Arduino Power Port Pin Definition (J4)

    D9 for Arduino D10 for Arduino D11 for Arduino D12 for Arduino D13 for Arduino AREF for Arduino D14 for Arduino / SDA pin for ATSAMD21 I D15 for Arduino / SCL pin for ATSAMD21 I User Manual Grid-EYE Evaluation Kit...
  • Page 15: Other Jumpers Definition

    I C and the board works in independent mode. Removing the two jumpers will enable the Arduino mode when the Grid-EYE board is hosted onto the Arduino board. If not hosted onto the Arduino board and jumpers are removed unexpected and undefined data will be received and/or transmitted.
  • Page 16: Development With Evaluation Kit

    As explained earlier, there are two modes that the board can be used in. Independent mode, and Arduino mode. 4.1.1 Independent Mode The following block diagram illustrates the independent mode of operation for the evaluation kit, utilizing the standard communications protocols: Grid-EYE sensor ARDUINO DUE ATSAMD21G18A PAN1740 Smart Phone User Manual Grid-EYE Evaluation Kit...
  • Page 17 ; the program flow diagram is given below: Flow-chart steps explained:  Decision point - check I C response of Grid-EYE sensor: If valid, Independent mode is confirmed. If invalid, Arduino mode is confirmed. Delay of 100ms is applied for periodic inspection of I C.
  • Page 18: Arduino Mode

    4.1.2 Arduino Mode The following block diagram illustrates Arduino mode of operation for the evaluation kit with standard communication protocols: ATSAMD21G18A Grid-EYE sensor ARDUINO DUE UART (on Eval board) BTLE PAN1740 Smartphone User Manual Grid-EYE Evaluation Kit...
  • Page 19 Measurement - Read data from the sensor and send it to PC and smartphone.  If the sampling frequency is updated, then reset the sampling frequency.  Delay applied in the loop, determined by the sampling frequency. User Manual Grid-EYE Evaluation Kit...
  • Page 20: Firmware Development

    We will also give a brief introduction in this section on the programming of the Bluetooth module built on the evaluation kit. 4.2.1 Development Tools The following tools are needed when developing application for Grid-EYE Sensor board. Hardware 1. PC with at least 2 USB interface 2.
  • Page 21: Development On Atsamd21

    The ORIGIN value needs to be modified to 0x00002000 to leave a space for bootloader. Constraints in using SAM-BA with USB/UART requires that the bootloader or any access to memory in the ATSAM21 series be made from 0x00002000 onwards. For more details, refer to: Grid_Eye_Source\Atmel\BOOTLOADER\Atmel-42366-SAM-BA- Bootloader-for-SAM-D21_ApplicationNote_AT07175.pdf User Manual Grid-EYE Evaluation Kit...
  • Page 22: Development With Grid-Eye Apis

    Users can try the object detection and human body detection functions via the serial debug assistant. 4.2.3.1 Introduction to API Lib Grid-EYE API Lib is divided into 3 layers; users can select API functions from these layers according to the requirement. API Lv1: APIs from this layer implement Grid-EYE data acquisition, transformation of ...
  • Page 23: Development On Arduino

    Arduino-DUE board. If users have access to other Arduino boards, then some porting work will need to be done. To run the demonstration, two libraries, GE_SoftUart and Grid-EYE we provided need to be copied to the Arduino libraries directory: arduino-nightly-windows\arduino-nightly\libraries Open the *.ino file and select the corresponding target board before you start the work:...
  • Page 24 Compile the code and upload it on the board. User Manual Grid-EYE Evaluation Kit...
  • Page 25 User Manual Grid-EYE Evaluation Kit...
  • Page 26: Development On Pan1740

    API’s provided to develop their applications. To develop the Bluetooth firmware, you need to add the Profile to the project. The profile in our demonstration is ‘SPS’(Serial Port Service) receive application. User Manual Grid-EYE Evaluation Kit...
  • Page 27 Below is the directory for the corresponding profile: src\ip\ble\hl\src\profiles src\modules\app\src\app_profiles User Manual Grid-EYE Evaluation Kit...
  • Page 28 Add related file to project, then un-comment corresponding macro definition in “da14580_config.h”, and write your ‘app’ code. User Manual Grid-EYE Evaluation Kit...
  • Page 29: Updating Firmware

    3) Open SAM-BA, select the COM id, SAMD21_xplained_pro, and then click “Connect “. Configure the program address, select the bin file (project path given below) and then click “Send File”. User Manual Grid-EYE Evaluation Kit...
  • Page 30 Program process: User Manual Grid-EYE Evaluation Kit...
  • Page 31: Use Serial Interface To Update Pan1740

    1) Connect USB to PC, set the jumpers as following, connect the TX pin on Grid-EYE sensor board with RX pin of USB to serial module, and connect the RX pin on Grid-EYE sensor board with TX pin of USB to serial module.
  • Page 32 2) Create a download project, select UART mode, corresponding COM port, and chip version: 3) Select SPI FLASH Programmer, and then select the file to download. User Manual Grid-EYE Evaluation Kit...
  • Page 33 SW2 to reset the Bluetooth module. 5) If the connection is successful, there will be a prompt message in the Log window. Once you see this click “Read 32KB” button. User Manual Grid-EYE Evaluation Kit...
  • Page 34 6) Then click “Erase” button after the memory is read. 7) After erase has been finished, click “Burn” button. User Manual Grid-EYE Evaluation Kit...
  • Page 35 8) A pop-up window comes out after you click “Burn”, select Yes. 9) You will see “Memory burning completed successfully” info if everything goes well. It means that Update PAN1740 finished successfully. User Manual Grid-EYE Evaluation Kit...
  • Page 36: Grid-Eye Demonstration Software For Pc

    5 Grid-EYE Demonstration Software for PC In this section we talk about the software that is provided with the eval-kit to demonstrate the results from the sensor. We explain here how to install this software and then run it. 5.1 Preparation To run this demonstration, you need to: ...
  • Page 37: Demonstration

    2) Open device manager to check the COM id for USB virtual COM If the COM port is not detected then reinstall the USB driver from http://eu.industrial.panasonic.com/grideye-evalkit under Software & Source Code for Download > USB Driver > ATSAMD21G18A\ATSAMD21G18A_USB_DUART_DEMO\SAMD21_USB_DUART_DEMO (the files used are: atmel_devices_cdc.cat and atmel_devices_cdc.inf). User Manual Grid-EYE Evaluation Kit...
  • Page 38 4) Now select the appropriate COM port (shown as COM41 in the image below), and click ‘Open COM’ button to view the data fed to the PC from the Grid-EYE sensor. Temperature data detected: Temperature values can be observed on the LabVIEW (8 x 8) matrix window. Colours for the heat map can be set between -20°C and +100°C.
  • Page 39 Image after interpolation and the original image: Image after smoothing Original image User Manual Grid-EYE Evaluation Kit...
  • Page 40 5) Open the DSPS / Panasonic ‘app’ on the smartphone and connect with Grid-EYE sensor, view the data sent over Bluetooth. User Manual Grid-EYE Evaluation Kit...
  • Page 41: Arduino Mode Demonstration

    5.2.2 Arduino Mode Demonstration 1) Plug the Grid-EYE sensor board to Arduino mother board, set the jumpers, and connect the USB interface. 2) Open device manager to check the COM id for USB virtual COM. User Manual Grid-EYE Evaluation Kit...
  • Page 42 3) Open PC software, select the corresponding COM port. 4) Open Com to view the output. Temperature data detected: User Manual Grid-EYE Evaluation Kit...
  • Page 43 Image after interpolation and the original image: Image after interpolation Original image 5) Open the DSPS /Panasonic ‘app’ on the smartphone and connect with Grid-EYE sensor, view the data sent over Bluetooth. User Manual Grid-EYE Evaluation Kit...
  • Page 44: Appendix

    6.1 Install USB Driver for ATSAMD21G18A 1) Open Device manager, if you haven’t installed the USB Driver, you will find the “CDC Virtual Com” in “Other” devices tag with a yellow exclamation mark on it. User Manual Grid-EYE Evaluation Kit...
  • Page 45 2) Right click the device name, then choose Update Driver Software supplied in the USB driver folder. 3) Choose “Browse my computer for driver software”, select the driver path. User Manual Grid-EYE Evaluation Kit...
  • Page 46 4) Choose Install this driver software anyway, then wait for the complement of installation. 5) You will see the following after install is finished. User Manual Grid-EYE Evaluation Kit...
  • Page 47: Esd Precautions And Proper Handling Procedures

    Prevent damage to the connectors by aligning connector pins before you connect the cable. Misaligned connector pins can cause damage to system components at power-on.  When disconnecting a cable, always pull on the cable connector or strain-relief loop, not on the cable itself. User Manual Grid-EYE Evaluation Kit...
  • Page 48: Compliance Information

    Increase the separation between the equipment and receiver.  Connect the equipment into an outlet on a circuit different from that to which the receiver is connected.  Consult the dealer or an experienced radio/TV technician for help User Manual Grid-EYE Evaluation Kit...

Table of Contents