Download - Optical Encoder
![Page 1: Optical Encoder](https://reader036.vdocuments.us/reader036/viewer/2022082218/55a6893f1a28ab3f1e8b47cf/html5/thumbnails/1.jpg)
Optical Encoder
Group MembersGroup Members
Hasnain Nazir(ME23)Hasnain Nazir(ME23)Mubashir Ayub(ME27)Mubashir Ayub(ME27)
Arif Wahid(ME25)Arif Wahid(ME25)Assadulllah(ME80)Assadulllah(ME80)
![Page 2: Optical Encoder](https://reader036.vdocuments.us/reader036/viewer/2022082218/55a6893f1a28ab3f1e8b47cf/html5/thumbnails/2.jpg)
Introduction
An optical encoder is a complex system
which converts a mechanical rotary motion (angular position or speed) into a usable electrical signal.
![Page 3: Optical Encoder](https://reader036.vdocuments.us/reader036/viewer/2022082218/55a6893f1a28ab3f1e8b47cf/html5/thumbnails/3.jpg)
![Page 4: Optical Encoder](https://reader036.vdocuments.us/reader036/viewer/2022082218/55a6893f1a28ab3f1e8b47cf/html5/thumbnails/4.jpg)
An encoder is a photoelectric emitter receiver pair looking through a slotted disk.
![Page 5: Optical Encoder](https://reader036.vdocuments.us/reader036/viewer/2022082218/55a6893f1a28ab3f1e8b47cf/html5/thumbnails/5.jpg)
![Page 6: Optical Encoder](https://reader036.vdocuments.us/reader036/viewer/2022082218/55a6893f1a28ab3f1e8b47cf/html5/thumbnails/6.jpg)
The encoder operates on the principal of optics. Light from the LED passes through the disc, the mask, and into the photo transistors.The photo transistor outputs a sine wavewhich corresponds to the flashing lightpulses from the LED. The sine wave isthen converted to a square wave into DAQ/NI ELVIS II.
![Page 7: Optical Encoder](https://reader036.vdocuments.us/reader036/viewer/2022082218/55a6893f1a28ab3f1e8b47cf/html5/thumbnails/7.jpg)
Pulse rate or Pulses per Revolution is defined as the number of physical lines and corresponding spaces on the code disc.
A pulse is equal to onecomplete 360 degree Electrical(not mechanical) square wavefrom an encoder.
![Page 8: Optical Encoder](https://reader036.vdocuments.us/reader036/viewer/2022082218/55a6893f1a28ab3f1e8b47cf/html5/thumbnails/8.jpg)
A LabVIEW Measurement of RPM
We can use the Pulse Measurements.vi
to measure the period, pulse duration, or duty cycle from a waveform array.
![Page 9: Optical Encoder](https://reader036.vdocuments.us/reader036/viewer/2022082218/55a6893f1a28ab3f1e8b47cf/html5/thumbnails/9.jpg)
We can convert the period measurement to revolutions per minute by inverting theperiod to get frequency and multiplying by 60 to get rpm. For scaling, divide by 1000 toget krpm.
![Page 10: Optical Encoder](https://reader036.vdocuments.us/reader036/viewer/2022082218/55a6893f1a28ab3f1e8b47cf/html5/thumbnails/10.jpg)
Use the DAQ Assistant to collect 1000 V samples for the tachometer graph and provide an input signal array for the Pulse Measurements.vi.
![Page 11: Optical Encoder](https://reader036.vdocuments.us/reader036/viewer/2022082218/55a6893f1a28ab3f1e8b47cf/html5/thumbnails/11.jpg)
![Page 12: Optical Encoder](https://reader036.vdocuments.us/reader036/viewer/2022082218/55a6893f1a28ab3f1e8b47cf/html5/thumbnails/12.jpg)
Run this VI and take your motor for a spin. See and hear how responsive the motor is to a rapid change in the rpm setpoint.