Digital and Intelligent Sensors

Total Page:16

File Type:pdf, Size:1020Kb

Digital and Intelligent Sensors 8 DIGITAL AND INTELLIGENT SENSORS The overwhelming presence of digital systems for information processing and display in measurement and control systems makes digital sensors very attrac- tive. Because their output is directly in digital form, they require only very simple signal conditioning and are often less susceptible to electromagnetic interference than analog sensors. We distinguish here three classes of digital sensors. The ®rst yields a digital version of the measurand. This group includes position encoders. The second group relies on some physical oscillatory phenomenon that is later sensed by a conventional modulating or generating sensor. Sensors in this group are some- times designated as self-resonant, variable-frequency,orquasi-digital sensors, and they require an electronic circuit (a digital counter) in order to yield the desired digital output signal. The third group of digital sensors use modulating sensors included in variable electronic oscillators. Because we can digitally measure the oscillation frequency, these sensors do not need any ADC either. Digital computation has evolved from large mainframes to personal com- puters and microprocessors that o¨er powerful resources at low cost. Process control has similarly evolved from centralized to distributed control. Silicon technology has achieved circuit densities that permit the fabrication of sensors that integrate computation and communication capabilities, termed intelligent or smart sensors. 8.1 POSITION ENCODERS Linear and angular position sensors are the only type of digital output sensors that are available in several di¨erent commercial models. Incremental encoders 433 434 8 DIGITAL AND INTELLIGENT SENSORS Disk Figure 8.1 Principle of linear and rotary incremental position encoders. (From N. Norton, Sensor and Analyzer Handbook, copyright 1982, p. 105. Reprinted by permis- sion of Prentice-Hall, Englewood Cli¨s, NJ.) are in fact quasi-digital, but we discuss them here because they are related. Each September issue of Measurements & Control lists the manufacturers and types of encoders. 8.1.1 Incremental Position Encoders An incremental position encoder consists of a linear rule or a low-inertia disk driven by the part whose position is to be determined. That element includes two types of regions or sectors having a property that di¨erentiates them, and these regions are arranged in a repetitive pattern (Figure 8.1). Sensing that property by a ®xed head or reading device yields a de®nite output change when there is an increment in position equal to twice the pitch p. A disk with diame- ter d gives pd m 8:1 2p pulses for each turn. This sensing method is simple and economic but has some shortcomings. First, the information about the position is lost whenever power fails, or just after switch-on, and also under strong interference. Second, in order to obtain a digital output compatible with input±output peripherals in a computer, an up± down counter is necessary. Third, they do not detect the movement direction unless additional elements are added to those in Figure 8.1. Physical properties used for sector di¨erentiation can be magnetic, electric, or optic. The basic output is a pulse train with 50 % duty cycle. A toothed wheel or etched metal tape scale of ferromagnetic material yields 8.1 POSITION ENCODERS 435 Figure 8.2 Di¨erent sensors for magnetic incremental position encoders. (a) Coil and magnet (courtesy of Orbit Controls). (b) Toroidal core. a voltage impulse each time it passes by a ®xed coil placed in a constant mag- netic ®eld, as shown in Figure 8.2a. The resulting signal is almost sinusoidal, but it is easy to convert it into a square wave or just to determine its zero crossings. There is a minimal and maximal velocity that determines the appli- cation range for this method, which is used, for example, in antilock braking systems (ABS) in cars. Alternatively, an AMR or GMR sensor (Section 2.5) can replace the coil to obtain a change in resistance whose amplitude does not depend on the turning speed. Figure 8.2b shows another inductive system but this time based on a toroid with two windings. One winding is used for exciting, using currents between 20 kHz and 200 kHz, and the other is used for detection. There are two output states: ``1'' when no voltage is detected and ``0'' when a voltage with the excit- ing frequency is detected. The moving element includes regions with magne- tized material. Each time one of these regions passes in front of the reading head, the core saturates because the ¯ux emanating from the material adds to the ¯ux created by the exciting signal. When the core saturates, the secondary winding does not detect any voltage (e dF=dt, with F constantÐsaturation 436 8 DIGITAL AND INTELLIGENT SENSORS Figure 8.3 Silver-in-glass technology for contacting incremental position encoder (courtesy of Spectrol). ¯ux): state ``1.'' When there is a region with no magnetization in front of the reading head, the secondary winding detects a voltage induced by the primary, state ``0.'' A Hall e¨ect sensor (Section 4.3.2), magnetoresistor (Section 2.5), or Wiegand sensor (Section 4.2.6) can replace the toroidal core. Inductive en- coders are sensitive to stray magnetic ®elds. Electric encoders can be capacitive or contacting encoders. Capacitive en- coders use a patterned strip such as that in the InductosynTM (Section 4.2.4.3) but without shielding between the scale and the ruler. This yields a cyclic change in capacitance with a period equal to the pitch, which can be as low as 0.4 mm. The contacting encoder in Figure 8.3 has a moving element formed by an alumina substrate with a fused glass layer and a conductive palladium±silver pattern screen printed on top of the glass. When kiln-®ring during the fabrica- tion process, the conductive pattern sinks into the glass to yield a 5 mmto8mm step-height di¨erential between the conductor and the insulator surface. The wiper is from precious metal. Former encoders with copper foil etched on printed circuit board had 25 mmto35mm steps, which increased wear and contact bouncing. This silver-in-glass technology o¨ers low cost, ruggedness, high-resistance to corrosion, and life expectancy of up to ®fteen million cycles, far above the 100,000 cycles of former PCB designs. Optical encoders can be based on opaque and transparent regions, on re- ¯ective and nonre¯ective regions, and also on interference fringes. Whatever the case, the ®xed reading head includes a light source (infrared LED), and a photodetector (phototransistor or photodiode). Main problems result from dust-particle buildup, time and temperature drifts for optoelectronic compo- nents, and vibration e¨ects on focusing elements. High-performance sensors have either a lens or an aperture to provide collimated light output and minimal spurious re¯ections. When opaque and transparent regionsÐchromium on glass, slotted metal, and so forth (Figure 8.4a)Ðare used, the emitter and the receiver must be placed on each side of the moving element. In contrast, when relying on re¯ec- tive and nonre¯ective zonesÐfor example, polished steel with an engraved surface (Figure 8.4b)Ðthe emitter and the detector must be on the same side of the coding element. Glass disks are more stable, rigid, hard, and ¯at than metal disks, but are less resistant to vibration and shock. Reference 1 discusses the design of encoders based on integrated optical subsystems. Interference fringe encoders are based on moire patterns. To create them 8.1 POSITION ENCODERS 437 Figure 8.4 Incremental optical encoder. (a) With opaque and transparent sectors. (b) With re¯ective and nonre¯ective sectors. from a linear movement, we can use a ®xed and a movable rule having lines inclined with respect to each other (Figure 8.5). If the inclination a is such that tan a p=d, a relative displacement p (line pitch) produces a vertical displace- ment d of a dark horizontal fringe. If the relative inclination is n times higher, n dark horizontal fringes appear. Interference fringes from a rotary movement can be obtained from two superimposed disks, one ®xed and the other one mov- able, one with N radial lines and the other one with N 1. Interference fringes are also obtained if both disks have N lines but one is o¨ center, or one has N lines with a di¨erent inclination. A light emitter±detector pair yields an almost sinusoidal signal with N cycles/turn for a rotary encoder. Incremental encoders have resolution ranges from 100 counts/turn to 81,000 counts/turn and accuracy up to 3000. When the detector o¨ers two sinusoidal outputs with di¨erent phase shifts, interpolation using various phase-shifting methods can increase the resolution by a factor of up to 256. One interpolation method [2] digitally measures the phase from the quadrature outputs. p p Figure 8.5 Optical incremental encoder based on interference fringes (moire patterns). The horizontal dark fringe moves in the vertical direction when the sliding rule moves horizontally. 438 8 DIGITAL AND INTELLIGENT SENSORS Va Vp cos Ny 8:2 Va Vp sin Ny 8:3 where Vp is the amplitude of the output voltage, N is the number of steps (pitches) in one turn, and y is the current shaft angle, which can be calculated from arctan V =V y b a 8:4 N This is a periodic quantity that gives 2p rad each 360=N angle increment, so that we also need an incremental counter to determine the actual angle. To measure the phase, the 2p rad phase plane is divided in several sectors and the sector corresponding to each Va, Vb pair is stored in a ROM.
Recommended publications
  • Introduction to Embedded System Design Using Field Programmable Gate Arrays Rahul Dubey
    Introduction to Embedded System Design Using Field Programmable Gate Arrays Rahul Dubey Introduction to Embedded System Design Using Field Programmable Gate Arrays 123 Rahul Dubey, PhD Dhirubhai Ambani Institute of Information and Communication Technology (DA-IICT) Gandhinagar 382007 Gujarat India ISBN 978-1-84882-015-9 e-ISBN 978-1-84882-016-6 DOI 10.1007/978-1-84882-016-6 A catalogue record for this book is available from the British Library Library of Congress Control Number: 2008939445 © 2009 Springer-Verlag London Limited ChipScope™, MicroBlaze™, PicoBlaze™, ISE™, Spartan™ and the Xilinx logo, are trademarks or registered trademarks of Xilinx, Inc., 2100 Logic Drive, San Jose, CA 95124-3400, USA. http://www.xilinx.com Cyclone®, Nios®, Quartus® and SignalTap® are registered trademarks of Altera Corporation, 101 Innovation Drive, San Jose, CA 95134, USA. http://www.altera.com Modbus® is a registered trademark of Schneider Electric SA, 43-45, boulevard Franklin-Roosevelt, 92505 Rueil-Malmaison Cedex, France. http://www.schneider-electric.com Fusion® is a registered trademark of Actel Corporation, 2061 Stierlin Ct., Mountain View, CA 94043, USA. http://www.actel.com Excel® is a registered trademark of Microsoft Corporation, One Microsoft Way, Redmond, WA 98052- 6399, USA. http://www.microsoft.com MATLAB® and Simulink® are registered trademarks of The MathWorks, Inc., 3 Apple Hill Drive, Natick, MA 01760-2098, USA. http://www.mathworks.com Apart from any fair dealing for the purposes of research or private study, or criticism or review, as permitted under the Copyright, Designs and Patents Act 1988, this publication may only be reproduced, stored or transmitted, in any form or by any means, with the prior permission in writing of the publishers, or in the case of reprographic reproduction in accordance with the terms of licences issued by the Copyright Licensing Agency.
    [Show full text]
  • Transactions Template
    JOURNAL OF ENGINEERING RESEARCH AND TECHNOLOGY, VOLUME 2, ISSUE 4, DECEMBER 2015 Accurate Quadrature Encoder Decoding Using Programmable Logic Yassen Gorbounov Y.Gorbounov is with the Department of Automation of Mining Production, University of Mining and Geology “St. Ivan Rilski”, Sofia, Bulgaria, e-mail: [email protected] Abstract— the quadrature encoder (or incremental detector) is amongst the most widely used positional feedback devices for both rotational and linear motion machines. It is well known that in conventional circuits for quadrature signals decoding, an error emerges during the direction change of the sensor movement. In some situations this error can be accumulative but in any case it provokes a position error, that is equal to the resolution (one pulse) of the sensor. A corrective algorithm is proposed here that fully eliminates this type of error. It is an improvement over a previous research of the author which is much simpler and resource saving without compromising the performance of the device. A Xilinx CPLD platform has been chosen for the experiments. The inherent parallelism of programmable logic devices permits a multi-channel CNC machine to be fully served by a single chip. This approach outperforms the capabilities of any conventional microcontroller available on the market. Index Terms— Quadrature encoder, incremental encoder, angular position measurement, motion control, programmable logic, parallel algorithms. I INTRODUCTION In motion control, the quadrature encoder can be of a ro- tary or linear-type, with an optical or magnetic sensing prin- ciple, which gives information about both the relative posi- tion and the motional direction of a shaft.
    [Show full text]
  • 10.10 a Rotary Encoder Interface
    Interrupts and a First Look at Timers 309 #define DEBOUNCE 5 5 * 6 ms = 24 to 30 ms debounce time volatile unsigned char button, button_debounce; void interrupt pic_isr(void){ if (INT2IF && INT2IE) { Falling edge interrupt, // pushbutton detected set the semaphore and INT2IE = 0; button = 1; button_debounce = 0; } } disable interrupt if (TMR2IF) { // debouncing timer TMR2IF = 0; if (!INT2IE) { if (RB2) { if (button_debounce != DEBOUNCE) If the interrupt is disabled, then button_debounce++; debounce the switch by waiting } for it to become idle high. else button_debounce=0; After the switch is debounced and if (button_debounce == DEBOUNCE && !button){ the semaphore is acknowledged, //button idle high ,re-enable interrupt } then reenable the interrupt. INT2IF=0; INT2IE=1; } } } } main(void){ serial_init(95,1); // 19200 in HSPLL mode, crystal = 7.3728 MHz // configure INT2 for falling edge interrupt input Configure TRISB2 = 1; INT2IF = 0; INTEDG2 = 0; INT2IE = 1; INT2 for RBPU = 0; // enable weak pullup on port B } falling edge // configure timer 2 // post scale of 11, prescale 16, PR=250, FOSC=29.4912 MHz interrupt // gives interrupt interval of ~ 6 ms TOUTPS3 = 1; TOUTPS2 = 0; TOUTPS1 = 1; TOUTPS0 = 0; T2CKPS1 = 1; PR2 = 250; Configure Timer2 // enable TMR2 interrupt for ~6 ms interrupt IPEN = 0; TMR2IF = 0; TMR2IE = 1; PEIE = 1; GIE = 1; } period TMR2ON = 1 ; pcrlf(); printf("Pushbutton with Timer2 Debounce"); pcrlf(); while(1) { if (button) { If pushbutton is activated, button=0; // acknowledge this semaphore then print message and printf("Push Button activated!"); pcrlf(); } } reset the semaphore }// end while }//end main FIGURE 10.24 ON THE CD Switch debounce implementation. This approach sets the button semaphore on each press and release of the push button switch.
    [Show full text]
  • Digital Design: an Embedded Systems Approach Using Verilog
    In Praise of Digital Design: An Embedded Systems Approach Using Verilog “Peter Ashenden is leading the way towards a new curriculum for educating the next generation of digital logic designers. Recognizing that digital design has moved from being gate-centric assembly of custom logic to processor-centric design of embedded systems, Dr. Ashenden has shifted the focus from the gate to the modern design and integration of complex integrated devices that may be physically realized in a variety of forms. Dr. Ashenden does not ignore the fundamentals, but treats them with suitable depth and breadth to provide a basis for the higher-level material. As is the norm in all of Dr. Ashenden’s writing, the text is lucid and a pleasure to read. The book is illustrated with copious examples and the companion Web site offers all that one would expect in a text of such high quality.” —grant martin, Chief Scientist, Tensilica Inc. “Dr. Ashenden has written a textbook that enables students to obtain a much broader and more valuable understanding of modern digital system design. Readers can be sure that the practices described in this book will provide a strong foundation for modern digital system design using hard- ware description languages.” —gary spivey, George Fox University “The convergence of miniaturized, sophisticated electronics into handheld, low-power embedded systems such as cell phones, PDAs, and MP3 players depends on efficient, digital design flows. Starting with an intuitive explo- ration of the basic building blocks, Digital Design: An Embedded Systems Approach introduces digital systems design in the context of embedded systems to provide students with broader perspectives.
    [Show full text]
  • Interfacing Quadrature Encoder Using CCL with TCA and TCB
    AN2434 Interfacing Quadrature Encoder using CCL with TCA and TCB Features • Setup for decoding quadrature encoded incremental position data by utilizing core independent peripherals such as Configurable Custom Logic (CCL), Event System (EVSYS), 16-bit Timer/ Counter Type A (TCA), and 16-bit Timer/Counter Type B (TCB) • Up to 16-bit Resolution • Device Independent • Minimal RAM Usage • Minimal Core Usage Introduction Incremental quadrature encoders are used in a great number of applications across many disciplines as they provide a low-cost way of measuring motion in systems with moving parts. Some typical examples include measuring the position of a physical control wheel or measuring the rotor angle and velocity in an electrical motor. Some AVR® microcontrollers, like the AVR XMEGA®-E5, include dedicated quadrature decoding functionality, but the decoding can also be accomplished by utilizing some of the core independent peripherals available on smaller, less feature rich controllers. This application note describes how to decode and keep track of quadrature encoded signals from an incremental position sensor using an AVR by combining Configurable Custom Logic (CCL), Event System (EVSYS), 16-bit Timer/Counter Type A (TCA), and 16-bit Timer/Counter Type B (TCB). The described setup uses eight I/O pins. If implemented on an ATtiny1617 using the code provided with this application note, the device can decode quadrature pulses with a frequency of up to 2.5 MHz. © 2017 Microchip Technology Inc. Application Note DS00002434A-page 1 AN2434 Table
    [Show full text]
  • Ellips BV, Eindhoven, the Netherlands Coach : Ir
    Eindhoven University of Technology MASTER An intelligent sensor controller using Profibus Zinken, P.J.H. Award date: 1998 Link to publication Disclaimer This document contains a student thesis (bachelor's or master's), as authored by a student at Eindhoven University of Technology. Student theses are made available in the TU/e repository upon obtaining the required degree. The grade received is not published on the document as presented in the repository. The required complexity or quality of research of student theses may vary by program, and the required minimum study period may vary in duration. General rights Copyright and moral rights for the publications made accessible in the public portal are retained by the authors and/or other copyright owners and it is a condition of accessing publications that users recognise and abide by the legal requirements associated with these rights. • Users may download and print one copy of any publication from the public portal for the purpose of private study or research. • You may not further distribute the material or use it for any profit-making activity or commercial gain ~ ICSlEB691 Technische UniversiteittUJ Eindhoven Faculty ofElectrical Engineering ICS (EB) Section of Information and Communication Systems Master's Thesis: An intelligent sensor controller using Profibus P.l.H. Zinken Id.nr.403715 Location : Ellips BV, Eindhoven, The Netherlands Coach : Ir. H.P.E. Stox Supervisor : Prof. Ir. M.PJ. Stevens ~ Period : August 1997 - July 1998 ELLIPS The Faculty of Electrical Engineering of Eindhoven University of Technology does not accept any responsibility regarding the contents of Master's Theses. An intelligent sensor controller using Profibus E~ SUMMARY The new fruit grading system that is currently developed by Ellips B.V.
    [Show full text]
  • Optimization of a Multi-Aixs Electro-Mechanical Scanning System. Raul Urbina
    The University of Maine DigitalCommons@UMaine Electronic Theses and Dissertations Fogler Library 2001 Optimization of a Multi-Aixs Electro-Mechanical Scanning System. Raul Urbina Follow this and additional works at: http://digitalcommons.library.umaine.edu/etd Part of the Mechanical Engineering Commons Recommended Citation Urbina, Raul, "Optimization of a Multi-Aixs Electro-Mechanical Scanning System." (2001). Electronic Theses and Dissertations. 312. http://digitalcommons.library.umaine.edu/etd/312 This Open-Access Thesis is brought to you for free and open access by DigitalCommons@UMaine. It has been accepted for inclusion in Electronic Theses and Dissertations by an authorized administrator of DigitalCommons@UMaine. OPTIMIZATION OF A MULTI-AXIS ELECTRO- MECHANICAL SCANNING SYSTEM BY Raul Urbina B.S. Universidad Panamericana, Mexico, 1997 A THESIS Submitted in Partial Fulfillment of the Requirements for the Degree of Master of Science (in Mechanical Engineering) The Graduate School The University of Maine May, 2001 Advisory Committee: Michael Peterson, Assistant Professor of Mechanical Engineering, Advisor Donald A. Grant, Associate Professor of Mechanical Engineering Vincent Caccese, Associate Professor of Mechanical Engineering LIBRARY RIGHTS STATEMENT In presenting this thesis in partial fblfillment of the requirements for an advanced degree at The University of Maine, I agree that the Library shall make it freely available for inspection. I further agree permission for "fair use" copying of this thesis for scholarly purposes may be granted to the Librarian. It is understood that any copying or publication of this thesis for financial gain shall not be allowed without my written permission. Signatur OPTIMIZATION OF A MULTI-AXIS ELECTRO- MECHANICAL SCANNING SYSTEM By Raul Urbina Thesis Advisor: Dr.
    [Show full text]
  • TI Designs LDC0851 Incremental Rotary Encoder
    TI Designs LDC0851 Incremental Rotary Encoder Design Overview Design Features An inductive sensing based incremental encoder Contactless, high reliability incremental knob design can provide a robust and low-cost position knob using LDC technology interface for control inputs. It can reliably No calibration required operate in environments which have dirt, Power consumption of <6mA (excluding moisture, oil or varying temperatures which MCU & LED indicators) would pose issues for alternate sensing Sensor and knob can be placed remotely with technologies. This solution requires no magnets. respect to LDC0851 device 32 steps/rotation o design can scale to support multiples of 4 positions Design Resources Rotation Speed Measurement of >2000 RPM TIDA-00828 Design Folder External magnets will not affect functionality LDC0851 Product Folder Minimal MCU memory and instructions: MSP430F5500 Product Folder o 1 byte of RAM LP5951 Product Folder o 208 bytes of ROM/Flash TPD2E001 Product Folder s Featured Applications Ask The Analog Experts Automotive Center Control Panels WEBENCH® Design Center Rolling jog wheels Appliance interfaces, including cooktops and cleaning appliances Home audio and consumer electronics Industrial System control Block Diagram µUSB 5V LP5951 5Và3.3V LDO 3.3V Differential LDC Core LDC0851 LSENSE Inductance 3.3V Converter VDD Sensor A + OUT LCOM Ref Sensor A Inductance - LREF Converter MSP430F5500 Differential 3.3V LDC Core LDC0851 MCU LSENSE Inductance Converter Sensor B + OUT LCOM 24MHz 7 Segment 32 Position Ref Sensor B Inductance - Displays Encoder Target LREF Converter TIDUBG5 – January 2016 LDC0851 Incremental Rotary Encoder 1 Copyright © 2016, Texas Instruments Incorporated www.ti.com Table of Contents 1 Key System Specifications ......................................................................................................
    [Show full text]
  • Design and Optimization of a Signal Converter for Incremental Encoders
    DEGREE PROJECT IN MECHANICAL ENGINEERING, SECOND CYCLE, 30 CREDITS STOCKHOLM, SWEDEN 2016 Design and optimization of a signal converter for incremental encoders A study about maximizing the boundary limits of quadrature pulse conversion ANTON DAHLQVIST VICTOR KARLSSON KTH ROYAL INSTITUTE OF TECHNOLOGY SCHOOL OF INDUSTRIAL ENGINEERING AND MANAGEMENT Design and optimization of a signal converter for incremental encoders A study about maximizing the boundary limits of quadrature pulse conversion Anton Dahlqvist Victor Karlsson Master of Science Thesis MMK 2016:95 MDA 554 Supervisor at KTH: Mikael Hellgren Examiner: Hans Johansson KTH Industrial Engineering and Management Department of Machine Design SE-100 44 STOCKHOLM . Examensarbete MMK 2016:95 MDA 554 Design and optimization of a signal converter for incremental encoders Anton Dahlqvist & Victor Karlsson Approved: Examiner: Supervisor: 2016-06-15 Hans Johansson Mikael Hellgren Commisioner: Contact Person: Bosch Rexroth Arne Bystr¨om . Abstract . This project was carried out during spring 2016 in collaboration with BOSCH Rexroth, Mellansel, and aimed to investigate the possibility of implementing a converter with the ability to scale incremental pulse resolution and also convert the velocity to a 4-20mA current loop reference. An investigation on how a fault tolerance mechanism could be implemented to increase the dependability of the encoder was done and the out-coming results were implemented. The software and hardware were revised and optimized to facilitate a future encapsulation, and still keep the converter reprogrammable. A background study was performed during 8 continuous weeks to acquire enough knowledge about possible conversion techniques, to finally derive these down to two for further testing. The final conversion algorithms were multiplication and extrapolation techniques, which would be utilized to scale the pulse signal.
    [Show full text]