|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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
|
|||||
|
|||||
|
Re: 2 wheeled balancing robot
Would the robot be ridden on, autonomous, or just a standard controlled robot?
|
|
#3
|
|||||
|
|||||
|
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).
![]() |
|
#4
|
||||
|
||||
|
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! |
|
#5
|
|||||
|
|||||
|
Re: 2 wheeled balancing robot
Quote:
![]() 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 ![]() Last edited by Mike : 25-08-2005 at 22:38. |
|
#6
|
||||
|
||||
|
Re: 2 wheeled balancing robot
Quote:
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 |
|
#7
|
|||
|
|||
|
Re: 2 wheeled balancing robot
Quote:
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. |
|
#8
|
||||
|
||||
|
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. |
|
#9
|
|||||
|
|||||
|
Re: 2 wheeled balancing robot
Quote:
I would help you, if I had any idea what you are saying. |
|
#10
|
||||
|
||||
|
Re: 2 wheeled balancing robot
Quote:
Last edited by John Gutmann : 26-08-2005 at 00:22. |
|
#11
|
|||||
|
|||||
|
Re: 2 wheeled balancing robot
Quote:
|
|
#12
|
|||||
|
|||||
|
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 Last edited by henryBsick : 26-08-2005 at 01:35. |
|
#13
|
||||
|
||||
|
Re: 2 wheeled balancing robot
Quote:
|
|
#14
|
||||
|
||||
|
Re: 2 wheeled balancing robot
i am looking to do it with small gear motors or servos, MAYBE i am not sure how much power i will need so i may use CIM or drill motors and i dont know what i will use for a controller because i dont know the speed yet, the size will be about 2 feet tall or less and it will be a robot that will not bbe riden on i will eventually make it so i can control it like adding an offest to set the "balance" a little off so it will drive one way while it is "balanced"
would i be able to use folmulas from the inverted pendulum problem? because there motrs would be moving it and the gyro would meaure the tilt just as a pot on a inverted pendulum would Last edited by John Gutmann : 26-08-2005 at 15:16. |
|
#15
|
|||||
|
|||||
|
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] Last edited by John Wanninger : 26-08-2005 at 09:42. Reason: drawing cleanup |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |