S i 11 2 0 - E K
S i 11 2 0 E
VALUATION
K
I T
U
SER
’
S
G
UIDE
1. Kit Contents
The Si1120 Evaluation Kit contains the following items:
Si1120 Evaluation Board
C8051F930 Target Board
Si1120EK Quick Start Guide
AC to DC Power Adapter
USB Debug Adapter (USB to Debug Interface)
2 USB Cables
2. Introduction
The Si1120EK is intended as an evaluation and development platform for the Si1120 infrared proximity and
ambient light sensor. Two PCBs are included in the kit: the Si1120 EVB shown in Figure 1, and the C8051F930-TB
shown in Figure 2. Although the C8051F930-TB is part of the development kit, the documentation in this user’s
guide will focus on the Si1120 EVB and the example firmware. For more specific information on the C8051F930
TB, refer to the “C8051F930-DK User’s Guide”. The main components of the Si1120 EVB are the Si1120 sensor
(U1), the infrared emitters (D1 through D7), and header J1 which allows for selection between different infrared
emitters on the board. On this PCB, the infrared emitters used are OSRAM part number SFH 4650-Z. These
emitters have a power rating of 45 mW and a half-angle of 20 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 Si1120 while each of three
infrared emitters are independently activated. The infrared light from these emitters will be reflected back to the
Si1120 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 pre-determined
thresholds, and the position calculations will not update. The example firmware is intended to be used in
conjunction with the Si1120 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 1
on page 5. The Si1120’s ambient light sensor (ALS) is also monitored by the firmware, which can determine the
type of ambient light present.
Note:
The touchless infrared position detection implemented in the example is patent pending.
3. Getting Started
The Si1120 Evaluation Kit requires some PC software to be installed, as well as some basic hardware setup of the
boards included in the kit.
3.1. Software Download and Installation
1. Browse to the Si1120 Evaluation Kit page at the URL
http://www.silabs.com/Si1120EK.
2. Download and install the latest CP210x USB-to-UART Virtual COM Port (VCP) driver. This driver is necessary
to establish serial communications with the board.
3. Download and install the latest version of the Optical Sensors Programmer’s Toolkit. The Si1120 Performance
Analysis Tool is part of this package, and is an integral part of the example firmware functionality.
4. (Optional) Download and install the Silicon Laboratories IDE and the Si1120 Evaluation Kit package. This will
enable programming and debugging of the example source code. Note that the firmware is pre-loaded into the
board during manufacturing. The IDE and board package are needed to upgrade or modify the firmware.
Rev. 0.3 7/13
Copyright ©2013 by Silicon Laboratories
Si1120-EK
Si1120-EK
3.2. Hardware Setup
1. Ensure the shorting blocks are configured for basic operation on both boards, as shown in Figure 1 and
Figure 2.
2. Connect the Si1120 EVB to the 96-pin connector on the C8051F930 TB.
3. Connect the USB Debug Adapter to the DEBUG connector on the C8051F930 TB with the 10-pin ribbon cable.
4. Connect one end of a USB cable to the USB connector on the USB Debug Adapter, and the other end to a USB
Port on the PC.
5. Verify that a shorting block is installed on J17 of the C8051F930 TB and that SW5 is in the ON position.
6. Connect the ac/dc power adapter to power jack P1 on the C8051F930 TB (Optional).
7. Connect one end of a USB cable to connector P3 on the C8051F930 TB, and the other end to a USB port on
the PC. Note that the CP210x VCP drivers should have been installed during the software setup described in
“3.1. Software Download and Installation” . If the drivers are installed correctly, a dialog box will pop up notifying
the user that a new USB device has been found.
Refer to Figure 3 for the full hardware connection diagram.
D5
D6
D7
D1
GND
MD
SC
PRX
STX
TXO
VDD
J2
J4
U1
J9
VTX0
D2
P1
SILICON LABS
VTX0
Si1120 EVB
D3
J1
B1
J3
VDD
D4
VTX0
Figure 1. Si1120 Evaluation Board—Shorting Block Settings
R15
J16
P1.4
J15
GND
P1.6
P1.5 SW2
TOUCH SENSE SWITCH
P2.0
TOUCH SENSE SWITCH
P2.1
P0.2
P0.3
SW3
USB POWER P3
CP
2103
J4
PORT2
SILICON LABS
www.silabs.com
U3
J8
+1VD
J11
COIN_CELL
J10
POWER OFF BEFORE
SWITCHING MODE
J9
DEBUG
C8051F930-TB
U1
F930
J7
J3
J12
P1
PORT1
RESET
J6 VDD/DC+
J5
PORT0
IMEASURE
J2
OFF
ON
SW5
J17
H2
`
VBAT
J1
SW4
P2
H1
Figure 2. C8051F930 Target Board—Shorting Block and Switch Settings
2
Rev. 0.3
2 CELL
1 CELL
J13
AAA_BAT
WALL_PWR
SW1
J14
+3VD
VBAT
Si1120-EK
CP
210
3
SILICON LABS
www.silabs.com
Communication
with PC
C8051F930-TB
P1
SILICON LABS
F930
SILICON LABS
Si1120 EVB
`
Debug
Connection
to PC
AC/DC
Adapter
Figure 3. Hardware Setup
3.2.1. Si1120 EVB Header J1 Settings
To function properly with the demonstration firmware, the shorting blocks on header J1 should be set as indicated
in Figure 1. However, these can be set differently, according to the application. The corner emitter is fixed at D1,
but a shorting block point is provided for debug purposes. The “X” and “Y” axis emitters can each be moved
between three different positions on the board, as shown in Figure 4.
Select Corner Emitter
(D1 Only)
D1
D7
Select “X”
D6
Axis Emitter
D5
D2
Select “Y”
D3
Axis Emitter
D4
J1
Figure 4. Header J1 Setup
Rev. 0.3
3
Si1120-EK
4. Software Overview
There are several software packages available to support the example firmware that is pre-loaded on the board.
The primary package that is required for functionality is the Si1120 Performance Analysis Tool, which can be used
to collect data from the board over the USB interface and display it graphically on screen.
Optional software packages include the Silicon Labs Integrated Development Environment (IDE), and the Si1120
Evaluation Kit package. The Silicon Labs IDE provides a means of developing code for the C8051F930 and uses
the USB Debug Adapter to program the MCU and perform in-system debugging. For users wishing to modify the
example code or download the latest version of firmware into the board, the Si1120 Evaluation Kit installation
package contains board-specific materials such as the latest version of the pre-built firmware .HEX image and the
firmware example source code.
4.1. Using the Si1120EK With the Si1120 Performance Analysis Tool
The Si1120 Evaluation Kit is supported by the Si1120 Performance Analysis Tool. The Performance Analysis Tool
allows users to see real-time measured infrared proximity and ambient light measurements from the Si1120 in a
graphical form, as well as the calculated values for distance from each of the infrared LEDs and the X, Y, and Z
positions. Additionally, recognized gestures and the ambient light conditions can be displayed in dedicated group
windows. The communications interface to the Si1120 EVB is provided over USB (P3) via the CP2103 USB-to-
UART bridge.
To use the Performance Analysis Tool with the Si1120 Evaluation Kit:
1. Connect the C8051F930-TB 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 will normally show up as the last COM port in the list).
4. Select the channels you wish to display on the picture of the Si1120 EVB that appears. The individual channels
available are described in “4.1.1. Channel Selection” .
5. Click the green “Acquisition” arrow to begin collecting data.
Figure 5 shows an example of the Performance Analysis Tool output when connected to the board. To generate the
graph, a hand was moved above the Si1120EVB. The selected traces shown are the calculated X and Y positions.
The green trace represents the X position, while the yellow trace represents the Y position of the hand above the
board.
Figure 5. Performance Analysis Tool Main Window
4
Rev. 0.3
Si1120-EK
4.1.1. Channel Selection
Selecting which channels to display is a simple matter of checking the appropriate boxes over the board
photograph, shown in Figure 7.
4.1.2. Gestures and Ambient Light Conditions
In addition to infrared and ambient light measurements and distance calculations, the example firmware contains
algorithms for gesture recognition and ambient light condition detection. When connected to the board with the
Performance Analysis Tool, two group windows will appear, as shown in Figure 6. When a gesture is recognized by
firmware, the gesture name and parameter information will be added to the top of the 3D Gesture group. Four
gestures are supported by the example code. The parameters for each gesture are listed in Table 1. The detected
ambient light conditions (Sunlight, Incandescent/Halogen, or Fluorescent/CFL) will be displayed in the Light Type.
Figure 6. Performance Analysis Tool Group Windows
Table 1. Recognized Gestures
Gesture Name
Swipe Left
Swipe Right
Swipe Up
Swipe Down
Parameter
Speed
Speed
Speed
Speed
Parameter Range
1 18 (Slow to Fast)
1 18 (Slow to Fast)
1 18 (Slow to Fast)
1 18 (Slow to Fast)
Description of Action
Move hand rapidly from the right side to the left side
of the board.
Move hand rapidly from the left side to the right side
of the board.
Move hand rapidly from the bottom to the top of the
board.
Move hand rapidly from the top to the bottom of the
board.
4.2. Silicon Laboratories IDE
The Silicon Laboratories IDE integrates a source-code editor, a source-level debugger, and an in-system Flash
programmer. This tool can be used to develop and debug code for the C8051F930 MCU. The use of several third-
party compilers and assemblers is supported by the IDE.
4.2.1. IDE System Requirements
The Silicon Laboratories IDE requirements:
Pentium-class host PC running Microsoft Windows 2000 or newer.
One available USB port.
4.2.2. Third Party Toolsets
The Silicon Laboratories IDE has native support for many 8051 compilers. The full list of natively supported tools is
as follows:
Keil
IAR
Rev. 0.3
5