File Exchange

image thumbnail

Low speed motor Encoder with LED and LDR

version (757 KB) by Techsource Technical Team
Simple encoder with Arduino, LED and LDR


Updated 02 Jul 2015

View License

This model illustrates motor encoder using an LED and LDR.
A black disk with a single hole (where light passes through) is attached to the motor shaft. Each time the motor completes a revolution, the LED light passes through the hole and LDR receives it, which then alter the resistance of the LDR and hence the signal reading at the digital input port.

Cite As

Techsource Technical Team (2021). Low speed motor Encoder with LED and LDR (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)


Is this output in rpm or rps? If we need to convert to rpm, what changes to be made in this blocks?

Talha Yousuf

good effort man



MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!