Go to Post Please don't act embarrassed if your designs didn't work out; join the club. You are learning and will get better every year. - Gary Dillard [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 03-01-2007, 16:33
chris31 chris31 is offline
Team 2021 Captain
AKA: Chris Davidson
FRC #2021 (FA Robotics)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2006
Location: Atlanta, GA/ Fredericksburg,VA
Posts: 949
chris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond repute
Send a message via AIM to chris31
Re: Accelerometer Suggestions

Quote:
Originally Posted by Donut View Post
Chris, if you use that soon please tell me how it works, as the ADXL203 seems to be the best option available if we don't want to build a power converter for voltage. The only worry about that is if a 1.7g range will be enough.
I g is about 32 feet per second, so 1.7g would be able 54 feet per second. I dont think your bot will be going that fast However i have never used an accelerometer so maybe that number means something else
  #2   Spotlight this post!  
Unread 03-01-2007, 16:45
Donut Donut is offline
The Arizona Mentor
AKA: Andrew
FRC #2662 (RoboKrew)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Goodyear, AZ
Posts: 1,289
Donut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond repute
Re: Accelerometer Suggestions

Quote:
Originally Posted by chris31 View Post
I g is about 32 feet per second, so 1.7g would be able 54 feet per second. I dont think your bot will be going that fast However i have never used an accelerometer so maybe that number means something else
It's about 54 feet per second squared (acceleration, not velocity). I figured out already that a robot geared to 9 feet per second can get an acceleration somewhere around 1.7 or 1.8 gs. I want a little wiggle room though to help account for deadband and the sensor I get not being perfectly with the specs.

Of course I hope on having a fast robot, so it might not be an issue since that will have a slower acceleration. I'm just gathering suggestions.
__________________
FRC Team 498 (Peoria, AZ), Student: 2004 - 2007
FRC Team 498 (Peoria, AZ), Mentor: 2008 - 2011
FRC Team 167 (Iowa City, IA), Mentor: 2012 - 2014
FRC Team 2662 (Tolleson, AZ), Mentor: 2014 - Present
  #3   Spotlight this post!  
Unread 03-01-2007, 16:55
chris31 chris31 is offline
Team 2021 Captain
AKA: Chris Davidson
FRC #2021 (FA Robotics)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2006
Location: Atlanta, GA/ Fredericksburg,VA
Posts: 949
chris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond repute
Send a message via AIM to chris31
Re: Accelerometer Suggestions

Quote:
Originally Posted by Donut View Post
It's about 54 feet per second squared (acceleration, not velocity). I figured out already that a robot geared to 9 feet per second can get an acceleration somewhere around 1.7 or 1.8 gs. I want a little wiggle room though to help account for deadband and the sensor I get not being perfectly with the specs.

Of course I hope on having a fast robot, so it might not be an issue since that will have a slower acceleration. I'm just gathering suggestions.
AH! Thank you for pointing that out. I wasnt even thinking about that. You are correct i think.
  #4   Spotlight this post!  
Unread 03-01-2007, 22:45
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: Accelerometer Suggestions

Quote:
Originally Posted by Donut View Post
It's about 54 feet per second squared (acceleration, not velocity). I figured out already that a robot geared to 9 feet per second can get an acceleration somewhere around 1.7 or 1.8 gs. I want a little wiggle room though to help account for deadband and the sensor I get not being perfectly with the specs.

Of course I hope on having a fast robot, so it might not be an issue since that will have a slower acceleration. I'm just gathering suggestions.
Now I am not saying you are wrong, but how did you arrive at that 9ft/s robot achieving a 1.7g?

This would theoretically mean that, if it could go that fast, it could reach a speed of 54ft/s from 0ft/s in just one second. I thought that such G's might only be "possible" during a full speed collision.
  #5   Spotlight this post!  
Unread 04-01-2007, 00:50
Donut Donut is offline
The Arizona Mentor
AKA: Andrew
FRC #2662 (RoboKrew)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Goodyear, AZ
Posts: 1,289
Donut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond repute
Re: Accelerometer Suggestions

Quote:
Originally Posted by 6600gt View Post
Now I am not saying you are wrong, but how did you arrive at that 9ft/s robot achieving a 1.7g?

This would theoretically mean that, if it could go that fast, it could reach a speed of 54ft/s from 0ft/s in just one second. I thought that such G's might only be "possible" during a full speed collision.
I figured that for a robot with 6" diameter wheels to go at 9 ft/sec, it would have to have wheels spinning at 344 RPM. The CIM motors have a free spinning speed of roughly 5200 RPM, and a torque at stall of 2.4 N*m. Since we have 4 CIMs in our drive system usually, that would give us a stall torque of 9.8 N*m.

Reducing our RPM from the motors to 344, increases our stall torque to 148 N*m (this is ignoring all gear train inefficiencies). Dividing this by the radius of the wheel (.0762 meters) gives us 1942 N of force at stall. F = ma, so we divide the force by the robot's mass of 60.5 kg, and we get an acceleration of 32 m/s^2, which is actually 3.3 gs!

I had originally gotten 1.6 gs, but that's because I used the wheel's diameter in place of its radius.

Of course, this acceleration is actually impossible because the wheel traction would probably never allow for any force greater than 1000 N.

Collisions are much worse; I registered a 1 g acceleration on the accelerometer when it was only 5 degrees from vertical, which meant the impact generated was more like a 12 g acceleration. Driving around with it being used for position I've gotten .5 gs from the Vex robot, which is no where near the power of an FRC bot.
__________________
FRC Team 498 (Peoria, AZ), Student: 2004 - 2007
FRC Team 498 (Peoria, AZ), Mentor: 2008 - 2011
FRC Team 167 (Iowa City, IA), Mentor: 2012 - 2014
FRC Team 2662 (Tolleson, AZ), Mentor: 2014 - Present
  #6   Spotlight this post!  
Unread 04-01-2007, 16:01
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: Accelerometer Suggestions

Quote:
Originally Posted by Donut View Post
acceleration of 32 m/s^2, which is actually 3.3 gs!
Thats close to that of a Space Shuttle! Even F-1 cars can pull that much during acceleration. There is no way that a FIRST robot can pull more Gs than a F-1 car(800Hp vs 2) during anything, let alone a Space Shuttle.

The reason I am going after this is because I want to use the accelerometer for same purpose(get position form it). And if this is true then everything I believed is completely false!

I think you might be forgetting the INERTIA of the robot... It can't physically accelerate that fast!!!

Last edited by 6600gt : 04-01-2007 at 16:15.
  #7   Spotlight this post!  
Unread 04-01-2007, 20:01
Donut Donut is offline
The Arizona Mentor
AKA: Andrew
FRC #2662 (RoboKrew)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Goodyear, AZ
Posts: 1,289
Donut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond repute
Re: Accelerometer Suggestions

Quote:
Originally Posted by 6600gt View Post
The reason I am going after this is because I want to use the accelerometer for same purpose(get position form it). And if this is true then everything I believed is completely false!

I think you might be forgetting the INERTIA of the robot... It can't physically accelerate that fast!!!
As I said, this was in perfect conditions. In reality, this isn't possible for a few reasons:

1. The wheel traction won't allow for it. Going through the math, an odd coincidence is that the coefficient of friction between your wheels and the ground is the same as the maximum amount of gs your robot can accelerate at before the wheels slip (assuming your robot has no dead weight and has the same friction on all wheels). This means FIRST robots using skyway wheels can't get above .8gs of acceleration, and the roughtop/wedgetop tread are limited to 1.3 gs.

2. This is an instantaneous acceleration where your robot has not moved yet and your motors are instantly outputing stall torque. Your motors can't output that much torque without ramping up to it first, and applying torque through the wheels will start your robot to move, which means you won't be stalling anymore.

Under very unique (and basically impossible) conditions, I believe these motors could create that much acceleration; however, as I said, I believe that is impossible.

Don't be surprised if you get readings like these from collisions though; collisions are capable of creating accelerations of several 1000s of gs, meaning collisions will still render position sensing invalid much like they do for encoders.

I didn't discover some of these numbers until trying to prove everything again; seeing the new data about what gs are possible with the wheel traction we have, I'm no longer worried about choosing an accelerometer.

Feel free to try the code I developed for position sensing. It took me over a week to develop it working on no other code, and that's alot of valuable time come build season. It does work, better accelerometers are needed for better accuracy is all.
__________________
FRC Team 498 (Peoria, AZ), Student: 2004 - 2007
FRC Team 498 (Peoria, AZ), Mentor: 2008 - 2011
FRC Team 167 (Iowa City, IA), Mentor: 2012 - 2014
FRC Team 2662 (Tolleson, AZ), Mentor: 2014 - Present
  #8   Spotlight this post!  
Unread 04-01-2007, 21:01
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: Accelerometer Suggestions

Quote:
Originally Posted by Donut View Post
I didn't discover some of these numbers until trying to prove everything again; seeing the new data about what gs are possible with the wheel traction we have, I'm no longer worried about choosing an accelerometer.

Feel free to try the code I developed for position sensing. It took me over a week to develop it working on no other code, and that's alot of valuable time come build season. It does work, better accelerometers are needed for better accuracy is all.
Thanks for the code. But first I need to "understand" accelerometer. Haven't really had the time to do that. I will start with the kit of parts accel and LabView. I have no idea if I can finish this in 6 weeks, but I will try none the less. Is your's based off of Kevin Watson code?
  #9   Spotlight this post!  
Unread 04-01-2007, 22:31
Donut Donut is offline
The Arizona Mentor
AKA: Andrew
FRC #2662 (RoboKrew)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Goodyear, AZ
Posts: 1,289
Donut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond repute
Re: Accelerometer Suggestions

Quote:
Originally Posted by 6600gt View Post
Thanks for the code. But first I need to "understand" accelerometer. Haven't really had the time to do that. I will start with the kit of parts accel and LabView. I have no idea if I can finish this in 6 weeks, but I will try none the less. Is your's based off of Kevin Watson code?
Yes, my code is based off of Kevin Watson's gyro code. It requires his ADC code to run, and will look very familiar to his gyro stuff. I don't know what LabView will do for it, I have only used the accelerometer with this code I developed and don't have any past experience using accelerometers. Good luck!
__________________
FRC Team 498 (Peoria, AZ), Student: 2004 - 2007
FRC Team 498 (Peoria, AZ), Mentor: 2008 - 2011
FRC Team 167 (Iowa City, IA), Mentor: 2012 - 2014
FRC Team 2662 (Tolleson, AZ), Mentor: 2014 - Present
  #10   Spotlight this post!  
Unread 04-01-2007, 23:26
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: Accelerometer Suggestions

Quote:
Originally Posted by Donut View Post
Yes, my code is based off of Kevin Watson's gyro code. It requires his ADC code to run, and will look very familiar to his gyro stuff. I don't know what LabView will do for it, I have only used the accelerometer with this code I developed and don't have any past experience using accelerometers. Good luck!
He did have an accelerometer code made in 2005, I think. You might want to check it out(probably similar to yours); it's somewhat similar to the gyro.

Our team was lucky enough to receive a LabView data acquisition module and software($2700) to play around with. It has a 14bit A/D converters to acquire data that can be shown graphs. I want to try and use this to speed up our development.
  #11   Spotlight this post!  
Unread 05-01-2007, 10:22
Donut Donut is offline
The Arizona Mentor
AKA: Andrew
FRC #2662 (RoboKrew)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Goodyear, AZ
Posts: 1,289
Donut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond repute
Re: Accelerometer Suggestions

Quote:
Originally Posted by 6600gt View Post
He did have an accelerometer code made in 2005, I think. You might want to check it out(probably similar to yours); it's somewhat similar to the gyro.

Our team was lucky enough to receive a LabView data acquisition module and software($2700) to play around with. It has a 14bit A/D converters to acquire data that can be shown graphs. I want to try and use this to speed up our development.
I've seen his '05 accelerometer code; it had the ADC built into it (rather than seperate like he did with the gyro in '06), so it wouldn't work with other sensors using analog ports at the same time. It does acceleration similar to mine, I just went a step further and tried to calculate velocity and position as well.

14 bits is alot better resolution than you'll get on the robot controller; keep that in mind, as there is a huge difference in what you can measure between these. A 14 bit A/D will make each number in the output practically 1 millig for the kit accelerometer, while the A/D on the FRC controller has about 16 milligs for each number on the output.
__________________
FRC Team 498 (Peoria, AZ), Student: 2004 - 2007
FRC Team 498 (Peoria, AZ), Mentor: 2008 - 2011
FRC Team 167 (Iowa City, IA), Mentor: 2012 - 2014
FRC Team 2662 (Tolleson, AZ), Mentor: 2014 - Present
  #12   Spotlight this post!  
Unread 05-01-2007, 17:23
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: Accelerometer Suggestions

Quote:
Originally Posted by Donut View Post
I've seen his '05 accelerometer code; it had the ADC built into it (rather than seperate like he did with the gyro in '06), so it wouldn't work with other sensors using analog ports at the same time. It does acceleration similar to mine, I just went a step further and tried to calculate velocity and position as well.

14 bits is alot better resolution than you'll get on the robot controller; keep that in mind, as there is a huge difference in what you can measure between these. A 14 bit A/D will make each number in the output practically 1 millig for the kit accelerometer, while the A/D on the FRC controller has about 16 milligs for each number on the output.
Well that s why I am working on trying to get an external PIC on board to do the extra crunching. I will certainly using the oversampling feature to attain the max res possible. External PIC might should be able to output 13bit easily and maybe 14bit with some optimizing.(It also has to do the gyro and the trig calculations)

You should be able to do 12 bit on the RC. In fact, that is the initial setup of the Kevin's ADC code.
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
Accelerometer Readings hello1990ab Programming 5 04-04-2006 11:00
Accelerometer/Gyros? Idaman323 Programming 4 03-02-2006 23:20
Accelerometer railerobotics Programming 1 27-01-2006 02:59
Accelerometer Tom McCurdy Programming 5 30-01-2005 23:45
Accelerometer buss Electrical 1 09-01-2005 00:10


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

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