It has been too long since I worked with this to remember much. I
remember that I used an optical quadrature encoder and I don't remember
any special setup. I wrote some in
boards/arm/stm32/stm32f4discovery/README.txt
In STM32, there is no special quadrature encode peripheral. That
function is just one mode of the advanced and general timers. So the
electrical properties of input signal must conform to the range
supported by the timer input pins. You should be able to get that from
the data sheet of whatever part you are using.
Greg
On 2/20/2021 2:57 PM, disruptivesolution...@gmail.com wrote:
Thank you. I am not so experienced as all you are. So I am a couple of years
behind... but beter late then never 😉
I recon I have to place some sort of voltage divider for the pins on the
QEncoder. This because i twill blow my MCU? Right?
Ben
-----Oorspronkelijk bericht-----
Van: Gregory Nutt <spudan...@gmail.com>
Verzonden: zaterdag 20 februari 2021 21:26
Aan: dev@nuttx.apache.org
Onderwerp: Re: Quadrature Encoder SNG-QPDB-002
I did that a long time ago. So have several others. See
$ find . -name "*qencoder*"
boards/arm/stm32/common/include/board_qencoder.h
boards/arm/stm32/common/src/stm32_qencoder.c
boards/arm/stm32l4/nucleo-l432kc/src/stm32_qencoder.c
boards/arm/stm32l4/nucleo-l476rg/src/stm32_qencoder.c
I don't see any defconfigs with the quadrature encoded enabled, however.
See also apps/examples/qencoder
On 2/20/2021 1:59 PM, disruptivesolution...@gmail.com wrote:
Hi all,
I have a Honywell Quadrature Encoder:
http://www.farnell.com/datasheets/2329419.pdf
The LM7366R seems tob e an option, but this chip is hard to obtain and is old
(so it seems).
Would it be possible to get this encoder to work with say an STM32? (32-bit
timer I think)?
I want to read the speed (rpm) and direction (phase shift).
Did anyone did such a thing?
Thank you in advance and with kind regards, Ben