Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Other Engineering Expert

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%.

Other Engineering, Engineering

  • Category:- Other Engineering
  • Reference No.:- M92055769
  • Price:- $90

Guranteed 48 Hours Delivery, In Price:- $90

Have any Question?


Related Questions in Other Engineering

Mine safety amp environmental engineeringpart 1 questions1

Mine Safety & Environmental Engineering Part 1. Questions 1. Occupational health and safety is the primary factor that needs to be considered in the mining industry. Discuss this statement. 2. Define the following terms ...

A detailed review of spatial modulation and simulation

A Detailed Review of Spatial Modulation and Simulation Learning Outcomes a. Learn how to model mobile communication channels d. Discern knowledge development and directions on the recent advances in 4G to the research pr ...

Homework - risk and decision management1 you are working

Homework - Risk and Decision Management 1) You are working program X. The total budget allocated to the program is $100 M and it is to be completed in 24 mo. range (R) and passenger capacity (C) are two key performance p ...

Assignment 11 what is the purpose of ore reserve and

ASSIGNMENT 1 1. What is the purpose of ore reserve and resource estimation? Why are resource and reserve estimates important to the mining industry? 2. What is meant by ore? What is meant by the term waste? How is the di ...

Engineering analysis assignment -for every problem provide

Engineering Analysis Assignment - For every problem, provide The MATLAB script/function files that solve the problems. Problem 1: Plot the function f(t) = (x+5) 2 /(4+3x 2 ) for -3 ≤ x ≤ 5. using plot command. Use the ar ...

Assignment -problem 1 - given is the lcc difference

Assignment - Problem 1 - Given is the LCC difference equation that represents some LTI system: y(n) - ¾y(n-1) - ¼y(n-2) = x(n) + x(n-1)   a) Find the impulse response of the system (solve the LCCDE). b) Draw a block diag ...

Introduction to engineering design assignment -

Introduction to Engineering Design Assignment - Drafting Question 1 - Field notes and traverse drawing may be an outdated form of keeping and presenting information on the position of features on a site. Modern electroni ...

1 online discussion forum - post your proposed topic and

1. Online Discussion forum - Post your proposed topic and chosen data set as well as a short plan for the project. This is required for approval of the topic. As discussed, students must select unique topics, therefore i ...

Mine safety amp environmental engineeringpart 1 questions1

Mine Safety & Environmental Engineering Part 1. Questions 1. Occupational health and safety is the primary factor that needs to be considered in the mining industry. Discuss this statement. 2. Define the following terms ...

Register design a cpu register is simply a row of

Register design A CPU register is simply a row of flip-flops (i.e. SR, JK, T, etc) put side by side in an array to make the size of register required. For example, an 8 bit register has 8 flip-flops side by side for stor ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As