How to connect and control a stepper motor and sensor connected to laptop using matlab?

4 次查看(过去 30 天)
I have a stepper motor with driver and a through beam sensor, when an object passed my sensor I would like my program to run and the motor will also run by 90 degrees counterclockwise then after the object passed the second sensor my motor will turn clockwise again by 90 degrees. can anyone help me how to connect this using parallel port and the code for it? Thank you very much hope someone helps
  2 个评论
Walter Roberson
Walter Roberson 2012-11-22
Which operating system and MATLAB version are you using, and are you using 32 bit or 64 bit MATLAB?
Newer versions of MS Windows have made it technically difficult and slow to access the parallel port. It is recommended that you do not start any new projects using the parallel port.

请先登录,再进行评论。

回答(1 个)

Walter Roberson
Walter Roberson 2012-11-24
  33 个评论
Kevin
Kevin 2012-12-1
Thank you I think I have downloaded that arduino package. I think it will be safer than having the sensor input enter the laptop directly

请先登录,再进行评论。

社区

更多回答在  Power Electronics Control

类别

Help CenterFile Exchange 中查找有关 Arduino Hardware 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by