Friday 2 September 2016

Interface a four phase stepper motor with LabVIEW using NI USB 6008

Objective:

Interface a four pole stepper motor with LabVIEW using NI USB 6008.

  • Control the Motor speed with a software front panel KNOB and calibrate it to RPM.
  • Change the direction of rotation by software switch.
  • Control the angle of rotation with a software front panel KNOB and calibrate it to degree of rotation.
  • Design the front panel as shown in fig.



Apparatus Required:
  • 4 pole, 5 wire stepper motor
  • Breadboard
  • Jumper wires
  • NI USB 6008 multifunction DAQ
  • 470 Ω resistor.
  • Stepper motor driver IC ULN2003
  • Four LEDs


Procedure:
  • Connect the USB cable of DAQ to one of the USB ports of the PC.
  • Open the LabVIEW software and create a new VI. Bring the ‘DAQ Asst’ VI into the block diagram by right clicking over it go to Express------>Inputs-------->DAQ Asst.
  • Select the proper channel of the DAQ as Generate Signals------->Digital------->Line----->P0.0, P0.1, P0.2, P0.3 (select the line sequentially by holding the Ctrl key)then click on finish.
  • A configuration window will be opened, make no change here, directly click on OK button.
  • Now the LabVIEW will configure the DAQ and Build it.
  • Generate Boolean ‘HIGH’ data sequentially in each line while other lines are ‘LOW’, means a Boolean ‘HIGH’ should available at P0.0 then at P0.1 and so on. And it will be in cyclic order, means after ‘HIGH’ at P0.3 it should be again from P0.0. The ‘HIGH’ time should be same for all sequence.
  • Simulate the sequence flow by connecting LEDs at the digital line of the DAQ.
  • After successfully generation of Boolean sequence connect the motor and its driver with the DAQ as per the diagram shown below.

  • After the connection the stepper motor will start rotating when you click on the ‘RUN’ button of the VI.
  • Make a VI to rotate the motor in reverse direction using a Boolean switch, rename it as direction control.
  • Determine the number of steps the motor has to cover 3600 angle.
  • Calibrate the speed in terms of RPM, i.e the fron panel ‘KNOB’ should has the value directly in RPM.
  • And make another VI to rotate the motor for a specific angle, the fron panel ‘KNOB’ should has the value directly in angle.

13 comments:

  1. sir can u send me the .vi file of this project...sachinkr@outlook.in

    ReplyDelete
  2. Thanks for sharing, could you Plz send me the vi if this project aeroman2010@gmail.com

    ReplyDelete
  3. sir can u send me the .vi file of this project...revanth123451.rk@gmail.com

    ReplyDelete
  4. sir send me also the vi file....ayu123dhawan@gmail.com

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. Hello can you send me the Vi? ruidantunes@gmail.com

    ReplyDelete
  7. Dear sir, could you please send me the VI file? .thanks in advance

    ReplyDelete
  8. Dear sir, could you please send me the VI file? .thanks in advance

    id:vidyalakxmi@gmail.com

    ReplyDelete
  9. Dear sir, could you please send me the VI file? .thanks in advance
    id:tfcrdxesz159tw@yahoo.com.tw

    ReplyDelete
  10. Hi I really liked your tutorial and the way that you went by controlling the Stepper with LabVIEW and the CDAQ. I would really appreciate if you could send me the VI that you made as a example to base my own controller from. Thank you in advance

    Email: Martin.Baranauskas@analog.com

    ReplyDelete
  11. Hi I really liked your tutorial and the way that you went by controlling the Stepper with LabVIEW and the CDAQ. I would really appreciate if you could send me the VI that you made as a example to base my own controller from. Thank you in advance

    Email: tsb308@outlook.com

    ReplyDelete
  12. Can you send me the vi of this ?
    My email: joshivyash18mech@student.mes.ac.in

    ReplyDelete