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

  Create a rexx program

Create a REXX program that asks a user for four separate lines of input, and then outputs those lines all at once, one line at a time

  Show the graphics simulation of drinks machine

When a coin is clicked on with the mouse it is placed into the slot, it then operates the coin sensor IP0. This should operate OP0 (coin hold solenoid), which will hold the coin in place. At this point either a drink is selected or the coin rejected.

  How many bit strings of length 8 are palindromes

How many bit strings of length 6 is there that begin with 0 or end with a 1?

  Write the required lines of code

Write the required lines of code that will create a ServerSocket object with a port number 3421 on which the server program is going to listen for client communications. Write the required lines of code that will create a new socket object

  Write a utility that converts dollars to coins

For the program, you will write a utility that converts dollars to coins. It is a simple program that must have the following: Multiple outputs to the screen

  Write the program which simulates shopping

Write the program which simulates shopping. Program must have a loop which continues as long as user wants to shop. Each time through loop read in name, price, and quantity of the item.

  Write program to operate as point of sale application

Write down program which will operate as the point of sale (POS) application at carpet retailer. Carpet will be sold by square yard. Padding will be sold by square yard.

  Advantages of turning the atm switches into lsr

Under these conditions, what are the advantages, if any, of turning the ATMswitches into LSRs, as opposed to using an overlay network?

  Create a draft program design

Start creating the program structure using the provided integrated development environment (IDE). Create a draft program design

  What are the benefits of the two when developing a compiler

What is the difference between top-down and bottom-up parsing

  A class method to initialize class data members.

Sales class data members for a char letter input from the console, a double to hold each individual sale as it is entered and a double for each of the individual salesperson's total commission.

  What are the advantages and disadvantages of a

what are the advantages and disadvantages of a manufacturing company owning and operating its own outbound warehouse

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