Go to Post Conspire to Inspire despite what may transpire ! - Bill_B [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 16-01-2012, 00:43
RoboMaster's Avatar
RoboMaster RoboMaster is offline
Alum, former programmer&co-captain
FRC #2472 (The Centurions)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Minnesota, Twin Cities
Posts: 268
RoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant future
Stabilizing robot on bridge with gyro or accelerometer

Our team is looking into this and I wanted to do some research. I know the general use of the gyro and accelerometer, so what I'm really looking for is some discussion on how to use them specifically for balancing on the bridge. I did some searching on CD and I don't think this has been brought up this year. I couldn't really find relevant things from the past, maybe I'm just a bad searcher.

Apparently either can be used (gyro if you mount it sideways), though the accelerometer would seem to be the most logical choice because one of its main applications is to sense what direction "down" is. Is one easier/better to use? Program? Wire? More sensitive/doesn't wander as much? Doesn't matter?

For programming, it could just be as simple as hold this button once you've started to drive onto the bridge, and the robot will let you control the drive motors unless it detects that the robot is level. In that case we assume the bridge is tipped back to horizontal, so the robot will hold the drive motors at zero automatically and quickly. Simple test of the sensor, with a switch case/if statement/case structure allowing the output to the motors to be the joystick values, or a constant zero speed value.
Some additions could be to automatically reduce drive speed by 2x or 3x in this mode, or to disable when the robot is nearly level, or just under the maximum angle, in an attempt to stop driving once the bridge starts tipping.
If you want to have another robot join you on the bridge, you might want to program other features to help out. I'm not sure what those could be.

And of course you could do it all autonomously. Hold/press the button and the robot slowly drives forward similar to above description. This would complicate things a little more, especially if you want the speed to adjust based on how "tipped" the bridge is.


But all this begs the question.......is using sensors and programming really necessary??? Are the drivers going to be able to drive on and level the bridge easily enough? Is it not worth the time and complication? How advanced should one go? As a programmer, I always have to remember that I am serving the drivers, so I need to make the robot easy for them to control in an FRC match environment. Help from automation or leveling sensors may complicate life more than help. I don't know. Personally I think a simple version of the options I described above would simply be helpful and easier than manual driving. Especially if there's an option to avoid or disable and revert to manual methods.

Thoughts? 2cents worth? Has another thread already been started?
__________________
My engineering blog: noeticbrainwaves.blogspot.com

I'm not slacking, my code's compiling
...and I'm using LabVIEW

Last edited by RoboMaster : 16-01-2012 at 00:46.
  #2   Spotlight this post!  
Unread 16-01-2012, 01:20
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Stabilizing robot on bridge with gyro or accelerometer

That's what I am doing and what the mentors expect from me.

It's not really as simple as holding a button. Sure, the user end experience is that easy, actually developing is not as easy as that. How far do you want to drive? How will you know how far?
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
  #3   Spotlight this post!  
Unread 16-01-2012, 01:25
Matt H. Matt H. is offline
Long Distance Mentor
FRC #1726 (N.E.R.D.S.)
Team Role: Alumni
 
Join Date: May 2006
Rookie Year: 2007
Location: Sierra Vista, AZ
Posts: 238
Matt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond repute
Re: Stabilizing robot on bridge with gyro or accelerometer

Quote:
Originally Posted by RoboMaster View Post
Apparently either can be used[/b] (gyro if you mount it sideways), though the accelerometer would seem to be the most logical choice because one of its main applications is to sense what direction "down" is. Is one easier/better to use? Program? Wire? More sensitive/doesn't wander as much? Doesn't matter?
The gyroscope and the accelerometer are useful for different tasks. The gyroscope gives accurate angular velocity data. The accelerometer gives an accurate angle off vertical but is sensitive to vibration and motion.

The most accurate system would use both sensors and a kalman filter (http://www.cs.unc.edu/~welch/kalman/) to combine the data. This will give you the best possible measure of your angular position, but will be hard to implement. I would try this if you want fast and accurate fully autonomous balancing.

If you just want to drive forward/backwards until the bridge tips, the accelerometer should be plenty. Just be sure to think about which readings you expect while the bridge tips.

There are a couple ways you could use the gyroscope alone, but I wouldn't.

For more information about the gyro and accelerometer see: http://www.usfirst.org/sites/default...meter-Gyro.pdf
  #4   Spotlight this post!  
Unread 16-01-2012, 01:30
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Stabilizing robot on bridge with gyro or accelerometer

Regarding Kalman Filters... I wrote a simple one two weeks ago. I expect to expand on it and try getting the robot to balance.

You'll need a PID Controller too. Kalman Filter just estimates a state from noisy measurements. You use that estimate as your input in the PID controller.
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.

Last edited by davidthefat : 16-01-2012 at 01:36.
  #5   Spotlight this post!  
Unread 16-01-2012, 01:35
RoboMaster's Avatar
RoboMaster RoboMaster is offline
Alum, former programmer&co-captain
FRC #2472 (The Centurions)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Minnesota, Twin Cities
Posts: 268
RoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant future
Re: Stabilizing robot on bridge with gyro or accelerometer

Quote:
Originally Posted by davidthefat View Post
How far do you want to drive? How will you know how far?
The sensor (gyro or accel) will tell us when we've driven far enough. The drivers themselves will control the robot until then, in my idea.

I suppose you could have it drive forward a certain distance, controlled by encoders, or time based, but that's tricky and tweaking it takes a long time and it may be too variable.

Thanks Matt, how sensitive is the accelerometer to vibration and motion? I assume this means that it gives back a noisy signal that's harder to make sense of? Will the bridge rocking back to level be any problem with this? We've never really used the accelerometer on a competition robot.

Yeah, the Kalman filter sounds nice. I've read a little bit about it and my first impression is that it's a little too advanced for most teams, including my team. But all the power to you if anyone could get it working with better results. That would be cool.
__________________
My engineering blog: noeticbrainwaves.blogspot.com

I'm not slacking, my code's compiling
...and I'm using LabVIEW
  #6   Spotlight this post!  
Unread 16-01-2012, 01:45
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Stabilizing robot on bridge with gyro or accelerometer

Quote:
Originally Posted by RoboMaster View Post
The sensor (gyro or accel) will tell us when we've driven far enough. The drivers themselves will control the robot until then, in my idea.

I suppose you could have it drive forward a certain distance, controlled by encoders, or time based, but that's tricky and tweaking it takes a long time and it may be too variable.

Thanks Matt, how sensitive is the accelerometer to vibration and motion? I assume this means that it gives back a noisy signal that's harder to make sense of? Will the bridge rocking back to level be any problem with this? We've never really used the accelerometer on a competition robot.

Yeah, the Kalman filter sounds nice. I've read a little bit about it and my first impression is that it's a little too advanced for most teams, including my team. But all the power to you if anyone could get it working with better results. That would be cool.
Honestly, if you look past the vocabulary and linear algebra (so just use single variables), Kalman Filters are not that bad.
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
  #7   Spotlight this post!  
Unread 16-01-2012, 02:18
Matt H. Matt H. is offline
Long Distance Mentor
FRC #1726 (N.E.R.D.S.)
Team Role: Alumni
 
Join Date: May 2006
Rookie Year: 2007
Location: Sierra Vista, AZ
Posts: 238
Matt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond repute
Re: Stabilizing robot on bridge with gyro or accelerometer

Quote:
Originally Posted by RoboMaster View Post
Thanks Matt, how sensitive is the accelerometer to vibration and motion? I assume this means that it gives back a noisy signal that's harder to make sense of? Will the bridge rocking back to level be any problem with this?
For this post assume the Z axis is vertical and the robot drives along the Y axis.


The sensor has a resolution of ten bits. So your readings will be accurate to plus or minus 1/1024 of the full range (2G). So you can expect your readings
to be accurate to plus or minus 0.002G.

When the bridge is tipped it makes approximately a 6 degree angle=arctan(4/41). This means your accelerometer will read:
Z--0.995G
Y--0.105G

The Y component tells you the bridge is tipped. The Z component isn't very helpful (same vibrations from the motors could easily induce a 0.003G difference).


Example 1:
Now say you start moving backwards slightly (perhaps to realign your robot). This is acceleration in the Y direction. If you accelerate forward at 0.1G your accelerometer now reads:
Z--0.995G
Y--0.005G
This looks like the bridge has tipped, but it hasn't.

Example 2:
You move forward and the bridge tips. Your robot is falling so the accelerometer briefly reads:
Z--0.5G
Y--0.0G
What does your program make of this?

Example 3:
Your accelerometer is subject to a consistent 0.1G vibration in Y direction. Your accelerometer reads:
Z1--0.995G
Y1--0.2G
Z2--0.995G
Y2--0.0G
Z3--0.995G
Y3--0.2G
A crude program might decide the bridge tipped at time 2.

The gyro helps eliminate most of these problems by telling you if a rotation occurred. In example one, no rotation implies no tipping. In example two, rotation implies tippings. In example three, no rotation implies no tipping.
  #8   Spotlight this post!  
Unread 16-01-2012, 02:44
RoboMaster's Avatar
RoboMaster RoboMaster is offline
Alum, former programmer&co-captain
FRC #2472 (The Centurions)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Minnesota, Twin Cities
Posts: 268
RoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant future
Re: Stabilizing robot on bridge with gyro or accelerometer

Wow, your post brings up some good points. You're right, the gyro would eliminate a lot of problem from the accelerometer. I forgot that the accelerometer responds to motion (i.e. acceleration), not just the force due to gravity.

Another thing I thought of is that when the bridge stops tipping and slams down to a rest, there will be a spike in acceleration. This will be positive (upwards acceleration to bring downwards velocity to zero), and it will appear that the robot is angled, allowing the drive motors to move, or jerk for a moment. Of course the robot will roll and send the bridge off-balance if the jerk is large enough (I'm sure it would be).

This movement makes everything more complicated. I wonder if that means the gyro is the way to go for this task?
__________________
My engineering blog: noeticbrainwaves.blogspot.com

I'm not slacking, my code's compiling
...and I'm using LabVIEW
  #9   Spotlight this post!  
Unread 16-01-2012, 02:58
enrique's Avatar
enrique enrique is offline
Registered User
FRC #1251 (Tech Tigers)
Team Role: Electrical
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Florida
Posts: 87
enrique will become famous soon enough
Send a message via Yahoo to enrique
Lightbulb Re: Stabilizing robot on bridge with gyro or accelerometer

I was thinking of testing a sideway gyro and an accelerometer and see how it goes, but I was also going to add input from a sonar pointed down on the front and back to make sure it does not drive off and a sonar pointed forward and backward to detect other robots. Really this should be a human driver task, but a good "auto park" function could be handy.
  #10   Spotlight this post!  
Unread 16-01-2012, 03:13
Jeremy Germita's Avatar
Jeremy Germita Jeremy Germita is offline
Co-Advisor/Lead Engineering Mentor
AKA: wood is good. plastic is fantastic.
FRC #5012 (Gryffingear) / (Antelope Valley FIRST Teams)
Team Role: Coach
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Lancaster, CA
Posts: 284
Jeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond repute
Re: Stabilizing robot on bridge with gyro or accelerometer

There are relatively simple ways to do both. The following is how I would do them.

Gyro:
(This assumes the gyro is mounted so that it's measured axis is parallel to the ground and drive base. So it measures pitch)

A simple PD controller should suffice for a single balancing routine. You may or may not want to add I if you plan to run it with multiple robots.

The PID controller's output is fed to the drivetrain's forward/reverse power. Simple as that

Accelerometer:
You would call atan2(accel.getY(), accel.getX()) to get the robot's Pitch angle relative to the ground.

Follow the PD controller advice from the gyro.


Personally, I would go with a 2+ axis gyro. Mounted so that it would measure robot yaw and pitch.
Two PID controllers are running at the same time. One makes sure the robot is parallel with the bridge(don't want to balance if you're > 45 degrees to the bridge ). The other behaves as above, maintaining the pitch.
Sure, it's a little more complex, but it saves the driver the trouble of maintaining heading while on the bridge.
Controls wise, I would make all of that run only while a button is pressed. this allows for quick cancellation just in case something happens on the field.

Then again, you can go completely open loop and put all of this on your drivers. With practice, single robot balancing becomes a cinch. But the real fun happens when you get two or three robots on there . The sensor way to go doesn't care about other robots in the way.

For all of the methods, I would shift into low gear.

Ask away if you have any more questions.
Jeremy G.
__________________
Drive Coach Team 5012 Gryffingear / Antelope Valley FIRST teams / EWCP - (2013 - Current)
Student / Driver / Programmer / CAD - FRC Team 399: Eagle Robotics / FTC Team 72: GarageBots - (2009 - 2013)
Los Angeles Region FTC FTA/CSA/Head Ref
[FF] FIRST Pick
2014 FTC Los Angeles Regional Compass Award Winner.

2017 - San Diego Regional / Sacramento Regional / Las Vegas Regional
2016 - Los Angeles Regional Creativity + Winners (1197, 987, 5012) / Las Vegas Regional Team Spirit + SF (5012, 5851, 5049) / Galileo Subdivision
2015 - Inland Empire QF (597, 5012, 4413) / Las Vegas Imagery + Winners (148, 987, 5012) / Newton Subdivision and World Champions (118, 1678, 1671, 5012)
2014 - Inland Empire Rookie All Star + Highest Rookie Seed + SF (2339, 1967, 5012) / Las Vegas Rookie All Star / Galileo Division Imagery

Last edited by Jeremy Germita : 16-01-2012 at 03:17. Reason: Open loop
  #11   Spotlight this post!  
Unread 16-01-2012, 08:02
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Stabilizing robot on bridge with gyro or accelerometer

I think that even a PD controller on the gyro may be overkill in this application. When we were trying to balance one or more robots manually on our ramp, we found that our drivers essentially implemented the following algorithm:

1. Start creeping up the ramp
2. Keep going until the ramp has begun tipping
3. Stop and/or reverse by a pre-specified distance

We found that putting your drive speed controllers in "brake" mode (or alternatively, using a drive PID controller that prevents rolling when the driver backs off the throttle) is essential.

Our ramp (being of the home-made variety) is much more sensitive than the competition ramp, but this basic approach seems like it works pretty well. The ramp has a fairly stable balance point; you just need to get it there!
  #12   Spotlight this post!  
Unread 16-01-2012, 17:24
RoboMaster's Avatar
RoboMaster RoboMaster is offline
Alum, former programmer&co-captain
FRC #2472 (The Centurions)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Minnesota, Twin Cities
Posts: 268
RoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant future
Re: Stabilizing robot on bridge with gyro or accelerometer

Thanks Jared, that is insightful.
Then maybe all that is needed is a button for move forward slowly (so that hand jitter doesn't affect careful driving). Then when the bridge starts tipping, drivers could release this button and the robot would stop driving. The whole task might be simple enough for the drivers to control.


However, the brake function could be automated. I can see where the robot would need to be held in place. It might coast and roll if you just didn't drive the motors.

So, maybe a button as described immediately above, then another button enables a brake mode. This would likely need to be done with PID (and don't forget encoders). It would have to be very quick, responsive, and effective (read: not spike and move the robot too much as it tries to keep it still ) Could some effective code be done without PID? Maybe an extremely simple P function related to encoder displacement (still kind of PID related)? Maybe a relay-style go forward/backward at a very low constant speed based on slight encoder offset, just to hold the robot in place (like while the bridge is tipping but still angled). This could be an electrical issue by stalling the motors, if you know that driving the motors at 0.01 speed will hold, but not move the robot.

The button for brake could be pressed independently of the first, that is, it overwrites whatever the first button is doing. This way the drivers don't need to think about letting go of the first button during that critical moment when the bridge starts tipping. They just need to focus on mashing the brake button.
Oh, and a slow reverse button, similar to the first, would be handy too if the robot went to far and tipped the bridge forward. Wouldn't want to turn the robot around just to use the same "drive forward slowly" code.


Thanks everyone, this is an interesting and helpful discussion. What other ideas are there? Do people still think it's worth using a sensor?
__________________
My engineering blog: noeticbrainwaves.blogspot.com

I'm not slacking, my code's compiling
...and I'm using LabVIEW
  #13   Spotlight this post!  
Unread 18-01-2012, 22:30
RoboMaster's Avatar
RoboMaster RoboMaster is offline
Alum, former programmer&co-captain
FRC #2472 (The Centurions)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Minnesota, Twin Cities
Posts: 268
RoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant future
Re: Stabilizing robot on bridge with gyro or accelerometer

Found this recently, might be helpful. Very interesting.
A Google talk on sensor fusion, namely, using multiple sensors to get the data that you want, like how someone was mentioning before about using both the gyro and accelerometer. He even talks about that exact thing early on.

http://www.youtube.com/watch?v=C7JQ7Rpwn2k
__________________
My engineering blog: noeticbrainwaves.blogspot.com

I'm not slacking, my code's compiling
...and I'm using LabVIEW
  #14   Spotlight this post!  
Unread 19-01-2012, 06:39
ksafin's Avatar
ksafin ksafin is offline
Registered User
AKA: Kirill Safin
FRC #3992 (Eagles Robotics Xperience)
Team Role: Leadership
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Delray Beach, FL
Posts: 498
ksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant future
Re: Stabilizing robot on bridge with gyro or accelerometer

Can't say I've read all these long posts but -

OP said to use a button that'll make the robot stop when in horizontal;

What about holding a button and the robot will automatically adjust itself to get into horizontal, and if it is in horizontal, it'll stay at 0?

Kind of like an auto-leveling application, instead of manual operation and leveling.
  #15   Spotlight this post!  
Unread 19-01-2012, 19:22
RoboMaster's Avatar
RoboMaster RoboMaster is offline
Alum, former programmer&co-captain
FRC #2472 (The Centurions)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Minnesota, Twin Cities
Posts: 268
RoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant future
Re: Stabilizing robot on bridge with gyro or accelerometer

Quote:
Originally Posted by ksafin View Post
OP said to use a button that'll make the robot stop when in horizontal;

What about holding a button and the robot will automatically adjust itself to get into horizontal, and if it is in horizontal, it'll stay at 0?
Yes, that's what we've been talking about. Simply said, the robot would sense if it is horizontal with a gyro or accelerometer (or both) and then stop moving.

I was giving an alternative to that in case the sensor implementation was too complicated, or as a backup if it never worked out, or if balancing was easy enough for the drivers to do it semi-manually.
__________________
My engineering blog: noeticbrainwaves.blogspot.com

I'm not slacking, my code's compiling
...and I'm using LabVIEW
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


All times are GMT -5. The time now is 18:02.

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