Filter löschen
Filter löschen

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

4 Ansichten (letzte 30 Tage)
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 Kommentare
Walter Roberson
Walter Roberson am 22 Nov. 2012
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.
Kevin
Kevin am 24 Nov. 2012
I have windows xp with Matlab 2010, I am also running it in 32 bit.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 24 Nov. 2012
  33 Kommentare
Kevin
Kevin am 1 Dez. 2012
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
Kevin
Kevin am 28 Jan. 2013
hey man, I tried the arduino package and it says timeout error, c an you help me fix this?

Melden Sie sich an, um zu kommentieren.

Communitys

Weitere Antworten in  Power Electronics Control

Kategorien

Mehr zu Arduino Hardware finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by