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
- 330Ω resistor.
- Stepper motor driver IC ULN2003
- Four LEDs
- External Power Supply
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.
- Use external 5V power supply and make its ground common with the ground of DAQ ground.
- Consider VIOLET as RED and ORANGE as GREEN in physical stepper motor.
- 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.
sir can u send me the .vi file of this project...sachinkr@outlook.in
ReplyDeleteNice blog post information are so useful.
ReplyDeletelabview freelancer consultant
Thanks for sharing, could you Plz send me the vi if this project aeroman2010@gmail.com
ReplyDeletesir can u send me the .vi file of this project...revanth123451.rk@gmail.com
ReplyDeletesir send me also the vi file....ayu123dhawan@gmail.com
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteHello can you send me the Vi? ruidantunes@gmail.com
ReplyDeleteDear sir, could you please send me the VI file? .thanks in advance
ReplyDeleteDear sir, could you please send me the VI file? .thanks in advance
ReplyDeleteid:vidyalakxmi@gmail.com
Dear sir, could you please send me the VI file? .thanks in advance
ReplyDeleteid:tfcrdxesz159tw@yahoo.com.tw
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
ReplyDeleteEmail: Martin.Baranauskas@analog.com
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
ReplyDeleteEmail: tsb308@outlook.com
Can you send me the vi of this ?
ReplyDeleteMy email: joshivyash18mech@student.mes.ac.in