as5013 two-dimensional magnetic position sensor with ... user manual-272849.pdf · user manual...
TRANSCRIPT
www.ams.com Revision 2.1 / 2013/01/08
User Manual – AS5013 Demo Kit
AS5013
Two-dimensional Magnetic Position
Sensor with Digital Coordinates
output
AS5013 – Demo Kit User Manual
www.ams.com Revision 2.1 / 08/01/13 page 1/12
Table of Contents
1. General Description ............................................................................................................... 2
2. Package and Board Description ............................................................................................ 2
3. How to get the kit running ...................................................................................................... 4
4. Schematics ............................................................................................................................ 7
5. Layout .................................................................................................................................... 9
6. Ordering Information ............................................................................................................ 10
Copyright ..................................................................................................................................... 11
Disclaimer ................................................................................................................................... 11
AS5013 – Demo Kit User Manual
www.ams.com Revision 2.1 / 08/01/13 page 2/12
1. General Description
The AS5013 is a complete Hall Sensor IC for smart navigation key applications to meet the low
power requirements and host SW integration challenges for products such as cell phones and
smart handheld devices. Due to the on chip processing engine, system designers are not tasked
with integrating complex SW algorithms on their host processor thus leading to rapid
development cycles.
The AS5013 single-chip IC includes 5 integrated Hall sensing elements for detecting up to ±2mm
lateral displacement, high resolution ADC, XY coordinate and motion detection engine combined
with a smart power management controller.
The X and Y positions coordinates and magnetic field informat ion for each Hall sensor element
are transmitted over a 2-wire I²C interface to the host processor.
The AS5013 is available in a small 16-pin 4x4mm QFN package and specified over an operating
temperature of -20 to +80°C.
2. Package and Board Description
Demo Kit Contents
The demo kit includes following items listed below in .
Table 1: Demo Kit Contents
Pos Item Comment
1 AS5013 Demo board AS5013 Demo in gamepad-shape
2 USB 2.0 cable
3 USB Stick with Software
Board Descriptions
The AS5013 demo board consists of an EasyPoint™ module from Speedtech and an USB
interface PCB. The whole system is USB powered.
Once plugged on a PC running Windows, the AS5013 demo board works like a standard three-
buttons analog HID joystick, and can be used by any game or application supporting two-axis
analog joysticks under Microsoft Windows.
AS5013 – Demo Kit User Manual
www.ams.com Revision 2.1 / 08/01/13 page 3/12
Figure 1: AS5013-DB-2 Demo board
EasyPoint™ module
Moving the EasyPointTM
knob acts like an analog joystick, sending progressive XY coordinates
to Windows via USB.
Button EP (EasyPoint™ module push)
The EasyPoint™ module push button is used in different ways:
Mode 0 (default): Button EP emulates the standard HID button I (simultaneously with
Button ). Thus when using the AS501x evaluation software, button EP emulates the
left mouse button
Mode 1: Button EP is disabled. Button is still active as standard HID button I.
Buttons , , :
Those switches are standard HID gamepad buttons I, II and III. When using the AS501x
evaluation software, button emulates the left mouse button, and button emulates the right
mouse button.
USB plug (to PC) Horizontal mode-, Hall Push-, Center- LED
Joystick button , ,
EasyPointTM
Module
Direction Switch Vertical mode LED
AS5013 – Demo Kit User Manual
www.ams.com Revision 2.1 / 08/01/13 page 4/12
Direction Switch
The demo board can be used as a standard game pad when held horizontally, or as a remote
control or mobile phone when held vertically. Select the orientation by changing the position of
switch SW1. The actual position is indicated by the LEDs DS1 (Vertical) or DS2 (Horizontal).
Figure 2: Direction Switch options
1
2
3
1
2
3
UPUP
UP
RIGHTLEFT
DOWN
DIRECTION
DIRECTION
UP
RIGHTLEFT
DOWN
Horizontal:
Game pad mode
Vertical:
Remote control mode
When the position SW1 is changed, a zero position calibration is performed: a new zero position
will be set, the actual mechanical position of the knob is considered as the coordinate (0,0). This
procedure is necessary to compensate an inaccurate centering of the module’s knob. The
automatic centering calibration is performed each time the demo board is powered on as well.
Center LED and Hall Push LED
The Center LED is ON when the knob coordinate is exactly (0,0) . This coordinate is after
calibration. The Hall Push LED is ON when the EP button of the module is pushed and detected
via the hall sensors only. This function doesn’t use the dome switch contact of the module, but
the magnetic field change on the vertical direction. The Hall push LED is enabled in mode 0, 1
and 2 only. See next chapter for information about the demo board modes.
3. How to get the kit running
First Steps
1. Install the Evaluation Software. The Evaluation Software is located on the USB Stick or
can be downloaded from the ams homepage. For detailed instructions refer to the
Evaluation Software Manual.
AS5013 – Demo Kit User Manual
www.ams.com Revision 2.1 / 08/01/13 page 5/12
Software and manual download: http://www.ams.com/eng/Products/Magnetic-
Encoders/EasyPoint-Joystick-Encoder
2. Connect the demo board to the PC using the USB cable
3. Start the Mouse Emulator and try the different Plug-Ins. For detailed instructions refer to
the Evaluation Software Manual.
Advanced Steps and Information
The demo board is listed as a composite HID device in the Windows Device Manager:
Windows detects as a standard HID-compliant game controller. This part doesn’t
need any driver.
Windows detects as well an HID-compliant device. This part doesn’t need any driver.
Figure 3: Windows Device Manager
Demoboard modes
The AS5013 Demoboard can be configured in different ways without any software.
Mode 0: Without pressing any key, power up the demoboard with the USB cable. HID
Joystick button I is controlled by the EP button (from the EasyPoint™ module) and
Button .
Mode 1: Push and hold Button and power up the demoboard with the USB cable.
The LED “Center” blinks 4 times. HID Joystick button I is controlled by the Button
only. EP button is disabled
Mode 2: Push and hold Button and power up the demoboard with the USB cable.
The LED “Hall Push” blinks 4 times. HID Joystick button I is controlled by the Button ,
and by the “Hall Push” function. EP button is disabled.
HID game controller
HID compliant device
controller
AS5013 – Demo Kit User Manual
www.ams.com Revision 2.1 / 08/01/13 page 6/12
The “Hall Push” is an algorithm running in the demoboard MCU, reading the five Ha ll
Element C1..C5, and determines if the EP button has been pushed, without any
electrical contact. The restriction of this mode is that the detection is working when the
EasyPoint™ module button is pushed on the center position area.
Mode 3: Push and hold Button and power up the demoboard with the USB cable.
The LED “Center” and “Hall Push” blink 4 times simultaneously.
This mode is similar to Mode 0, but the I²C communication between the MCU and
AS5013 is restricted to XY coordinate exchange only. The Hall Push function is totally
disabled.
This mode is used for debug mode, if timing analysis, with e.g. an oscilloscope, is
required, and simplifies the readout of signal and timing interpretation.
Firmware update mode: Push and hold Button simultaneously and power up
the demo board with the USB cable.
All the LEDs are ON. The AS5013 is in “Bootloader mode”. This mode is used to update
the firmware of the demo board if a new file is available on the ams website:
Firmware update:
To update the firmware, just open the AS501X Evaluation Software 4.1.6 or newer and connect
the demoboard with the USB cable while pressing all three buttons as shown below. A window to
choose the firmware file will pop up automatically.
Figure 4: Firmware Update Instructions
AS5013 – Demo Kit User Manual
www.ams.com Revision 2.1 / 08/01/13 page 7/12
4. Schematics
Figure 5: AS5013_DB_2.1 Schematics
The microcontroller C8051C320 (U1) from SiLabs includes an on-chip USB interface. The
firmware is stored in its internal flash memory (16kB).
The whole power supply is taken from the USB bus by the microcontroller, and converts it
internally to 3.3V. No external LDO is required. The AS5013 is directly powered (VDD and
VDDp) by this 3.3V supply.
Connector J4 is used if an external MCU has to be connected to the AS5013 of the demo board,
instead of the C8051F320. In that case, cut the PCB tracks (bottom side) to disconnect the
N40P112 module from the MCU.
1 2 3 4 5 6
J3
USB_mini P0.1 1 P0.0 2
P2.7 11 P2.6 12 P2.5 13 P2.4 14 P2.3 15 P2.2 16 P2.1 17 P2.0 18 P1.7 19 P1.6 20 P1.5 21 P1.4 22 P1.3 23 P1.2 24 P1.1 25 P1.0 26 P0.7 27 P0.6 28 P0.5 29 P0.4 30 P0.3 31 P0.2 32
GND 3
D+ 4 D- 5
VDD 6 RegIn 7
VBUS 8
RST/C2CK 9 P3.0/C2D 10
U1
C8051F320
GND
GND
R20 2.2k
R16 4.7k R15 4.7k
R10 100k
C2 1u
C1 10u
Vusb
3.3V
3.3V
Vusb
GND
GND
1 2 3 4
J2
Header 4
ISP
USB SCL SDA
INTn
Button2n R9 100k Button1n
3.3V
Button3n R8 100k
DS3 LED_Y
DS4 LED_G
Vusb
R4 750R
R3 750R Hall Push
Center (0,0)
R6 100k
1 2
3 4
SW3
Switch_SKHC
1 2
3 4
SW2
Switch_SKHC GND GND
Button2n
GND
INTn GND
ButtonDOMEn
3.3V 3.3V
DS5 LED_G DS6
LED_G DS7 LED_G DS8
LED_G DS9 LED_G DS10
LED_G DS11 LED_G DS12
LED_G DS13 LED_G
SCL SDA
C4 470n
C3 470p
C5 1u
R12 100k
GND
R21 2.7k
R5 nc GND
GND
R17 nc
R18 0R
3.3V
RESETn
RESETn
SCL SDA RESETn
GND
PS2_CLK PS2_DATA 1 2 3 4
J1
Header 4 GND Vusb
1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16
J4
Header 8X2
AMS LG1
AMS Logo
R11 100k
I²C addr = 0x40
R13 nc R14 nc
PS/2
EasyPoint Module
Vusb
VDDp 1 VDD 2 GND 3 SDA 4 SCL 5 RESET/ 6 INT/ 7 SWITCH/ 8
0
ADDR 9
U2
NxxP11x
ButtonDOMEn
3.3V 3.3V
INTn
2 1 3
5 4 6
S1
MCLSS22
1 2
3 4
SW1
Switch_SKHC GND
Button1n
DIR
GND
DIR
LEDh LEDv
DS1 LED_R
DS2 LED_R R2 750R
R1 750R
OUT0 4 OUT1 5 OUT2 6 OUT3 7 OUT4 8 OUT5 9 OUT6 10 OUT7 11 OUT8 14 OUT9 15
OUT10 16 OUT11 17 OUT12 18 OUT13 19 OUT14 20 OUT15 21
XERR 22
SDO 23
GSCLK 24 TEST 25 Iref 26
VCC 27 PD 29
GND 30
OEN 31
LD 32 CLK 1 SDI 2
MODE 3
EPAD 0
U3
AS1112
3.3V
NSS MOSI MISO SCK
NSS MOSI MISO SCK
GND
GND
GND GND
CLR 12
QD 7 QE 5 QF 4 QG 6 QH 14 QI 13 QJ 15 QL 1 QM 2 QN 3
CLKI 11 CLKO 9 CLKO 10 VCC 16
GND 8
U4
M74HC4060M1R
3.3V
GND
GND
GND
R19 4.7k
3.3V
DS14 LED_G DS15
LED_G DS16 LED_G DS17
LED_G DS18 LED_G DS19
LED_G DS20 LED_G
VUSB
Button3n
GND GND
Vertical mode
Horizontal mode
R7 nc ButtonDOMEn
AS5013 – Demo Kit User Manual
www.ams.com Revision 2.1 / 08/01/13 page 8/12
Figure 6: Disconnecting the Module from the MCU
Connector J1 is not used and connector J2 is used for ISP programming of the microcontroller
only. All the switches (dome switch: Button EP, Button I, Button II, Button III) are connected
directly to the microcontroller. The unique I²C serial bus (SCL, SDA) controlled by the C8051
microcontroller is used for the EasyPointTM
module (AS5013). The interrupt output INTn is
connected directly to the MCU interrupt input.
Cut tracks along the yellow line
AS5013 – Demo Kit User Manual
www.ams.com Revision 2.1 / 08/01/13 page 9/12
5. Layout
Figure 7: PCB Top and Bottom View
PCB Top view PCB Bottom view
AS5013 – Demo Kit User Manual
www.ams.com Revision 2.1 / 08/01/13 page 10/12
6. Ordering Information
Table 2: Ordering Information
Ordering Code Description comments
AS5013-DB-2 AS5013 Demo Kit AS5013 Demo board in gamepad-shape
AS5013 – Demo Kit User Manual
www.ams.com Revision 2.1 / 08/01/13 page 11/12
Copyright
Copyright © 1997-2012, ams AG, Tobelbader Strasse 30, 8141 Unterpremstaetten, Austria-Europe. Trademarks Registered ®. All rights reserved. The material herein may not be reproduced, adapted, merged, translated, stored, or used without the prior written consent of the copyright owner. All products and companies mentioned are trademarks or registered trademarks of their respective companies.
Disclaimer
Devices sold by ams AG are covered by the warranty and patent indemnification provisions appearing in its Term of Sale. ams AG makes no warranty, express, statutory, implied, or by description regarding the information set forth herein or regarding the freedom of the described devices from patent infringement. ams AG reserves the right to change specifications and prices at any time and without notice. Therefore, prior to designing this product into a system, it is necessary to check with ams AG for current information. This product is intended for use in normal commercial applications. Applications requiring extended temperature range, unusual environmental requirements, or high reliability applications, such as military, medical life-support or life sustaining equipment are specifically not recommended without additional processing by ams AG for each application. For shipments of less than 100 parts the manufacturing flow might show deviations from the standard production flow, such as test flow or test location. The information furnished here by ams AG is believed to be correct and accurate. However, ams AG shall not be liable to recipient or any third party for any damages, including but not limited to personal injury, property damage, loss of profits, loss of use, interruption of business or indirect, special, incidental or consequential damages, of any kind, in connection with or arising out of the furnishing, performance or use of the technical data herein. No obligation or liability to recipient or any third party shall arise or flow out of ams AG rendering of technical or other services.
Contact Information
Headquarters
ams AG Tobelbader Strasse 30 8141 Unterpremstaetten Austria T. +43 (0) 3136 500 0 For Sales Offices, Distributors and Representatives, please visit: http://www.ams.com/contact
Mouser Electronics
Authorized Distributor
Click to View Pricing, Inventory, Delivery & Lifecycle Information: ams:
AS5013-DB-2