ams-OSRAM AS5040 10 bit Rotary Position Sensor with Digital Angle Instruction Manual

June 12, 2024
ams OSRAM

ams-OSRAM-LOGO

ams-OSRAM AS5040 10-bit Rotary Position Sensor with Digital Angle

ams-OSRAM-AS5040-10-bit-Rotary-Position-Sensor-with-Digital-Angle-
PRODUCT

Product Information

  • Product   Name: AS5x40/AS5x45
  • Type: 10-bit Rotary Position Sensor
  • Features: Digital Angle (Interface), ABI, UVW and PWM output
  • Manufacturer: ams OSRAM Group
  • Website:www.ams.com
  • Downloaded from: Arrow.com
  • Revision: 1.4 / 09.08.2013

Product Usage Instructions

General Description

  • The AS5x40/AS5x45 is a 10-bit rotary position sensor with digital angle (interface), ABI, UVW, and PWM output.

The AS5040 adapter board

  • The AS5040 adapter board is a simple circuit that allows the test and evaluation of the AS5x40/AS5x45 position sensor without building a test fixture or PCB.

Board description

  • The PCB can be used as a standalone unit or attached to a microcontroller. The standalone operation requires a 5V power supply only. The magnet’s angle can be read on the PWM or analog output.
  • Note: Refer to Figure 2 for a visual representation of the AS5040 adapter board.

AS5040 Adapterboard and pinout

  • Refer to the documentation for detailed information on the AS5040 Adapterboard and its pinout.

Operation cases

  • The AS5040 sensor can operate in different modes:

Standalone SSI output mode

  • In this mode, the AS5040 provides SSI output. Refer to the documentation for instructions on using the AS5040 in standalone SSI output mode.

Standalone PWM output mode

  • In this mode, the AS5040 provides PWM output. Refer to the documentation for instructions on using the AS5040 in standalone PWM output mode.

Standalone incremental Output

  • In this mode, the AS5040 provides incremental output. Refer to the documentation for instructions on using the AS5040 in standalone incremental output mode.

Daisy chain mode

  • In this mode, multiple AS5040 sensors can be connected in a daisy chain configuration. Refer to the documentation for instructions on using the AS5040 in daisy chain mode.

Programming the AS5040

  • Refer to the documentation for instructions on programming the AS5040.

AS5040 differences from AS5045

  • Refer to the documentation for information on the differences between AS5040 and AS5045.

AS5040 AB-Hardware

  • Refer to the documentation for detailed schematics of the AS5040-AB-2.1 hardware.

Copyright

  • The product document is subject to copyright protection.

Disclaimer

  • The information provided in the product document is for reference purposes only. The manufacturer does not guarantee the accuracy or completeness of the information.

Contact Information

  • For further assistance or inquiries, please refer to the contact information provided in the product document.

Revision History

Revision Date Owner Description
1.0 01.10.2009 azen Initial revision
1.3 05.07.2013 azen Updated to new template
1.4 09.08.2013 azen Minor corrections

Note: The above information is based on the product document published by ams OSRAM Group and downloaded from Arrow.com.

Revision History

Revision Date Owner Description
1.0 01.10.2009 Initial revision
1.3 05.07.2013 azen Updated to new template
1.4 09.08.2013 azen Minor corrections

General Description

  • The AS5x40/AS5x45 series are contactless magnetic position sensors for accurate angular measurement over a full turn of 360°. They are 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 magnet may be placed above or below the IC. (See Figure 1:)

Figure 1: Rotary Position Sensor AS5040 + Magnet

The AS5040 adapter board

  • The AS5040 adapter board is a simple circuit allowing the test and evaluation of the AS5x40/AS5x45 position sensor without building a test fixture or PCB.

Board description

  • The PCB can be used as a standalone unit or attached to a microcontroller. The standalone operation requires a 5V power supply only; the magnet’s angle can be read on the PWM or analog output. (See Figure 2:).ams-OSRAM-AS5040-10-bit-Rotary-Position-Sensor-with-Digital-Angle-FIG-2

Mounting the AS5040 adapter board

  • A diametric magnet must be placed over on under the AS5x40/AS5x45 sensor and should be centered on the middle of the package with a tolerance of 0.5mm.
  • The airgap between the magnet and the sensor 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. (See Figure 3:)ams-OSRAM-AS5040-10-bit-Rotary-Position-Sensor-with-Digital-Angle-FIG-3

AS5040 Adapterboard and pinout

  • The Adapterboard Pinout is shown below. ams-OSRAM-AS5040-10-bit-Rotary-Position-Sensor-with-Digital-Angle-FIG-4ams-OSRAM-AS5040-10-bit-Rotary-Position-Sensor-with-Digital-Angle-FIG-5

Operation cases

The most complete and accurate solution for a MCU to read the angle of a magnet is the serial interface.
Standalone SSI output mode
The serial word contains 16 bits for AS5x40 or 18 bits for AS5x45 and consists of 10 bit (AS5x40) or 12 bit (AS5x45) angle value and some other indicator bits like MagINC, MagDEC, which can be read at the same time.

Standalone PWM output mode
The AS5040 provides a pulse width modulated output (PWM), whose duty cycle is proportional to the measured angle.
The PWM signal (J2 pin #7) with a period of 1025us (1us step) and 5V pulse voltage can be connected to the capture/timer input of a microcontroller in order to decode the angle value.ams-OSRAM-AS5040-10-bit-Rotary-Position-
Sensor-with-Digital-Angle-FIG-7

Standalone incremental Output

  • Three different incremental output modes are possible with quadrature A/B being the default mode (two-channel quadrature, step / direction incremental signal (LSB) and the direction bit in clockwise (CW) and counter-clockwise (CCW) direction.
  • The pre-programmed version AS5145-I10 provides a 10bit and AS5145-I12 a 12bit incremental output.
  • The AS5045 doesn’t provide an incremental output.
  • For further information, please refer to the datasheet.ams-OSRAM-AS5040-10-bit-Rotary-Position-Sensor-with-Digital-Angle-FIG-9

Daisy chain mode

  • By using more than one adapter board, a setup in daisy chain mode is possible.
  • Note: In this mode capacitor C3 (refer to Fig.12) must be disconnected when using the 1nF capacitor shown in Fig.9 or directly replaced by this capacitor.
  • The serial data of all connected devices is read from the DO pin of the first device in the chain. The Prog pin of the last device in the chain should be connected to VSS. The length of the serial bit stream increases with every connected device (board) by n * (16+1) bits.
  • Due to R = 100R and C = 1nF, the CLK is limited the maximum 1MHz.

Programming the AS5040

  • After power-on, programming the AS5040 is enabled with the rising edge of CSn with Prog = high and CLK = low. 16 bit configuration data must be serially shifted into the OTP register via the Prog-pin. The first “CCW” bit is followed by the zero position data (MSB first / 10 bit for AS5x40 and 12 bit for AS5x45) and some mode settings (please refer to datasheet). Data must be valid at the rising edge of CLK.
  • After writing data into the OTP register it can be permanently programmed by rising the Prog pin to the programming voltage VPROG of 7.3-7.5V. 16 CLK pulses must be applied to program the fuses.
  • For exiting the programming mode, the chip must be reset by a power-on-reset. The programmed data is available after the next power-up.

AS5040 differences from AS5045

The Table below shows the differences between AS5040 and AS5045

Table 2: Differences AS5040/ AS5045

Building Block AS5045 AS5040
Resolution 12bits, 0.088°/step. 10bit, 0.35°/step
Data length read: 18bits read: 16bits
(12bits data + 6 bits status) (10bits data + 6 bits status)
OTP write: 18 bits OTP write: 16 bits
(12bits zero position + 6 bits mode (10bits zero position + 6 bits mode
selection) selection)
incremental Not used quadrature, step/direction and BLDC
encoder Pin 3: not used motor commutation modes
Pin 4:not used Pin 3:incremental output A_LSB_U
Pin 4:incremental output B_DIR_V
Pins 1 and 2 MagINCn, MagDECn: same feature as MagINCn, MagDECn indicate in-

range
| AS5040, additional OTP option for red-| or out-of-range magnetic field plus
| yellow-green magnetic range| movement of magnet in z-axis
Pin 6| MODE pin, switch between fast and| Pin 6:Index output
| slow mode|
Pin 12| PWM output: frequency selectable by| PWM output:
| OTP:| 1µs / step, 1024 steps per revolution,
| 1µs / step, 4096 steps per revolution,| 976Hz PWM frequency
| f=244Hz 2µs/ step, 4096 steps per|
| revolution, f=122Hz|
sampling| selectable by MODE input pin:| fixed at 10kHz @10bit resolution
frequency| 2.5kHz, 10kHz|
Propagation| 384µs (slow mode)| 48µs
delay| 96µs (fast mode)|
Transition noise| 0.03 degrees max. (slow mode)| 0.12 degrees
(rms; 1sigma)| 0.06 degrees max. (fast mode)|
OTP| zero position, rotational direction,| zero position, rotational direction,
programming| PWM disable, 2 Magnetic Field| incremental modes, index bit width
options| indicator modes, 2 PWM frequencies|

AS5040 AB-Hardware

Below the schematic and layout can be found.
AS5040-AB-2.1 schematics

AS5040 – AB – 2.1 PCB layoutams-OSRAM-AS5040-10-bit-Rotary-Position-
Sensor-with-Digital-Angle-FIG-12

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.

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 the 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 the recipient or any third party shall arise or flow out of ams AG’s 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 the:
  • http://www.ams.com/contact
  • www.ams.com Revision 1.4 / 09.08.2013

Read User Manual Online (PDF format)

Loading......

Download This Manual (PDF format)

Download this manual  >>

ams OSRAM User Manuals

Related Manuals