AMS AS5030 User manual

austriamicrosystems AG
is now
ams AG
The technical content of this austriamicrosystems application note is still valid.
Contact information:
Headquarters:
ams AG
Tobelbaderstrasse 30
8141 Unterpremstaetten, Austria
Tel: +43 (0) 3136 500 0
e-Mail: ams_sales@ams.com
Please visit our website at www.ams.com

AS5030 8-bit Programmable Magnetic Rotary Encoder
Revision 1.0, 26.February 2009
www.austriamicrosystems.com
Page 1 of 10
1General Description
The AS5030 is a contactless magnetic rotary encoder for
accurate angular measurement over a full turn of 360°.
It is a system-on-chip, combining integrated Hall elements,
analog front end and digital signal processing in a single
device.
To measure the angle, only a simple two-pole magnet,
rotating over the center of the chip is required.
The absolute angle measurement provides instant indication
of the magnet’s angular position with a resolution of 8 bit =
256 positions per revolution. This digital data is available as a
serial bit stream and as a PWM signal.
In addition to the angle information, the strength of the
magnetic field is also available as a 6-bit code.
Data transmission can be configured for 1-wire (PWM), 2-
wires (CLK, DIO) or 3-wires (CLK, DIO, CS).
A software programmable (OTP) zero position simplifies
assembly as the zero position of the magnet does not need
to be mechanically aligned.
A Power Down Mode together with fast startup- and
measurement cycles allows for very low average power
consumption and makes the AS5030 also suitable for battery
operated equipment.
2The AS5030 Adapterboard
2.1 Board description
The AS5030 adapter board is a simple circuit allowing to test and evaluate the AS5030 rotary encoder quickly without having to build
a test fixture or PCB.
The PCB can be used as standalone unit or attached to a microcontroller.
The standalone operation requires only a 5V power supply, the magnet’s angle can be read on the PWM or analog output.
Figure 1: AS5030 Adapterboard
AS5030-AB-2.0 Adapterboard
OPERATION MANUAL
AS5030
8 bit Programmable Magnetic Rotary Encoder
JP1 connector
(Alarm, PWM, analog,
p
ower su
pp
l
y)
JP2 connector
(serial IO, power supply)
4 x 2.6mm mounting
holes
P2 solder bridge
Close (default): 3 wire serial mode
Open: 2 wire serial mode
P1 solder bridge
Close (default): Sin/Cos output disabled
Open: Sin/Cos output enabled
AS5030 encoder
A
nalog Sin/Cos outputs
(P1 must be opened)
ams AG
Technical content still valid

AS5030 8-bit Programmable Magnetic Rotary Encoder
Adapterboard Operation Manual
2.2 Mounting the AS5030 adapter board
Bearing
M2~M2.5 Screw + nut
Casing
Figure 2: AS5030 adapter board mounting and dimension
A 6x2.5mm diametral magnet must be placed over on under the AS5030, and should be centered on the middle of the package with
a tolerance of 0.5mm.
The airgap between the magnet and the AS5030 casing should be maintained in the range 0.5mm~2mm.
The magnet holder must not be ferromagnetic. Materials as brass, copper, aluminum, stainless steel are the best choices to make
this part.
Rotating shaft and magnet holder
Not ferromagnetic (plastic, brass, copper,
stainless steel, aluminum…)
Spacer
AS5030-AB PCB
JP2 connector, 3 pin
(Analog out, 5V, GND)
Revision 1.0, 26.February 2009
www.austriamicrosystems.com
Page 2 of 10
ams AG
Technical content still valid

AS5030 8-bit Programmable Magnetic Rotary Encoder
Adapterboard Operation Manual
3AS5030 and adapter board pinout
AS5030
GNDGND Mag PWM DX 5V
GNDProg DI DIO CS CLK 5V
Ana
COSGND SINn SIN COSn
P1
P2
AS5030-AB-2.0
Figure 3: AS5030 adapter board connectors and encoder pinout
Pin#
Board
Pin#
AS5030 Symbol Type Description
JP1 - 1 3 GND S Supply ground
JP1 - 2 13 5V S Positive supply voltage, 4.5V to 5.5V
JP1 - 3 10 CLK DI_ST Clock Input of Synchronous Serial Interface; Schmitt-Trigger input
JP1 - 4 11 CS DI_ST Chip Select for serial data transmission, active high; Schmitt-Trigger input,
external pull-down resistor (~50kΩ) required in read-only mode
JP1 - 5 12 DIO DIO Data output / command input for digital serial interface
JP1 - 6 - DI DI Command input for digital serial interface. Connect to GND if not used.
JP1 - 7 2 PROG S OTP Programming voltage supply pin. Leave open or connect to VDD if not used
JP2 - 1 3 GND S Supply ground
JP2 - 2 13 5V S Positive supply voltage, 4.5V to 5.5V
JP2 - 3 - Analog - 0~5V analog output. Generated by the PWM output and filtered.
JP2 - 4 9 DX DO Digital output for 2-wire operation and Daisy Chain mode
JP2 - 5 16 PWM DO Pulse Width Modulation output, 2.26µs pulse width per step (2.26µs ~ 512µs)
JP2 - 6 1 MagRNG DO_T Push-Pull output. Is HIGH when the magnetic field strength is too weak, e.g. due to missing
magnet
JP2 - 7 3 GND S Supply ground
JP3 - 1 7 COS - Must be left unconnected for normal operation. COS output in SIN/COS mode (P1 open)
JP3 - 2 6 COSn - Must be left unconnected for normal operation. COSn output in SIN/COS mode (P1 open)
JP3 - 3 5 SIN - Must be left unconnected for normal operation. SIN output in SIN/COS mode (P1 open)
JP3 - 4 4 SINn - Must be left unconnected for normal operation. SINn output in SIN/COS mode (P1 open)
JP3 - 5 3 GND S Supply ground
P1
bridge 14 C1 DI
Configuration input for Sin/Cos output:
-Connect to VSS for normal operation (P1 closed, by default)
-High level (P1 open) to enable Sin/Cos outputs
This pin is scanned at power-on-reset and at wakeup from one of the Ultra Low Power Modes
P2
bridge 15 C2 DI
Configuration input for serial wire mode:
-Connect to VSS for 3-wire operation (P2 closed, by default)
-High level (P2 open) for 2-wire operation
This pin is scanned at power-on-reset and at wakeup from one of the Ultra Low Power Modes
Table 1: Pin description
Pin types: S: supply pin DO: digital output
DI_ST: digital input / Schmitt-Trigger DO_T: digital output / tri-state
DIO: bi-directional digital pin DI: digital input (standard CMOS; no pull-up or pull-down)
Revision 1.0, 26.February 2009
www.austriamicrosystems.com
Page 3 of 10
ams AG
Technical content still valid

AS5030 8-bit Programmable Magnetic Rotary Encoder
Adapterboard Operation Manual
4Operation use cases
4.1 Standalone Analog output mode
Figure 4: Using the analog output with the adapter board
The simplest setup to test the AS5030 is to use the
adapter board in standalone mode. A 3-pin header
connector is present on JP2.
A header connector is present on JP2 on pin 1, 2, 3.
Connect a regulated power supply on 5V (pin #2) and
GND (pin #1).
The “Ana” (pin #3) is an analog output, which is an RC
filtered signal of the PWM output of the AS5030. The
external device (AD converter, voltmeter…) connected on
the “Ana” pin should have an input impedance >470kΩ,
otherwise it should be buffered with an op. amp.
By rotating the magnet, a progressive analog voltage
from 0 to 5V can be measured on the “Ana” pin (JP2 #3).
Rotating the magnet clock wise (AS5030 chip on the top
side) increases the Ana voltage, and counter clockwise
will decrease the voltage.
Because of the RC filter, the response time of a jump
359°Æ0° (5VÆ0V) and 0°Æ359° (0VÆ5V) is 100ms.
4.2 Standalone PWM output mode
Figure 5: Using the PWM output with the adapter board
Instead of getting a proportional analog voltage
increasing with the magnet’s angle on the “Ana” output, a
PWM signal (JP2 pin #5) with a period of 581us, 2.26us
step and 5V pulse voltage can be connected to the
capture/timer input of a microcontroller in order to decode
the angle value.
Figure 6: PWM duty cycle depending on magnet position
Revision 1.0, 26.February 2009
www.austriamicrosystems.com
Page 4 of 10
ams AG
Technical content still valid
Table of contents
Other AMS Media Converter manuals
Popular Media Converter manuals by other brands

H&B
H&B TX-100 Installation and instruction manual

Bolin Technology
Bolin Technology D Series user manual

IFM Electronic
IFM Electronic Efector 400 RN30 Series Device manual

GRASS VALLEY
GRASS VALLEY KUDOSPRO ULC2000 user manual

Linear Technology
Linear Technology DC1523A Demo Manual

Lika
Lika ROTAPULS I28 Series quick start guide

Weidmuller
Weidmuller IE-MC-VL Series Hardware installation guide

Optical Systems Design
Optical Systems Design OSD2139 Series Operator's manual

Tema Telecomunicazioni
Tema Telecomunicazioni AD615/S product manual

KTI Networks
KTI Networks KGC-352 Series installation guide

Gira
Gira 0588 Series operating instructions

Lika
Lika SFA-5000-FD user guide