필터 지우기
필터 지우기

Simulink L298N DC Motor Driver Enable PIN Question

조회 수: 22 (최근 30일)
Christos Tsallis
Christos Tsallis 2021년 12월 20일
댓글: Christos Tsallis 2021년 12월 21일
Hello,
I am trying to change the speed of a small dc motor using the module L298N and Arduino UNO. I am using the enable pin (Which is the pwm pin of L298N) in order to change the speed of the dc motor. The value of that pin must vary from 0 to 255 and the problem is that the constant value is from 0 to 1. When I set the constant >=0.5 motor starts at full speed and when I set it <0.5 motor stops. This means that it can understand only 2 states (on and off), is there any way to make it control its speed?
Thanks for your time, appreciate your help.
  댓글 수: 2
DGM
DGM 2021년 12월 21일
The L298N does not do its own PWM. The enable pin only supports two states. In order to modulate the driver current, you need to actually apply a PWM signal.
Christos Tsallis
Christos Tsallis 2021년 12월 21일
Thanks a lot ! I am new to Simulink !

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Embedded Coder에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by