User Manual – NSE5310 – AB – 1.0 NSE5310 12-bit Linear Incremental Position Sensor with I2C and PWM output www.ams.com Revision 1.1 / 10.07.2013 page 1/9 User Manual – NSE5310 – AB – 1.0 Table of Contents 1 General Description ............................................................................................................. 3 2 The NSE5310 adapter board ............................................................................................... 3 2.1 Board description ................................................................................................................. 3 2.2 Mounting the NSE5310 Adapterboard ................................................................................. 4 3 NSE5310 adapter board and pinout .................................................................................... 5 4 Operation cases ................................................................................................................... 6 4.1 Standalone PWM output mode ............................................................................................ 6 5 NSE5310 adapter board hardware ...................................................................................... 8 5.1 NSE5310 – AB – 1.0 schematics ......................................................................................... 8 5.2 NSE5310 – AB – 1.0 - PCB layout....................................................................................... 8 6 Copyright .............................................................................................................................. 9 7 Disclaimer ............................................................................................................................ 9 8 Contact Information .............................................................................................................. 9 Revision History Revision Date Owner 1.0 1.1 www.ams.com Description Initial revision 10.07.2013 azen Updated to new template & minor corrections Revision 1.1 / 10.07.2013 page 2/9 User Manual – NSE5310 – AB – 1.0 1 General Description The NSE-5310 is an incremental position sensor with onchip encoding for direct digital output. A Hall element array on the chip is used to derive the incremental position of an external magnetic strip placed above the IC at a distance of 0.3 mm (typ). This sensor array detects the ends of the magnetic strip to provide a zero reference point. The integration of Hall-effect position sensors, analog front end and digital signal processing on a single IC chip provides an ingeniously small position sensor, without the need for external pulse counters. Direct digital output is accessible over the serial interface using I²C protocol. The NSE-5310 provides absolute position information over the length of a magnet pole pair (2 mm). A user can count pole pairs and achieve absolute position information over the entire length of the magnet (essentially unlimited). With better than 0.5 µm resolution, the NSE5310 is a robust, costeffective alternative to miniature optical encoders. It can be used as a linear or off-axis rotary encoder. 2 2.1 The NSE5310 adapter board Board description The NSE5310 adapter board is a simple circuit allowing test and evaluation of the NSE5310 High Resolution Magnetic Linear Encoder quickly without building a test fixture or PCB. The PCB can be used as standalone unit or attached to a microcontroller. The standalone operation 2 requires a 5V power supply only; the magnet’s angle can be read on the PWM-,I C- or Incremental Outputs. Figure 1: NSE5310 Adapterboard J4 connector ( I²C ) J1 connector (Prg, power supply, PWM, I²C interface) J2 connector ( AGC ) NSE5310 sensor J3 connector ( A,B,I – Signal) 4 x 2.6mm mounting holes www.ams.com Revision 1.1 / 10.07.2013 page 3/9 User Manual – NSE5310 – AB – 1.0 2.2 Mounting the NSE5310 Adapterboard The NSE5310 accepts magnetic multipole strip or ring magnets with a pole length of 1.0mm. The airgap between the magnet and the NSE5310 casing should be maintained in the range 0.2mm~0.4mm. The magnet holder must not be ferromagnetic. Materials as brass, copper, aluminum, stainless steel are the best choices to make this part. Figure 2: NSE5310 adapter board mounting and dimension N S N S N S N S NSE5310 0.2~0.4mm Ind - A D G N Sn C Pr g A SC L 3 PW M 3V SD Adr 4x2.6mm + B J4 11mm J3 J2 0.62mm 28mm 5V J1 22mm NSE5310 18mm www.ams.com Revision 1.1 / 10.07.2013 page 4/9 User Manual – NSE5310 – AB – 1.0 3 NSE5310 adapter board and pinout Figure 3: J4 CSn GND Prg Indx - TstA + TstB J3 J2 NSE5310 NC 1 20 NC MagIncm 2 19 VDD5V MagDecm 3 18 VDD3V3 DTest1_A 4 DTest2_B 5 TestCoil 6 Mode_Index 7 VSS 8 PDIO NC NSE5310 Adr SCL SDA PWM 5V 3V3 J1 NSE5310 adapter board connectors and encoder pinout 17 NC 16 NC 15 PWM 14 CSn 13 SCL / CLK 9 12 SDA / DIO 10 11 I²C_A0 Table 1: Pin description Pin # Board Pin # NSE5310 Symbol Type Description J1-1 19 5V S Positive Supply Voltage (VDD5V) J1-2 18 3V3 S 3V-Regulator output; internally regulated from VDD5V. Connect to VDD5V for 3V supply voltage. Do not load externally. J1-3 15 PWM D_O Pulse Width Modulation of approx.; ~200Hz J1-4 12 SDA D_I/O DATA Input/Output for I²C Mode J1-5 13 SCL D_I Serial Interface Unit CLK J1-6 9 Prg D_I/O OTP Programming Input for factory programming. Connect to VSS J1-7 14 CSn D_I Chip Select, active low J1-8 8 GND S Negative Supply Voltage (VSS) J2-1 11 Adr D_I Digital input to choose I²C address by input pin J2-2 3 - D_O J2-3 2 + D_O J3-1 7 Indx D_I/O Incremental Output Index J3-2 4 TstA D_O Incremental Output A J3-3 5 TstB D_O Incremental Output B J4-1 19 5V S Positive Supply Voltage (VDD5V) J4-2 11 Adr D_I Digital input to choose I²C address by input pin Indicates increasing or decreasing of magnitude by the AGC www.ams.com Revision 1.1 / 10.07.2013 page 5/9 User Manual – NSE5310 – AB – 1.0 4 4.1 Operation cases Standalone PWM output mode The absolute serial output counts from 0….4095 within one pole pair a repeats with each subsequent pole pair. The PWM output starts with a pulse width of 1µs, increases the pulse width with every step of 0.488µm and reaches a maximum pulse width of 4097µs at the end of each pole pair. See NSE5310 datasheet for more details on the PWM output. The PWM frequency is internally trimmed to an accuracy of 5% (10% over full temperature range. Figure 4: Using the PWM output with the adapter board PWM duty cycle 100% 50% 0% 0mm N S S N N S S N N S N D G N Sn C Pr g A SC L SD 3V 3 PW M 5V J2 S Pole pair position 2mm 1mm - A + B Adr Ind +5V GND OR +3V3 GND N www.ams.com S N 5V reg. Power Supply NSE5310 S N S N 3.3V reg. Power Supply S Revision 1.1 / 10.07.2013 page 6/9 User Manual – NSE5310 – AB – 1.0 Figure 5: PWM duty cycle depending on magnet position PWM out PWmin PWmax 5V 0V 0µs 1µs www.ams.com Pos 0 Absolute position (12-bit value) Pos 4095 4098µs 0µs Revision 1.1 / 10.07.2013 4097µs page 7/9 User Manual – NSE5310 – AB – 1.0 5 NSE5310 adapter board hardware Below you can find the NSE5310-AB schematics and pcb. 1 5.1 NSE5310 – AB – 1.0 schematics 2 3 4 Figure 6: A AS5040-AB-2.1 schematics U1 MagINCn MagDECn A B Index GND PROG 1 2 3 4 5 6 7 8 9 10 nc MagINCn MagDECn A B nc Index VSS Prog nc nc VDD5V VDD3V3 nc nc PWM CSn SCL SDA I2C_A0 20 19 18 17 16 15 14 13 12 11 3.3V 5V 3.3V PWM CSn SCL SDA Adr C1 10u/10V GND 5V C2 10u/10V GND B NSE-5310 C3 100n GND J1 PWM SDA SCL CSn 5V 3.3V PROG J2 J3 Adr MagDECn MagINCn 1 2 3 Header 3 1 2 3 Index B A 5V J4 1 2 Header 3 Header 2 GND Adr 1 2 3 4 5 6 7 8 Header 8 C SERIAL I/O 5.2 OPTIONAL I/O AdressSelection NSE5310 – AB – 1.0 - PCB layout Figure 7: NSE5310 – AB – 1.0 PCB D Size Project Title A4 ProjTitle Date ProjDate Originator Originator 1 2 www.ams.com 3 Revision 1.1 / 10.07.2013 Revision Rev Sheet 3 4 page 8/9 of TotalNrSheets User Manual – NSE5310 – AB – 1.0 6 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. 7 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 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 recipient or any third party shall arise or flow out of ams AG rendering of technical or other services. 8 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: http://www.ams.com/contact www.ams.com Revision 1.1 / 10.07.2013 page 9/9