To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 540
539  |  541
Subject: 
Re: moving in a straight line with two motors?
Newsgroups: 
lugnet.robotics
Date: 
Sat, 14 Nov 1998 06:09:48 GMT
Original-From: 
Scott Furman <fur@netscape.*nospam*com>
Viewed: 
2336 times
  
Here's an exercise for someone with an RCX:  Create a chassis that
consists of one drive motor to the wheels and an angle sensor geared to a
2-d inverted pendulum on top.  Write a program that moves the chassis to
keep the pendulum straight vertical.

Believe it or not, I've been working on exactly this problem for the last few
days.  I built an angle sensor using a 500K potentiometer wired directly to an
RCX input port.  (Lego's angle sensor doesn't have sufficient angular
resolution unless it's geared down and adding those gears adds too much
mechanical resistance for the pendulum to swing freely.)

The problems I am still facing are:

   * The acceleration provided by two motors isn't sufficient to keep the
     pendulum erect if it's only slightly perturbed from vertical.  Partly,
     this is due to the tires slipping when the machine accelerates from rest,
     but I think that, even with that corrected, the motors may not be
     powerful enough.
   * Although there's programmatic control of the motor power, there doesn't
     seem to be control over the motor velocity.  As a result, the motor tends
     to jerk when it starts or changes direction.  When the pendulum is
     leaning slightly, the motor turns on briefly to correct it, but the
     application of full velocity tends to cause overcompensation and the
     pendulum swings the other way.  In a few cycles, the pendulum
     oscillations increase beyond the motor's ability to compensate.

Incidentally, there's a good description of the control loop required for an
inverted pendulum in Siebert's "Circuits, Signals and Systems".

-Scott



Message has 2 Replies:
  Re: moving in a straight line with two motors?
 
(...) I think making the pendulum longer should cure this... (...) Possibly making it heavier will cure this... Cheers, Ben. (26 years ago, 14-Nov-98, to lugnet.robotics)
  Re: moving in a straight line with two motors?
 
(...) Perhaps you're asking too much of them. Try toning down the pendulum; that is, give it some length below the hinge point as well. As long as it's still top-heavy you're still technically an inverted pendulum, and the added mass below the pivot (...) (26 years ago, 14-Nov-98, to lugnet.robotics)

Message is in Reply To:
  Re: moving in a straight line with two motors?
 
(...) 1) You've been playing too much Carmageddon. 2) Control theory is relatively new (it paces the development of computers). There are quite a few good textbooks available, but a professor is a much greater help. Familiarity with calculus and (...) (26 years ago, 14-Nov-98, to lugnet.robotics)

12 Messages in This Thread:






Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    
Active threads in Robotics

 
Verified and Trusted Team of Hackers
4 hours ago
Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR