Skip to main content
MÇETİ.1
Associate III
June 15, 2021
Solved

How can I drive linear motor with l298n?

  • June 15, 2021
  • 1 reply
  • 3031 views

0693W00000Bb56HQAR.png0693W00000Bb567QAB.pngHi everyone, I'm trying to drive linear motor with l298n motor driver. I use CubeMX to set pinouts and keil to code. I have to generate pwm but I think I couldn't calculate it correctly. Can anyone help me?

This topic has been closed for replies.
Best answer by mƎALLEm

Hello,

You can refer to the example located under \Projects\STM3210E_EVAL\Examples\TIM\TIM_PWMOutput for PWM generation in STM32F1 Cube.

But be careful you should ensure minimum 2.3V as high level to drive L298N (refer to its datasheet: Input High Voltage min).

STM32

1 reply

mƎALLEm
mƎALLEmBest answer
Technical Moderator
June 21, 2021

Hello,

You can refer to the example located under \Projects\STM3210E_EVAL\Examples\TIM\TIM_PWMOutput for PWM generation in STM32F1 Cube.

But be careful you should ensure minimum 2.3V as high level to drive L298N (refer to its datasheet: Input High Voltage min).

STM32

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
MÇETİ.1
MÇETİ.1Author
Associate III
June 22, 2021

thank youu, I handled it