EE471 Inverted Pendulum Design Project

Need a PayPal Instant Payment Notification solution?

Get

Now!

 

[ Home | Members by Group | Schedule | Status | Documentation | Data | Q & A ]

Visit James' BioElectroMech Home Page.


Questions & Answers

Those who have asked questions.

Those who have answered questions.


Table of Contents

Group I Questions

  1. Could you breifly explain how you modeled the encoder? (from Phillip Lipson)
  2. How was the length of the pendulum chosen? (from Paul Richmond)
  3. What is the maximum angle that the pendulum can be at before the acceleration of the car can not return the pendulum back to center? (from Andy Rizzo)
  4. What is the inertia of the wooden pendulum assuming that this will be the pendulum used? (fromWes Ramshur)
  5. What process did you go through to get the equations, and why did you not compansate for angular acceleration? (from Mark Haas)
  6. Please convey the determining factors/calculations for the final height of the pendulum and the weight of the mass attached. In other words why did you pick these values? (from Scott Morstatt)

Group II Questions

  1. What methods did you use to determine the rolling resistance for the car? (from Scott Hailey)
  2. Since the acceleration of the car in reverse is lower than the acceleration of the car in forward, if we set the car on inclined plane to make the accelerations equal, what angle does the plane need to be at? (from Andy Rizzo)
  3. You have provided us with information on the servo motor we will be using for the inverted pendulum design; what tests did you perform to obtain the specific data (i.e. oscilloscope)? (from Michael Taylor)
  4. Did you make any assumptions in the testing of the motor, and if so, what were they? (from Michael Taylor)
  5. In the motor and drive notes you say you want the vehicle to move at 10 ft/sec. Why that speed? (from David Petry)

Group III Questions

  1. Briefly explain the operations that the PIC chip is supposed to accomplish? (from Mark Haas)
  2. How did you choose between the PIC 14000 family and the PIC 16C6X family? (from Scott Hailey)
    1. What was the deciding factor for the 16C6X?
  3. What were the drawbacks of the pic chip that was chosen? (from Jarod Taylor)
  4. An eight bit chip was used, but only six of its bits were used. Could you tell me why not a six bit chip was used in the first place, wouldn't this be a cheaper option? (from Thamer Hummadi)

Group IV Questions

  1. Why did you choose the programing methods that you are using and what led you to your conclusions? (from Mark Haas)

Group VII Questions

  1. When you requested the additional polarity bit, you mentioned you would use a DPDT relay to use the information gained by the extra bit. During the last meeting you mentioned you would be using another method. What method are you going to use and why did you change your mind? (from Scott Hailey)

Answers from Group I

Question 1:

We handed out the grey scale to every one but if you didn't get it here it is:

# of degrees Grey Code
0 00001

1

00011

2

00010

3

00110

4

00111

5

00101

6

00100

7

01100

8

01101

9

01111

10

01110

11

01010

12

01011

13

01001

14

01000

15

11000

16

11001

17

11011

18

11010

19

11110

20

11111

21

11101

22

11100

23

10100

24

10101

25

10111

26

10110

27

10010

28

10011

29

10001

30

10000

Bit position >> 654321

The number six bit is so that we can mirror the grey code and the sixth bit will tell what side the pendulum is on. As you can see the grey code changes one bit at a time so it has one degree of resolution.

Michael Taylor

Question 2:

James nailed down the final length for us because of technical difficulties so what I will tell you is the theory behind the length because I believe that is your question. The car is supposed to present an acceleration to the pendulum. That acceleration is the force used in determining the length. We were given the acceleration measured by Group 2.

The pendulum has a moment of inertia at 30 degrees (the maximum angle). The inertia is a function of the length of the pendulum. The main task was to pick a length which would result in a moment of inertia which the force from the car could move while still considering other factors.

Scott Hailey, Michael Taylor, and Jarod Taylor

Question 3:

The angle that we are using is 30 degrees. This is supposedly the maximum angle that the motor can up right using the pendulum that we designed. We got this angle from the equations we used to design the pendulum from length,weight, and angle. To be absolutely truthful we just chose the values, stuck them in the equation and they worked. So the max angle could be a few degrees more.

Michael Taylor, Scott Hailey, Jarod Taylor

Question 4:

The inertia of the wooden pendulum plus the Silvered mass is 2.048*10^-3 Kg*m^2. We did not calculate the inertia of the wooden section alone because we knew we would not use it without the silvered mass.

Scott Hailey, Michael Taylor, and Jarod Taylor

Question 5:

We found the equations we needed on the Internet. Taking the laplace of the equation gets rid of the angular acceleration. The angular acceleration was not needed to find the moment of inertia. The equation we started with and ended up with are in the answer to question 6 below.

Scott Hailey, Michael Taylor, and Jarod Taylor

Question 6:

In class James put the following equation on the board: I d2q/dt = V l sin q - H l cos q . Through derivation and taking the laplace we found the following equation: q(s)/H(s) = 1 / [( I s2/ l)-mg]. Simply, we just guessed (James told us) the value for the length and weight that would satisfy our equations. What we were after was a height and mass which would put the moment of inertia high enough so that the amount of torque produced by the motor could effectively move the pendulum.

Scott Hailey, Michael Taylor, and Jarod Taylor

Back to Top

Answers from Group II

Question 1:

I should answer this question since Group 2 didn't actually determine this.

Using a spring loaded scale, I pulled the vehicle at a constant speed and read the grams force indicated. I then converted from grams force to Newtons. A very simple and probably very inacurate method, but it will have to do. Also, the rolling resistance was probably never really needed but I was thinking of getting more detailed about the force output from the motor.

To determine the quantity "b" given on the report assignment, I used the data from the acceleration experiments. Using the values for the lowest applied voltage (4 volts) I chose those values that should indicate a constant speed (the last couple of readings) and, using the value I had already determined for the force of rolling resistance (as described in the previous paragraph), I calculated "b" using F = b(dx/dt).

In words: (force of rolling resistance) = (coefficient of resistance)*(velocity)

James

Question 2:

I do not know the angle that would make the accelerations in either directions equal. That would not be an adequate solution because the relationship between the voltage and acceleration varies. If you get the information posted by group II on the web page I think the chart of voltage vs. acceleration will help to answer your question.

Mark Haas

Question 3:

A program in qbasic was written by James in order to collect output frequencies of the motor at different times. It also measured the time it took the car to get up to the maximum output frequency. We connnected the motor by way of a port connection to the o-scope, with a great deal of help from James, and the program took the data from the o-scope. We took 3 sets of data in each direction for voltages of : 4, 5, 8, 10, and 12 volts. Then from there we took the time the voltage was first applied to when the o-scope finished taking about 12 measurements of output frequency. We converted the frequency to RPM's using the number of shaft rotations per period (of the servo motor's output). Then converted from RPM's to speed. (See the Motor and Drive Notes) We calculated the acceleration of the motor by taking the final velocity minus the intial or first recorded velocity when the voltage was first applied and divided all that by the intial and final times in seconds. These calculations were carried out for every voltage and direction. From there, we were able to construct the acceleration vs. voltage, speed vs. voltage, and force vs. voltage graphs.

Phillip Lipson

The acceleration was found by connecting the cart to an oscilloscope and then determining the freq. of the cart at different voltages, in a given set of time. From, this the R.P.M and then the linear Velocity was calculated. By using the formula Acc.= Change in Vel/Change in Time, we calculated the acceleration. The final and initial, Vel and times were used, for the different voltages.

Fouad Akbar (in response to the duplicate question by Jarod Taylor)

Question 4:

We assumed negligible gear friction and that the speed of the car approached a linear behavior (risky).

Phillip Lipson

Question 5:

Because James picked that speed so it would not go faster than we can run. Therefore it will not get away from us.

Mark Haas

Back to Top

Answers from Group III

Question 1:

You question is overly broad to type a complete reply. I will attempt to give you the subfunctions associateded with the program, which may help clarify the microcontrollers role.

Scott Morstatt

Question 2:

The PIC 14000 offered the advantage of an internal clock (less hardware,) but it did not have a dedicated PWM function. So the 16C63 was chosen due to it abundance of I/O, PWM control, and 4K memory. As I have reviewed many assembly coded routines, I have found a scheme for generating PWM with a normal D/O, although this method does limit the resolution of the pwm generated.

Scott Morstatt

 

Question 3:

There were no literal "drawbacks" to the hardware selection. One of the inhibitors was the requirement to program in the base language of assembly, verses a more embedded language like C.

Scott Morstatt

Question 4:

Within the MicroChip product lineup, a six bit chip doesn't exist. The cost is irrelevant with the long standard of 4, 8, 16, and 32 bit processors. You would be correct in stating that the capacity of the 16C63 appears in excess of our requirements, but in order to meet all minimums (zB: PWM dedicated output) we get an abundance of digital I/O lines. Any way, it was James' money....Think Big $$$$!!!

Scott Morstatt

Back to Top

Answers for Group IV

Question 1:

After examining some more complicated and accurate numerical methods to evaluate the PID equation, we decided that simpler is better. We found several routines in C but were limited by the compiler to a small number of lines that could be compiled. That left us programming in assembly. And as we are not too accomplished in that language, we thought we should keep it as simple as possible. So the simplest methods that we could come up with were the rectangle approximation for the integral (area under the curve) and the slope of the measured variable between two points for the derivative.

Paul Richmond

Back to Top

Answers for Group VII

Question 1:

A digital out <RB1> will be set / cleared by the polarity register controlling the DPDT relay which will swap the power leads on the dc motor (reversing the direction of rotation.) See the picture link in Documents for the schematic representation graycode.bmp.

Scott Morstatt

Back to Top

For problems or questions regarding this web contact James R. Weeks.
Last updated: July 17, 2003.