Home
GestureR User Manual
Contents
1. Table 4 Number of Measurement Cycles Setting 4 1 5 5 Resolution Measuring Duration Setting Select measuring resolution and measuring duration by setting RES 1 0 register Address 02H If resolution is low measuring tolerance becomes large Please have an adjustment at your system RES 1 0 Resolution Measurement Duration Remarks 10 10 bit 0 39 ms Not Recommended 11 8 bit 0 098ms Not Recommended Table 5 Resolution Measuring Duration Setting 4 1 5 6 Maximum Measurable Range Select maximum measurable range by setting RANGE 2 0 register Address 02H Detect with a set range Maximum count value is outputted in case of incident light exceeding maximum measurable range Changing maximum measurable range detection result count is also change In case of considering 000 x1 setting as x1 time count would be 1 2 times at 001 x2 setting 1 4 times at 010 x4 setting Adjusting 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com detecting distance by proximity low threshold TL 15 0 and TH 15 0 It is necessary to set them considering the condition in the actual use and evaluating at your system RANGE 2 0 Maximum Measurable Range Remarks 000 x 1 Not Recommended 010 x4 Not Recommended 011 x8 Not Recommended 100 x 16 Not Recommended 101 x 32 Not Recommended 110 x 64 Not Recommended 111 x 128 Not Recommended
2. Table6 Maximum Measurable Range 4 1 5 7 LED Drive Peak Current Setting Enable to select LED drive peak current by setting IS 2 0 register Address 03H In case of changing this setting the count will change correspond to the set LED drive peak current Please adjust detecting distance with proximity low threshold TL 15 0 and proximity high threshold TH 15 0 LED drive peak current will depend on Vcc voltage Refer to 12 1 LED drive peak current data IS 2 0 LED Drive Peak Current Remarks 000 17 5mA Not Recommended 001 35mA Not Recommended 010 70mA Not Recommended Table 7 LED Drive Peak Current 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com 4 1 5 8 LED Pulse Setting Select LED pulse setting by setting SUM 2 0 register Address 03H If LED pulse setting is low measuring tolerance becomes large Please have an adjustment at your system Number of LED pulses can be changed from 2 times to 128 times SUM 2 0 LED Pulse Setting Remarks 000 NA Not Recommended 001 x 2 times Not Recommended 010 x 4 times Not Recommended 011 x 8 times Not Recommended 110 x 64 times Not Recommended 111 x 128 times Not Recommended Table 8 LED Pulse Setting 4 1 5 9 LED Pulse Width Setting Select LED pulse width setting by setting PULSE 1 0 register Address 03H PULSE 1 0 LED Pulse Width Remarks 6
3. GestureR User Manual June 5 2014 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com GestureR User Manual Page 2 32 E o Table of Contents MEM iiis pm 6 CHER ic fee SU M TS 6 2 1 GestureR r bh 6 2 2 GestureR SHIELD ULTRA mmsvovorororvrrrrrrrrrrrrrrrrrrrrrrrrsrrrrrrsrsrrrrrrrrrssrrersrrrsrsrsrerseree 7 2 3 Gest reR BREAD tt em 9 2 4 Gest reR TINY EE 10 3 Arduino Sample EREEHIOHENeeeee gege ee ee oed ovde inne 11 4 Using Sensor Directly With 1268 sicsccscsieecssescnenebanenenedesivessgudduevedesiventbay loess divessgesiesnedacieee 11 4 1 Gesture and Proximity Sensing GS Part 11 4 1 1 12C Slave Address for avse 11 4 1 1 1 Write Format E 12 412 Read E 12 4 1 2 Basic Operation for Gesture Sensor and Proximity Sensor Mode 13 LABCNEM duse 14 4 1 4 Register Functions E 15 4 1 5 Register Settings for Gesture and Proximity Gensimg 15 4151 GS Detection ResukLv uusresusanenmsssminemmuinenviusme 15 4 1 5 2 Output Value of Sensing Result for Detection non detection 16 4 1 5 3 Output Value of Interrupt esu 16 4 1 5 4 Number of Measurement Cycles Setting ssssssesss 17 4 1 5 5 Resolution Measuring Duration Setting sesseeeeeeee 17 4 1 5 6 Maximum Measurable Hange ENNEN 17 4 1 5 7 LED Drive Peak Current Gettng 18 4 1 5 8 LED Pulse Setting ocx
4. All rights reserved grabo ideas gmail com GestureR User Manual 4 1 3 Register Mapping initial ADDRESS REG NAME ADDRESS pr pe ps p pi pr Di Do vae eene c ae Dl Ran NA SEE SEL seo ee RE Gor n Lien erp RSID E RANGO RANGE RANGE SS 380 suM2 SUMI SUMO PULSEL PULSED r f r br INT LT ISB TU INT LT MSB TU m SC SC SC TLO TE os ret cas mo ms ms me ms mn mer me pr Lem eme TN me me osm os paran mse OS Do 7 OS Do 6 Os Do 5 Os Do alos Do 3 OS Do 2 OS Do 1 oH Jos parao mss DT los po kee Do lee po njos Do 10 os Do 9 oa Jo re se os mrs os pi o os pi s os pr ajos Dr sos Dra os BL EE Os DATA2 MSB OS D2 7 OS D2 6 ODH OS DATA2 MSB ges os patas MSB OS Ds 7 OS Ds 6 OS D3 5 Os D3 alos D3 3 OS D3 2 OS D3 I ies EES dos m jos n Los p uos s os DATAO LSB ES up DATAOMSB Fs MANN oe um paraires Di7 Die DLS 3H DATAIMSB S im parans 1 168 DATASISB mn Joss mp pArA4MSB Table 2 Register Mapping for GS Please start setting registers after power supply voltage becomes stable up to 90 or more set value Please wait for some 1msec before setting registers from power on PROX FLAG registers are able to be cleared by writing 0 data in each register but these registers can t be written 1 data Please don t set the address
5. ET 19 4 1 5 9 LED Pulse Width Setting enee gie EES 19 4 1 5 10 Gesture and Proximity Low Threshold Loff sesssesesssssss 19 4 1 5 11 Gesture and Proximity High Threshold Con 20 4 1 5 12 Gesture Offset Offset iini rci cinta brio dt neta eimi Ea bti cepi cade 20 4 1 6 Register Setting for Basic Operation 20 LR SPEI du imis E 20 4 1 6 2 Auto Shutdown Continuous Operation rxrrrrnnnvrrrnnnnnnnnrrnnnnrrrnnnnnnnrrrrnnnnnn 20 4 1 6 3 Intermittent Operating Function essseeeeeennmn 21 4 1 6 4 Interrupt Data Setlingi isie reir ta Ep ER Ern pna RARE UE NE I Xx UREK UR EMM Ka En MENO 21 4 1 6 5 INT Terminal Setting isos ona alates doter eiu dani bp tia seeders ipta 22 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com GestureR User Manual 4 1 6 6 Interrupt Type Setting ENEE 22 4 1 6 7 Software Reset ER 22 4 1 7 INT Terminal Output Mode 23 4 1 7 1 Proximity Detection non detection Sensing Result Output Mode 23 4 1 7 2 Interrupt Output Mode AAA 23 4 2 Ambient Light Sensing ALS Part 25 42 1 126 Slave Address f r ALS coe tt oene ser deeg eENEdeE Seeche 25 4 2 1 1 ALS S cipum E 25 2212 AS Read Format m M 25 4 2 2 Basic Operation for Ambient Light Sensor ALS Mode ssssssssseeenneeen 26 4 2 3 Register Mapping mtm 26 42 4 eimi E 27 4 2 5 Register Settings for Ambient
6. an Los Dem pom pom pon a LEE 1771 TI Timeaf I on o mrve o o o 9 o o Ho Rw n mrvanimrvaro o o Pm pmo o rst Ho Rw oan rm tes ms ma ms 72 mi 700 Hoo Rw om m7 mel m po3 m3 m1 poo Bw amp opm Dois pe o3 peis por polo pos pos mo oH Di7 Die Dis nia pis Di2 Dir pro Hoo R o Dis Dr 14 Dr gs Di 2 Din prio pro prs Ho R Table 15 Register Mapping for ALS Please start setting registers after power supply voltage becomes stable up to 90 or more set value 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com Please wait for some 1msec before setting registers from power on FLAG A registers are able to be cleared by writing 0 data in each register but these registers can t be written 1 data Please don t set the address 12H and the larger ones Test registers are assigned in those addresses 4 2 4 Register Functions Software shutdown O shutdown 1 operation Auto shutdown Continuous operation 0 auto shutdown 1 continuous operating function Operating mode selection 01 ALS ALS interrupt result 0 non interrupt 1 interrupt PRST 1 0 Number of measurement cycles 00 once 01 4 cycles 10 8 cycles 11 16 cycles 01H RES A 2 0 ALS Resolution 000 8bits 0 39msec to 111 19bits 800msec RANGE A 2 0 ALS Maximum measurable r
7. 0 Figure 13 The Built in Photodiodes Position PDO PD1 PD2 PD3 PhotodiodeO PDO Photodiode1 PD1 Photodiode2 PD2 Photodiode3 PD3 count value is stored to the raw count of DO 13 0 count value is stored to the raw count of D1 13 0 count value is stored to the raw count of D2 13 0 Se 2 2 wa count value is stored to the raw count of D3 13 0 4 1 5 2 Output Value of Sensing Result for Detection non detection Sensing result for detection non detection is output There is a function which clears data by writing 0 in PROX register PROX register Address 00H 0 non detection 1 detection 4 1 5 3 Output Value of Interrupt Result FLAG register is output interrupt result There is a function which clears by writing O in d FLAG register FLAG register Address 00H 0 non interrupt 1 interrupt 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com 4 1 5 4 Number of Measurement Cycles Setting Select number of measurement cycles by setting PRST 2 0 register Judgment result for detection non detection is over threshold continuously more than the set cycles in PRST 2 0 register This judgment result is done in using the detection result of distance D4 15 0 PRST 2 0 Persistence Cycle Remarks Locke Recommended Gesture 001 2 cycles 010 3 cycles 011 4 cycles 100 5 cycles 101 6 cycles 110 7 cycles 111 8 cycles
8. 11 us Not Recommended 10 4 58 us Not Recommended 11 3 82 us Not Recommended Table 9 LED pulse Width Setting 4 1 5 10 Gesture and Proximity Low Threshold Loff Sets proximity low threshold in TL 15 0 register at PS mode Please set it with confirming at optical mounting condition in the actual use 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com 4 1 5 11 Gesture and Proximity High Threshold Lon Sets proximity high threshold in TH 15 0 register at PS mode Please set it with confirming at optical mounting condition in the actual use 4 1 5 12 Gesture Offset Offset Sets proximity offset in PO 13 0 register at PS mode If there is Panel crosstalk you will be able to subtract the Panel crosstalk count by using proximity offset Please set it with confirming at optical mounting condition in the actual use 4 1 6 Register Setting for Basic Operation 4 1 6 1 Software Shutdown Control power supply to the circuit LED drive circuit is always off in shutdown mode After power on start with shutdown mode OP 3 register Address 00H 0 shutdown mode 1 operating mode 4 1 6 2 Auto Shutdown Continuous Operation Select auto shutdown mode or continuous operating mode After shutdown OP 3 register will be automatically cleared OP 2 register Address 00H 0 auto shutdown mode 1 continuous operating mode 2014 06 05 Copyright 2014 Grabo Ideas All rig
9. 19H and the larger ones Test registers are assigned in those addresses 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com GestureR User Manual 4 1 4 Register Functions detection non detection 0 non detection 1 detection interrupt result 0 non interrupt 1 interrupt Intermittent operating 00 Omsec 01 1 56msec 10 6 25msec 11 25msec The interrupt data setting 000 D0 13 0 001 D1 13 0 010 D2 13 0 011 D3 13 0 100 D4 15 0 101 111 not allowed INT terminal setting OPLAG 1 PS Detection Non detection Interrupt type setting 0 level 1 pulse Software Reset 0 not reset 1 reset PRST 2 0 Number of measurement cycles 000 once 111 Scycles RES 1 0 Resolution 00 1 4bits 6 25msec 01 12bits 1 56msec 10 10bits 0 39msec 11 8bits 0 1msec RANGE 0 Maximum measurable range 000 x1 111 x128 SUM LED drive peak current setting 000 17 5mA 001 35 0mA 010 70mA 011 140mA 111 193mA 2 0 LED pulse setting 000 not allowed 001 x2 to 111 x128 PULSE LED pulse width se setting 16us 01 6 1lus 10 4 58us 11 3 82us o4H 05H TL Lowthresholdseting LofO l6bitscountssettng S osuozH TH High threshold setting Lon l bitscountsseting OHH Jm fDATa0result i4bitsoutputdataofPhotodiodeO i8H 19H D4 DATAO DATA3sum t6bits output data of all Photodiode D4 D0 D1 D2 D3 Table3
10. Interrupt Output Pulse Interrupt Type 4 2 6 6 Intermittent Operating Function Enable to change intermittent operating periods by setting INTVAL 1 0 register Address 03H 00 0 time 01 4 times 10 8 times 11 16 times Intermittent operating will be done during setting period in RES_A 2 0 Resolution measuring time by the number of times set by INTVAL 1 0 register For ALS mode in case of RES A 2 0 011 16bit setting measuring period 100ms and INTVAL 1 0 01 4 intermittent operating cycles quiescent operation time will be 400ms 100ms x 4 times Although setting a longer intermittent operating period contributes to reduce average consumption current it makes update period and response time for detection longer as a result Need to set it considering your actual conditions in use Ambient light sensor ALS mode INTVAI 1 0 01 4 times setting Intermittent operating cycle 4times o t e tc e e st Table 21 Intermittent Operating for Each Mode 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com 4 2 6 7 INT Terminal Setting Select output mode in INT terminal by setting PIN register Address 03H The outputs by INCLUSIVE OR FLAG_P FLAG_A FLAG_P FLAG_A PROX can be selected PIN 1 0 Setting Output Data 01 Interrupt output for ALS mode only FLAG_A Table 22 INT Terminal Setting 4 2 6 8 Software Reset Initialize all registers by wr
11. i interface Bit width 2 DENA Eero COENCTTUTEH D ae A ACK NA NACK S START P STOP X don t care L Master output E save output Figure 11 GS I2C Read Format 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com 4 1 2 Basic Operation for Gesture Sensor and Proximity Sensor Mode The device can detect proximity objects by which integrates incident light in IR infrared photodiode during the time without emission of LED LED off and the time with emission of LED LED on in order to eliminate the influence of ambient light The way of detection is as follows 1 In LED on off period this device store a signal charge which is subtracted LEDoff period charge from LEDon period charge automatically Recommend setting for SUM 2 0 is 16times of LED pulses 2 In Count period this device convert from a signal charge to digital value Recommend setting for RES 1 0 is 14bit resolution 3 Then obtain detection result by subtracting the influence of ambient light By using this value proximity sensing judgment is done if reflective object is there or not Gesture sensing 18 4usec LED on off period Count period 16 times 6 25msec at 14bit resolusion DO 13 0 PDO result D1 13 0 PDI result D2 13 0 PD2 result D3 13 0 PD3 result prximity result PDO PDI PD2 PD3 Figure 12 Output Results for GS Mode 2014 06 05 Copyright 2014 Grabo Ideas
12. 00H 01 ALS mode Detection result of clear photodiode is output to D0 15 0 register Address OCH ODH Detection result of infrared photodiode is output to D1 15 0 register Address OEH OFH 00 10 11 not allowed Please always be set to 01 in this register 4 2 6 4 Number of Measurement Cycles Setting Select number of measurement cycles by setting PRST 1 0 register Output interrupt result or judgment result for detection non detection in case detection result is over threshold continuously more than the set cycles in PRST 1 0 register Address 01H 00 1cycle 01 4cycles 10 8cycles 11 16cycles 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com 4 2 6 5 Interrupt Type Setting Select level interrupt type or pulse interrupt type INTTYPE register Address 02H 0 level interrupt type In this case transition from H to L in INT terminal become occurring interrupt signal and INT terminal will hold L level until interrupt is cleared level interrupt type INT terminal High HSL Table 19 Interrupt Output Level Interrupt Type 1 pulse interrupt type In this case L pulse output in INT terminal become occurring interrupt signal and INT terminal will not hold L level Therefore we need not to clear interrupt flag FLAG_P FLAG_A FLAG_P and FLAG_A are cleared automatically in 1 clock about 1 5us pulse interrupt type High INT terminal Dal Low Table 20
13. Description of Register Functions for GS 4 1 5 Register Settings for Gesture and Proximity Sensing 4 1 5 1 GS Detection Result Gesture sensing results can be read at DO 13 0 D1 13 0 D2 13 0 D3 13 0 and D4 15 0 register Address 10H 19H through I2C bus interface The device outputs raw data of the four IR photodiodes sensitive to only infrared spectrum gesture sensing It is necessary for device host user side to get detection results with calculation of gesture values for each channel data at DO 13 0 D1 13 0 D2 13 0 D3 13 0 and total value of each channel data at D4 15 0 Detection result is defined as follows Detection result DO 13 0 Raw count D0 13 0 include panel crosstalk Offset OS D0 13 0 Detection result D1 13 0 Raw count D1 13 0 include panel crosstalk Offset OS D1 13 0 Detection result D2 13 0 Raw count D2 13 0 include panel crosstalk Offset OS D2 13 0 Detection result D3 13 0 Raw count D3 13 0 include panel crosstalk Offset OS D3 13 0 Gesture detection If the detected object on the right DO 13 0 D3 13 0 gt D1 13 0 D2 13 0 ifthe detected object on the left D0 13 0 D3 13 0 lt D1 13 0 D2 13 0 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com If the detected object on the top D0 13 0 D1 13 0 gt D2 13 0 D3 13 0 If the detected object on the bottom DO 13 0 D1 13 0 lt D2 13 0 D3 13
14. Light Gensimg 27 4 2 5 1 ALS Detection result Lunde 27 4 2 5 2 Output Value of ALS Interrupt Result kee 28 4 2 5 3 Resolution Measuring Duration Setting for ALS Mode 28 4 2 5 4 Maximum Measurable Range for ALS Mode rnrrrrnnnnnnnrnnnnnnvrrrnnnnnnnrrrnnnnnr 29 4 2 5 5 ALS interrupt Low Thbresbold AA 29 4 2 5 6 ALS interrupt High Threshold Lusemmnissmmessmenmisssmmoejsunvsennesnt 29 4 2 6 Register Settings for Basic Operation 30 4 2 6 1 SOMwvare SHUIGOW E 30 4 2 6 2 Auto Shutdown Continuous Operation axarrrnnnvrrrnnnnnnnvnvnnnnrrrrnnnnnnnerrnnnnnn 30 4263 Operating Mode Selection erri ENKEN nude 30 4 2 6 4 Number of Measurement Cycles Setting rrrnnrrrrnnnnnnnonrnnnnrrrnnnnnnnnerrnnnnnn 30 4 2 6 5 Interrupt Type Gettmg ENEE 31 4 2 6 6 Intermittent Operating Function ssseseeeennmm 31 42 5 7 INT Terminal Sellig iussit t sped SR RE Pu EEGENEN EUNDI EN MESE 32 4 2 6 8 Software Reset IT eatectcnaiteti ie ae sapcnsddespemeccnendeladuepednaeoieecianiaeeas 32 4 2 7 INT Terminal Output Mode AEN 32 4 2 7 1 Interrupt Output MOGG iin enit coa ei nti cinta e misere meuendetatin 32 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com Grabo GestureR User Manual Figures Figure 1 GestureR SHIELD MT 6 Figure 2 Pin Configurations of GestureR GHIEL D 7 Figure 3 GestureR SHIELD ULTRA e 8 Figure 4 Pin Config
15. Read Format Enable to read data in register Following address can be read sequentially by inputting ACK after reading data Reading data will be stopped by inputting NACK Stop condition after setting Word address can be deleted since it corresponds to repeat start condition Reading read data is done by not opening 12C bus interface Bit width 7 SCC ES CGENCTYUTEHB O Be A ACK NA NACK S START P STOP X don t care CJ Master output L Slave output Figure 18 ALS I2C Read Format 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com GestureR User Manual 4 2 2 Basic Operation for Ambient Light Sensor ALS Mode There are 2 photodiodes CLEAR sensitive to visible and infrared spectrum and IR photodiodes sensitive to only infrared spectrum in this sensor Illuminance value can be obtained by calculation from CLEAR and IR data The device continues to execute integration operation until set measuring time 100msec recommended passes and then outputs the results of CLEAR photodiode at D0 15 0 register and IR photodiode at D1 15 0 register Illuminance value can be obtained by some calculation using DO 15 0 and D1 15 0 Ambient light sensor mode Ep E aa clear Ep E aa result infrared result infrared result infrared result infrared result Figure 19 Output Results for ALS Mode 4 2 3 Register Mapping DATA Initial X ee Lx 1 I 3I ve
16. an be read via I2C bus SLAVE ADDRESS DATA DATA A beem ee S T M L RA A M L A A S S C CS S c R B B WK K B B K T P oa Ja ss Jaffa fa foo Pops Jos Je or foo b pps fps pe os gt gt gt Figure 9 12C Basic Data Format 4 1 Gesture and Proximity Sensing GS Part 4 1 1 12C Slave Address for GS SLAVE ADDRESS ADDR terminal setting A6 A5 A4 A3 A2 A1 AO R W Slave address 1 0 0 0 1 0 1 X R W Read X 1 Write X 0 Table 1 12C Slave Address for Gesture and Proximity Sensing 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com 4 1 1 1 Write Format Write value in register and enable to write the next address sequentially after writing data Data writing will be end with inputting stop condition WordAddress 00H PROX FLAG register in OOH are read only WordAddress 10H 19H D0 13 0 D1 13 0 D2 13 0 D3 13 0 and D4 15 0 registers from 10H to 19H are read only Bit width LS Lo Km KSC E A ACK NA NACK S START P STOP X don t care TT Master output L Slave output Figure 10 GS I2C Write Format 4 1 1 2 Read Format Enable to read data in register Following address can be read sequentially by inputting ACK after reading data Reading data will be stopped by inputting NACK Stop condition after setting Word address can be deleted since it corresponds to repeat start condition Reading read data is done by not ome 12C
17. ange 000 x1 to 111 x128 INTVAL 1 0 Intermittent operating 00 0 01 4 times 10 8 times 11 16 times f 00 ALS or PS 01 ALS 10 PS Bae INT terminal setting 11 PS Detection Non detection Software Reset O not reset 1 reset 04H 05H ALS low threshold setting 16bits counts setting 06H 07H ALS High threshold setting 16bits counts setting 00H LLL OCH ODH ALS result Clear 16bits output data from Clear PD OEH OFH D1 ALS result IR 16bits output data from IR PD 10H 11H ff FEE O l Table 16 Description of Register Functions for GS 4 2 5 Register Settings for Ambient Light Sensing 4 2 5 1 ALS Detection result Detection result of clear photodiode is output to D0 15 0 register Address OCH ODH Detection result of infrared photodiode is output to D1 15 0 register Address OEH OFH The results of without infrared light can be obtained by some calculation using DO 15 0 and D1 15 0 The results of without infrared light a D0 15 0 B D 1 15 0 a and p factor are decided by ratio of D1 15 0 DO 15 0 These factors are shown below in the case of no panel These factors might be necessary to be adjusted according to the case panel in use 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com Ratio of Datal 15 0 Data0 15 0 i P Ratio X 0 67 6 650 9 653 0 67 lt Ratio 0 90 1 805 1 977 0 90 lt Ratio 0 000 0 000 Ambient ligh
18. c csc D 19 Table 10 Number of Measurement Cycles Setting ENEE 21 Table 11 INT Terminal Setting m 22 Table 12 Interrupt Output Level Interrupt Type cceeeeeeeeeeeeeeeeeneeeeeeeeeeeeeeeeeeeaaees 22 Table 13 Interrupt Output Pulse Interrupt Type EE 22 Table 14 DC Slave Address for Ambient Light Sensing urrrrrrnnnnrrrrrnnnnnnnnrnnnnnnrrnnnnnn 25 Table 15 Register Mapping for ALS EE 26 Table 16 Description of Register Functions for GP 27 Table 17 Resolution Measuring Duration Setting for ALS Mode 28 Table 18 Maximum Measurable Range for ALS Mode rrrrnnnnnnnnnnnnnnvrrrnnnnnnnnnrrnnnnrrrnnnene 29 Table 19 Interrupt Output Level Interrupt Type EE 31 Table 20 Interrupt Output Pulse Interrupt Type EE 31 Table 21 Intermittent Operating for Each Mode AEN 31 Table 22 INT Terminal Setting E Ee 32 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com 1 INTRODUCTION GestureR is a single tiny module that includes Gesture Sensing Proximity Sensing and Ambient Light Sensing This document introduces different variants of GestureR It also describes the Arduino functions for the sample codes included as well as operations to use the sensor directly with 12C 2 VARIANTS OF GESTURER 2 1 GestureR SHIELD Size around 54 x 53 mm Pin Assignment is compatible with Arduino UNO 1 Brig
19. esult whether or not object is detected is able to be read out via I2C bus interface and output from INT terminal with negative logic Object Distance Far Proximity low threshold Loff TL 15 0 high threshold Lon TH 15 0 Near INT Terminal H Non detect L Detect PROX resister 0 0 Non detect 1 Detect Figure 15 Detection Result Output Mode Distance 4 1 7 2 Interrupt Output Mode Operates as interrupt output mode by setting PIN register Address 01H 0 1 interrupt output mode There are two kinds of output mode level interrupt amp pulse interrupt see 4 1 5 6 Interrupt Type Setting Below is a description of the level interrupt type The result of interrupt judgment is written into FLAG register Address 00H and is read out from I2C bus interface 0 Non interrupt 1 interrupt In this case transition from H to L in INT terminal become occurring interrupt signal and INT terminal will be hold L level until interrupt is cleared Interrupt will be cleared in writing 0 data in FLAG register Detecting operation will continue while INT terminal is L level Update proximity detection result D4 15 0 and sensing result of object detection non detection status Therefore host needs to read data after FLAG register clear 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com For example as shown in below diagram Interrupt occurs with FLAG 1 interrupt Actual objec
20. ht RGB LED and 12 Purple LEDs for you to use and demonstrate easily 12 channel DIP Switch to use for mode changing or anything you want 2 Bus Switches that can cut off the connections of LEDs on the GestureR when you use the I O pin to do something else Figure 1 GestureR SHIELD 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com DL1 SCL DL2 SDA DL3 INT DD GREEN LED DD2 BLUE LED DD1 RED LED DRI DR2 NC GND DR3 GND DUI VDD5V DU2 NC DU3 NC SW CH2 VDDSV SW CH1 B NC GND NC NC NC Figure 2 Pin Configurations of GestureR SHIELD 2 2 GestureR SHIELD ULTRA Pin Configuration also compatible to Arduino Leonardo SPDT mechanical switch and the bus switches on GestureR SHIELD are upgraded and replaced by PCA9685 an DC PWM LED Driver Free up the I O on Arduino host originally connected to the LEDs Allow you to make use of the LEDs on GestureR SHIELD ULTRA as well as the I O on Arduino host at the same time Other features will remain the same as the original GestureR SHIELD 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com Figure 3 GestureR SHIELD ULTRA NC NC NC NC NC NC NC GND GND VDD7V NC NC VDD7V NC R3 E D2 DUI DU2 DUJ M DD3 DD2 DDI EH SHIELD ULTRA Figure 4 Pin Configurations of GestureR SHIELD ULTRA 2014 06 05 Copyright 2014 Grabo Ideas A
21. hts reserved grabo ideas gmail com 4 1 6 3 Intermittent Operating Function Enable to change intermittent operating periods by setting INTVAL 1 0 register Address 01H 00 Omsec 01 1 56msec 10 6 25msec 11 25msec Intermittent operating will be done during period set by INTVAL 1 0 register For GS mode in case of INTVAL 1 0 10 6 25msec quiescent operation time will be after GS operation Although setting a longer intermittent operating period contributes to reduce average consumption current it makes update period and response time for detection longer as a result GS mode INTVAL 1 0 10 6 25msec setting GS Intermittent GS Intermittent 6 25msec Figure 14 Intermittent Setting 4 1 6 4 Interrupt Data Setting Select interrupt data source by setting INTSEL 2 0 register Address 01H INTSEL 2 0 The Interrupt Data Remarks 000 DO 13 0 Not Recommended 001 D1 13 0 Not Recommended 010 D2 13 0 Not Recommended 011 D4 13 0 Not Recommended 100 D4 13 0 Recommended Proximity 101 NA Not Recommended 110 NA Not Recommended 111 NA Not Recommended Table 10 Number of Measurement Cycles Setting 2014 06 05 Copyright 2014 O Grabo Ideas All rights reserved grabo ideas gmail com 4 1 6 5 INT Terminal Setting Select output mode in INT terminal by setting PIN register Address 01H The outputs by FLAG PROX can be selected PIN Setting Outp
22. iting 1 in RST register RST register is also initialized automatically and becomes 0 4 2 7 INT Terminal Output Mode 4 2 7 1 Interrupt Output Mode Operates as interrupt output mode by setting PIN 1 0 register Address 03H 00 01 10 interrupt output mode There are two kinds of output mode level interrupt amp pulse interrupt see 4 2 6 5 Interrupt Type Setting Below is a description of the level interrupt type The result of interrupt judgment for ALS mode is written into FLAG A register Address 00H and is read out from 12C bus interface 0 Non interrupt 1 interrupt In this case transition from H to L in INT terminal become occurring interrupt signal and INT terminal will be hold L level until interrupt is cleared Interrupt will be cleared in writing 0 data in FLAG A register Detecting operation will continue while INT terminal is L level Update ALS detection result DO 15 0 D1 15 0 Therefore host needs to read data after FLAG A register clear 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com
23. ll rights reserved grabo ideas gmail com 2 3 GestureR BREAD Size around 21 x 11mm Pins pitch in DIP format Compatible with breadboards 1 Bright RGB LED for you to use Figure 5 GestureR BREAD RED LED ID BN SCL BLUE LED K JJ SDA GREEN LED DD HINT GND ID M VDD33 Figure 6 Pin Configurations of GestureR BREAD 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com 2 4 GestureR TINY Size around 11 x 11mm Ultimately small size and thin Best for making your own tiny DIY devices SCL SDA INT VDD77 GND Figure 8 Pin Configuration of GestureR TINY 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com 3 ARDUINO SAMPLE FUNCTIONS There are sample codes for each model of GestureR Please refer to readme txt attached in GestureR_Sample_Code zip You can also find the descriptions of functions in the comments within the codes 4 USING SENSOR DIRECTLY WITH I2C The sensor is composed of following three chips in one package which is IC1 with the four built in PD photodiode for Gesture sensors and proximity sensors IC2 with a built in PD clear and infrared photodiode for ambient light sensors ALS and infrared LED The sensor has 7bit slave address adherence to I2C bus interface and can change register value for each function via I2C bus Besides judgment result for detection non detection status c
24. t by setting a large count value at maximum measurable range It is necessary to set them considering the condition in the actual use and evaluating at your system RANGE A 2 0 Maximum Measurable Range Remarks 000 x1 001 x2 010 x4 011 x8 100 x16 101 x32 110 x64 111 x128 Table 18 Maximum Measurable Range for ALS Mode 4 2 5 5 ALS interrupt Low Threshold Sets interrupt low threshold in TL 15 0 register Address 04H 05H at ALS mode Please set it with confirming at optical mounting condition in the actual use 4 2 5 6 ALS interrupt High Threshold Sets interrupt high threshold in TH 15 0 register Address 06H 07H at ALS mode Please set it with confirming at optical mounting condition in the actual use 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com 4 2 6 Register Settings for Basic Operation 4 2 6 1 Software Shutdown Control power supply to the circuit Circuit is always off in shutdown mode After power on start with shutdown mode OP 3 register Address 00H 0 shutdown mode 1 operating mode 4 2 6 2 Auto Shutdown Continuous Operation Select auto shutdown mode or continuous operating mode After shutdown OP 3 register will be automatically cleared OP 2 register Address 00H 0 auto shutdown mode 1 continuous operating mode 4 2 6 3 Operating Mode Selection Select ALS mode OP 1 0 register Address
25. t moves Detection to Non detection to Detection while interrupt is cleared In this case while INT terminal FLAG register is hold PROX value will be updated with result of judgment for detection non detection of object Distance Object Far Proximity low threshold Loff TL 15 0 high threshold Lon TH 15 0 Distance Near Time INT terminal FLAG register H L Clearing interrupt PROX register 0 0 Non detection 1 Detection E Figure 16 Interrupt Output Mode Level Interrupt Type 2014 06 05 Copyright 2014 O Grabo Ideas All rights reserved grabo ideas gmail com 4 2 Ambient Light Sensing ALS Part 4 2 1 I2C Slave Address for ALS SLAVE ADDRESS ADDR terminal setting A6 A5 A4 A3 A2 A1 AO R W Slave address 0 1 1 1 0 0 1 X R W Read X 1 Write X 0 Table 14 DC Slave Address for Ambient Light Sensing 4 2 1 1 ALS Write Format Write value in register and enable to write the next address sequentially after writing data Data writing will be end with inputting stop condition WordAddress 00H FLAG A register in OOH are read only WordAddress 0OCH 11H D0 15 0 D1 15 0 and D2 15 0 registers from OCH to 11H are read only Bit width 7 1 IS Sane JAN voss ass JA Wits Daal RER E A ACK NA NACK S START P STOP X don t care Q Master output 2 Slave output Figure 17 ALS I2C Write Format 4 2 1 2 ALS
26. t sensor ALS mode clear clear clear result result result infrared infrared result result Sensing Results Output for ALS Mode infrared result Figure 20 4 2 5 2 Output Value of ALS Interrupt Result FLAG A register is output interrupt result for ALS mode There is a function which clears by writing O in d FLAG A register FLAG A register Address 00H 0 non interrupt 1 interrupt 4 2 5 3 Resolution Measuring Duration Setting for ALS Mode Select measuring resolution and measuring duration for ALS mode by setting RES A 2 0 register Address 01H If resolution is low measuring tolerance becomes large Please have an adjustment at your system RES A 2 0 Resolution Measuring Time Remarks 000 19bit 800ms Not Recommended 001 18bit 400ms Not Recommended 010 17bit 200ms Not Recommended 101 12bit 6 25ms Not Recommended 110 10bit 1 56ms Not Recommended 111 8bit 0 39ms Not Recommended Table 17 Resolution Measuring Duration Setting for ALS Mode 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com 4 2 5 4 Maximum Measurable Range for ALS Mode Select maximum measurable range for ALS mode by setting RANGE_A 2 0 register Address 01H Detect with a set range in ALS mode Maximum count value is outputted in case of incident light exceeding maximum measurable range It is possible to have countermeasure for external ligh
27. urations of GestureR SHIELD ULTRA eee eeeeeeeeeeeeeeeeeeeeeeeeeees 8 Figure 5 GESUER E 9 Figure 6 Pin Configurations of GestureR BREAID ENEE 9 Figure 7 GestureR TINY T 10 Figure 8 Pin Configuration of Gestur R TINY eene nennen nnne 10 Figure 9 PG Basic Data FOT AL mt 11 Figure T0 ASS 122 Write FOM E 12 Figure 11 GS 20 Read FORMAL E 12 Figure 12 Output Results for GS Mode 13 Figure 13 The Built in Photodiodes Position PDO PD1 PD2 PD3 16 Figure 14 Intermittent Setting Geiger 21 Figure 15 Detection Result Output Mode ENEE 23 Figure 16 Interrupt Output Mode Level Interrupt Type eseseeeeeeeees 24 Figure 17 ALS 26 Write Format m 25 Figure 18 ALS T2C EE 25 Figure 19 Output Results for ALS Mode AEN 26 Figure 20 Sensing Results Output for ALS Mode 28 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com GestureR User Manual Tables Table 1 DC Slave Address for Gesture and Proximity Sensing rrrrrrnnnnnnnvnnnnnnrrnnnnnn 11 Table 2 Register Mapping e 14 Table 3 Description of Register Functions for GP 15 Table 4 Number of Measurement Cycles Setting cccceceeeeeeeeeeeneeeeeeeeeeeeeeeeeaaees 17 Table 5 Resolution Measuring Duration Geng 17 Table 6 Maximum Measurable Hange ENEE 18 Table 7 LED Drive 2 409711 OR CET 18 Table 8 LED E e t 19 Table 9 LED pulse Width SS STUN ic
28. ut Data 0 Interrupt Output FLAG 1 Detection Non detection Judgment Output PROX Table 11 INT Terminal Setting 4 1 6 6 Interrupt Type Setting Select level interrupt type or pulse interrupt type INTTYPE register Address 01H 0 level interrupt type In this case transition from H to Lin INT terminal become occurring interrupt signal and INT terminal will hold L level until interrupt is cleared level interrupt type Occuring interrupt Clearing interrupt INT terminal High H gt L Low UM Table 12 Interrupt Output Level Interrupt Type 1 pulse interrupt type In this case L pulse output in INT terminal become occurring interrupt signal and INT terminal will not hold L level Therefore we need not to clear interrupt flag FLAG FLAG are cleared automatically in 1 clock about 0 39us pulse interrupt type High INT terminal H1 Low Table 13 Interrupt Output Pulse Interrupt Type 4 1 6 7 Software Reset Initialize all registers by writing 1 in RST register Address 01H RST register is also initialized automatically and becomes 0 2014 06 05 Copyright 2014 Grabo Ideas All rights reserved grabo ideas gmail com 4 1 7 INT Terminal Output Mode 4 1 7 1 Proximity Detection non detection Sensing Result Output Mode INT terminal operates with sensing result output mode by setting PIN register Address 01H 11 detection non detection sensing result output mode Sensing r
Download Pdf Manuals
Related Search
Related Contents
Smeg 129530 Instructions for Use Please read manual carefully before starting experiment RayBio Motorola, and WordSender Model 8190 Motor Aspirated Radiation Shield User`s Manual スタートガイド Sangean ATS-818 Digital World Receiver Océ Arizona Série 400 GT Manual do Utilizador V. 1, Ed User`s Manual Pyle PLRD143IF Copyright © All rights reserved.
Failed to retrieve file