Operation Manual

User Manual – AS5510 Adapterboard
AS5510
10-bit Linear Incremental Position Sensor with Digital
Angle output
www.ams.com
Revision 1.2 - 22/08/13
page 1/12
AS5510-AB-Manual
Table of Contents
1
General Description ............................................................................................................. 3
2
List of content ....................................................................................................................... 3
3
Board Description ................................................................................................................. 3
4
Pinout ................................................................................................................................... 4
5
Mounting the AS5510 Adapterboard .................................................................................... 6
6
Connecting the AS5510 Adapterboard ................................................................................ 8
7
Software example ................................................................................................................ 9
8
Schematic and Layout ....................................................................................................... 11
9
Copyright ............................................................................................................................ 12
10
Disclaimer .......................................................................................................................... 12
11
Contact Information ............................................................................................................ 12
Revision History
Revision
Date
1.0
01.09.2010
Initial revision
1.1
28.11.2012
New Template
1.2
22.08.2013
www.ams.com
Owner
AZEN
Description
Updated to SOIC8 Package
Revision 1.2 - 22/08/13
page 2/12
AS5510-AB-Manual
1
General Description
The AS5510 is a linear Hall sensor with 10 bit resolution and I²C interface. It can measure
absolute position of lateral movement of a simple 2-pole magnet. The typical arrangement is
shown below in (Figure 1).
Depending on the magnet size, a lateral stroke of 0.5~2mm can be measured with air gaps
around 1.0mm. To conserve power, the AS5510 may be switched to a power down state when it
is not used.
Figure 1:
Linear Position Sensor AS5510 + Magnet
magnet
N
S
AS5510
SOIC8
PCB
2
List of content
Figure 2:
List of content
Name
Description
AS5510-SOIC8-AB
Adapterboard with AS5510 on it
AS5000-MA4x2H-1
Axial magnet 4x2x1mm
3
Board Description
The AS5510 adapter board is a simple circuit allowing to test and evaluate the AS5510 linear
encoder quickly without having to build a test fixture or PCB.
The adapterboard must be attached to a microcontroller via the I²C bus, and supplied with a
voltage of 2.5V ~ 3.6V. A simple 2-pole magnet is placed on the top of the encoder.
www.ams.com
Revision 1.2 - 22/08/13
page 3/12
AS5510-AB-Manual
Figure 3:
AS5510-AB
Magnetic Position Sensor
J1 Connector (Supply, I2C)
4 x 2,6mm Mounting holes
4
Pinout
Figure 4:
Pin Configuration of AS5510 (Top View)
J1
VDD
GND
SDA
SCL
NC
2
VSS
3
ADR
4
VDD
JP1
AS5510
AS5510
1
NC
8
SCL
7
SDA
6
TEST
5
Table 1:
Pin Description
Pin
AS5510
Symbol
Type
Description
1
NC
-
Not Connected
2
VSS
S
Ground Pin
3
ADR
DI
www.ams.com
I²C address selection pin. Pull down by
default (56h). Close JP1 for (57h).
Revision 1.2 - 22/08/13
page 4/12
AS5510-AB-Manual
4
VDD
S
2.8V – 3.6V supply Voltage
5
Test
DIO
Test pin, connected to VSS
6
SCL
DI
I²C Clock
7
SDA
DI/DO_OD
I²C data I/O, 20mA driving capability
8
NC
-
Not Connected
DO_OD
… digital output open drain
DI
… digital input
DIO
… digital input/output
S
… supply pin
www.ams.com
Revision 1.2 - 22/08/13
page 5/12
AS5510-AB-Manual
5
Mounting the AS5510 Adapterboard
The AS5510-AB can be fixed to an existing mechanical system by its four mounting holes. A
simple 2-poles magnet placed over or under the IC can be used.
Figure 5:
AS5510 adapter board mounting and dimension
magnet
N
S
AS5510
Airgap
PCB
22mm
J1
VDD
GND
SDA
SCL
JP1
11mm
28mm
4x2.6mm
2mm
2mm
AS5510
18mm
The maximum horizontal travel amplitude depends on the magnet shape and size and magnetic
strength (magnet material and airgap).
In order to measure a mechanical movement with a linear response, the magnetic field shape at a
fixed airgap must be like on
Figure 6: Magnet requirement.
The linear range width of the magnetic field between North and South poles determines the
maximum travel size of the magnet. The minimum (-Bmax) and maximum (+Bmax) magnetic
field values of the linear range must be lower or equal to one of the four sensitivities available on
the AS5510 (register 0Bh):
Sensitivity = ± 50mT, ± 25mT, ±18.5mT, ±12.5mT
The 10-bit output register D[9..0] OUTPUT = Field(mT) * (511/Sensitivity) + 511
www.ams.com
Revision 1.2 - 22/08/13
page 6/12
AS5510-AB-Manual
Figure 6:
Magnet requirement
Magnet
N
S
Airgap
Bmax = 50mT
25mT
18.5mT
12.5mT
AS5510
Max. Travel Distance
Magnetic field (mT) measured on AS5510 surface
with fixed airgap
10-bit result, output register AS5510
Depending on Sensitivity setting
(register 0Bh)
Bmax
1023d
L in
ea
rr
0
-Xmax
an
ge
+Xmax
X (Magnet position)
-Bmax
0d
Example 1:
This is the ideal case: the linear range of the magnet is ±25mT, which fits to the ±25mT
sensitivity setting of the AS5510. The resolution of displacement vs. output value is optimal.
Max. Travel Distance TD max = ±1mm (X max = 1mm)
Sensitivity = ±25mT (Register 0Bh  01h)
Bmax = 25mT  X = -1mm (= -Xmax)
Field(mT) = -25mT
OUTPUT = 0
 X = 0mm
Field(mT) = 0mT
OUTPUT = 511
 X = +1mm (= +X max)
Field(mT) = +25mT
OUTPUT = 1023
Dynamic range of OUTPUT over ±1mm: DELTA = 1023 – 0 = 1023 LSB
Resolution = TDmax / DELTA = 2mm / 1024 = 1.95µm/LSB
www.ams.com
Revision 1.2 - 22/08/13
page 7/12
AS5510-AB-Manual
Example 2:
Using the same settings on the AS5510, the linear range of the magnet over the same
displacement of ±1mm is now ±20mT instead of ±25mT due to a higher airgap or a weaker
magnet. In that case the resolution of displacement vs. output value is lower.
Max. Travel Distance TD max = ±1mm (X max = 1mm): unchanged
Sensitivity = ±25mT (Register 0Bh  01h) : unchanged
Bmax = 20mT  X = -1mm (= -Xmax)
Field(mT) = -20mT
OUTPUT = 102
 X = 0mm
Field(mT) = 0mT
OUTPUT = 511
 X = +1mm (= +X max)
Field(mT) = +20mT
OUTPUT = 920
Dynamic range of OUTPUT over ±1mm: DELTA = 920 – 102 = 818 LSB
Resolution = TDmax / DELTA = 2mm / 818 = 2.44µm/LSB
In order to keep the best resolution of the system, it is recommended to adapt the sensitivity as
close as the Bmax of the magnet, with B max < Sensitivity to avoid the saturation of the output
value.
If a magnet holder is used, it must be made of a non-ferromagnetic material in order to keep the
maximum magnetic field strength and maximum linearity. Materials as brass, copper, aluminium,
stainless steel are the best choices to make this part.
6
Connecting the AS5510 Adapterboard
Two wires (I²C) only are required for the communication with the host MCU. Pull -up resistors are
needed on both SCL and SDA line. The value depends on the length of the wires, and the
amount of slaves on the same I²C line.
The power supply delivering between 2.7V ~ 3.6V is connected to the adapter board and the
pull-up resistors.
A second AS5510 adapterboard (optional) can be connected on the same line. In that case, the
I²C address must be changed by closing JP1 with a wire.
www.ams.com
Revision 1.2 - 22/08/13
page 8/12
AS5510-AB-Manual
Figure 7:
Typical connection to a host MCU (2nd adapterboard is optional)
MCU
I²C port
SCL
SDA
2x
2.2k ~ 10k
J1
VDD
GND
SDA
SCL
J2
+2.5 ~ 3.6V
GND
Regulated
Power Supply
JP1
I²C ADDR = 56h
AS5510
VDD
J2
J1
GND
SDA
SCL
JP1
I²C ADDR = 57h
Optional
adapterboard
AS5510
7
Software example
After powering up the system, a delay of >1.5ms must be performed before the first I²C
Read/Write command with the AS5510.
The initialization after power up is optional. It consists of:
-
Sensitivity configuration (Register 0Bh)
-
Magnet polarity (Register 02h bit 1)
-
Slow or Fast mode (Register 02h bit 3)
-
Power Down mode (Register 02h bit 0)
www.ams.com
Revision 1.2 - 22/08/13
page 9/12
AS5510-AB-Manual
Reading the magnetic field value is straight forward. The following source code reads the 10-bit
magnetic field value, and converts to the magnetic field strength in mT (millitesla).
Example: Sensitivity configured to +-50mT range (97.66mT/LSB); Polarity = 0; default setting:
-
D9..0 value = 0 means -50mT on the hall sensor.
-
D9..0 value = 511 means 0mT on the hall sensor (no magnetic field, or no magnet).
-
D9..0 value = 1023 means +50mT on the hall sensor.
Void main_loop(unsigned char Sensitivity_Mode)
{
unsigned char Data1, Data2;
short value;
// 10-bit output value (0~1023)
// The value 511 is the middle point @ 0mT
float magnetic_field;
// Value of the magnetic field in mT
Data_LSB = I2C_Read8(I2C_ADDR, 0x00); // Read D7..0
Data_MSB = I2C_Read8(I2C_ADDR, 0x01); // Read D9..8 + OCF + Parity
value = ((Data_MSB & 0x03)<<8) + Data_LSB;
switch (Sensitivity_Mode) // Sensitivity_Mode is the value stored in
// register 0Bh
{
case 0:
// Register [0Bh] <= 0 (+- 50mT range, 97.66uT/LSB)
magnetic_field = (value - 511) * 0.09766;
break;
case 1:
// Register [0Bh] <= 0 (+- 25mT range, 48.83uT/LSB)
magnetic_field = (value - 511) * 0.04883;
break;
case 2:
// Register [0Bh] <= 0 (+- 12.5mT range, 24.41uT/LSB)
magnetic_field = (value - 511) * 0.02441;
break;
case 3:
// Register [0Bh] <= 0 (+- 18.7mT range, 36.62uT/LSB)
magnetic_field = (value - 511) * 0.03662;
break;
}
printf(“Decimal 10-bit value = %u \n”, value);
printf(“Magnetic field value = %.3fmT \n”, magnetic_field);
}
www.ams.com
Revision 1.2 - 22/08/13
page 10/12
B
C
AS5510-AB-Manual
D
8
Schematic and Layout
Figure 8:
AS5510-AB Schematic
E
JP1: I2C Address
Open: 56h
Closed: 57h
J1
VDD
GND
U1
F
GND
JP1
VDD
1
2
Jumper2
ADDR
R1
10k
VDD
A1
A2
A3
G
VSS
SDA
ADR
SCL
VDD
TEST
B1
SDA
B2
SCL
Header 4
B3
GND
J2
AS5510
ADDR
GND
VDD
GND
VDD
C1
100n
H
4
3
2
1
5
4
3
2
1
Header 5
GND
I
austriamicrosy
Tobelbaderstr
8141 Unterpre
Size: A4
Number: *
Revision:A
Austria
Date: 16.10.2013
Time: 12:39:48
Sheet 1 of 1
Drawn by:JLU
File: Y:\AS5510\_Hardware\AS5510-AB\WLCSP\AS5510-AB-1.1.SchDoc
Figure 9:
AS5510-AB Layout
Title
J
1
2
www.ams.com
3
AS5510 - AB - 1.1
4
Revision 1.2 - 22/08/13
5
6
7
page 11/12
8
AS5510-AB-Manual
9
Copyright
Copyright ams AG, Tobelbader Strasse 30, 8141 Unterpremstätten, 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.
10
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. 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 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. This Product is provided by ams “AS IS” and any express or implied
warranties, including, but not limited to the implied warranties of merchantability and fitness for a
particular purpose are disclaimed.
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.
11
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
www.ams.com
Revision 1.2 - 22/08/13
page 12/12