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

  Find use of dom to change the contents of an html text box

This statement will include the names of files or sections of code within a file for which he or she has been solely responsible, and the Web address of files that are visible on the group Web server space. A response such as ‘It was basically a j..

  What is the difference between re-locatable program

What is the difference between re-locatable program and re-locatable data?, Explain the working of increment and decrement instruction ?

  Design a bigger and harder maze

E91: Humanoid Robotics - Spring 2013 - Assignment 1. Design a bigger and harder maze for the 2D and/or translation/rotation problems and see how it affects planning

  Display the main menu in a loop

CPCS202 - You need to display the main menu in a loop! Why? Because after the customer makes their choices, the menu should appear again. The customer can then exit the system or perform other services.

  Users selection and return to menu

Create a menu that will allow the user to list all wines by name in alphabetic order and count all wines in each type and list all 5 types with their count

  Design a program that will allow a user to input a list

Design a program that will allow a user to Input a list of your family members along with their age and state where they reside. Determine and print the average age of your family and print the names of anyone who lives in Texas.

  Implement ref integ result in data duplication

Would failure to implement Ref Integ result in data duplication, incorrect data sets, or broken table errors or is there a work around.

  Explaining risk in fixed-price contracts

It is recognized that fixed-price contracts offer obvious advantages to buyer organizations because they transfer almost all of the risk to the contractor.

  Design program which models worms behavior

Design a program that models the worms behavior in the following scenario: A worm is moving toward an apple. Each time it moves, the worm cuts the distance between itself and the apple.

  Assignment on the service-oriented architecture

Assignment  : The Service-Oriented Architecture

  Write a program that displays a virtual object on real video

In this assignment, you will write a program that displays a virtual (i.e., graphics) object (e.g., a wire-frame cube, a teapot) on a real video sequence.

  Write an algorithm in structured english

Write an algorithm in structured English (pseudocode) that describes the steps required to perform the task specified and implement your algorithm in Python.

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