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?

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

Similar Messages

  • Getting results to the Lego mindstorm NXT brick

    In a nutshell, my group and I are trying to use eye movements to control the Lego mindstorm, ie look left turn left look right turn right etc. We will be acquiring the eye movement signals through labview signal express and running those signals into labview to move the NXT robot. We are in need of assistance in both the signal importing into labview and the subsequent utilization of the said signal by the NXT. We already have the NXT toolkit and are able to succesfully run basic programs. The problem we've had is that we need the results continuously imported into the NXT so that we can maintain control of the vehicle.  So basically we need pretty close to real time results, sort of like a joystick type of thing. My group members and I have limited experience with labview so any assistance is appreciated. 

    Hello King945,
    Here is a link that walks through sending and reading Bluetooth messages. I have also include a basic NXT Front Panel Control vi. The vi will work if the NXT toolkit is installed and if the NXT brick is wired to the computer through a USB cable. Also, if you integrate the Bluetooth messaging with this vi you should be able to control the NXT using front panel controls through Bluetooth.
    Wear
    National Instruments
    Product Support Engineer
    Attachments:
    Front_Panel_Steering_Control.vi ‏102 KB

  • Connecting LEGO mindstorms NXT to my computer

    I am trying to learn Labview using the LEGO mindstorms NXT robot. I installed Labview 2009 and started working, but when I open the NXT terminal in the NXT module it claims that the NXT is not connected although it is (via USB). Any ideas ? Could this have to do with the fact that I am using Windows Vista ?
    Thanks

    This article is intended to indicate the installation and configuration process between LabVIEW and educational robot Lego Mindstorms NXT wirelessly, this will enable LabVIEW developers in having a mobile platform for the development of projects and autonomous robots, we need to install some programs the computer:
    https://decibel.ni.com/content/docs/DOC-32448    
    Atom
    Certified LabVIEW Associate Developer

  • The transfer function of the PID block doesn't show the derivator.

    Hello,
    I am trying to use the PID vi, but I when I try the box by itself, it doesn't behave as a "clasic" PID should behave. The main problem is that I don't manage to see the derivator. In the attached vi I compare the transfer function of the PID vi with the transfer function of a PID built by me. My version shows all what a PID should have: integral section (with decreasing magnitude and -90 phase), center area (with constant magnitude and 0 phase), and derivative area (with increasing magnitude and +90 phase).
    The PID vi only shows the integral part.
    You can also select a step input, and see the output directly. If you choose a large enough derivative time (100 times bigger than the integrator time), and you look closely to the first part of the output, you will see the pick due to the derivator in my version, but not in the PID.vi version.
    Does anyone knows what am I doing wrong? 
    Kind regards,
    Pablo Estevez
    Solved!
    Go to Solution.
    Attachments:
    TestPID.vi ‏31 KB

    Dear Nathand,
    Thanks for your answer, I tried the change and you are right. That shows that this not a standard PID, since that means (and actually I can see it now by checking inside the vi) that it is not using the derivative of the error but the derivative of the process variable. I know that this is used sometimes to prevent the effect of fast changing set-points, but it is a shame that they do not comment on it in the help, and that this is not a selectable feature. Do you know if there is a way to edit these pre-packaged vi's? 
    One more question, about the labview style. I included the sequences just to group terms and make the code more readable to separate the integrator from the derivator and not have a knot of entangled signals. Specially when I run the clean-up diagram, it gets very entangled. I have been looking for another way to do that (container boxes, groups). It would be nice if you could suggest me something I can do for it.
    Thanks again,
    Pablo 

  • Log and Transfer to get the latest clips only

    I now have about 4 hours of video on my SR-12 120G hard drive. If I only want Log and Transfer to log the last hour, is there a way to do it? Now it logs ALL the disc, some 500 clips. I only want to transfer the last 25 or so for right now. Evertime I do a Log and Transfer it starts from Clip 1. Thanks.

    I can transfer the 25 to FCE like you said, what I don't want to do is see the 500 clips in the transfer window. That probably take 5 minutes of more on my system to show up before I see the newest clips, and I only have 1/4 of the Sony HDD drive full. I would like to tell it to log only clips on a certain date, or range, and then let me pick and choose out of only those 25 the ones I want to transfer to the FCE project. Thanks.

  • My Windows 7 Professional desktop system hard disk got corrupted and I took the opportunity to install an SSD for a new system disk and reinstall Windows.  The system is up and running on the SSD, with my old system disk now used for storage as it is stil

    My Windows 7 Professional desktop system hard disk got corrupted and I took the opportunity to install an SSD for a new system disk and reinstall Windows.  The system is up and running on the SSD, with my old system disk now used for storage as it is still readable.  The only Adobe product I have reinstalled so far is Reader XI but I would like to reinstall Elements 8 and Acrobat 9 without taking up more licences as both are also installed on my laptop.  Can you point me to the best way to do this?  - Thanks

    If you have the two allotted activations already and one was lost on the hard drive that failed then you need to contact Adobe Support thru chat and ask them to reset your activations.
    For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
    Serial number and activation chat support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )

  • How do I upgrade the iOs on my ipad1 to version5? I've tried through itunes many times, but I get a message that says that the download was interrupted and i should try again later. Can i download the iOS file to my PC and transfer it to the ipad?

    How do I upgrade the iOs on my ipad1 to version5? I've tried through itunes many times, but I get a message that says that the download was interrupted and i should try again later. Can i download the iOS file to my PC and transfer it to the ipad? How should I do that?

    Thank you!
    Disabling firewall and AV did the trick!
    Kudos.
    Alex

  • I have a 27inch iMac with snow leopard and 1 user, and a 24 inch (older) upgraded to yosemite and 5 users. I want to wipe the 27 inch and transfer everything on the 24 to it. I do have time capsule 3tb but not sure how to do it

    I have a 27inch iMac with snow leopard and 1 user, and a 24 inch (older) upgraded to yosemite and 5 users. I want to wipe the 27 inch and transfer everything on the 24 to it. I do have time capsule 3tb but not sure how to do it

    Move your content to a new Mac - Apple Support

  • Not able to find the infosource and transfer rules in the infosource tab

    Hi everyone,
    Not able to find the infosource and transfer rules in the infosource tab in Modelling. I was able to see that the infosource is available under nodesnot connected in the transport connection tab. But i cannot see the same in infosource tab. Please advise.

    I have searched with technical name, I am not able to find it, but when i double click on the datasource .....the transfer rules pop up. Because I have not transported the application component, I am not able to find it. But even though it should be available on the nodesnotconnected, I still cannot see it. Is there a work around this ?
    I have also tried rsa1old, it still could not find.
    Thanks for your quick response

  • I recently switched from PC to Mac and am able to find and transfer most of the larger files of music to iTunes, but there are about 750 songs that are held in sub-files that require me to dig in and transfer them one by one to iTunes.. I've tried transfe

    I recently switched from PC to Mac and am able to find and transfer most of the larger files of music to iTunes, but there are about 750 songs that are held in sub-files that require me to dig in and transfer them one by one to iTunes.. I've tried transferring the parent folders, but it doesn't seem to work.  Does anyone know of a more efficient way of getting iTunes to dig into the subfolders and transfer the music without me having to go one by one?

    There is a good general guide to switching from Windows to Mac at the following link that touches on moving music as well How to Move to a Mac - Get your stuff from your PC to your new Mac
    There are also these guides:
    How to move music between authorised computers
    Networking with a Windows PC
    Don't forget to deauthorise your old PC if you are disposing of it so you don't use up your 5 allowances: About iTunes Music Store Authorisation and Deauthorisation

  • Applications installed in my iTouch does not launch. the music and internet functions but the installed applications does not. tried switching it on and off, still problem persists

    Applications installed in my iTouch does not launch. the music and internet functions but the installed applications does not. tried switching it on and off, still problem persists. help...

    Your only chance besides getting it serviced would be setting it up as new device:
    http://support.apple.com/kb/HT4137

  • Can I do all and transfer everything from the iPod Touch 32gb 3rd gen onto an iPad using iTunes?

    Can I do all and transfer everything from the iPod Touch 32gb 3rd gen onto an iPad using iTunes?

    Be sure to first sync and backup your iPod Touch with iTunes. Then just sync your iPad with iTunes to transfer everything to the iPad. Be sure you are using the same Apple ID. You will now have two devices synced with iTunes on your computer.

  • Labview 2009 Module Mobile And Lego Mindstorms NXT

    Hi
    I've installed the mobile toolkit in labview 2009 but when I created a new mobile project I didn't find the NXT Programmings category on menu.....
    are they not supported?
    I would like to control my nxt with my PDA through bluetooth.
    Thanks in advance for help 

    Hi,
    which NXT software did you exacly installed? LabVIEW Module for LEGO MINDSTORMS NXT or LabVIEW Toolkit?
    I would like to be sure to have corretcly understood: in a mobile project, the function palette of a VI under a PDA target does not have the NXT palette, correct?
    Bye!
    Licia

  • NI LabVIEW 2009 LEGO MINDSTORMS NXT Module Released!

    This software allows users to run code on their computers to control LEGO® NXT Bricks and compile, download, and run LabVIEW code directly to the NXT.  The new NXT Module 2009 represents a considerable improvement in features and usability over past versions.
    Totally redesigned APIs
    Full access to LabVIEW debugging tools
    Control NXT bricks either by running code in LabVIEW or compiling and deploying code to the NXT brick
    VIs for TETRIX kits are available out of the box
    Support for all LEGO® MINDSTORMS NXT 2.0 sensors.
    NXT Applications  Data Viewer, Piano Player, NXT Multimeter, Remote Control, and Scope
    The module can be downloaded here. 
    Please feel free to ask questions and provide feedback to NI R&D.
    Thanks,
    Mark
    Product Support Engineer - LabVIEW R&D
    Mark
    LabVIEW R&D

    Nice! But I guess that doesn't mean that you will be releasing a free version any time soon... does it. 
    Oh! BTW (slightly off topic) you should remove the "Select Your Operating System" block on the Student edition cd order form. It just gets peoples hopes up that they might get a mac version. 
    Andrew 
    Message Edited by AndrewDudney on 10-22-2009 10:27 PM

  • Is Lego Mindstorms NXT 2.0 Mountain Lion Compatible?

    Is Lego Mindstorms NXT 2.0 software compatible with Mountain Lion? 
    My son saved money for a long time and finally last week had enought to buy NXT.
    I'd like to upgrade my Lion to Mountain Lion but since this NXT is the most important thing in house at the moment I don't want to ruin the experience with uncompatible OS.

    I spoke at length with someone at Lego Mindstorms support. Unfortunately I didn't think to get his name.
    He indicated that its a known crash with the NXT software and Mountain Lion bluetooth. However, he was unable to give me any encouragement regarding when it would get fixed. In particular, he indicated there is also a known issue communicating using broadcom bluetooth chipset which is used in Macs for the last several years. He said the NXT software has been broken talking to broadcom devices since 2007. Five years and no fix.
    He indicated the software is a version of Labview written by National Instruments.
    I've checked my systems. My 2012 Macbook Air and 2011 Mini use broadcom chips, while my 2007 white macbook has "cambridge silicon radio". I am able to communicate using my 2007 white macbook running snow leopard.
    Overall I can't say I'm happy with Lego's response. It essentially sounds like their software has been broken for years and they haven't bothered to fix it. I'm personally in a bind since the system we had envisioned using for first lego league isn't practical to use without bluetooth. I realize bluetooth can't be used in competition.
    It doesn't seem the Lego supports their NXT software well nor the Mac platform.

Maybe you are looking for