Draw a plot showing sustained oscillations

Assignment Help Programming Languages
Reference no: EM131302116

How to use PID controller to ensure a robot car run a specified degree with PID controller. And the inbuilt PID controller is disabled.

Objectives

1. Build a robotic car

2. Understand PID control design for robots

3. Design a PID controller. Tune a PID controller

Equipment

1. LEGOS NXT Robotic kit

2. PC to NXT USB cable

3. Computer with RobotC installed

Background

The car robot we are using is a differential drive car robot as it has two motorized wheels that provide drive and steering functions.There are some basic problems with this program. The car may not go straight as the two motors may not have the same speed even though we have commanded both of them to be at a specified power. This can be due to the different construction of the two motors as well as different outside environment for the two wheels. One motor my rotate faster than the other causing the car to drift. To counter these effects, we can use ROBOTC's inbuilt PID control function or we can build our own PID controller to ensure the car will run a specified degree.

Task

1. Build a LEGO NXT Robot car. Instructions are provided in the LEGO MINDSTORM's instruction manual. For testing, keep the robotic car upside down for design. Keep the robot fully charged, as design solution may change if the battery power changes.

2287_Figure.jpg

Figure: PID control for NXT position control

2. In ROBOTC, write a code for the PID controller. Define the error signal as the actual angle of the encoder and angle set point (target angle). The angle set point is 500 degrees. The motor should run for 10s.

a. It is important to disable all inbuilt ROBOTC PID control functions. This can be done using the commands shown below. Do not use any inbuilt ROBOTC PID control function.

nMotorPIDSpeedCtrl[motorA] = mtrNoReg;//disable NXT inbuilt PID
nMotorPIDSpeedCtrl[motorB] = mtrNoReg;//disable NXT inbuilt PID
nSyncedMotors = synchNone;//disable NXT inbuilt PID

b. Provide a soft copy (.c) of the code as well as put in the project report. The code should not be unnecessary complex and should be well commented explaining the functioning of the program.

3. Tune the PID controller by following the steps below

a. Use the Ziegler-Nichols (Z-N) method to find Ku and Tu. Draw a plot showing sustained oscillations and period of the oscillations. An example plot is shown in figure 3.5. Provide the values of Ku and Tu.

b. Using the values of Ku and Tu, show the initial tuned performance of the PID controller. Provide the rise time, percentage overshoot and settling time (± 5%)

c. Tune the PID values further for a maximum percent overshoot Mp< 6% , settling time < 1.2 sec (2% scenario) and steady state error of < 1.3 %.

4. Design a PID controller for speed control using the set point speed to 250 degrees per second. Tune the PID values for a percent overshoot < 7%, settling time < 1.5 s (5% scenario) and steady state error of < 10%.

Reference no: EM131302116

Questions Cloud

Is a hadron always a baryon : Explain how conservation of baryon number is responsible for conservation of total atomic mass (total number of nucleons) in nuclear decay and reactions.
What are the new values of the mean and median : Suppose that you have 10 observations that have a mean of 7, a median of 6, and a standard deviation of 3. If you halve the value of each observation, what are the new values of the: Mean? Median? Standard deviation
Determine the needed leadership style : Thoroughly analyze the situation and the needed areas of improvement. Determine the needed leadership style to help develop a solution. Outline an action plan for a resolution.
Why should we bother to perform experiments : What lifetime do you expect for an antineutron isolated from normal matter?
Draw a plot showing sustained oscillations : Use the Ziegler-Nichols (Z-N) method to find Ku and Tu. Draw a plot showing sustained oscillations and period of the oscillations. An example plot is shown in figure 3.5. Provide the values of Ku and Tu.
Compare the prompt radiation yields : A radiation-enhanced nuclear weapon (or neutron bomb) can have a smaller total yield and still produce more prompt radiation than a conventional nuclear bomb.
What mass is converted into energy by a 1.00-mt bomb : Fusion bombs use neutrons from their fission trigger to create tritium fuel in the reaction n + 6Li →3H +4He. What is the energy released by this reaction in MeV?
Determine some of the salient points about factors : Determine some of the salient points about factors that drive strategy. What stood out for you?What did you consider critical to the success of a HR-business strategy? Using the organization you have selected for your Final Project as an example, de..
Find the mass converted into energy by a 12.0-kt bomb : A large power reactor that has been in operation for some months is turned off, but residual activity in the core still produces 150 MW of power. If the average energy per decay of the fission products is 1.00 MeV, what is the core activity in cur..

Reviews

len1302116

12/6/2016 12:30:59 AM

PLEASE CONFIRM IF THIS CAN BE DONE Hi I need help with my project.I should design a PID controller for my robot(LEGO) which also can be controlled by Bluetooth from mobile phone. The PID controller should done with Simulink and should also perform tuning. Can you help me with it? Here are the sample reports attached for your reference. Here is a sample link for the assignment. I need it by 10th December. can you ask the expert if he is sure? because without the hardware can he do the design od working PID control in simulink? if his sure then i will do the payment

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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