Implement a pid controller

Assignment Help Simulation in MATLAB
Reference no: EM132705453

Handout

Last week you programmed your robot controller to use a Finite State Machine or Subsumption architecture. This week we will be taking a look at feedback loops, specifically the PID controller. This controller should be used to allow you to follow the wall more accurately. I recommend you look through the lecture slides, and the ‘PID without a PhD' article linked on the module shell first.

This work is the second part to the Lab Portfolio assignment forming of 20% of the module mark. You will need to submit a report of around 2 sides, and your code contained in the appendix of this report. Further help for the report is contained in Week 4's Lab Handout and on blackboard under the assessment tab.

Task 1: Implement a PID Controller
- Start with the proportional controller.
- Find a way to store a set of previous error values, this will be used for the integral and derivative part of PID.
- Next, implement the Derivative section.
- Finally, the Integral section.
- You may need to limit the action - if the output of the PID controller is too large, set the action to a maximum threshold, e.g. "if output > 0.3 then output = 0.3" (where 0.3 is m/s of the turn speed of the Pioneer robot in VREP).

Task 2: Tune your PID Controller
- Tune the PID controller using the technique from the lecture, compare different tuning parameters to each other, which one is the best?
- Optional: Try other methods found from your own research. Which one do you find easier to follow?
- Remember to include this task in your report - and include images from the testing. Put the robot in different situations (i.e. by corners) to see how well the controller performs.

Reference no: EM132705453

Questions Cloud

Examine three significant changes brought forth by tax cuts : How do examine three significant changes brought forth by the Tax Cuts and Jobs Act and discuss at least two advantages and/or disadvantages of each.
Identify ethical perspectives in global organization : Identify a global organization with a multinational presence. Identify ethical perspectives in the global organization.
How measure the effectiveness of budgeting : Has post-1970 "budgetary reform" simply been a struggle for power between the legislative bodies and the executive, or have they been sincere efforts
How could you as health care administrator employ strategies : While this article is focused on the clinical side of patient care, how could you as a health care administrator employ these strategies in your own position?
Implement a pid controller : Implement a PID Controller - Find a way to store a set of previous error values, this will be used for the integral and derivative part of PID
Political interests of american citizens : Discuss one effect that the two-party system of the U.S. has on the political interests of American citizens.
Explain the significance of npv : Explain the significance of NPV, IRR, MIRR, PB, DPB and PI and make a convincing argument for the acceptance or rejection of this investment.
What is salvage value : What is salvage value? Why do we 'recover' NWC?
Emergency earthquake preparedness : What challenges might the organization face in implementing and maintaining the operations of the emergency earthquake preparedness?

Reviews

Write a Review

Simulation in MATLAB Questions & Answers

  Assignment- optimal stopping rule for a gambler

Assignment- Optimal Stopping Rule for a Gambler (or City Trader), Objective - To practice MATLAB and basic Simulation Techniques. Problem - A gambler makes a series of plays with outcomes X1, X2,.... where the Xi, i ≥ 1 are independent, identically d..

  How does the party choose its state officers

How does the party choose its state officers? How is the party organized locally? How can an interested person become a member of the local party committee?

  Employ the use of word comparison instructions to control

Utilizing a single timer. employ the use of Word Comparison instructions to control our simulated traffic light. The sequence of operation and timing durations are set out in following timing diagram.

  Use matlab to plot the function

Plot the original periodic square wave on the same graph. Comment on the difference between the original periodic square wave and its truncated Fourier series presentation.

  Provide regression equation for intel stock excess returns

Provide the regression equation for the Intel stock excess returns when using S&P 500 excess returns and inflation as explanatory variables - What can you say about the significance of the regression coefficients?

  Compute the mean and standard deviation

EE 440 Assignment. Compute the mean and standard deviation. Plot the autocorrelation function of the x-gyro signal in Figure 3 for t = 0 to 1sec

  Generate a piece of data of acceleration measurements

Biomedical Signal Processing Lab Assignment. Stage 1 - Filter Design by Using Matlab. Generate a piece of data of acceleration measurements by using TA/IMU

  Select a modeling and prediction problem

Select a modeling and prediction problem. Work with actual data. Separate part of the data for training and others for testing. Train neural networks

  Produce a plot of the displacement

EG-264 Supplementary Matlab Assignment, Swansea University, UK. Produce a plot of the displacement using the driving frequency

  Transform cos to sin by using matlab

need to transform cos? (whatever the frequency is) to sin? by using MATLAB - Obtain Hilbert transformation of cosine signal x(t)=cos?? by using MATLAB

  Effects of dissolved solute

Effects of dissolved solute on unsteady double-diffusive mixed convective flow of a Buongiorno's two-component nonhomogeneous nanofluid

  Need an expert who can model a drill in simulink

Need an expert who can model a drill in Simulink. Working model of a drill needing for an improvment to behave more realistically as a drill to drill through plastic block.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd