i want to control speed of DC motor using arduino via matlab.

5 ビュー (過去 30 日間)
Rijaa
Rijaa 2014 年 12 月 31 日
コメント済み: Mani Shankar 2018 年 7 月 27 日
i want to control speed of DC motor using arduino via matlab. I am not using any extra circuitry to control speed of motor. i tried to do it with analogWrite but it didn't work it just controlled the duty cycle of the motor. i need some command through which I can directly control the speed of motor. i am using arduino uno as an interface between motor and matlab. can any one suggest something that may help?

回答 (2 件)

Manikandan
Manikandan 2015 年 11 月 10 日
use PWM
  1 件のコメント
Mani Shankar
Mani Shankar 2018 年 7 月 27 日
for speed = 0:-0.1:1 writePWMDutyCycle(a,9,speed); pause(0.5); end

サインインしてコメントする。


Madhu Govindarajan
Madhu Govindarajan 2015 年 11 月 10 日
This video should help you do the same using Adafruit Motor shield - https://www.youtube.com/watch?v=H1KPlms7s90&list=PLn8PRpmsu08p0r0uLo8vcxvQqHUlY6lkQ&index=19

コミュニティ

カテゴリ

Help Center および File ExchangeArduino Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by