Go to Post Brandon is my hero :) - Cory [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-08-2005, 20:49
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
2 wheeled balancing robot

i am planning on making a 2 wheeled balancing robot and was wondering if any body could help me out in terms of the mathematical portion becaus e i am VERY good at math but i am only entering math b (one year b4 pre calc) and I dont know what formulas i need

i am planning on using some sort of gyro to balance
  #2   Spotlight this post!  
Unread 25-08-2005, 21:02
Adam Richards's Avatar
Adam Richards Adam Richards is offline
I'm baaaaaaack.
FRC #1902 (Exploding Bacon)
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Orlando, FL
Posts: 1,062
Adam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond repute
Send a message via AIM to Adam Richards
Re: 2 wheeled balancing robot

Would the robot be ridden on, autonomous, or just a standard controlled robot?
  #3   Spotlight this post!  
Unread 25-08-2005, 21:10
mechanicalbrain's Avatar
mechanicalbrain mechanicalbrain is offline
The red haired Dremel gnome!
FRC #0623 (Ohm robotics)
Team Role: Electrical
 
Join Date: Apr 2005
Rookie Year: 2004
Location: Virginia
Posts: 1,221
mechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond repute
Send a message via AIM to mechanicalbrain Send a message via Yahoo to mechanicalbrain
Re: 2 wheeled balancing robot

I thought you were doing a walking robot? Also list you size. We need details, details and more details. What size would be a good start (the variables you need to use changes with size.) Small sizes are much easier than large. Very small is the easiest of all (yes that is not ALWAYS the case but mostly true).
__________________
"Oh my God! There's an axe in my head."
623's 2006 home page
random mechanicalbrain slogans

  #4   Spotlight this post!  
Unread 25-08-2005, 21:36
Ryan Foley Ryan Foley is offline
Registered User
FRC #5687 (The Outliers)
Team Role: Mentor
 
Join Date: Jun 2002
Rookie Year: 2001
Location: ME
Posts: 447
Ryan Foley has a reputation beyond reputeRyan Foley has a reputation beyond reputeRyan Foley has a reputation beyond reputeRyan Foley has a reputation beyond reputeRyan Foley has a reputation beyond reputeRyan Foley has a reputation beyond reputeRyan Foley has a reputation beyond reputeRyan Foley has a reputation beyond reputeRyan Foley has a reputation beyond reputeRyan Foley has a reputation beyond reputeRyan Foley has a reputation beyond repute
Re: 2 wheeled balancing robot

Thats quite the project. Just so happens that another CD member is/was working on the same type of thing. There's a thread that he created, that probably has the answers you're looking for, or at least some useful insight that may lead you to the answers you need. Check it out here

Good Luck!
__________________
Ryan

FRC #5687: The Outliers [2015-?]
FRC #1995: Fatal Error [2007-2009]
FRC #350: Timberlane Robotics [2001-2004]

FRC/FLL volunteer since 2005
  #5   Spotlight this post!  
Unread 25-08-2005, 21:43
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
Re: 2 wheeled balancing robot

Quote:
Originally Posted by Ryan Foley
Thats quite the project. Just so happens that another CD member is/was working on the same type of thing. There's a thread that he created, that probably has the answers you're looking for, or at least some useful insight that may lead you to the answers you need. Check it out here

Good Luck!
Haha, thats me!

When I was doing research, it looks like there will be a decent amount of noise from the gyro. Many people recommended using a kalman filter, which looks pretty complex.

You may want to try using something like IR distance sensors, the Sharp is good I heard.

My idea's been moved to my ever-growing to do list, so I probably won't get it done for a while. If you need any help feel free to contact me, or when you're done be sure to tell me how it worked out
__________________
http://www.mikesorrenti.com/

Last edited by Mike : 25-08-2005 at 22:38.
  #6   Spotlight this post!  
Unread 25-08-2005, 22:43
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
Re: 2 wheeled balancing robot

ummmm....... i am really looking for mathematical support to help me learn and figure out whatt i need to
  #7   Spotlight this post!  
Unread 25-08-2005, 22:47
mechanicalbrain's Avatar
mechanicalbrain mechanicalbrain is offline
The red haired Dremel gnome!
FRC #0623 (Ohm robotics)
Team Role: Electrical
 
Join Date: Apr 2005
Rookie Year: 2004
Location: Virginia
Posts: 1,221
mechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond repute
Send a message via AIM to mechanicalbrain Send a message via Yahoo to mechanicalbrain
Re: 2 wheeled balancing robot

Quote:
Originally Posted by sparksandtabs
ummmm....... i am really looking for mathematical support to help me learn and figure out whatt i need to
Well you need to say more what your planning to do. It drastically changes who can help you based on what they know.
__________________
"Oh my God! There's an axe in my head."
623's 2006 home page
random mechanicalbrain slogans

  #8   Spotlight this post!  
Unread 25-08-2005, 22:53
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
Re: 2 wheeled balancing robot

Quote:
Originally Posted by mechanicalbrain
I thought you were doing a walking robot? Also list you size. We need details, details and more details. What size would be a good start (the variables you need to use changes with size.) Small sizes are much easier than large. Very small is the easiest of all (yes that is not ALWAYS the case but mostly true).
i asked someone and they said that a this would be easier for me then a bipod

plus i like the mth involved in this, hahaha first sign of a geek!

also are there any enigneers or people that can help me on aim msn or yahoo with the math, i know the outline of what i need to do (linearize the the inpout voltage and the tilt) but i have figured out how yet
  #9   Spotlight this post!  
Unread 25-08-2005, 23:26
BrianBSL BrianBSL is offline
Registered User
FRC #0190
 
Join Date: Sep 2004
Rookie Year: 2000
Location: Worcester, MA
Posts: 251
BrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud of
Re: 2 wheeled balancing robot

Quote:
Originally Posted by sparksandtabs
i asked someone and they said that a this would be easier for me then a bipod

plus i like the mth involved in this, hahaha first sign of a geek!

also are there any enigneers or people that can help me on aim msn or yahoo with the math, i know the outline of what i need to do (linearize the the inpout voltage and the tilt) but i have figured out how yet
First, we need to know much more about what you are doing this with - what size, what controller, what sensor(s), what motors.

There is absolutely no equation someone can give you that is the motor output as a function of the analog input that will instantly work, epically without knowing that information.

As I told you when you IM'd me, I think you are thinking of this way too much like a scientist and not like an engineer. I would not be concerned with some equation that backs up the physics behind it, but rather something that provides a solution - which are related but not the same. You will probably need some PID control, or some sort of error-based control theory, and watch your integration term so you don't get oscillation. Without Calculus, I think you will have difficulty understanding the math of the physics that explains the problem, and I think you might want to take a simpler approach. I don't understand what you are talking about when you say "linearize the input voltage and the tilt" - you are getting discreetly sampled values on the analog input. The tilt angle is the integration of the yaw rate sensor's values, in whatever units they are in (you will have to convert the 10-bit analog values to degrees or something it if you want to use a non-arbitrary unit). You probably want to break the problem up - find a way to keep the robot at a stand still without falling, and then worry about driving it without it falling, having it move at the same time is an additional task to worry about after you can get it to stand still.

Others, please correct me if I am wrong, I have not actually done this project, but this is how I would approach it.

Last edited by BrianBSL : 25-08-2005 at 23:31.
  #10   Spotlight this post!  
Unread 25-08-2005, 23:53
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
Re: 2 wheeled balancing robot

well it is not that i want an equation to back up the physics but i am doing what you said in the IM. You said for me to do the opposite of the input. I get an input as a degree measurement, which means i need some way to convert it to a force that can be turned in to a voltage then applied. The math is for the conversion.

Last edited by John Gutmann : 26-08-2005 at 00:26.
  #11   Spotlight this post!  
Unread 25-08-2005, 23:55
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
Re: 2 wheeled balancing robot

Quote:
Originally Posted by sparksandtabs
well it is not that i want an equasion to back up the physics but i am doing what you said in the IM, you said for me to do the opposite of the input, i get an input as a degree measurement, which means i need some way to convert it to a force that can be turned in to a voltage then applied, the math is for the conversion
I think spellcheck just exploded.

I would help you, if I had any idea what you are saying.
__________________
http://www.mikesorrenti.com/
  #12   Spotlight this post!  
Unread 26-08-2005, 00:19
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
Re: 2 wheeled balancing robot

Quote:
Originally Posted by Mike
I think spellcheck just exploded.
haha, what is spelled wrong?

Last edited by John Gutmann : 26-08-2005 at 00:22.
  #13   Spotlight this post!  
Unread 26-08-2005, 01:13
K.Shaw's Avatar
K.Shaw K.Shaw is offline
The Zoomin' Human
AKA: Shaw 1, kevshaw, little shaw
FRC #0237 (Sie-H²O-Bots (See-Ho-Bots), FLL #3954 (Swift Eagles))
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Watertown,CT
Posts: 318
K.Shaw has a brilliant futureK.Shaw has a brilliant futureK.Shaw has a brilliant futureK.Shaw has a brilliant futureK.Shaw has a brilliant futureK.Shaw has a brilliant futureK.Shaw has a brilliant futureK.Shaw has a brilliant futureK.Shaw has a brilliant futureK.Shaw has a brilliant futureK.Shaw has a brilliant future
Send a message via ICQ to K.Shaw Send a message via AIM to K.Shaw Send a message via MSN to K.Shaw Send a message via Yahoo to K.Shaw
Re: 2 wheeled balancing robot

Quote:
Originally Posted by sparksandtabs
haha, what is spelled wrong?
equation not equasion
__________________
2005 Bash @ the Beach Winners -Thanks Team 1511 and Team 181
2005 NJ Regional Finalist -Thanks again to 56 and 303
2005 Radioshack Innovative Control Award-NJ
2005 FLR Semi-Finalists
2005 Radioshack Innovative Control Award-FLR

2004 Archimedes Divisional Semifinalists
2004 NJ Regional Winners. -Thanks Team 56 and Team 303!
2004 NJ G.M. Industrial Design Award Winner
2004 UTC Motorola Quality Award Winner
  #14   Spotlight this post!  
Unread 26-08-2005, 01:31
henryBsick's Avatar
henryBsick henryBsick is offline
Why wait for the last 20?
AKA: Henry B. Sick
FRC #0125 (NUTRONS)
Team Role: Mentor
 
Join Date: Nov 2003
Rookie Year: 2001
Location: Bahston, MA
Posts: 645
henryBsick has a reputation beyond reputehenryBsick has a reputation beyond reputehenryBsick has a reputation beyond reputehenryBsick has a reputation beyond reputehenryBsick has a reputation beyond reputehenryBsick has a reputation beyond reputehenryBsick has a reputation beyond reputehenryBsick has a reputation beyond reputehenryBsick has a reputation beyond reputehenryBsick has a reputation beyond reputehenryBsick has a reputation beyond repute
Send a message via AIM to henryBsick
Re: 2 wheeled balancing robot

Back on topic... Mike said try using IR distance sensors... good idea. Another may be trying to go as uber simple as you can. Get a shaft encoder and gear is down (for better resolution to the encoder once the shaft rotates) to a shaft with which a counter balance would hang. The robot tips, the "pendulum" stays perpendicular, rotating the shaft, spinning the gears, in which case the encoder would then detect rotation. Just code it out like a joystick from there on, with a lot of tweaking to get it just right. The robot tips one way, the encoder reads it and send power to the wheels to keep it upright. It will probably be a very wobly robot though, without a lot of resolution on the encoder to detect the smallest change, also there must be a large "power curve" to the motors, to make very small adjustments at first, then get larger as the rotation of the shaft becomes greater.

Sorry if that cam out in a jumble, I have been thinking about it for a long time now. They are just my personal non-programmer, Lego oriented views.

P.S. I really really really think this is possible with Lego's and am going to hop on it as an Independent Study Project as soon as school starts again.


Anxious for School,
-Henry
__________________
Mechanical Engineer
Digital Lumens
NU ME: 2011

Last edited by henryBsick : 26-08-2005 at 01:35.
  #15   Spotlight this post!  
Unread 26-08-2005, 01:45
John Wanninger's Avatar
John Wanninger John Wanninger is offline
Registered User
FRC #1732 (Hilltoppers)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2001
Location: Milwaukee, WI
Posts: 142
John Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond repute
Re: 2 wheeled balancing robot

Here's one way to approach it (or at least get started):

You are trying to "drive under" the center of mass. If you had a pendulum connected to the shaft of a potentiometer attached to the robot, it would give a certain voltage when you are directly underneath it, lets say 2.0 Volts. If the robot is tilted to the "North" 10 degrees, you get 1.8 Volts, to the "South" 10 degrees you get 2.2 Volts. If your robot tilts South, drive South , if it tilts North drive North. Try setting your motor command in proportion to the difference between the pot. signal and your pot.target signal. This example shows Kfactor as 1, adjust as needed. This is basic proportional control, the "P" in PID. If you want your robot to move South, adjust your target to something greater than 2 Volts so that your robot is "falling" in the direction you want it to travel.

To add integral control ("I"), add a constant whenever it is falling too far in one direction, subtract it if it is falling in the other direction. To add derivative control ("D"), subtract off a term proportional to the rate of change of the pot.signal [IMG]Diagram[/IMG]
Attached Thumbnails
Click image for larger version

Name:	Control2.gif
Views:	59
Size:	12.4 KB
ID:	3554  
__________________

"A hundred times every day I remind myself that my inner and outer life are based on the labors of other men, living and dead, and that I must exert myself in order to give in the same measure as I have received and am still receiving..."
--Albert Einstein

2001: FLL852 |2002: FLL20/FLL21 |2003: FLL23/FLL25 |2004: FLL14/FLL16 |2005: FVC22/FLL124 |2006: FLL3/FLL2986/FVC22/FRC1732 |2007:FLL3/FLL34/FLL56/FRC1732
2008: FLL3/FLL18/FRC1732 |2009: FLL101/FLL8963/FRC1732 ...(etc.!)

Last edited by John Wanninger : 26-08-2005 at 09:42. Reason: drawing cleanup
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pre-Rookie Teams - The How To Keith Chester General Forum 6 17-09-2008 00:28
Robot Weight Limit: Rule Conflict Specialagentjim Rules/Strategy 10 06-08-2005 17:52
Self-Balancing 2 Wheeled Robot Mike Robotics Education and Curriculum 25 02-08-2005 15:12
Is allowing a practice robot good for FIRST? Matt Adams General Forum 38 19-01-2005 11:35
THIS TIME TEAM 438 BALANCING ROBOT archiver 2001 1 24-06-2002 01:01


All times are GMT -5. The time now is 05:00.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi