austriamicrosystems AS5046 Operation Manual

Programmable magnetic rotary encoder

Advertisement

Quick Links

AS5046
PROGRAMMABLE MAGNETIC ROTARY ENCODER
1 General Description
Figure 1:
Typical arrangement AS5046 and magnet
1.1
The AS5046 Demoboard
The AS5046 demoboard is a complete rotary encoder system with built-in microcontroller, USB interface, 4-digit 7-segment
display and magnitude output LED. 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 AS5046, such as the AS5046 adapter PCB (as shown below) or
any other AS5046 customer application. These are connected to the demoboard and can be displayed, modified or
permanently programmed using the AS5046 Demo Software.
Knob with
magnet
Connector for
external AS5046
Revision 1.1, 3-Jun-08
The AS5046 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 AS5046 has a resolution of 12bits, providing 4096 absolute positions.
Furthermore, an analog output proportional to the angle is available.
The AS5046 can be configured to specific customer requirements by
programming a one time programmable (OTP) register. An internal voltage
regulator allows the AS5046 to operate from either 3.3 V or 5 V supplies.
7-segment display for
standalone operation
AS5046
www.austriamicrosystems.com
DEMOBOARD AND SOFTWARE
OPERATION MANUAL
External
supply and
programming
voltage
USB
connector
Reference
voltage,
feedback
and
analog output
Page 1 of 21

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for austriamicrosystems AS5046

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

    (on in YELLOW or RED range). Connectors 2.2.1 USB Connector The USB connector is used to supply the demoboard with 5V power and as an interface to the AS5046 demo software, if it is used. 2.2.2 8-pin Male Connector (left side on demoboard) This connector is used to connect an external AS5046 encoder that can be displayed, modified and permanently programmed with the AS5046 demoboard software (see Figure 11).
  • Page 3 AS5046 12-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER Demoboard Operation Manual 2.2.5 2 Mini Banana Connector (bottom right side on demoboard) The two connectors provide easy access to the analog output pin (Vout) pin of the encoder. Demoboard Dimensions Figure 3: AS5046 demoboard dimensions Revision 1.1, 3-Jun-08...
  • Page 4: Getting Started

    The AS5046 demoboard software can be downloaded for free from the Internet at: http://www.austriamicrosystems.com/03products/products_detail/AS5046/download_AS5046.htm?#software Although the AS5046 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 10bit-word (0..4095), as absolute degrees (0..360) and as rotary dial...
  • Page 5 AS5046 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 6: Software Usage

    3.3.1 2-Wire Readout After starting the demo software by double-clicking the “AS5046.exe” icon and selecting the 2-Wire-Readout tab, position information and analog output voltage of the rotary encoder is displayed along with other register information (see Figure 5). Figure 5:...
  • Page 7 AS5046. 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 AS5046 will still continue to operate, even when both bits are set, but the accuracy may be out of spec.
  • Page 8 Demoboard Operation Manual 3.3.2 Registers The 2-wire interface of the AS5046 enables to address, read and write four register regions described in the following. SIU Serial Interface User: The absolute angle information is displayed in analog and digital form. It is calculated as: degree = (360/4096*absolute position).
  • Page 9 Demoboard Operation Manual 3.3.3 Analog Mode Tab Five bits of the OTP are used to configure the AS5046 analog output modes. (For more details please refer to the data sheet) Analog Output Range: The Angular Range selector allows a digital pre-selection of the angular range. The AS5046 can be configured for a full scale angular range of 45°, 90°, 180°...
  • Page 10 AS5046 12-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER Demoboard Operation Manual External Reference: The default DAC reference is the voltage at pin #16 (VDD5V) divided by 2. Using this reference, a system that has an output voltage ratiometric to the supply voltage can be built. Optionally, an external reference source, applied at pin#9 (DACref) can be used.
  • Page 11 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 AS5046 to match the physical rotation with the indicated rotation.
  • Page 12: Help Files

    Figure 10: Alignment with cyclic update All functions of the AS5046 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 AS50xx.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 13 AS5046 12-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER Demoboard Operation Manual Connecting and Programming an External AS5046 You can read and program an external AS5046 encoder by connecting it to the AS5046 demoboard as shown below: OTP: keep these wires as short as possible max.
  • Page 14 OTP Programming of the External AS5046 Encoder: To program (zap) the external AS5046 encoder, a programming voltage of 7.5 to 8V DC (130mA) must be applied to pins VProg 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 11).
  • Page 15 Note: further information about the AS5046 adapter PCB is available in a separate document: "AS5046 Adapter PCB Operation Manual". The AS5046 adapter PCB is intended as a standalone device that allows easy and quick testing of the AS5046 without the need of having to make your own PCB.
  • Page 16: Pin Description

    Pin-Out and Magnet Misalignment Shown above is the pin assignment and description for the AS5046. 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 17 AS5046 12-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER Demoboard Operation Manual 5 AS5046 Demoboard Schematic Revision 1.1, 3-Jun-08 www.austriamicrosystems.com Page 17 of 21...
  • Page 18: Main Parts

    AS5046 Rotary Encoder The AS5046 (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 19: Troubleshooting

    AS5046 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\AS5046_DemoBoardSW_x.x): • AS5046.exe • AS50xx.chm • ezmon.sys •...
  • Page 20: Hardware And Software Compatibility

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

    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