Web Site: Forums: forums.parallax.com Sales: Technical:

Similar documents
Compass Module 3-Axis HMC5883L (#29133)

Gyroscope Module 3-Axis L3G4200D (#27911)

Web Site: Forums: forums.parallax.com Sales: Technical:

Web Site: Forums: forums.parallax.com Sales: Technical:

Propeller Activity Board (#32910)

Web Site: Forums: forums.parallax.com Sales: Technical:

PWR-I/O-DB Power and I/O Daughterboard (#28301)

Eddie Control Board with Power Connector (#28993) Eddie Control Board PCB (# )

Propeller Project Board USB (#32810)

Web Site: Forums: forums.parallax.com Sales: Technical:

VBattery 7 VCC V DD IRLED IS31SE5001 SDA SCL INTB SDB. Figure 1 Typical Application Circuit

Web Site: Forums: forums.parallax.com Sales: Technical:

Propeller Proto Board (#32212) Propeller Proto Board USB (#32812) Proto Board Accessory Kit (# )

Color 7 click. PID: MIKROE 3062 Weight: 19 g

Proto-DB (#28310): Prototyping Daughterboard

ILI2303. ILI2303 Capacitive Touch Sensor Controller. Specification

Hitachi H48C 3-Axis Accelerometer Module (#28026)

CW2013. Low-Cost 1s Fuel Gauge IC with Low-SOC Alert. General Description. Features. Applications. Order Information

Propeller Board of Education (#32900)

PING))) Kit for Stingray (#28985)

FXL6408 Fully Configurable 8-Bit I 2 C-Controlled GPIO Expander

24C08/24C16. Two-Wire Serial EEPROM. Preliminary datasheet 8K (1024 X 8)/16K (2048 X 8) General Description. Pin Configuration

512K bitstwo-wire Serial EEPROM

ILI2511. ILI2511 Single Chip Capacitive Touch Sensor Controller. Specification ILI TECHNOLOGY CORP. Version: V1.4. Date: 2018/7/5

FM24CL04 4Kb FRAM Serial Memory

Parallax LSM9DS1 9-axis IMU Module (#28065)

RFID Read/Write Module, Serial (#28440) RFID Read/Write Module, USB (#28540)

Parallax WX ESP8266 Wi-Fi Modules

A24C08. AiT Semiconductor Inc. ORDERING INFORMATION

GT24C256 2-WIRE. 256K Bits. Serial EEPROM

DIRRS+ Digital Infra-Red Ranging System Ideal for robotics projects. Singles (SKU # Pack (SKU #35100)

2:1 MULTIPLEXER CHIP FOR PCI-EXPRESS ICS Features

2:1 MULTIPLEXER CHIP FOR PCI-EXPRESS ICS Description. Features. Block Diagram DATASHEET

Sensors. Sensors. Fully-calibrated, low-power intelligent sensing solutions. Smart. Connected. Energy-Friendly.

PCI-3E. PCI Interface Card Page 1 of 7. Description. Features

A24C02. AiT Semiconductor Inc. ORDERING INFORMATION

PIXI click PID: MIKROE Weight: 28 g

CAUTION: TTL Only, Do Not Use ± 12 V RS-232

ACE24AC128 Two-wire Serial EEPROM

AS Channels Capacitive Touch Sensor IC From Santa Clara, United States of America

ST1633. Datasheet. Capacitive Touch Screen Controller. Version /11/17

Tetra-Lateral PSD s. Position Sensing Detectors (PSD)

GT24C02. 2-Wire. 2Kb Serial EEPROM (Smart Card application)

XBee USB Adapter Board (#32400)

Remote 16-bit I/O expander for Fm+ I 2 C-bus with interrupt and reset. Description

Fremont Micro Devices, Inc.

SBD WARRIOR DATA SHEET

ACE24AC64 Two-wire Serial EEPROM

Features VCC MIC1810 RESET RESET

DB-Expander Daughterboard-to-SIP (#28325)

FT6336G. Self-Capacitive Touch Panel Controller INTRODUCTION FEATURES

1. Features and Benefits

LOG Storm. Data sheet

TSL250R, TSL251R, TSL252R

2-Wire, 5-Bit DAC with Three Digital Outputs

AT24C01A/02/04/08/16. 2-Wire Serial CMOS E 2 PROM. Features. Description. Pin Configurations. 1K (128 x 8) 2K (256 x 8) 4K (512 x 8) 8K (1024 x 8)

Si1140-DK. Si1140 DEVELOPMENT KIT USER S GUIDE. 1. Kit Contents. Figure 1. Si1143 Evaluation Board

Pi-Tek OLED Module PG12864KW Revision: 1.0 May Pi Tek. OLED Module SPECIFICATIONS MODEL NO. : PG12864KW PRODUCT TYPE: STANDARD

ACE24AC02A1 Two-wire Serial EEPROM

PI4IOE5V bit I 2 C-bus and SMBus low power I/O port with interrupt and reset

FT6x06. Self-Capacitive Touch Panel Controller INTRODUCTION FEATURES

Preamplifier Circuit for IR Remote Control

STMLS05 Applications Description Features Table 1: Device summary I2C base Package Order code address marking

Debounced 8 8 Key-Scan Controller

INTEGRATED CIRCUITS. PCA bit I 2 C and SMBus I/O port with interrupt. Product data sheet Supersedes data of 2004 Jul 27.

PI4IOE5V bit general purpose outputs for 1MHz I 2 C bus

Capacitive Touch Remote Control Reference Design User s Guide

FM24C16C-GTR. 16Kb Serial 5V F-RAM Memory. Features. Description. Pin Configuration NC NC NC VSS VDD WP SCL SDA. Ordering Information.

DM-OLED X 64 BLUE GRAPHIC OLED DISPLAY MODULE WITH SPI, I2C INTERFACE

SH1030 Rev Introduction. Ultra low power DASH7 Arduino Shield Modem. Applications. Description. 868 MHz. Features

SILICON MICROSTRUCTURES

A24C64. AiT Semiconductor Inc. ORDERING INFORMATION

ACE24AC16B Two-wire Serial EEPROM

Silvertel. Ag Features. 2. Description. Compliant with PoH and IEEE802.3at Type 1(af) & Type 2. Small SIL package size 50.

GSDM110 Three-Axis Digital Magnetometer

DS WIRE INTERFACE 11 DECOUPLING CAP GND

FM24C16B-GTR. 16Kb Serial 5V F-RAM Memory. Features. Pin Configuration. Description. Ordering Information NC NC NC VSS VDD WP SCL SDA.

QUICKSWITCH PRODUCTS HIGH-SPEED CMOS QUADRUPLE BUS SWITCH WITH INDIVIDUAL ACTIVE LOW ENABLES

ZSC31xxx / ZSSC3xxx. SSC Communication Board. Datasheet. Brief Description. Features. Benefits

SPECIFICATIONS FOR LCD MODULE

ACE24AC02A3C Two-wire Serial EEPROM

Grove - 80cm Infrared Proximity Sensor

Features. Applications

2 TO 4 DIFFERENTIAL CLOCK MUX ICS Features

Board Of Education USB (#28850)

ZSPM4121. Under-Voltage Load Switch for Smart Battery Management. Datasheet. Brief Description. Features. Related IDT Smart Power Products

PI5USB30216C Plug-in Detector for Type-C Connector

BASIC Stamp 1 Project Board (#27112) Development / Education Platform for the BASIC Stamp 1

AMS 5812 OEM pressure sensor with an analog and digital output

ARDUINO PRIMO. Code: A000135

GT24C WIRE. 1024K Bits. Serial EEPROM

GE Energy. ACE184 Series Power Shelf Main Output: 600A; Standby output: 8A. Preliminary Data Sheet. Features. Applications.

Low Voltage, 10-Bit Digital Temperature Sensor in 8-Lead MSOP AD7314

PI4IOE5V9675. Remote 16-bit I/O expander for Fm+ I 2 C-bus with interrupt Description. Features. Pin Configuration

PART IN+ IN- TX_DISABLE TX_FAULT BIAS SET BIASMAX 2 APCSET 2 MODSET 2 MOD SET PC_MON BS_MON

PAN502x Capacitive Touch Controller Datasheet

QFBR-S01IN001Z. Optical Phase Interrogator. Data Sheet. Description. Features. Applications

VL-PS-COG-C144MVGI-08 REV.A (COG-C144MVGI-08) DEC/2009 PAGE 2 OF 26 DOCUMENT REVISION HISTORY DATE DESCRIPTION CHANGED BY DOCUMENT REVISION

FM24C Kb FRAM Serial Memory Features

Figure 1 Typical Application Circuit

Transcription:

Web Site: www.parallax.com Forums: forums.parallax.com Sales: sales@parallax.com Technical: support@parallax.com Office: (916) 624-8333 Fax: (916) 624-8003 Sales: (888) 512-1024 Tech Support: (888) 997-8267 Si1143 Gesture Sensor (#28046) The Si1143 Gesture Sensor uses infrared (IR) light to detect objects within its field of view. Using integrated detectors for IR and visible light, the device can measure levels of ambient IR and visible light as well as the amount of light reflected back from each of three onboard IR light emitting diodes (LEDs). A simple I 2 C communication interface allows easy integration with any microcontroller. Light amplitude measurements can be processed by the application code to determine the approximate position of an object in front of the sensor and/or its relative distance from the sensor. To recognize swipe gestures, the application can monitor whether an object (for example, a user s hand) passes across the field of view in a particular direction or pattern. As a human interface device, this sensor offers a unique method of control which is both intuitive and convenient; and because swipes are touchless the Si1143 Gesture Sensor can be used in applications where sanitation is important. Furthermore, the sensor may be used behind glass or in a windowed project enclosure to avoid contact with harsh environments or hazardous chemicals. Device driver object code is provided for the Propeller microcontroller to make interfacing a breeze. And example applications are provided to demonstrate reading measurements and recognizing gestures. Features Measures visible and IR ambient light levels Allows touchless object and swipe detection Configurable LED brightness and detector sensitivity Range of operation from darkness to full sunlight Compatible with any microcontroller Convenient design and standard 0.1 header pins Key Specifications Power Requirements: Less than 4 ma average current with V IN = 3.0 to 5.5 VDC Communication interface: I 2 C Operating temperature: -40 to 185 F (-40 to 85 C) Dimensions (including header): 2.00 x 2.28 x 0.22 in (5.08 x 5.79 x 0.51 cm) Application Ideas Touchless remote to control music or video. Use swipe gestures for volume up/down, play/pause, and previous/next song, etc. Non-contact light switch controller Object detection for robotics and navigation Automatic faucet or equipment control for sanitary environments Copyright Parallax Inc. Si1143 Gesture Sensor (#28046) v1.2 1/24/2013 Page 1 of 7

Quick-Start Guide Follow this procedure to connect the device to a Propeller P8X32A or BASIC Stamp 2 microcontroller and run a demo program to test its operation. The program reads raw values from the device using I²C, and displays the values to a serial terminal. Step 1 With power off, connect the circuit as shown. For the Propeller P8X32A, Vdd is 3.3 VDC, and The microcontroller pins P0, P1, and P2 match the Propeller I/O pins used in the Spin example code. For the BASIC Stamp 2, Vdd is 5 VDC, and R is 4.7 kω. The microcontroller pins P0 and P1 match BASIC Stamp I/O pins used in the PBASIC example code. Omit the P2 connection to the device s INT pin. Step 2 Power on the circuit and load the demo code provided on the 28046 product page at www.parallax.com. For the Propeller P8X32A, use Si1143_Sensor_Demo.spin (the top object in the Spin code zip archive). Use 28046-Si1143_Sensor_Demo.bs2 for the BASIC Stamp 2. Step 3 For the Propeller, after loading the Spin code into your microcontroller, run a serial terminal application such as Parallax Serial Terminal. The example code should continuously update the terminal display with the current measurement values. For the BASIC Stamp, load the PBASIC code into the microcontroller; the BASIC Stamp Editor s Debug Terminal will open automatically. Observe the serial terminal. See what happens to the measurement values when an object or hand is positioned in front of the sensor. Copyright Parallax Inc. Si1143 Gesture Sensor (#28046) v1.0 1/24/2013 Page 2 of 7

Theory of Operation Measurement Sequence The Si1143 device is equipped with photodiodes to capture visible and infrared (IR) light. By turning on each IR LED individually, the device can measure how much light is reflected from that single LED back to sensor. The internal analog-to-digital converters (ADCs) used to sample the photodiodes are designed to be fast and precise to capture a very rapid succession of light measurements during each measurement group. There are two main advantages in taking measurements in such quick bursts. The first advantage is very low average power consumption by the circuit (as can be seen listed for Average Supply Current in the Recommended Operating section). If light levels can be measured quickly, then the IR LEDs may be pulsed on for a very short duration and the Si1143 device can spend most of its time with its main processor in a low-power standby state. Periodically it wakes up to perform measurement bursts which draw significant instantaneous current. However, with these brief high-current pulses spread out among long low-current standby states, the overall power drawn from the system can remain very low. The second advantage of very fast measurement snapshots is good immunity to noisy ambient light sources. Most light sources have a certain amount of ripple. However, if light measurements can be taken over an extremely short time, the instantaneous ambient light level does not fluctuate significantly between each measurement. For proximity measurements, the Si1143 device actually takes two measurements back to back. First, the IR light level is measured with the LED off, to detect the ambient level alone. Then the LED is turned on and the IR light level is measured again, to detect ambient light plus the light reflected/leaked from the LED. The idea is that ambient light level hasn t changed significantly in that short time (about 25.6 µs), so the ambient measurement is subtracted within the Si1143 device to provide proximity measurements which are reasonably immune to ambient light conditions. For more information relating to the measurement sequence see the Functional Description section in the Si114x datasheet and the Proximity Measurements section in application note AN498 found on the manufacturer s website: www.silabs.com. Object Detection and Gesture Recognition Objects can be detected by observing the level of reflected IR light measured in each proximity sensor (PS) measurement. With an open field of view, the PS measurement value will represent only optical leakage and cross-talk from the LED to the sensor. By reading the average baseline leakage, the PS values can be corrected in software to approximately zero-out the contribution of optical cross-talk. Using three LEDs in an L shape on this board allows triangulation of the object within the field of view. For example, when a hand is placed more over one LED than the others, the sensor will measure more reflected light from that LED versus the other two. When a hand is positioned directly over all three LEDs the three PS measurements should be relatively equal. Since the approximate position of the object can be detected, so can the motion of that object across the field of view. The main idea is to set a threshold value for when an object is considered seen or not seen. The threshold allows rising and falling edges to be captured on each PS channel when an object enters the field of view. Analyzing the type of edge transitions and their order allows the application to determine that an object is entering or leaving the field of view and also determine the particular direction. Copyright Parallax Inc. Si1143 Gesture Sensor (#28046) v1.0 1/24/2013 Page 3 of 7

Communication Interface The device uses I 2 C to communicate with an attached microcontroller. On-board level-shifting buffers allow the voltage rail for the SDA and SCL pins to match the VIN voltage. While I 2 C protocol is welldocumented elsewhere, an overview relating to how registers are arranged and used in the Si1143 will hopefully provide a jumpstart in understanding and operating this device. The Si1143 device has many values which require fast and frequent access. It provides direct access to these registers using standard I 2 C read/write operations. Additionally, these values may be read/written without waking up the main sequencer in the Si1143, allowing continued low-power operation. These are known as the I 2 C registers. The Command and Response I 2 C registers provide a messaging interface to the sequencer in the Si1143, and also allow access to environmental parameters in the Parameter RAM space. Writing a value into the Command register causes the sequencer to wake up and service the request. The Response register is written into by the sequencer after each command is processed. If a Command was written while the sequencer was busy performing a measurement or other operation, it may not actually have been processed. Therefore, the Response register should be checked after writing every Command to ensure each command is processed successfully, or re-write to the Command register if it was not. To read values in Parameter RAM, write the command/address into the Command register, read the Response register to ensure the command was processed, then read the requested Parameter value which was placed in the PARAM_RD (read) register. To write values to the Parameter RAM, write the value into the PARAM_WR (write) register, then write the command/address into the Command register. Read the Response register to ensure the command was processed, and optionally confirm that the correct value was placed into the PARAM_WR (write) register. For more information, see the code implementation for the Si1143.spin object. Also refer to section 4, Programming Guide, of the Si114x datasheet and application note AN498 from the manufacturer s website at: www.silabs.com. Copyright Parallax Inc. Si1143 Gesture Sensor (#28046) v1.0 1/24/2013 Page 4 of 7

Module Pins and Dimensions Pin Name Type Function 1 GND Power Ground 2 VIN Power Supply voltage 3 INT Output Sample ready interrupt pin 4 SCL Input I 2 C clock 5 SDA Input/Output I 2 C data 1 2 3 4 5 GND VIN INT SCL SDA Dimensions are shown in inches. Copyright Parallax Inc. Si1143 Gesture Sensor (#28046) v1.0 1/24/2013 Page 5 of 7

Absolute Maximum Ratings Parameter Min Max Units Supply Voltage on VIN Pin -0.5 6.0 V Voltage on SDA or INT Pin -0.5 6.5 V Voltage on SCL Pin -0.5 30 V Storage Temperature Operating Temperature -67-55 -40-40 +185 +85 +185 +85 F C F C Stresses beyond these ratings may cause permanent damage to the device. Exposure to absolute-maximum-rated conditions for extended periods may affect device reliability. Refer to Recommended Operating Conditions section for ratings to use during normal operation. Recommended Operating Conditions Unless otherwise noted, VIN = 3.3V, T A = 25 C. Parameter Symbol Conditions Min Typ Max Units Supply Voltage V IN 3.0 5.5 V I/O Pin Voltage V I/O 0 V IN V Idle (0 meas/sec) 0.096 Average Supply Current (1) I IN 180mA LED Drive Current: Meas. Rate = 1 meas/sec Meas. Rate = 50 meas/sec Meas. Rate = 100 meas/sec 1.383 1.465 1.810 ma LED1, LED2, LED3 Programmable LED Drive Current. LED1, LED2, LED3 Pulse Width I LED 360mA LED Drive Current: Meas. Rate = 1 meas/sec Meas. Rate = 50 meas/sec Meas. Rate = 100 meas/sec PS_LEDn = 0001 PS_LEDn = 0010 PS_LEDn = 0011 PS_LEDn = 0100 PS_LEDn = 0101 PS_LEDn = 0110 PS_LEDn = 0111 PS_LEDn = 1000 PS_LEDn = 1001 PS_LEDn = 1010 PS_LEDn = 1011 PS_LEDn = 1100 PS_LEDn = 1101 PS_LEDn = 1110 PS_LEDn = 1111 Measuring Time t meas Two ALS plus three PS measurements. 1.461 2.678 3.293 5.6 11.2 22.4 45 67 90 112 135 157 180 202 224 269 314 359 t PS 25.6 30 μs ma 660 μs Startup Time t INIT 25 ms Sampling Rate (2) f SAMPLE Two ALS plus three PS measurements at 360 ma setting. 100 s/sec I2C Clock Frequency f SCL 3.4 MHz 1. Measurements are taken with no I 2 C activity. 2. Maximum sampling rate is limited by the circuit supplying power to the LEDs (in order to allow a wide operating voltage range). The Si1143 device may be operated at higher sampling rates; however, voltage sag in the LED supply net may result in distorted measurements since the LED drive current may not be consistent through the measurement sequence. Copyright Parallax Inc. Si1143 Gesture Sensor (#28046) v1.0 1/24/2013 Page 6 of 7

Propeller P8X32A Example Code The Si1143_Sensor_Demo.spin application reads raw values from the device using I²C, and displays the values to the serial terminal. The Si1143_Gesture_Demo.spin application filters and interprets gestures and outputs a tone jingle for each recognized gesture. The program also displays the gesture events to the serial terminal. The zip archives for these Spin applications available on the 28046 product page. Code can be downloaded to the Propeller microcontroller using the Propeller Tool software, which is available from www.parallax.com/propeller. BASIC Stamp Example Code The 28046-Si1143_Sensor_Demo.bs2 program is available on the 28046 product page. The demo reads raw values from the device using I²C, and displays the values to the BASIC Stamp Editor s Debug Terminal. The Basic Stamp software is a free download from www.parallax.com/basicstampsoftware. Resources and Downloads Additional resources, example code, device datasheet, schematic, and circuit board layout files are available on the Si1143 Gesture Sensor product page. Go to www.parallax.com and search for part number 28046. For complete details on the Si1143 device, refer to the manufacturer s datasheet. Revision History Version 1.0 Initial document release. Version 1.1 Corrected dimensions, minor formatting updates. Version 1.2 Product name change from Si1143 Proximity Sensor to Si1143 Gesture Sensor. Copyright Parallax Inc. Si1143 Gesture Sensor (#28046) v1.0 1/24/2013 Page 7 of 7