background image

AS5045 12-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER  
Adapter PCB Operation Manual

 

Revision A.02, 14-Mar-07                                     www.austriamicrosystems.com   

Page 3 of 12 

 

5

 

Principle of Operation 

The AS5045 chip consists of a ring of hall 
elements, placed at the center of the IC at a 

circle diameter of 2.2mm (86.6mil). 

 

The hall elements pick up the field of a magnet, 
placed atop this hall array circle. This 

information is digitized and fed into a digital 

signal processor (DSP), which calculates the 

angle of the magnet with a resolution of 0.0879 
degrees or 4096 positions per revolution (12bit) 

at a sampling rate of 96µs (10kHz; Default) or 

384µs (2.6kHz). 

 

The digital angle information is available in 
several formats: as serial 12-bit data stream, as 

pulse-width modulated (PWM) signal or as 

quadrature incremental signal 

 

                Figure 4: Tolerances of magnet placement 

 

5.1

 

Magnet considerations 

A magnet, having one north / one south pole in the horizontal axis is placed right above the ring of hall elements 

(see Figure 2). The magnet does not necessarily need to be circular, it can be rectangular as well, as long as the 

north and south pole are arranged horizontally over the center of the hall array ring. 
The magnetic field strength along this ring should be in the range of 

±

45….75 milliTesla (mT).   

 

5.1.1

 

Magnet size 

The size of the magnet should be at least the size of the hall array ring (2.2mm). Smaller magnets are more critical 

in terms of misalignment due to the non-linear magnetic field distribution along the circumference of the magnet. 
The recommended magnet diameter is 4….6mm 

5.1.2

 

Magnet distance and material 

To achieve the required field strength at a reasonable distance (~0.5…5mm), it is recommended to use rare-earth 

magnets, such as Samarium-Cobalt (SmCo) or Neodyne-Iron-Boron (NdFeB) magnets. 

5.1.3

 

Magnet misalignment 

In theory, the magnet misalignment is not critical for this type of angular measurement. In practice however, 

magnets are not perfectly linear. The magnetic field strength does not increase linearly with the radius. As you get 

towards the boundary of the magnet, the magnetic field comes to a maximum and then weakens as you move 

further away from the center. Therefore, a magnet should be chosen, that is still in the linear range at a <3mm 
diameter.  

 

5.1.4

 

Non-linearity errors 

A non-linear magnetic field results in a non-sinusoidal representation of the magnet, which in turn causes non-

linearities in the calculated angle (calculated angle differs from actual angle). 
With a perfectly centered magnet, the maximum error is <

±

0,5 degrees. This error is caused by internal mismatch 

and gain errors. 
With the recommended 4mm magnet (Bomatec BMN-35H), the maximum error of <

±

1.4degrees (including 

internal errors and temperature related errors) can be achieved while the magnet is off-center by a radius of 

<0.25mm (see                Figure 4). 
 

1

Defined
 center

2.433 mm

2.433 mm

3.9 mm

3.9 mm

Area of allowed magnet
misalignment: 0.5mm diameter

Circle of Hall elements
on chip: 2.2mm diameter

ams 

AG 

Technical 

content 

still 

valid

Summary of Contents for AS5045

Page 1: ...chnical content of this austriamicrosystems document 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 ...

Page 2: ...e operation it can be supplied with 3 3V 5V or 7 5 12V DC supply voltages Figure 1 AS5045 Adapter PCB top and bottom view Features 100mil connector for direct connection to AS5045 demo board Provision for a 600mil DIP socket Hole in PCB to center a 6mm magnet at the bottom of the IC LED for Mode output LED for PWM output LEDs for magnet status outputs MagInc MagDec On board 5V linear voltage regul...

Page 3: ... indicates a distance reduction between the magnet and the device surface See Error Reference source not found 2 MagDECn DO_OD Magnet Field Magnitude DECrease active low indicates a distance increase between the device and the magnet See Error Reference source not found 3 NC must be left unconnected 4 NC must be left unconnected 5 NC must be left unconnected 6 Mode select between slow open low VSS...

Page 4: ... misalignment due to the non linear magnetic field distribution along the circumference of the magnet The recommended magnet diameter is 4 6mm 5 1 2 Magnet distance and material To achieve the required field strength at a reasonable distance 0 5 5mm it is recommended to use rare earth magnets such as Samarium Cobalt SmCo or Neodyne Iron Boron NdFeB magnets 5 1 3 Magnet misalignment In theory the m...

Page 5: ...ls Power Supply options Supply voltage apply at ext voltage regulator IC2 or IC3 digital I O level remark 3 0 3 6V VDD5V and VDD3V3 not required 3 0 3 6V short VDD5V and VDD3V3 4 5 5 5V VDD5V not required 4 5 5 5V 7 5 20V ext voltage regulator pin 1 J2 3 3V type e g LE33C ST Micro 3 3V short VDD5V and VDD3V3 7 5 20V ext voltage regulator pin 1 J2 5 0V type e g 75L05 5 0V PCB delivery status if alr...

Page 6: ...distance between magnet and chip surface changes When both outputs are on the magnetic field is not within the recommended range see datasheet Programming zapping the Chip For programming the AS5045 3 digital signals are required CSn Prog and CLK see datasheet For permanent writing VPROG must be elevated to 7 5V during the programming cycle For immediate programming this PCB can be connected direc...

Page 7: ...mensions 7 Supporting Tools austriamicrosystems provides the following tools for developments using the AS5045 rotary encoder IC AS5045 Demoboard see Figure 8 AS5045 Demoboard Operation Manual AS5045 Demoboard Software AS5045 Adapter PCB see Figure 1 These supporting tools are available at local distributors http www austriamicrosystems com 06contactcenter sales_start htm or can be ordered online ...

Page 8: ...oftware The AS5045 demoboard can be used in several ways 8 1 1 as standalone unit supplied by a 9V battery Connect a 7 5V 12V supply to pins GND and 9V at the right side of the board No other connections are required 8 1 2 as standalone unit supplied by an USB port Connect the demoboard to a PC using a USB cable included in demoboard shipment The board is supplied by the 5V supply of the USB port ...

Page 9: ...Manual see 7 Supporting Tools 9 1 Connecting the AS5045 adapter PCB to the demoboard The AS5045 Adapter PCB is intended as a standalone device that allows easy and quick testing of the AS5045 without the need of having to make your own PCB It allows access to each IC pin via a standard 100mil pitch 600mil Dual In Line connector has LEDs on all digital outputs and comes with an onboard 5V linear vo...

Page 10: ...pter PCB to prevent accidental damage of the IC when an input voltage is applied to the regulator and the 5V output is fed to the VDD3V3 supply pin Figure 9 Configuring the Adapter PCB for 3 3V operation See Figure 10 AS5045 Demoboard 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 MagINCn MagDECn NC NC NC Mode VSS Prog_DI DO CLK CSn PWM NC NC VDD3V3 VDD5V AS5045 IC1 7 2 3 4 5 6 1 10n 1µF µC Cap only requi...

Page 11: ... is disconnected OTP programming of the external AS5045 encoder To program the external AS5045 encoder a programming voltage of 7 5 to 8V DC 130mA must be applied to pins Vzapp and GND of the 3 pin connector at the right hand side of the demoboard A 10µF buffer cap is recommended for this voltage see Figure 10 Programming is not recommended with long wires between demoboard and external encoder as...

Page 12: ...T United Kingdom Phone 44 118 973 1797 Fax 44 118 973 5117 austriamicrosystems AG Klaavuntie 9 G 55 FI 00910 Helsinki Finland Phone 358 9 72688 170 Fax 358 9 72688 171 austriamicrosystems AG Bivägen 3B S 19163 Sollentuna Sweden Phone 46 8 6231 710 austriamicrosystems USA Inc 8601 Six Forks Road Suite 400 Raleigh NC 27615 USA Phone 1 919 676 5292 Fax 1 509 696 2713 austriamicrosystems USA Inc 4030 ...

Page 13: ...austriamicrosystems for current information This product is intended for use in normal commercial applications Copyright 2006 austriamicrosystems 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 To the best of its knowledge austriamicrosystems asserts that the inform...

Reviews: