bubulindo / STM32Encoder

This is a library to make use of the Hardware Timers present in the STM32F line of Microcontrollers.
17 stars 6 forks source link

stm32f4 black v2 #1

Open cnc4less opened 7 years ago

cnc4less commented 7 years ago

your lib works great on stm32f1 with stm32duino maple official branch, i tried to use it with stm32f407 but could not make work , any configuration required ?

bubulindo commented 7 years ago

Hello,

I developed it for F1 as it's the only boards I have at the house. Does the library compile for F4 boards? Do you get any type of error? Are the pins correctly configured for that board?

If you could give me a bit more info I can have a go at understanding what may be going on.

Thanks for using my code by the way!

On Sun, 2 Jul 2017 at 22:47, cnc4less notifications@github.com wrote:

your lib works great on stm32f1 with stm32duino maple official branch, i tried to use it with stm32f407 but could not make work , any configuration required ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bubulindo/STM32Encoder/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ABRPJ9jAw48mKw9CdV7Pd3R6cSPnfYPvks5sKA_zgaJpZM4OLs3N .

cnc4less commented 7 years ago

yes the library complies fine but it will will generate noisy random numbers as if the encoder pins are not connected, it is not your code i think there must be a code added to assign the right pins correctly, i wrote a simple encoder library with attachinterrup like the basic arduino ones and does work , again it is how to assign pins , it needs additional code to override whatever assigned by stm32arduino on startup.