S i 11 4 0 - D K
S i 11 4 0 D
E V E L O P M E N T
K
I T
U
SER
’
S
G
UIDE
1. Kit Contents
The Si1140 Development Kit contains the following items:
Si1143 Evaluation Board
Si1140DK Quick Start Guide
1 USB Cable
2. Introduction
The Si1140DK is intended as an evaluation and development platform for the Si1143 infrared proximity and
ambient light sensor. As shown in Figure 1, the main components of the Si1143 Evaluation Board (Si1143_EB) are
the Si1143 sensor (U2), the C8051F800 microcontroller (U1), and the infrared emitters (DS1 through DS9). On this
PCB, the infrared emitters used are OSRAM part number SFH 4056. These emitters have a power rating of 40 mW
and a half-angle of 22 degrees. Other emitters with different characteristics may also be used, depending on the
specific application requirements.
The example firmware for the kit measures the infrared light energy detected by the Si1143 while each of three
infrared emitters are independently activated. The infrared light from these emitters will be reflected back to the
Si1143 by any object that is placed in proximity to the sensor. X, Y, and Z positions can be calculated from these
measurements. If no object is close enough to the board, the measured signal levels will fall below predetermined
thresholds, and the position calculations will not update. The Si1143’s ambient light sensor (ALS) is also monitored
by the firmware. The example firmware is intended to be used in conjunction with the Si114x Performance Analysis
Tool to provide user feedback. In addition to calculating the current position, the firmware is able to detect different
gestures from the infrared sensor, as described in Table 2 on page 6.
U1
F800
P1
U3
F326
SILICON LABS
www.silabs.com
DS11
DS12
DS13
U2
DS1
DS4
DS2
DS5
DS3
DS10
+5V_IN
DS7
Si1143-EB
DS6
DS9
DS8
Figure 1. Si1143 Evaluation Board
Rev. 0.3 7/13
Copyright © 2013 by Silicon Laboratories
Si1140-DK
Si1140-DK
3. Software Overview
There are several optional software packages available to support the Si1143 Evaluation Board. The Si114x
Performance Analysis Tool can be used for initial evaluation to collect data from the board over the USB interface
and display it graphically. For users ready to develop their own software, the Si114x Programmer’s Toolkit API
enables rapid development of Si114x software in a PC environment using the Si1143 Evaluation Board. The Si114x
Programmer’s Toolkit contains example source code that allows developers to get started quickly and then tailor
the code to their needs. In addition, the Silicon Labs Integrated Development Environment (IDE) provides a means
of developing code for the C8051F800 and uses the USB connection on the board to program the MCU and
perform in-system debugging. All of the supporting software can be downloaded from the web at the URL
http://www.silabs.com/products/sensors/pages/optical-sensor-software.aspx.
3.1. Using the Si1143 Evaluation Board with the Performance Analysis Tool
The Si1143 Evaluation Board is supported by the Si114x Performance Analysis Tool. The Performance Analysis
Tool allows users to see real-time infrared proximity and ambient light measurements from the Si1143 in a
graphical form. The communications interface to the Si1143 Evaluation Board is provided over the USB
connection.
To use the Performance Analysis Tool with the Si1143 Evaluation Board:
1. Connect the Si1143 Evaluation Board to the PC using a USB cable.
2. Launch the Performance Analysis Tool from the Start menu.
3. Select the board from the “Devices” menu (it should show up as “TS” followed by a serial number).
4. Select the channels you wish to display on the picture of the slider board that appears. The individual channels
available are described in “3.1.1. Channel Selection” .
5. Click the green “Acquisition” arrow to begin collecting data.
Note:
The Performance Analysis Tool, Si114x Programmer’s Toolkit, and the IDE cannot connect to the Si1143 Evaluation
Board at the same time. Be certain to disconnect from the board in one software package before trying to connect in the
other.
Figure 2 shows an example of the Performance Analysis Tool output when connected to the Si1143 Evaluation
Board. To generate the graph, a hand was moved above the slider board. The selected traces shown are the raw
data measurements for the amount of Infrared light being reflected onto the part. The pink trace represents the
distance from infrared emitter DS1; the green trace represents the distance from infrared emitter DS9, and the
yellow trace represents the distance from infrared emitter DS5.
Figure 2. Performance Analysis Tool Main Window
2
Rev. 0.3
Si1140-DK
3.1.1. Channel Selection
Selecting which channels to display is done by checking the appropriate boxes on the Board Representation
window, shown in Figure 3, and the Generic Data window, shown in Figure 4. There are two different groups of
measurements available from the example firmware: raw data channels and generic data channels.
3.1.1.1. Raw Data Channels
The raw data measurements can be seen by selecting the channels from the Board Representation window, shown
in Figure 3. The two types of raw data measurements are ambient light and infrared proximity.
1. Raw ambient light measurements. The ambient light channels are Channel 0 (red) and Channel 1(blue).
Channel 0 displays measurements of the ambient visible light while Channel 1 displays measurements of the
ambient infrared light.
2. Raw infrared proximity measurements. The infrared proximity channels are Channel 2 (pink) readings using
DS1, Channel 3 (green) readings using DS9, and Channel 4 (yellow) readings using DS5. The output is
proportional to the amount of infrared light being reflected onto the part by an object above the board. These
outputs are 16-bit unsigned values.
Figure 3. Raw Data Channel Selection
Rev. 0.3
3
Si1140-DK
3.1.1.2. Generic Data Channels
The generic data channels contain any data generated by the host MCU. These 16-bit channels can be anything
from simple debug channels to calculated position values. See Table 1 for an explanation of all the channels shown
in Figure 4.
Figure 4. Generic Data Channel Selection
4
Rev. 0.3
Si1140-DK
Table 1. Generic Data Channels
Name
G0
G1
G2
G3
G4
G5
G6
G7
G8
Label
Rad1
Rad2
Rad3
X(mm)
Y(mm)
Z(mm)
iLED1
iLED2
iLED3
AutoRanging will automatically change the modes of the
photodiodes to avoid saturation. When changing modes,
the raw data output changes levels, but AutoRanging will
scale the raw data so that all measurements are on the
same scale. The output from this channel is the pro-
cessed value which can be used without knowledge of
the photodiode modes.
These channels are the AutoRanging PS output from
the device. Raw data measurements are processed by
the AutoRanging firmware to make all the readings
across different modes have the same magnitude. Since
the device switches modes to compensate for ambient
light, the raw data will show jumps when changing
modes. These outputs will not display the jumps
because the firmware is stitching the raw outputs
together.
These channels help indicate what mode the sensor is in
during each of their respective measurements. The four
possible modes are as follows: Low Light, High Sensitiv-
ity, High Signal, and Sunlight. These modes are num-
bered from zero to three. For more information about
each mode, please consult the data sheet.
AutoRanging uses baselining to determine the no-detect
threshold for readings. Any readings below the values
shown on these channels will be considered no-detect
readings. Any values higher than this baseline will be
shown in the AutoRanging PS Outputs above.
The unused channels are not in use by software, but
they are available in firmware to use as needed.
LED Drive Current Levels
Each LED driver has a specific LED drive current setting
for it. These values are given in units of mA.
Estimated Location Coordinates
With the approximate distance measurements above, an
X, Y, and Z estimation can be made. These estimations
are given in units of mm.
Type
Description
Using characterization of the PS measurements with
objects at certain distances, it is possible to estimate the
Linearized Distance Measurements distance of an object based on the PS measurement
value. These three channels represent the distance esti-
mations for each LED's measurement.
G9
VIS
AutoRanging Ambient Outputs
G10
IR
G11
PS1
G12
PS2
AutoRanging PS Outputs
G13
PS3
G14
G15
G16
G17
G18
G19
G20
G21
VIS s
IR st
PS st
PS1bl
PS2bl
PS3bl
N/A
State of Ambient Visible System
State of Ambient IR System
State of PS System
PS Baseline Levels
Unused
N/A
Rev. 0.3
5