Digital Signal Processing of Optical Encoder for High Resolution ...

3 downloads 5133 Views 308KB Size Report
Official Full-Text Publication: Digital Signal Processing of Optical Encoder for High Resolution Angular Measurement of X-Ray Diffraction Goniometer.
International Journal of Engineering Technology, Management and Applied Sciences

www.ijetmas.com July 2016, Volume 4, Issue 7, ISSN 2349-4476

Digital Signal Processing of Optical Encoder for High Resolution Angular Measurement of X-Ray Diffraction Goniometer Shrihari Shinde1, Shirish Ghadigaonkar1, Lalan Jaiswal2, Abhishek Sakhare2, Vaishali Bambole2, H. Muthurajan1 1 National Centre for Nanoscience& Nanotechnology, University of Mumbai, Mumbai, India 2 Department of Physics, University of Mumbai, India Abstract: X ray diffraction (XRD) is the instant chemical structure analyzing technique for the crystalline properties of compound materials. In XRD, X- ray source is the means of exposure to the crystalline material and X-ray detector detects the diffraction pattern from the sample material. XRD does the analysis of material from the diffraction pattern detected by the X- ray detector. Here goniometer is the key mechanical part of the XRD system, the function of the goniometer is to achieve the angular rotation of the X-ray source/detector/sample in order to get crystalline properties of the subjected sample. The angular movement of the X-ray source, detector and sample holder decides the configuration of the goniometer. Most widely used goniometer configurations are THETA:THETA and THETA:2THETA. In THETA:THETA configuration sample holder is stationary in horizontal plane, the X-ray source and detector moves at the same time over the angle THETA with reference to the sample. In THETA:THETA configuration distance between sample to X-ray source and sample to X-ray detector is kept constant. In THETA:2THETA configuration X-ray source is kept constant at one position and x-ray detector moves in angular plane at 2THETA and simultaneously sample moves in angular plane at THETA. The paper gives the brief introduction to XRD technique and technical application of the goniometer in XRD. In view of use of goniometer in the XRD, a simple and accurate angular measurement system is fabricated with available plastic based goniometer as prototype. High precision encoder is selected for the fabrication of goniometer; the encoder is mechanically fitted with the plastic goniometer. Digital output signal from goniometer is processed using microcontroller having our embedded programme, which precisely converts the digital pulsed signal in to angular movement. The system fabricate is explained with embedded algorithm, PC based data acquisition software algorithm is designed in VB (Visual basics) to lively display the angular reading of goniometer. Keywords: Digital Signal processing, Optical Encoder, Angular Measurement, X-ray diffractometer.

1. Introduction X-ray diffraction (XRD) permits analysis of the phases or compounds found in the samples. It is more often used as a qualitative tool in central or research laboratories [1] as well as for quantitative determination for process control. XRD uses X-ray as means of energy source with X-ray detector. Xray is high energy photon [2]. X-ray is produced when electrons from cathode is emitted with high speed and it get collide with anode. This collision emits an electron from inner shell of anode and which in turn gets vacant because of this electron, vacancy is filled by another electron from higher shell and during this transition it emits x-ray of different frequency and energy. The most important is K alpha, k beta x-ray which is emitted when electrons jump from L-shell to k-shell and M-shell to L-Shell. Earlier X-ray diffraction was widely known for determining the size of matter. But as time passes wide application of x-ray diffraction

75

came to known. Wide application include such as chemical analysis and stress measurement, study of phase equilibria. It is also used in determining the orientation of one crystal or ensemble of orientation in polycrystalline aggregate. The main principle involved in working of XRD is bragg‟s law which states that crystal is made up of large numbers of parallel plane containing atoms. The peak detection in XRD is done with the help of reflection of light from one of the plane of crystal and constructive interference of the reflected light from the same plane [3-5]. XRD is an instrument designed to collect data diffracted from crystal. XRD consist of x-ray source, goniometer for orientation of crystal and detector for collecting scattered x-ray [6]. To analyze sample in XRD, x-ray form the source is incident on the crystal say C, which is set at desired angle with respect to x-axis through origin O, center of spectrometer circle. Detector is place on

Shrihari Shinde, Shirish Ghadigaonkar, Lalan Jaiswal, Abhishek Sakhare, Vaishali Bambole, H. Muthurajan

International Journal of Engineering Technology, Management and Applied Sciences

www.ijetmas.com July 2016, Volume 4, Issue 7, ISSN 2349-4476 opposite of source to detect reflected x-ray and this detector can be rotated at any angle for desired angular position. Crystal is positioned so that it makes an angle (theta) with incident beam and D is set at corresponding angle 2theta. Intensity of diffracted beam is measured and its wavelength is calculated from bragg‟s law. This procedure is repeated for various angles to get the final analysis data [7-12]. A goniometer is an instrument that either measures angle or allows an object to be rotated to a precise angular position. It is necessary to satisfy Bragg's law for crystallographic analysis in XRD. X-rays striking a substance are scattered by the electrons in that substance. For crystal ,the scattered X-rays are reinforced at certain angle(θ) ,each of which depend on the wavelength (λ) of the radiation and the spacing(d) between the planes of atoms in the crystal causing reinforcement at the angle. This reinforcing phenomenon and angle at which it occurs is often called a “reflection”. The relationship between λ, θ and d is the Bragg equation [13]. The diffractometer circle in fig.1 is different from the focusing circle. The diffractometer circle is centered at the specimen, and both the x-ray source and detector lie on the circumference of circle .The radius of diffractometer circle is fixed. The diffractometer circle is also referred to as the goniometer circle .The goniometer is the central component of an x-ray diffractometer and contains the specimen holder. It has arms to which the x-ray source and the detector are mounted. In most powder diffractometers, the goniometer is vertical as well as horizontal mounted. Goniometer play major role in XRD [14].

Figure 1: Diffractometer Circle 2. System Development

76

In the view of application of goniometer in XRD, a sample model of goniometer is fabricated with available plastic goniometer and same has been modified to fit the optical encoder module and stepper motor. The optical encoder is the integral part of goniometer and act as an angular sensing and feedback element to the controller for controlling the angular movement of the goniometer arms. Optical encoder provides the closed loop control feedback for the goniometer system. Minimal angular movement that can be achieved by the goniometer is full depends on the resolution of the optical encoder used in the system. The system block diagram is depicted in figure 2 followed by the description of the same.

Figure 2: Goniometer System diagram 1000PPR optical encoder is attached to the available plastic goniometer assembly. Encoder digital signal is connected to the digital signal processing controller, the signal is processed by the controller and decoded signal is send to the PC via RS232 interface. Angular reading received in the PC is captured and displayed by the application software written in visual basics. 3. Digital Signal Processing Hardware Digital signal from optical encoder has to be analyzed to precisely detect the degree and direction of angular motion. To get the exact reading, the digital signal processing hardware is designed and fabricated with PIC18F1320 microcontroller. 3.1 Optical Encoder Encoder available for angular motion sensing is of two types that are optical and magnetic encoder. Optical encoder used here has a circular plastic/glass/metal disk with patterns of one or two lines deposited on it [13-14]. The assembly uses incremental type of encoder, in which LED source is used with one/two detectors, the line pattern on

Shrihari Shinde, Shirish Ghadigaonkar, Lalan Jaiswal, Abhishek Sakhare, Vaishali Bambole, H. Muthurajan

International Journal of Engineering Technology, Management and Applied Sciences

www.ijetmas.com July 2016, Volume 4, Issue 7, ISSN 2349-4476

(a)

J1 CON5 VCC

R1

VCC

10K U1

J3 6 5 4 3 2 1 CON6

1 2 3 4 5 6 7 8 9

RA0/AN0 RA1/AN1/LVDIN RA4/T0CKI MCLR/VPP/RA5 VSS/AVSS RA2/AN2/VREF RA3/AN3/VREF+ RB0/AN4/INT0 RB1/AN5/TX/CK/INT1

RB3/CCP1 RB2/INT2 OSC1/RA7 OSC2/RA6 VDD/AVDD RB7/PGD RB6/PGC RB5/PGM/KBI1 RB4/AN6/RX/DT

18 17 16 15 14 13 12 11 10

PIC18F1320

U2

C1 0.1UF

VCC

C4 0.1UF

0.1UF

C2

C3 0.1UF

13 8 R1IN R2IN 11 10 T1IN T2IN 1 3 C1+ 4 C15 C2+ 2 C26 V+ V-

12 R1OUT 9 R2OUT 14 T1OUT 7 T2OUT

MAX232

Figure 4: Encoder signal processing circuit

(b)

Figure 3: (a) Optical inside assembly (b) Digital signal from optical encoder 3.2 Electronics Hardware Electronics hardware is designed and fabricated to interface the optical encoder output signals for processing. The hardware is fabricated using PIC18F1320 microchip fabricated microcontroller. Angle information decoded by the microcontroller is sent to the PC via RS232 interface and can be displayed in designed application software. Here on chip interrupt resources available with the microcontroller are used for real time detection of the digital signal from the optical encoder. The on chip interrupt is configured to raise the interrupt on rising edge of the digital input signal at the interrupt

77

pin. The figure 4 shows electronics hardware schematics for goniometer. Figure 5 shows the working model of the digital signal processing hardware for goniometer and figure 6 shows the goniometer attached to rotary encoder with digital output connector from encoder.

1 2 3 4 5

the disk blocks and allows the light from LED source to reach the detector. The black portion of line on the disk block LED light to reach to one of the detector and clear portion of the disk will allow the light to reach at detector. Two detectors are used to sense clockwise and anticlockwise angular rotation respectively. Direction of angular movement can be governed by processing and comparing the output signal pattern from both the detectors. Rotary quadrature encoder with index of 1000PPR, it is having 5 terminals for interfacing to microcontroller. Because of 1000PPR encoder used in the goniometer will provide the minimum angular resolution of 0.18 degree. It also provides one single pulse at each rotation. Figure 3(a) shows the circular disk used in incremental optical encoder and Figure 3(b) shows the possible digital output signal pattern from optical encoder. The digital signal output shown in figure 3(b) is from terminal A, terminal B and terminal Z respectively. Each falling or rising edge of digital signal at terminal A or B indicates the 0.18 degree angle of rotation for goniometer and both output A and B are quadrature of each other. So minimum angle can be measured with the 100PPR encoder is 0.09 degree.

Figure 5: Inside view of goniometer signal processing unit

Shrihari Shinde, Shirish Ghadigaonkar, Lalan Jaiswal, Abhishek Sakhare, Vaishali Bambole, H. Muthurajan

J2 1 2 3

CON3

International Journal of Engineering Technology, Management and Applied Sciences

www.ijetmas.com July 2016, Volume 4, Issue 7, ISSN 2349-4476

Figure 6: Goniometer assembly 4. Software Development To processes and decode the digital signal data from optical encoder there is need to design an embedded algorithm. The simple embedded algorithm with proper interrupt handling is the need for getting the accurate angular control of goniometer. Embedded algorithm is designed and implemented in embedded C programming language. Figure 7 shows the embedded algorithm. Interrupt INT0 of PIC18F1320 is used to detect the terminal „A‟ digital signal of encoder. INT0 is configure for rising edge of input signal, once rising edge is detected at INT0 pin interrupt subroutine is execute to note the anticlockwise of clockwise angular rotation of goniometer. Counting of each rising edge at INT0 add or subtract the 0.18 degree value in the final reading according to the logic level of terminal „B‟. Final angular reading of the goniometer will be sent to the PC via RS232 on chip interface present in PIC18F1320.

Figure 7: Embedded Algorithm for Goniometer

78

5. Conslusion The proof of concept and simple model of goniometer is fabricated using available plastic goniometer. In view of mechanically connecting optical encoder to the plastic goniometer, it is modified in such a way that the one arm of the goniometer rotates along with hollow shaft of optical encoder. Embedded hardware for the digital signal processing of optical encoder is designed using PIC18F1320 microcontroller chip. Embedded algorithm is designed to efficiently use onchip available interrupt module for real time detection of angular movement, the angular reading of the goniometer can be sent to the PC via RS232 interface. Form the designed hardware setup it is practically observed that angular resolution obtained is 0.18 degree. The application software for real time angular data acquisition has been designed in VB programming. Future work will be to integrate the electrical actuation means to both arm of goniometer along with encoder to each arm and effort will be made to achieve the more angular resolution by incorporating high PPR rated encoder or customized encoders. Referances [1] R. Yellepeddi, “Applications of an Integrated XRFXRD Spectrometer”, Journal de physique iv, Volume 4, July 1996 [2] Jan felix steinbreiner, “X-ray diffraction microscopy: computational methods and scanning types experiments”, Stony brook University, Thesis, August 2010. [3] M A Wahab, “solid state physics structure and properties of material” Second edition, Narosa publication. [4] S.O. Pillai, “Solid State Physics”, sixth edition, New Age International Publishers. [5] B.D Culity, “Element of x-ray diffraction”, University of Notre Dame, Addision-Wesley Metallurgy Series,1956. [6] Zakia Moore, “Application of X-ray Diffraction Methods and Molecular Mechanism Simulation to structure Determination and cotton Fiber analysis”, University of New Orleans, Theses, 2008. [7] Catherine louise Fleck, “Magnetism in complex cobaltates Y1-X SrxCoO3 and Ca3Co2O6”, University of warwick, Thesis, October 2011. [8] Barbara L Dutrow, “X-Ray powder diffraction”, louisiana state university, Christian M clark, Eastern Michigan University, Thesis.

Shrihari Shinde, Shirish Ghadigaonkar, Lalan Jaiswal, Abhishek Sakhare, Vaishali Bambole, H. Muthurajan

International Journal of Engineering Technology, Management and Applied Sciences

www.ijetmas.com July 2016, Volume 4, Issue 7, ISSN 2349-4476 [9] Ali shehzad bhutt Shale, “Characterization using xray diffraction” , Dalhousie university, Thesis, august 2012. [10] Mino.r.caira, “Current application of powder X-ray diffraction in drugs discovery and development”, University of Cape Town, Ph.D Thesis, Feb 2014. [11] N V Bhat and R R Deshmukh, “X-ray Crystallographic studies of polymeric structure”, Department of Chemical Technology, University of Mumbai, Thesis, 2002. [12] James D. rachwal, “X-ray diifraction applications in thin flims and (100) substrates analysis”, University of South Florida, Thesis, 2010. [13] Edmund Y.S. Chao, “Justification of triaxial goniometer for the measurement of joint rotation”, Journal of Biomechanics, Volume 13, 1980.

79

[14] Suryanarayana, “X-Ray Diffraction”, Springer Publisher, 1998 [15] Robin D Wolf, “Implementation, analytical characterization and application of novable portable XRF/XRD instruments”, MSc Thesis, Universiteit Gent, 2012. [16] Xinghui Li, “Fabrication of scale gratings for surface encoders by using laser interference lithography with 405 nm laser diodes”, International Journal of Precision Engineering and Manufacturing, Volume 14, Issue 11, November 2013. [17] D. Jucius, “UV imprint fabrication of polymeric scales for optical rotary encoders”, Optics & Laser Technology Elsevier, Volume 56, March 2014.

Shrihari Shinde, Shirish Ghadigaonkar, Lalan Jaiswal, Abhishek Sakhare, Vaishali Bambole, H. Muthurajan