Difference between revisions of "BPI-PC101 gesture recognition module"
|Line 214:||Line 214:|
Revision as of 03:55, 27 June 2018
- 1 Introduction
- 2 Hardware
- 3 Principles of Operation
- 4 How to Start
- 5 Documents
The PC101 integrates an ambient light (ALS) sensor, a proximity sensor (PS) and 6-D gesture sensors with built-in IR LED. It is used in notebook PCs, smartphones, MIDs (mobile internet devices),PNDs (portable navigation devices), e-books, tablet PCs, flat-panel televisions, etc. for extending battery life and for better user experience. Ambient light sensor optimizes the screen brightness to extend battery and to increase battery life. Proximity sensor (PS) measures the IR reflection intensity which correlates to the distance of the object. Proximity sensor enables the device controller to turn off the LCD back-light and the touch-screen sensor when the device is held close to your ear, placed inside the pocket, purse, or bags. This function saves the battery power and avoids unintended touch-screen trigger. Proximity sensor can also work as a device wake-up sensor by sensing the user waving the hand in front of the device. The 6-D gesture sensor detects the waving of palm in front of the screen in 6 directions left, right, up, down and z-axis. The hand gesture without the need to touch the screen adds new way of human device interaction. For example, the gesture can be used to accept a phone call in the hand-free mode while the user is driving in a car. In another example, the user wave to the screen to advance or retract in the picture viewing mode without worrying the food stains from the fingers to be left on the screen.
- Digital control and data output via I2C (100 KHz and 400 KHz) interface
- ALS, PS and Gesture sensor with built-in IR LED
- Slave Address 0x58
- 6D Gesture Recognition Distance: 20~200 mm（up、down、left、right、hold）
- Programmable interrupt function for ALS and PS with upper and lower thresholds
- Support interrupt notification
- smart lights
- Household electrical control
- Music control equipment
- Game equipment
- Smart bath
- Distance detection
- Smart toy
PC101 DFN Pin Assignment
PC101 PIN definitions
|PC101 Gesture Sensor Pin define|
|4||SCL||Serial Digital Input Clock|
|5||SDA||Serial Digital I/O Data|
|6||TXD||Serial port sends pins|
|7||RXD||The serial port receives the pin|
- Voltage characteristic
- Digital interface characteristics
|Digital interface characteristics|
|I2C interface '|
|Ordering Chip Information||Write to Slave||Read from Slave|
- Receive (Single Read) data from register
- Send (Single Write) data into register
Principles of Operation
Total register addresses are maintained inside the I2C block, each having a 8-bit register address. Each address accommodates an 8-bit data register that can be either written or read via I2C. The command registers program the sensor for various modes, setting and Interrupt threshold. The read-only registers contains output codes.
- Register Table and Definitions
|Register Table and Definitions|
|Capability||R||0x01||0xF0||Gesture Functional description|
- 0x00： ChipID
This address holds ChipID, which is 0xAA by default and can be read to verify that I2C reading is normal.
- 0x01： Capability
This address holds a bitmap of the gesture detection capability, 0 Disable, 1 enable.
|Digital interface characteristics|
The default is all supported, so the register defaults is 0xF0.
- 0x02： LibVersion
This address holds Gesture Version defaults is 0xB1.
- 0x03： Gesture Date
The address is stored with the result of gesture detection.
|address of gesture detection|
- 0x04： Proximity Date
This address holds the distance of the gesture from 0 to 255, the larger is near, the smaller is far.
How to Start
Connect product like the Circuit diagram , Set the Baud Rate as 115200
Using TTL-USB moudle, you can see the data like the picture
Connect product like the Circuit diagram
Set the SlaveAddress as 0x58,
Read Register 0x00, and result is 0xAA.
So, the I2C communicate success.
Plan one : Polling
Every 100ms read once gesture data.
Read Register 0x03, and result is Gesture data.