User's Guide Sensor Evaluation Kit SensorShield-EVK-003 Manual SensorShield-EVK-003 is a Kit, which are included the 8 kinds of Sensor and Shield-EVK-001 which connects Arduino and ROHM Sensor Boards. Shield-EVK-001 will be referred to as "SensorShield" on this manual. Board Information Preparation Arduino Uno 1pc Personal Computer installed Arduino IDE 1pc Requirement : Arduino 1.6.7 or higher Please use Arduino IDE which can be downloaded from the link below: http://www.arduino.cc/ USB cable for connecting Arduino and PC 1pc SensorShield-EVK-003 1pc Setting for Board and Software Table 1. Sensor lineup The following explanation is about a connection method of SensorShield Detail BM1422AGMV-EVK-001 which is I2C connection sensor. Connection Board between Arduino and ROHM Sensor 1. Board (Figure 1) Size: 88mm x 63mm Five I2C Sensors, One I/O Sensor and Two Analog Connect the SensorShield to the Arduino (Figure 2) Sensors can be controlled 5V-3.0/1.8V Level Shifter GPIO : FAIRCHILD FXMA108 I2C : NXP PCA9306 I2C pull-up register is implemented Figure 2. Connection between the Arduino and the SensorShield 2. Figure 1. SensorShield (c) 2018 ROHM Co., Ltd. Connect BM1422AGMV-EVK-001 to the socket of I2C_1 on the SensorShield (Figure 3) 1/4 No. 61UG002 E Rev.001 EApr.2018 Rev.001 SensorShield-EVK-003 Manual 3. Set Voltage of the SensorShield to 1.8V or 3.0V (Figure 3) 4. Set Interrupt of the SensorShield to INTR1 (Figure 3) User's Guide 3. Figure 3. Connection between BM1422AGMV-EVK-001 and Figure 5. Uploading the SensorShield 4. 5. Connect the Arduino to the PC using a USB cable 6. Download BM1422AGMV.zip from the link below: Wait for the message "Done uploading" (Figure 5) Select [Tools]->[Serial Monitor] (Figure 6) http://www.rohm.com/web/global/sensor-shield-support 7. Launch Arduino IDE 8. Select [Sketch]->[Include Library]->[Add.ZIP library...], install BM1422AGMV.zip 9. Select [File]->[Examples]->[BM1422AGMV]->[example]>[BM1422AGMV] Figure 6. Tools Setting Measurement 1. 5. Check log of Serial Monitor (Figure 7) Select [Tools] and check the contents enclosed in the red frame. (Figure 4) Board should be "Arduino/Genuino Uno" and Port should be COMxx (Arduino/Genuino Uno). COM port number is different in each environment. Figure 7. Serial Monitor Figure 4. COM Port setting 2. Write the program by pressing right arrow button for upload (Figure 5) (c) 2018 ROHM Co., Ltd. 2/4 No. 61UG002 E Rev.001 EApr.2018 Rev.001 SensorShield-EVK-003 Manual User's Guide Three kinds of connection method The following explanation is about three kinds of connection methods of I2C Sensor, I/O Sensor and Analog Sensor. 1. I2C Sensor (Example: KX224-I2C) [Setting for Program] Select [File]->[Examples]->[KX224-I2C]->[example]->[KX224I2C] Check log of Serial Monitor according to measurement method [Measurement] Figure 9. Serial Monitor (BD7411G) Get the data of each X, Y, Z axis of KX224-I2C every 500ms and display it.(Figure 8) 3. Analog Sensor (Example: BD1020HFV) [Setting for Program] Select [File]->[Examples]->[BD1020HFV]->[example]>[BD1020HFV] Check log of Serial Monitor according to measurement method [Measurement] Convert the output of BD1020HFV into temperature every 500ms and display a message (Figure 10) Figure 8. Serial Monitor (KX224-I2C) 2. I/O Sensor (Example: BD7411G) [Setting for Program] Select [File]->[Examples]->[BD7411G]->[example]->[BD7411G] Check log of Serial Monitor according to measurement method [Measurement] Check the output of BD7411G every 500ms, and when the output is low, display a message (Figure 9) *Notice : When a program of BD7411G is written, please Figure 10. Serial Monitor (BD1020HFV) remove BD7411G-EVK-001. (c) 2018 ROHM Co., Ltd. 3/4 No. 61UG002 E Rev.001 EApr.2018 Rev.001 Notice Notes 1) The information contained herein is subject to change without notice. 2) Before you use our Products, please contact our sales representative and verify the latest specifications : 3) Although ROHM is continuously working to improve product reliability and quality, semiconductors can break down and malfunction due to various factors. Therefore, in order to prevent personal injury or fire arising from failure, please take safety measures such as complying with the derating characteristics, implementing redundant and fire prevention designs, and utilizing backups and fail-safe procedures. ROHM shall have no responsibility for any damages arising out of the use of our Poducts beyond the rating specified by ROHM. 4) Examples of application circuits, circuit constants and any other information contained herein are provided only to illustrate the standard usage and operations of the Products. The peripheral conditions must be taken into account when designing circuits for mass production. 5) The technical information specified herein is intended only to show the typical functions of and examples of application circuits for the Products. ROHM does not grant you, explicitly or implicitly, any license to use or exercise intellectual property or other rights held by ROHM or any other parties. ROHM shall have no responsibility whatsoever for any dispute arising out of the use of such technical information. 6) The Products specified in this document are not designed to be radiation tolerant. 7) For use of our Products in applications requiring a high degree of reliability (as exemplified below), please contact and consult with a ROHM representative : transportation equipment (i.e. cars, ships, trains), primary communication equipment, traffic lights, fire/crime prevention, safety equipment, medical systems, servers, solar cells, and power transmission systems. 8) Do not use our Products in applications requiring extremely high reliability, such as aerospace equipment, nuclear power control systems, and submarine repeaters. 9) ROHM shall have no responsibility for any damages or injury arising from non-compliance with the recommended usage conditions and specifications contained herein. 10) ROHM has used reasonable care to ensurH the accuracy of the information contained in this document. However, ROHM does not warrants that such information is error-free, and ROHM shall have no responsibility for any damages arising from any inaccuracy or misprint of such information. 11) Please use the Products in accordance with any applicable environmental laws and regulations, such as the RoHS Directive. For more details, including RoHS compatibility, please contact a ROHM sales office. ROHM shall have no responsibility for any damages or losses resulting non-compliance with any applicable laws or regulations. 12) When providing our Products and technologies contained in this document to other countries, you must abide by the procedures and provisions stipulated in all applicable export laws and regulations, including without limitation the US Export Administration Regulations and the Foreign Exchange and Foreign Trade Act. 13) This document, in part or in whole, may not be reprinted or reproduced without prior consent of ROHM. Thank you for your accessing to ROHM product informations. More detail product informations and catalogs are available, please contact us. ROHM Customer Support System http://www.rohm.com/contact/ ZZZURKPFRP 652+0&R/WG$OOULJKWVUHVHUYHG 5% SensorShield-EVK-003 Manual User's Guide Table 2. Connection Area of each sensor Table 3. The Operating Voltage of each sensor Table 4. Device Address of the I2C Sensor (c) 2018 ROHM Co., Ltd. 4/4 No. 61UG002 E Rev.001 EApr.2018 Rev.001