Skip to main content
paul sauv
Associate III
August 29, 2017
Question

STM32 as quadrature encoder output

  • August 29, 2017
  • 12 replies
  • 3420 views
Posted on August 29, 2017 at 10:02

Hi everyone,

I need to reed a quadrature encoder signal from a sensor, modify the number of pulse and send this signal out to a machine.

The output signal must be a TTL quadrature signal, I have 5 pins: 0v, 5v, A, B and Z on my machine.

All the reading part is OK but I don't know how I should do for sending exact amount of pulse with quadrature signal.

Thank you for your help

#quadrature-encoder #output-quadrature #ttl

Note: this post was migrated and contained many threaded conversations, some content may be missing.
This topic has been closed for replies.

12 replies

Uwe Bonnes
Chief
August 29, 2017
Posted on August 29, 2017 at 10:38

As you gave no speed requirements and nearly no other informations on your environment:

Try bitbanging the signals.

paul sauv
paul sauvAuthor
Associate III
August 29, 2017
Posted on August 29, 2017 at 10:44

I'm not sure I'm allowed to put commercial link on this forum

Here are information that I have

0690X00000603qkQAA.jpg0690X000006042tQAA.jpg
Uwe Bonnes
Chief
August 29, 2017
Posted on August 29, 2017 at 11:02

Your title is wrong. You need quadrature encoder input, so a quadrature decoder!

Any two channel STM32 timer can act as quadrature decode. Read the reference manual and the timer cookbook about that.