LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

System Identification and Transfer Function of the LEGO MINDSTORM NXT Robot

Can anybody please help with the below question.

 

Using your LabView interface, input different values of power and record the output value of the number of wheel rotations. You can convert the latter into speed by measuring the diameter of the wheel. Then, type ‘ident’ in the command line of Matlab to launch a graphical user interface for system identification. Using the data collected for input power and recorded speed, you can derive the transfer function for your robot in the Laplace domain.

 

You will notice that it is possible to approximate the transfer function to a first order system.

 

Add disturbance to your system such as wind drag, road profile or friction. You might want to model the disturbance as a sinusoidal waveform.

 

 

Analyse the system response in LabView in order to tune the response.

Finally, write a LabView program to test your controller.

  • Set both Integral and Derivative to 0
  • Increase the value for Proportional controller to 0.5, 0.8, 1, 1.1, 1.3, and 1.5
  • Select a suitable simulation stop time.
  • Compare each simulation results and draw some conclusions.

Record the steady-state error. Has it dropped to near zero?

Record the rise time. Has it decreased to less than 0.5 second? And for what values of Kp?

 

Check whether this response is realistic i.e. a real cruise control system generally cannot change the speed of the vehicle from 0 to 10m/s in less than 0.5 second.

  • Adjust the gain (Kp) to give a reasonable rise time and add an integral controller to eliminate the steady-state error.
  • Change both Kp and Ki and see what happens to the response. When you adjust the integral gain Ki, start with a small value since a large Ki can destabilise the response. (Ki =0.001, 0.002, 0.003, 0.004).
  • Then you need to adjust both the proportional gain Kp and the integral gain Ki to obtain the desired response. Record the values of Kp and Ki that can meet all the design criteria.

 

 

Write the PID-feedback control LabVIEW program as described above.

Does it work? Quantify! Show us it is working

 

Hand in a short report on the PID project on the cruise control of the LEGO MINDSTORM NXT Robot. Your report should contain an introduction to cruise control and uses of PID controllers, a brief explanation of how PID feedback control works. The printout of the Block Diagram and Front Panel of your LabVIEW program should be attached at the end of your report.

 

Put it all together. There are many questions that can be explored and written up in the result section. Be creative.

Here are some things that may be addressed: Check whether your system can stabilise speed to within 1%. What are the optimal PID parameters that you have found? Can you choose PID parameters to both reach the set speed quickly and also maintain the speed within good accuracy once the system has reached the set speed? Can you control the speed of small steps? Explain your results?

0 Kudos
Message 1 of 3
(3,618 Views)

HI ToolMonkey

 

You should be able to build control system to do this using PID control VIs. The following paper is a good place to start when working with PID systems. 

 

http://www.ni.com/white-paper/6440/en

 

Let me know how you get on using some of the functions in this. 

 

Thanks 

 

Dan.H

UKAE

Daniel Harryman MEng
CLA, CPI
0 Kudos
Message 2 of 3
(3,516 Views)

Thanks for that.


@DanHarryman wrote:

HI ToolMonkey

 

You should be able to build control system to do this using PID control VIs. The following paper is a good place to start when working with PID systems. 

 

http://www.ni.com/white-paper/6440/en

 

Let me know how you get on using some of the functions in this. 

 

Thanks 

 

Dan.H

UKAE


 

0 Kudos
Message 3 of 3
(3,505 Views)