STM32CubeMX and Quadrature Encoder
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2017-01-24 12:27 AM
I am new to ARM and STM32CubeMX
My goal is to use this very interesting board
http://www.st.com/en/evaluation-tools/32f429idiscovery.html
and use one internal 16bit counter for time and one 16bit counter for QEI
(QEI=Quadrature Encoder to track angle of crankshaft)
These two counters should have an external reset to zero when each new revolution starts
The datasheet
http://www.st.com/resource/en/datasheet/stm32f429zi.pdf
says:Up to 17 timers: up to twelve 16-bit and two 32-
bit timers up to 180 MHz, each with up to 4IC/OC/PWM or pulse counter and quadrature(incremental) encoder inputSTM32CubeMX is such a great and unique utility and it can not only handle the chip but also the entire board
STM32F429I-DISC1. This is fascinating.
Still I am lost here as it is my first use of STM32CubeMX
Can anybody tell how to do and also indicate the code needed to read the counters in a C -loop,
An image is enclosed - I am also looking for a way to program the card with
http://www.mikroe.com/mikroc/&sharparm
Thanks and best regards
BO
#stm32cubemx-and-quadrature-encoder- Labels:
-
STM32CubeMX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2017-01-24 1:37 AM
Hello
Ovelius.Bengt
,- I advise you to download the package . There is an example entitled 'TIM_Encoder' under the path below: 'STM32Cube_FW_F4_V1.0\Projects\STM324x9I_EVAL\Examples\TIM'This example shows how to configure the TIM1 peripheral in encoder mode to determinate the rotation direction.You may take it as a reference.
- Since it's you first time using the CubeMx tool, I recommend to :
- Watch the '' video available on ST website;
- Have a look at '
https://community.st.com/docs/DOC-1203-how-to-create-stm32cubemx-project
' which is a tutorial to create your own project using STM32CubeMX.
May this help you
Best regards,
Khouloud.