P15-094 OP-Aisa Intel Mint Valley User Manual Identifier P15-094 OP-Aisa Intel Mint Valley User Manual_NoSheng_20160722 Version V1.0 Contact atu.tw@wpi-group.com Author NoSheng Hsieh Date 2016.07.22 Advisor Date 2016.07.22 2016-7-22 1/51 V1.0
Revision history Rev Date Description Author V1.0 2016.07.22 Initial release NoSheng Hsieh 2016-7-22 2/51 V1.0
Table of contents Chapter 1 Introduction 5 1. Features... 5 Chapter 2 Block diagram 5 1. Block diagram... 5 2. Main Board Block Diagram... 6 3. Sensor Board Block Diagram... 7 Chapter 3 Getting Start 8 1. Board hardware: P15-094 OP-Aisa_V1.1... 8 2. Software Version... 8 3. Mode surfing... 9 4. Mix RGB LED palette & Speed control of the DC Motor command... 11 5. Enable UART_B for BLE (Mode 10)... 12 Chapter 4 Mode Explanation 13 2. Humidity & Temperature Sensor... 13 3. Color Sensor... 13 4. UV Sensor... 14 5. Light Sensor... 14 6. Photoresistor... 15 7. Accelerometer (Gravity Sensor)... 15 8. Barometer... 16 9. Gyroscope... 16 10. RGB LED Driver... 17 11. DC Motor... 17 12. Electronic Magnetometer... 18 13. Mode 10: UART_B BLE... 18 Chapter 5 Wi-Fi connectivity 19 1. Wi-Fi Module... 19 2. Main Board Jumper Select for Wi-Fi... 20 3. Console APP of Android OS Mobile Phone with Wi-Fi... 21 4. Console APP of Apple ios Mobile Phone with Wi-Fi... 25 2016-7-22 3/51 V1.0
Chapter 6 BLE connectivity 29 1. BLE Module... 29 2. Main Board Jumper Select for BLE... 29 3. Console APP of Android OS Mobile Phone with BLE... 30 4. Console APP of Apple ios Mobile Phone with BLE... 38 Chapter 7 Connect Wi-Fi & BLE at the same time 50 1. Wi-Fi & BLE Module... 50 2. Enable UART_B for BLE (Mode 10)... 51 2016-7-22 4/51 V1.0
Chapter 1 Introduction 1. Features 1. Communicate other devices with two way connectivity: Wi-Fi & BLE 2. Obtain measurement from sensors to display on the OLED, such as barometer (SPL06-001), Temperature & Humidity Sensor(HDC1080), UV Sensor(VEML6075), Color Sensor(VEML6040), Ambient Light Sensor(VEML6030),Gravity Sensor(ADXL345),Magnetometer(ST480M)and Gyroscope(ST200GC). 3. Motor speed control & RGB LED palette Chapter 2 Block diagram 1. Block diagram Main chip Intel Quark Processor D2000 in Mother board (Main board) connect Sensor Board with Arduino Uno ( 3.3V IO Only ), See Figure 2.1. Figure 2.1 Block Diagram 2016-7-22 5/51 V1.0
2. Main Board Block Diagram Main Board Block Diagram. See Figure 2.2. Figure 2.2 Main Board Block Diagram 2016-7-22 6/51 V1.0
3. Sensor Board Block Diagram Sensor Board Block Diagram. See Figure 2.3. Figure 2.3 Sensor Board Block Diagram 2016-7-22 7/51 V1.0
Chapter 3 Getting Start 1. Board hardware: P15-094 OP-Aisa_V1.1 Board hardware P15-094 OP-Aisa_V1.1 Main Board & Sensor Board,See Figure 3.1. 2. Software Version 圖 3.1 D2000 EVM Board 20160602 Ver0.21,See Figure 3.2 Figure 3.2 2016-7-22 8/51 V1.0
3. Mode surfing Obtain measurement from sensors to display on the OLED, switching measurement of corresponding sensor by press Switch SW1 & SW2 on the Sensor Board. Mode table see Table 3.2 Switch mode and control speed of the motor, mix RGB LED palette with other devices which connected with RF Module (Wi-Fi or BLE) on the Main Board. See Figure 3.3, Table 3.1 Figure 3.3 RF Module Command Wi-Fi Module Double digits, e.g. 11 22...99 BLE Module Sensor mode Switch Table 3.1 Mode Command 2016-7-22 9/51 V1.0
Mode Sensor I 2 C 7-bits Address Note -- OLED Display 0x3D QG-2864KLBLG01 Current measurement of corresponding sensor 1 H&T Sensor 0x40 HDC1080 thermometer, Relative Humidity 2 Color Sensor 0x10 VEML6040 Measurement component of three light beams (one red, one green and one blue) and superimposed white. 3 UV Sensor 0x10 VEML6075 measure UVA and UVB wavelength of light 4 ALS Sensor 0x48 VEML6030 ambient light measurement. 5 Photoresistor -- GL5528 Conductivity reaction by ambient light 6 Gravity Sensor 0x1D ADXL345 measurement at up to ±16 g. 7 Barometer 0x77 SPL06-001 Atmospheric pressure & thermometer 8 Magnetometer 0x0D ST480M 3-Axis Electronic Magnetometer 9 RGB LED Driver 0x38 NCP5623 Drive RGB LED DC Motor -- TMBT3904 Drive Motor 10 UART_B BLE -- Enter mode 10 by SW1 & SW2 on Sensor Board only, turn on UART_B BLE by press both the Switch simultaneously. Table 3.2 Function Mode 2016-7-22 10/51 V1.0
4. Mix RGB LED palette & Speed control of the DC Motor command Mode 9 (RGB LED Driver / Motor mode) mix RGB LED palette and speed control of the DC Motor with command. See Figure 3.4 & Table 3.3 Figure 3.4 Mode 9 Description Illustration xp : for PWM with 50mS per step. x could be 0 ~ 9 Motor mode P could be Capital or lower case,indicated PWM 5P, 0P RGB LED Driver mode xr xg xb xw : illuminate light beams of the RGB LED. x could be 0 ~ 9 R, G, B, W could be Capital or lower case,indicated PWM Red Green Blue White Table 3.3 Mode 9 control 3R, 6G, 9B, 1W 2016-7-22 11/51 V1.0
5. Enable UART_B for BLE (Mode 10) Enter Mode 10 by SW1 & SW2 on Sensor Board only. Turn on UART_B BLE by press both the Switch simultaneously. Default : OFF (JTAG) See Figure 3.5 Figure 3.5 Mode 10 UART_B BLE 2016-7-22 12/51 V1.0
Chapter 4 Mode Explanation 2. Humidity & Temperature Sensor TI HDC1080 is a low power, high accuracy digital Humidity & Temperature Sensor. Relative Humidity Accuracy ±2% (typical) Temperature Accuracy ±0.2 C (typical) Range of Ambient Operating Temperature: -40 ~ +125 C Range of Relative Humidity :0%~100% See Figure 4.1 Figure 4.1 Humidity & Temperature Sensor 3. Color Sensor Vishay RGBW Color Sensor VEML6040 color sensor measure component of three light beams (one red, one green and one blue) and superimposed white. Integration time setting = 80mS and G sensitivity =0.09 lux Maximum detection range: 5898.24 lux. See Figure 4.2 Figure 4.2 Color Sensor 2016-7-22 13/51 V1.0
4. UV Sensor Vishay UV (ultraviolet) Sensor VEML6075 measure UVA and UVB wavelength of light. See Figure 4.3 所示 Figure 4.3 UV Sensor 5. Light Sensor Vishay ALS(Ambient Light Sensor) VEML6030 ambient light measurement. SENSITIVITY = 0.042 (lx/bit) Maximum detection range:2752.512 lux. See Figue 4.4 Figure 4.4 Light Sensor. 2016-7-22 14/51 V1.0
6. Photoresistor Cadmium sulfide (CdS) Photoresistor GL5528 conductivity reaction by ambient light, logarithmic ratioγ:0.6. See Figure 4.5 Figure 4.5 Photoresistor 7. Accelerometer (Gravity Sensor) ANALOG DEVICE ADXL345 is a ultralow power, 3-axis accelerometer with high resolution (13-bit) measurement at up to ±16.SPI (3- or 4-wire) or I2C digital interface. I 2 C 7-bits Address : 0x1D. See Figure 4.6 Figure 4.6 Gravity Sensor 2016-7-22 15/51 V1.0
8. Barometer The SPL06-001 is a miniaturized Digital Barometer Air Pressure Sensor with a high 微 accuracy and low current consumption. The SPL06-001 convert both measurement results to true pressure and temperature value with serial I 2 C or SPI interface. Typical Applications: Indoor Navigation Health and Sports Outdoor Navigation Weather station I 2 C 7-bits Address : 0x77 See Figure 4.7 Figure 4.7 Pressure Sensor 9. Gyroscope The ST200GC is a single-chip embedded tri-axis MEMS angular rate sensor, digital output X-, Y-, and Z-Axis angular rate sensors(gyros) on the integrated circuit. 2000º/s factory set full scale range. I 2 C 7-bits Address = 0x69 at Pin 9 (AD0) connect to GND. See Figure 4.8 Figure 4.8 Gyroscope 2016-7-22 16/51 V1.0
10. RGB LED Driver ON Semiconductor NCP5623 The NCP5623 mixed analog circuit is a triple output LED driver dedicated to the RGB illumination or backlight LCD display. I 2 C 7-bits Address : 0x38. See Figure 4.9 Figure 4.9 RGB LED Driver 11. DC Motor Drive DC Motor with TOSHIBA NPN Transistor TMBT3904. Speed Control with Intel Mint Valley D2000 PWM Pin function F_24 PWM1 (PWM Output 1) on the Main Board. See Figure 4.10 Figure 4.10 Motor with driver 2016-7-22 17/51 V1.0
12. Electronic Magnetometer The ST480M is an integrated 3-axis magnetometer with signal processing circuitry. The ST480M has ±48 gauss Full Scale Range to provide multi-domain application. I 2 C 7-bits Address : 0x0D See Figure 4.11 圖 4.11 Electronic Magnetometer 13. Mode 10: UART_B BLE Enter mode 10 by SW1 & SW2 on Sensor Board only, enable UART_B BLE by press both the Switch simultaneously. Default : OFF (JTAG) See Figure 3.5 See Figure 4.12 Figure 4.12 Sensor Board SW1 SW2 2016-7-22 18/51 V1.0
Chapter 5 Wi-Fi connectivity 1. Wi-Fi Module Implement Wi-Fi Connectivity with MXCHIP Module EMW3088. See Figure 5.1 Figure 5.1 MXCHIP Module EMW3088 2016-7-22 19/51 V1.0
2. Main Board Jumper Select for Wi-Fi P15-094 OP-Aisa_V1.1 Main Board selects UART_A for connected with Wi-Fi Module. See Figure 5.2 Figure 5.2 Jumper Select for Wi-Fi 2016-7-22 20/51 V1.0
3. Console APP of Android OS Mobile Phone with Wi-Fi TCP/IP Client works as a console APP of Android OS Mobile Phone, which used to Mode surfing, Motor Speed Control and mix RGB LED palette. 1. e.g., TCP Client in the Play Store. See Figure 5.3 Figure 5.3 TCP Client 2. Turn on Wi-Fi to connect with Wi-Fi AP of the MXCHIP Module EMW3088,SSID is MXCHIP96A66B in the figure. See Figure 5.4 Figure 5.4 AP MXCHIP_96A66B 2016-7-22 21/51 V1.0
3. Launch TCP Client, add a new item : Fill anything you want in Name field IP : 10.10.10.1 Port : 8080 See Figure 5.5 Figure 5.5 Add a item 5. Show Connected when connect successfully. Get measurement of the H&T Sensor in Mode 1. See Figure 5.6 Figure 5.6 Connected 2016-7-22 22/51 V1.0
6.Typing Table 3.1 Mode Command content,double digits for Sensor mode switching. See Figure 5.7 Figure 5.7 Mode command 7. Angular rate measurement of the gyroscope in Mode 8. See Figure 5.8 Figure 5.8 angular rate measurement of the gyroscope 2016-7-22 23/51 V1.0
8. Type command of the Table 3.3 Mode 9 control in Mode 9 (RGB LED Driver / Motor mode) to control Motor Speed and mix RGB LED palette. See Figure 5.9 Figure 5.9 Mode 9 9. Table 3.3 Mode 9 control in Mode 9 (RGB LED Driver / Motor mode) to control Motor Speed and mix RGB LED palette. See Figure 5.10 Figure 5.10 Mode 9 control 2016-7-22 24/51 V1.0
4. Console APP of Apple ios Mobile Phone with Wi-Fi TCP tool works as a console APP of Apple ios Mobile Phone, which used to Mode surfing, Motor Speed Control and mix RGB LED palette. 1. e.g., TCP in the APP Store. See Figure 5.11 Figure 5.11 TCP tool 2016-7-22 25/51 V1.0
2. Turn on Wi-Fi to connect with Wi-Fi AP of the MXCHIP Module EMW3088,SSID is MXCHIP96A66B in the figure. See Figure 5.12 所示 Figure 5.12 Wi-Fi MXCHIP96A66B 3.Launch TCP tool,ip : 10.10.10.1 Port : 8080, touch 連接 See Figure 5.13 Figure 5.13 TCP tool 2016-7-22 26/51 V1.0
4. Type Table 3.1 Mode Command content in text field,double digits for Sensor mode switching. Measurement of sensors shows in the prompt field. See Figure 5.14 Figure 5.14 H&T Sensor 2016-7-22 27/51 V1.0
5. Type command of the Table 3.3 Mode 9 control in Mode 9 (RGB LED Driver / Motor mode) to control Motor Speed and mix RGB LED palette. See Figure 5.15 Figure 5. Mode 9 control 2016-7-22 28/51 V1.0
Chapter 6 BLE connectivity 1. BLE Module Module QN9022 BLE is based on NXP QN9022.See Figure 6.1 Figure 6.1 NXP QN9022 BLE 2. Main Board Jumper Select for BLE P15-094 OP-Aisa_V1.1 Main Board selects UART_A for connected with BLE Module. See Figure 6.2 Figure 6.2 Jumper Select for BLE 2016-7-22 29/51 V1.0
3. Console APP of Android OS Mobile Phone with BLE BLE Scanner works as a console APP of Android OS Mobile Phone, which used to Mode surfing, Motor Speed Control and mix RGB LED palette. 1. e.g., BLE Scanner in the Play Store. See Figure 6.3 2. Turn on Bluetooth. See Figure 6.4 Figure 6.3 BLE Scanner Figure 6.4 Turn on Bluetooth 2016-7-22 30/51 V1.0
2. Turn on Bluetooth from pop-up window when launch APP. See Figure 6.5 圖 6.5 3. Turn on Bluetooth from pop-up window when launch APP. See Figure 6.6 Figure 6.6 2016-7-22 31/51 V1.0
4. Touch CONNECT to connect NXP BLE. See Figure 6.7 Figure 6.7 2016-7-22 32/51 V1.0
5.NXP QN9022 BLE module provide three services, First one is service DIS with UUID 180A.Indicate information from the module, e.g. version, manufacturer. Secondary service is WeChat with UUID FEE7. The last one is private service with UUID FEE9, which used to transparent data. See Figure 6.8 Figure 6.8 private service with UUID FEE9 2016-7-22 33/51 V1.0
6. Private service has two characteristics, one is WRITE,another is Notify. See Figure 6.9 Figure 6.9 2016-7-22 34/51 V1.0
7. Choose WRITE to type Table 3.1 Mode Command content,double digits for Sensor mode switching. See Figure 6.10 Figure 6.10 2016-7-22 35/51 V1.0
8. Choose Notify to read measurement of sensors. UV indicator value as shown in the Figure 6.11 Figure 6.11 2016-7-22 36/51 V1.0
9. Type command of the Table 3.3 Mode 9 control in Mode 9 (RGB LED Driver / Motor mode) to control Motor Speed and mix RGB LED palette. Measurement of the H&T Sensor in Mode 1 as shown in the Figure 6.12 Figure 6.12 2016-7-22 37/51 V1.0
4. Console APP of Apple ios Mobile Phone with BLE Bluetoolz works as a console APP of Apple ios Mobile Phone, which used to Mode surfing, Motor Speed Control and mix RGB LED palette. 1. e.g., Bluetoolz in the APP Store. See Figure 6.13 Figure 6.13 2016-7-22 38/51 V1.0
2. Turn on Bluetooth. See Figure 6.14 Figure 6.14 Turn on Bluetooth 3. Scan & connect NXP BLE by launch APP Bluetoolz. Figure 6.15 Figure 6.15 Scan & connect NXP BLE 2016-7-22 39/51 V1.0
4. Connect State shows Connected when connected. See Figure 6.16 Figure 6.16 NXP BLE 2016-7-22 40/51 V1.0
5. NXP QN9022 BLE module provide three services, First one is service DIS with UUID 180A.Indicate information from the module, e.g. version, manufacturer. Secondary service is WeChat with UUID FEE7. The last one is private service with UUID FEE9, which used to transparent data. See Figure 6.17 Figure 6.17 2016-7-22 41/51 V1.0
6. Write service with Characteristic UUID xxx9600, at the first edit form to UTF-8 encode. See Figure 6.18 Figure 6.18 2016-7-22 42/51 V1.0
7. Edit form to UTF-8 encode. See Figure 6.19 Figure 6.19 2016-7-22 43/51 V1.0
8. Touch Write to type value in UTF-8 encode. See Figure 6.20 Figure 6.20 2016-7-22 44/51 V1.0
9. Typing Table 3.1 Mode Command content,double digits for Sensor mode switching. See Figure 6.21 Figure 6.21 2016-7-22 45/51 V1.0
10. Typing Table 3.1 Mode Command content,double digits for Sensor mode switching. See Figure 6.22 Figure 6.22 2016-7-22 46/51 V1.0
11. Back to Notify service with Characteristic UUID xxx9601. See Figure 6.23 Figure 6.23 Notify service 2016-7-22 47/51 V1.0
12. Edit form to UTF-8 encode, it s same as mentioned above. Touch Listen Notify to enable listening. Angular rate of gyroscope in Mode 8 as shown in the Figure 6.24 Figure 6.24 2016-7-22 48/51 V1.0
13. Type command of the Table 3.3 Mode 9 control in Mode 9 (RGB LED Driver / Motor mode) to control Motor Speed and mix RGB LED palette. See Figure 6.25 Figure 6.25 2016-7-22 49/51 V1.0
Chapter 7 Connect Wi-Fi & BLE at the same time 1. Wi-Fi & BLE Module P15-094 OP-Aisa_V1.1 Main Board Selects UART_A for connected to Wi-Fi Module, UART_B connect to BLE Module. Remove TCK/RXD Jumper Head of the JTAG/UART Jumper, make writing of the BLE fluent. See Figure 7.1 Figure 7.1 Wi-Fi & BLE Module Jumper 2016-7-22 50/51 V1.0
2. Enable UART_B for BLE (Mode 10) Enter mode 10 by SW1 or SW2 on Sensor Board only, enable UART_B BLE by press both the Switch simultaneously. Default : OFF (JTAG),See Figure 7.2 Figure 7.2 Sensor Board SW1 & SW2 2016-7-22 51/51 V1.0