Multi Sensor Board Application Startup Guide · the version corresponding to the application to be...

14
Multi Sensor Board Application Startup Guide Rev. 1.1 28/04/2020

Transcript of Multi Sensor Board Application Startup Guide · the version corresponding to the application to be...

Page 1: Multi Sensor Board Application Startup Guide · the version corresponding to the application to be used from the URL below. [Softdevice table] Board Softdevice EBSHCNZWZ S132 EBSLCNZWW

Multi Sensor Board Application Startup Guide

Rev. 1.1 28/04/2020

Page 2: Multi Sensor Board Application Startup Guide · the version corresponding to the application to be used from the URL below. [Softdevice table] Board Softdevice EBSHCNZWZ S132 EBSLCNZWW

28-Apr.2020 Ver1.1

TAIYO YUDEN CO., LTD.

Page 2|14

TAIYO YUDEN CO., LTD.

Table of Contents

1 Introduction ................................................................................................................................ 3

2 Overview ..................................................................................................................................... 3

3 Connection method..................................................................................................................... 4

3.1 Connecting the evaluation board and interface board........................................................ 4

3.2 Interface board's connectors ............................................................................................... 5

4 Setting up the tools ..................................................................................................................... 6

4.1 Download Nordic SDK .......................................................................................................... 6

4.2 Install the firmware writing tool .......................................................................................... 7

4.2.1 Install nRF Command Line Tools .................................................................................. 7

4.2.2 Install nRF Programmer ................................................................................................ 7

4.3 Write the firmware .............................................................................................................. 8

4.3.1 Connecting the evaluation board and PC ..................................................................... 8

4.3.2 Writing with nRF Command Line Tools ........................................................................ 9

4.3.3 Writing with nRF Connect Programmer ..................................................................... 10

5 How to check sensor data ......................................................................................................... 11

5.1 Display on smartphone app ............................................................................................... 11

5.1.1 Display on TAIYO YUDEN’s App(TY’s Terminal App) ................................................... 11

5.1.2 Display on Nordic’s App (Thingy) ............................................................................... 12

6 How to add a new sensor .......................................................................................................... 13

Page 3: Multi Sensor Board Application Startup Guide · the version corresponding to the application to be used from the URL below. [Softdevice table] Board Softdevice EBSHCNZWZ S132 EBSLCNZWW

28-Apr.2020 Ver1.1

TAIYO YUDEN CO., LTD.

Page 3|14

TAIYO YUDEN CO., LTD.

1 Introduction

This document describes how to use the provided KIT.

2 Overview

It is assumed that the following are used in the application of Multisensor Board.

- Nordic SDK

- firmware writing tool (nRF Command Line Tools/ nRF Programmer)

- IF pluggable interface board

- Sensors for desired operation

- Supported Taiyo Yuden evaluation board

Board Chip

EBSHCNZWZ nRF52832

EBSLCNZWW nRF52810

EBSHJNZWZ nRF52832

EBSKJNZWB nRF52840

EBSHSNZWZ nRF52832

EBSLSNZWW nRF52810

- J-link Lite

Light sensor Acceleration sensor Temperature sensor

Page 4: Multi Sensor Board Application Startup Guide · the version corresponding to the application to be used from the URL below. [Softdevice table] Board Softdevice EBSHCNZWZ S132 EBSLCNZWW

28-Apr.2020 Ver1.1

TAIYO YUDEN CO., LTD.

Page 4|14

TAIYO YUDEN CO., LTD.

- document

Document Content

BLE Development Guide Overview of BLE communication specifications

Multisensor Board Beacon - Terminal_UserManual

How to write Beacon sample app and check it with TY ’s terminal app

Multisensor Board Beacon - Thingy_UserManual

How to write a Thingy sample app and check it with the Thingy app

Multisensor Board Beacon - DevGuide

How to develop an application using the Beacon sample project

Multisensor Board Startup Guide

How to write sample application provided by Taiyo Yuden (this document)

3 Connection method

3.1 Connecting the evaluation board and interface board

Refer to the following for the connection between the interface board and the evaluation board,

and connect so that Pin.1 of the interface board and VIO next to the reset switch of the evaluation

board overlap.

evaluation board (ex: EBSHCNZWZ)

)

IF pluggable interface board

connected

Page 5: Multi Sensor Board Application Startup Guide · the version corresponding to the application to be used from the URL below. [Softdevice table] Board Softdevice EBSHCNZWZ S132 EBSLCNZWW

28-Apr.2020 Ver1.1

TAIYO YUDEN CO., LTD.

Page 5|14

TAIYO YUDEN CO., LTD.

3.2 Interface board's connectors

Since the function assigned to the connector depends on the board to be connected, the

connector on which the sensor operates differs. When using a sensor that uses an ADC for the

driver, connect the sensor by referring to the table below so that the pin used matches the pin

indicated in AIN.

CN3 CN4

Pin No Port Pin No Port

EBSHCNZWZ 3 P0.15 3 -

4 P0.12 4 P0.31/AIN7

EBSLCNZWW 3 P0.15 3 -

4 P0.12 4 P0.31/AIN7

EBSHJNZWZ 3 P0.10/NFC 3 P0.02/AIN0

4 P0.28/AIN4 4 P0.18

EBSKJNZWB 3 P0.28/AIN4 3 P0.29/AIN5

4 P0.04/AIN2 4 P0.03/AIN1

EBSHSNZWZ 3 P0.03/AIN1 3 P0.04/AIN2

4 P0.02/AIN0 4 P0.09/NFC

EBSLSNZWW 3 P0.03/AIN1 3 P0.11

4 P0.04/AIN2 4 P0.17

sensor doriver Pin

Temperature sensor ADC Pin4

Light sensor ADC Pin4

Acceleration sensor TWI Pin3,Pin4

CN3 CN4

Page 6: Multi Sensor Board Application Startup Guide · the version corresponding to the application to be used from the URL below. [Softdevice table] Board Softdevice EBSHCNZWZ S132 EBSLCNZWW

28-Apr.2020 Ver1.1

TAIYO YUDEN CO., LTD.

Page 6|14

TAIYO YUDEN CO., LTD.

4 Setting up the tools

4.1 Download Nordic SDK

Softdevice (SDK folder: SDK / components / softdevice / sXXX / hex * Please refer to the following

table for sXXX) is used for BLE communication.Please download and decompress the Nordic SDK of

the version corresponding to the application to be used from the URL below.

[Softdevice table]

Board Softdevice

EBSHCNZWZ S132

EBSLCNZWW s112

EBSHJNZWZ s132

EBSKJNZWB s140

EBSHSNZWZ s132

EBSLSNZWW s112

[Nordic SDK Version]

TY’s Terminal:15.3.0 nRF5 SDK

Thingy:13.1.0 nRF5 SDK

Download URL:https://www.nordicsemi.com/Software-and-tools/Software/nRF5-

SDK/Download#infotabs

Page 7: Multi Sensor Board Application Startup Guide · the version corresponding to the application to be used from the URL below. [Softdevice table] Board Softdevice EBSHCNZWZ S132 EBSLCNZWW

28-Apr.2020 Ver1.1

TAIYO YUDEN CO., LTD.

Page 7|14

TAIYO YUDEN CO., LTD.

4.2 Install the firmware writing tool

To write the firmware to the evaluation board, you need to install either nRF Command Line Tools

or nRF Programmer.

4.2.1 Install nRF Command Line Tools

Download the latest version of the installer from the download URL below and execute it.

The necessary tools for writing are installed.

Download URL:https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-

Command-Line-Tools/Download#infotabs

4.2.2 Install nRF Programmer

Download the latest version of the installer from the download URL below and execute it.

Start nRF Connet and install "Programmer" from the menu displayed at startup.

Download URL:https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-

Connect-for-desktop/Download#infotabs

Page 8: Multi Sensor Board Application Startup Guide · the version corresponding to the application to be used from the URL below. [Softdevice table] Board Softdevice EBSHCNZWZ S132 EBSLCNZWW

28-Apr.2020 Ver1.1

TAIYO YUDEN CO., LTD.

Page 8|14

TAIYO YUDEN CO., LTD.

4.3 Write the firmware

4.3.1 Connecting the evaluation board and PC

When writing the firmware, connect the PC and j-link Lite via USB as shown below. And also

connect the evaluation board to supply power from USB.

【Connection example】

j-link Lite

evaluation board

miniUSB PC

miniUSB

Page 9: Multi Sensor Board Application Startup Guide · the version corresponding to the application to be used from the URL below. [Softdevice table] Board Softdevice EBSHCNZWZ S132 EBSLCNZWW

28-Apr.2020 Ver1.1

TAIYO YUDEN CO., LTD.

Page 9|14

TAIYO YUDEN CO., LTD.

4.3.2 Writing with nRF Command Line Tools

Execute the command in the following procedure to write the firmware to the evaluation board.

1. Erase of FLASH region

・Command:nrfjprog --family NRF52 –eraseall

※FLASH region must be deleted before writing.

2. Writing SoftDevice

・Command:nrfjprog --family NRF52 --program sXXX_nrf52_Y.Y.Y_softdevice.hex

※Specify the HEX file of the Softdevice to be used.

3. Writing sensor firmware

・Command:nrfjprog --family NRF52 --program XXXXXXXXX.hex

※Specify the HEX file to be written.

4. Please press the reset switch on the evaluation board.

[Execution screen ]

Page 10: Multi Sensor Board Application Startup Guide · the version corresponding to the application to be used from the URL below. [Softdevice table] Board Softdevice EBSHCNZWZ S132 EBSLCNZWW

28-Apr.2020 Ver1.1

TAIYO YUDEN CO., LTD.

Page 10|14

TAIYO YUDEN CO., LTD.

4.3.3 Writing with nRF Connect Programmer

Write the firmware by referring to the following Nordic site.

URL:

https://infocenter.nordicsemi.com/topic/ug_nc_programmer/UG/nrf_connect_programmer/ncp_

application_overview.html

1. Select the connected j-link Lite from “Select Device” on the upper left.

2. Execute “Erase all” from the Device menu on the right.

3. Click "Add HEX file" of the menu file on the upper right and select the HEX file of the

Softdevice to be written.

4. Execute “Write” from the right side menu Device to write

5. Click “Add HEX file” in the menu file on the upper right again, and select the HEX file of the

firmware of the sensor to be written.

6. Execute "Write" again from the menu Device on the right to write.

7. Please press the reset switch on the evaluation board.

Page 11: Multi Sensor Board Application Startup Guide · the version corresponding to the application to be used from the URL below. [Softdevice table] Board Softdevice EBSHCNZWZ S132 EBSLCNZWW

28-Apr.2020 Ver1.1

TAIYO YUDEN CO., LTD.

Page 11|14

TAIYO YUDEN CO., LTD.

5 How to check sensor data

5.1 Display on smartphone app

5.1.1 Display on TAIYO YUDEN’s App(TY’s Terminal App)

Please refer to "Multisensor Board Beacon-Terminal_UserManual" for how to operate the app

when connecting with TY's Terminal App.

Write the following HEX for the sensor firmware according to the sensor used, and for the

Softdevice according to the evaluation board used. For details on how to write, refer to

"4.3Write the firmware".

sensors Sensor’s Firmware

Acceleration sensor+Light

sensor

Multisensor_Board_XXXXXXXXX_ACC_LIGHT_Beacon.hex※1

Acceleration sensor+

Temperature sensor

Multisensor_Board_XXXXXXXXX_ACC_TEMP_Beacon.hex※1

※1XXXXXXXXXX is the model number of the board.

board Softdevice

EBSHCNZWZ s132_nrf52_6.1.1_softdevice.hex

EBSLCNZWW s112_nrf52_6.1.1_softdevice.hex

EBSHJNZWZ s132_nrf52_6.1.1_softdevice.hex

EBSKJNZWB s140_nrf52_6.1.1_softdevice.hex

EBSHSNZWZ s132_nrf52_6.1.1_softdevice.hex

EBSLSNZWW s112_nrf52_6.1.1_softdevice.hex

Android:

Beacon

iOS:

Smartphone

evaluation board

Page 12: Multi Sensor Board Application Startup Guide · the version corresponding to the application to be used from the URL below. [Softdevice table] Board Softdevice EBSHCNZWZ S132 EBSLCNZWW

28-Apr.2020 Ver1.1

TAIYO YUDEN CO., LTD.

Page 12|14

TAIYO YUDEN CO., LTD.

5.1.2 Display on Nordic’s App (Thingy)

By using the HEX file for Thingy, it is possible to connect with Thingy provided by Nordic.

About the Thingy, search for "Thingy" on the Google Play / App store and install it.

Write the following HEX for the sensor firmware according to the sensor used, and for the

Softdevice according to the evaluation board used. For details on how to write, refer to

"4.3Write the firmware".

sensors Sensor’s Firmware

Acceleration sensor+Light

sensor

Multisensor_Board_XXXXXXXXX_ACC_LIGHT_Thingy.hex※1

Acceleration sensor+

Temperature sensor

Multisensor_Board_XXXXXXXXX_ACC_TEMP_Thingy.hex※1

※1XXXXXXXXXX is the model number of the board.

board Softdevice

EBSHCNZWZ

s132_nrf52_4.0.2_softdevice.hex EBSHJNZWZ

EBSHSNZWZ

※Connection with Thingy is only nRF52832 chip

Conenction

Smartphone

evaluation board

Page 13: Multi Sensor Board Application Startup Guide · the version corresponding to the application to be used from the URL below. [Softdevice table] Board Softdevice EBSHCNZWZ S132 EBSLCNZWW

28-Apr.2020 Ver1.1

TAIYO YUDEN CO., LTD.

Page 13|14

TAIYO YUDEN CO., LTD.

6 How to add a new sensor

When adding a new sensor other than the sensor supported by this KIT, the software needs

to be changed. In that case, please refer to "Multisensor Board Beacon-DevGuide_JP"

which describes the software structure and the procedure of the change method and "BLE

Development Guide_JP" which describes the outline of BLE.

The source code of "TY'S Terminal" is also released . So please download it from the URL

below and use it.

Page 14: Multi Sensor Board Application Startup Guide · the version corresponding to the application to be used from the URL below. [Softdevice table] Board Softdevice EBSHCNZWZ S132 EBSLCNZWW

28-Apr.2020 Ver1.1

TAIYO YUDEN CO., LTD.

Page 14|14

TAIYO YUDEN CO., LTD.

Company names, product names, etc. described in the text are registered trademarks or

trademarks of the respective companies. TM, (R) mark, etc. are not specified in the text.

* Apple, Apple logo and Safari are trademarks of Apple Inc., registered in the US and other

countries.

* IPad and iPhone are registered trademarks of Apple inc.

* The iPhone trademark is used under license from アイホン Co., Ltd.

* IOS trademark is used under license from Cisco USA

* App Store is a service mark of Apple Inc.

* Google, Android, Google Chrome, and Google Play are trademarks of Google LLC.

* Thingy and Nordic Thingy are trademarks or registered trademarks of Nordic Corporation.