Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Optical rotary encoders and Schmitt triggers

Status
Not open for further replies.

atferrari

Well-Known Member
Most Helpful Member
Optical rotary encoders as in PC's mice to be read through two PIC's pins.

Schmitt triggers in between, are they convenient? Or a must? Or not necessary at all?
 
In my experience the schmitt is a must.
Otherwise the slow rise time of the signal while the photo-interupter passes through the light beam, combined with a bit of noise on the signal, can cause all sorts of problems.

JimB
 
Last edited:
In my experience the schmitt is a must.
Otherwise the slow rise time of the signal while the photo-interupter passes through the light beam, combined with a bit of noise on the signal, can cause all sorts of problems.

JimB

hi,
I go with JimB on this one, I have always found most optical encoders have slow rise times, use a Schmitt.

A software solution sounds attractive, but long debounce delays are required to ensure they covered the worst case encoders.

E,
 
Sensor output

This is what the ST will have to deal with: output of one of the sensors obtained while turning de encoder's disk slowly back and forth.
 

Attachments

  • Sensor output.JPG
    Sensor output.JPG
    64.5 KB · Views: 208
What I would have expected.

As I said, Schmidt it.

JimB
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top