Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


measure speed motor using Timer1 on stm32f030

Hello every one.biggrin
I’m using stm32f030 for a cheap project. I want it to measure motor speed by means of using a Hall effect rotary encoder and a comparator. the encoder makes fully digital pulses when motor rotates.
STM32f030 doesn’t have an ETR pin for external trigger and I have to use TI2FP2 pin to trigger TIMER 1.
so:
1- Should I set input trigger filter to value 0 or 15 to achieve maximum detectable frequency?
2-I should set TIM1 to input capture mode or time base mode?which HAL functions should I use to detect TIMER1 overflow?
3-what is the maximum detectable freq?
4- is this kind of frequency meter ideal for other usages like measuring LC meter?
5-what does the word “Trigger” mean in ARM timers? It is triggering timer main clock to count it up? or trigger is a clock itself?
thanks so much.

Capture compare is likley best simplest option
the max freq you can measure is close to half the timer clk feq/ prescaler but then accuray is bad.
basiclay you have to set timer clk high enought to get precsion but not to much to cope with smallest fequencies you can measure

i sugest you read http://www.st.com/content/ccc/resource/technical/document/application_note/54/0f/67/eb/47/34/45/40/DM00042534.pdf/files/DM00042534.pdf/jcr:content/translations/en.DM00042534.pdfQuestion
have a look at CubeF0 (or F4) example for code sample or just google ;)

note that the timers are not arm they are st periferals , triger most ofen refer to “enable timer counter”


 

Newest Forum Posts

  1. Можно ли установить камин на балконе или лоджии? by Grand3kpdErorb, 03:38
  2. reservation car service Seattle by Jamesprede, 2025-05-01 10:06
  3. Last day: drone bonus by Danielrug, 2025-04-19 16:55
  4. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  5. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  6. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  7. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  8. Insightful Perspectives on This Subject by davidsycle, 2025-03-04 05:45
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05

Last-Modified Blogs