austriamicrosystems AS5045 Operation Manual

Programmable magnetic rotary encoder
Hide thumbs Also See for AS5045:

Advertisement

Quick Links

AS5045
PROGRAMMABLE MAGNETIC ROTARY ENCODER
1 General Description
Figure 1: Typical arrangement AS5045 and magnet
1.1
The AS5045 Demoboard
The AS5045 demoboard is a complete rotary encoder system with built-in microcontroller, USB interface , 4-digit 7-segment
display, mode LED, a PWM output LED and two magnet diagnostic LEDs. The board is USB powered or externally supplied
for standalone operation. Dimensions: 72mm x 54mm (2.82 x 2.13 inch).
1.1.1
Programming
The demoboard also supports external circuits using the AS5045, such as the AS5045 adapter PCB (as shown below) or
any other AS5045 customer application. These are connected to the demoboard and can be displayed, modified or
permanently programmed using the AS5045 Demo Software.
Revision 1.0, 26-Jan-06
The AS5045 is a contactless angular measurement system-on-chip,
combining integrated Hall elements, analog front end and digital signal
processing in a single device.
It computes the mechanical angle of a simple 2 pole diametrically
magnetized magnet that is placed either above or below the device.
The AS5045 has a resolution of 12bits, providing 4096 absolute positions.
Furthermore, a PWM signal that is proportional to the angle is available.
The AS5045 can be configured to specific customer requirements by
programming a one time programmable (OTP) register. An internal voltage
regulator allows the AS5045 to operate from either 3.3 V or 5 V supplies.
Figure 2: AS5045 demoboard with AS5045 adapter board
www.austriamicrosystems.com
DEMOBOARD AND SOFTWARE
OPERATION MANUAL
Page 1 of 20

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AS5045 and is the answer not in the manual?

Questions and answers

Summary of Contents for austriamicrosystems AS5045

  • Page 1 1.1.1 Programming The demoboard also supports external circuits using the AS5045, such as the AS5045 adapter PCB (as shown below) or any other AS5045 customer application. These are connected to the demoboard and can be displayed, modified or permanently programmed using the AS5045 Demo Software.
  • Page 2: Hardware Indicators

    As input device for the AS5045 demoboard software This configuration uses the same USB hardware connection as above, but additionally the AS5045 demoboard software is running. All indicators on the demoboard will be displayed on the PC screen as well.
  • Page 3 Mag I., Mag D. LEDs The AS5045 provides several options of detecting movement and distance of the magnet in the Z-direction. Signal indicators MagINCn and MagDECn are available both as hardware pins (pins #1 and 2) and as status bits in the serial data stream.
  • Page 4 Demoboard Operation Manual Connectors 2.2.1 USB Connector The USB connector is used to supply the demoboard with 5V power and as an interface to the AS5045 demoboard software, if it is running. 2.2.2 7-pin Male Connector (left side on demoboard) This connector is used to connect an external AS5045 encoder that can be displayed, modified and permanently programmed with the AS5045 demoboard software (see Figure 13).
  • Page 5: Getting Started

    The AS5045 demoboard software can be downloaded for free from the Internet at: http://www.austriamicrosystems.com/03products/products_detail/AS5045/download_AS5045.htm?#software Although the AS5045 demoboard can be used as standalone unit, this software has several indicators and allows access to extra features, such as: Displaying the absolute angle as 12bit-word (0..4095), as absolute degrees (0..360) and as rotary dial...
  • Page 6 AS5045 12-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER Demoboard Operation Manual 3.2.2 Hardware Driver Installation Step 2/3: Installing the USB Controller Connect the demoboard to a free USB slot on your PC. Your Windows® software will automatically detect the USB controller on the demoboard: When prompted for an installation file, refer to the file "ezusbw2k.inf"...
  • Page 7: Software Usage

    AS5045. When both bits are set, they indicate that the magnetic field strength is out of the recommended range of 45 - 75mT (>75mT to close, <45mT to far). The AS5045 will still continue to operate, even when both bits are set, but the accuracy may be out of spec.
  • Page 8 AS5045 12-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER Demoboard Operation Manual USB connection status: Displays the status of the USB connection. The connection is not polled permanently by the PC operating system, so it may take a few seconds before the actual status is updated. If the status displays "USB: no connection", try to unplug and re-connect the USB cable.
  • Page 9 Clockwise / Counter-clockwise operation: This selector reverses the direction of both the incremental as well as the absolute outputs. This bit should be set, when the magnet is placed underneath the AS5045 to match the physical rotation with the indicated rotation.
  • Page 10 AS5045 12-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER Demoboard Operation Manual 3.3.3 Alignment Mode Tab The Alignment Mode simplifies the centering of the magnet over the chip surface. In this mode, the absolute value of the 10-bit angular data of the SSI interface indicates the magnitude of misalignment at a particular angle.
  • Page 11: Help Files

    AS5045 12-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER Demoboard Operation Manual All functions of the AS5045 can still be used, even when the magnet is misaligned. However, the linearity error will increase with increased misalignment. Help Files After installation of the software the help file AS5045.chm can be found in the installation directory. It can be opened by double-clicking or clicking one of the Help-Buttons of the application.
  • Page 12 OTP Programming of the External AS5045 Encoder: To program (zap) 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 13).
  • Page 13 Note: further information about the AS5045 adapter PCB is available in a separate document: "AS5045 Adapter PCB Operation Manual". 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.
  • Page 14: Pin Description

    Pin-Out and Magnet Misalignment Shown above is the pin assignment and description for the AS5045. The Hall Sensors are arranged as a concentric circle at the center of the IC with a diameter of 2.2mm (87mil). The recommended magnetic field strength at this concentric circle is 45…75mT (see datasheet).
  • Page 15 AS5045 12-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER Demoboard Operation Manual 5 AS5045 Demoboard Schematic Revision 1.1, 04 Jul-06 www.austriamicrosystems.com Page 15 of 20...
  • Page 16: Main Parts

    AS5045 Rotary Encoder The AS5045 (IC3) is configured for 3.3V supply (pin 15 & 16 tied together). The serial interface (pins CSn, CLK, DO) is controlled by the microcontroller. The Mode output, Magnet diagnostic outputs (MagInc, MagDec) and PWM output are directly connected to LEDs 6.1.2...
  • Page 17: Troubleshooting

    AS5045 12-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER Demoboard Operation Manual 7 Troubleshooting Required Files If you experience problems with the software, check that the required files are present: Installation directory (default C:\program files\austriamicrosystems AG\AS5045_DemoBoardSW_x.x): • as 5040.exe • AS5045.chm • ezmon.sys •...
  • Page 18: Hardware And Software Compatibility

    AS5045 12-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER Demoboard Operation Manual Figure 18 Device Manager Entry USB Driver Error If case the Device Manager displays a warning sign (see Figure 19) re-install the driver by double-clicking the device and selecting “Update Driver” as shown in Figure 20.
  • Page 19: Revision History

    AS5045 12-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER Demoboard Operation Manual 8 Revision History Revision Date Description Initial Creation 26. Jan. 2006 Figure 4: AS5045 Demo Board Dimensions. 04. Jul, 2006 austriamicrosystems AG Bivägen 3B 9 Contact S 19163 Sollentuna, Sweden Phone:...
  • Page 20 No obligation or liability to recipient or any third party shall arise or flow out of austriamicrosystems rendering of technical or other services.

Table of Contents