Go to Post Different strokes for different folks. - Madison [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 06-04-2005, 12:20
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: How to measure low velocity

Id be really surprized if you can turn your robot so slowly that the rate sensor reads zero.

Turning a lazy susan by hand on a table top... ok... how does that relate to anything your robot will do?
  #2   Spotlight this post!  
Unread 06-04-2005, 12:46
Andy A. Andy A. is offline
Getting old
FRC #0095
Team Role: Coach
 
Join Date: Jun 2001
Rookie Year: 2001
Location: New Hampshire
Posts: 1,013
Andy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond repute
Re: How to measure low velocity

Ken-

The posters lack of a team number, and location in Vietnam leads me to belive he isn't using the gyro on a robot, FIRST or otherwise.

At least I don't think there are any teams out of Vietnam.

Maybe with some more information on the application, we could be of more help, nobtiba?

-Andy A.
  #3   Spotlight this post!  
Unread 06-04-2005, 13:08
seanwitte seanwitte is offline
Registered User
None #0116
Team Role: Engineer
 
Join Date: Nov 2002
Location: Herndon, VA
Posts: 378
seanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant future
Send a message via AIM to seanwitte
Re: How to measure low velocity

If you need to measure a small rotational velocity then maybe the ADXRS401 is a more suitable part. Its measurement range is +-75 degrees per second.
  #4   Spotlight this post!  
Unread 07-04-2005, 04:57
nobtiba nobtiba is offline
Registered User
no team
 
Join Date: Aug 2004
Location: VIETNAM
Posts: 14
nobtiba is an unknown quantity at this point
Re: How to measure low velocity

Quote:
Originally Posted by Andy A.
Ken-

The posters lack of a team number, and location in Vietnam leads me to belive he isn't using the gyro on a robot, FIRST or otherwise.

At least I don't think there are any teams out of Vietnam.

Maybe with some more information on the application, we could be of more help, nobtiba?

-Andy A.
Oh, many universities in VietNam won many prizes in ROBOCON (robot contest of ASIA). I'm in Coleage of Technology (Ha Noi) team. If I can use gyro to measure angular exactly I can use it for stabilization. My duty is using ADXRS150 to do this.
ADXRS300 or the others only different in upper level (75, 150, 300 deg/s) but what about their bellow level?
I think if the sensor can't detect low rate it will lead to my following problems (in fact now):
1. Can't measure angular exactly
2. With the same real angular but measure very different values in different times
3. The same value positive and negative but measure different values (that means if you turn it clockwise then turn to starting point it never be zero)
So I wonder any body used ADXRS and measure angular exactly enough can tell me what to do?
  #5   Spotlight this post!  
Unread 07-04-2005, 23:39
nobtiba nobtiba is offline
Registered User
no team
 
Join Date: Aug 2004
Location: VIETNAM
Posts: 14
nobtiba is an unknown quantity at this point
Re: How to measure low velocity

In the datasheet of ADXRS, it says that we can setting bandwidth by changing the external capacitors: f(out)=1/(2*pi*R(out)*C(out)). Do you think it can effect gyro's capacity of detecting low rate? If not, what is the function of setting the bandwidth?
  #6   Spotlight this post!  
Unread 08-04-2005, 08:43
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: How to measure low velocity

Quote:
Originally Posted by nobtiba
In the datasheet of ADXRS, it says that we can setting bandwidth by changing the external capacitors: f(out)=1/(2*pi*R(out)*C(out)). Do you think it can effect gyro's capacity of detecting low rate? If not, what is the function of setting the bandwidth?
This capacitor should not change the ability of the sensor to detect a low rate.

The purpose of this capacitor is to change the corner frequency of the low-pass filter on the sensor. You want to have a low enough corner frequency to avoid aliasing of your signal when you digitize the signal. Too much filtering and there will be a problem with a phase lag in the signal.

If you're not sure how to select the capacitor, search the internet on "nyquist frequency".
__________________
-
An ounce of perception is worth a pound of obscure.
  #7   Spotlight this post!  
Unread 09-04-2005, 11:17
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,770
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: How to measure low velocity

I believe if you look through the data sheet carefully, you will find that the capacitor and bandwidth is an attempt to quiet down some noisey data. By bandwidth limiting the high frequency energy, you should get a more accurate output.
It seems that I remember someone (a thread perhaps) that discussed rapidly taking samples and averaging over 10 or fifteen ( or more) samples to look for trends. By knowing where you were before you may be able to find out where you are now.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #8   Spotlight this post!  
Unread 09-04-2005, 11:30
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,562
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: How to measure low velocity

Quote:
Originally Posted by Al Skierkiewicz
It seems that I remember someone (a thread perhaps) that discussed rapidly taking samples and averaging over 10 or fifteen ( or more) samples to look for trends. By knowing where you were before you may be able to find out where you are now.
This is the whitepaper you are thinking of: http://www.chiefdelphi.com/forums/pa...le&paperid=234
  #9   Spotlight this post!  
Unread 12-04-2005, 05:09
nobtiba nobtiba is offline
Registered User
no team
 
Join Date: Aug 2004
Location: VIETNAM
Posts: 14
nobtiba is an unknown quantity at this point
Re: How to measure low velocity

Thank you very much for your very useful information. In this pdf file it says that: "if your're integrating, you don't need to filter-the effect of improved resolution will be taken care of by the integration". Now I need integrate to change angular rate to angular, so I needn't average the samples?
In Kevin's code (gyro.h, gyro.c) the time lapse between samples decided by programmer with a timer. If this interval (time) shorter, is the angular get more exactly?
  #10   Spotlight this post!  
Unread 12-04-2005, 10:08
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: How to measure low velocity

Quote:
Originally Posted by nobtiba
Thank you very much for your very useful information. In this pdf file it says that: "if your're integrating, you don't need to filter-the effect of improved resolution will be taken care of by the integration". Now I need integrate to change angular rate to angular, so I needn't average the samples?
In Kevin's code (gyro.h, gyro.c) the time lapse between samples decided by programmer with a timer. If this interval (time) shorter, is the angular get more exactly?
You won't need to average before the integral because the integral acts like a very large average.

If the sample period (interval between samples) is shorter, the integral will be more exact. However, the sample period must be consistent from one sample to another.
__________________
-
An ounce of perception is worth a pound of obscure.
  #11   Spotlight this post!  
Unread 12-04-2005, 13:28
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,770
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: How to measure low velocity

What I meant was another routine looking to see if there was movement and check to see if it was valid data before the integration process.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #12   Spotlight this post!  
Unread 13-04-2005, 23:45
nobtiba nobtiba is offline
Registered User
no team
 
Join Date: Aug 2004
Location: VIETNAM
Posts: 14
nobtiba is an unknown quantity at this point
Re: How to measure low velocity

So I think all I have to do now are the following steps:
1. Programming the ADC in uC to get samples in free running mode
2. Since the ADC is 10 bits but a data frame to transmit to pc is 8 bits, then I have to devide it to a frame of 3 bits and another of 7bits, then send them to pc
3.In pc, my program written in turbo C receive these bytes through COM1, merge them to get 10 bits value (as origin value after ADC).Then change them to voltage and then to corresponding angular rate.(we call rate value)
4.Also in this program (in pc) I use the timer of uC in PC to count the interval between two samples.
5.Calculate: angular=angular +[(rate value i)+(rate value (i+1))]*(time interval), and loop this routine
<in the beginning angular =0>
I'm sorry if some of these steps seem to suit in programming forum, but I think if I say all things in detail, it may help you to see where is my problems.
Especialy, I don't know how to do in step 4
  #13   Spotlight this post!  
Unread 14-04-2005, 07:49
Dave Garnett Dave Garnett is offline
Registered User
#0759
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2002
Location: Cambridge UK
Posts: 5
Dave Garnett is an unknown quantity at this point
Re: How to measure low velocity

The first thing you need to do is establish wether the sensor will actually give a valid reading at these low levels - the specs do not give any values for 'hysteresis' which might be an issue.

So, set up an op amp with some gain (eg x 20) and look at the amplified readings - don't worry about the reduced range at this point. This should show you if the sensor actually registers the motion. [Watch out for noise and drift - alternate readings for stationary, clockwise and counterclock] You could do all this with a quality voltage meter instead, of course.

If the sensor actually works at these levels, then you could implement a dual channel readback - in parallel with your normal +- 150 deg channel, add a channel with some gain centered about the null position. In operation this channel will saturate at high turn rates, but you have the readings from the other channel. Of course you will need a strategy to select which reading to use, as well as thinking about compensating for zero offset and drift.

good luck !
  #14   Spotlight this post!  
Unread 15-04-2005, 07:00
nobtiba nobtiba is offline
Registered User
no team
 
Join Date: Aug 2004
Location: VIETNAM
Posts: 14
nobtiba is an unknown quantity at this point
Re: How to measure low velocity

Some body tell me to change the ADC with higher resolution e.g 12 bits or 14 bits...This may help me to know if having a small change in input voltage from zero point voltage which means having a very slow rotation.
But I wonder if anybody use 10 bit ADC and still measure angular exactly.My purpose is that if the system (with ADXRS on it) rotate, I have to control it to turn back to the starting point exactly.
Is changing ADC is a good idea, because it's expensive to have high resolution ADC and waste time to re write program for another one.
  #15   Spotlight this post!  
Unread 15-04-2005, 08:59
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: How to measure low velocity

I don't think you should have a problem with the 10-bit A/D.

How do you define "exactly" to the starting position? What is your measurement tool to determine how close to the starting position you came? What is the resolution of this tool? You will not need to be more precise than you can measure with an independent tool.
__________________
-
An ounce of perception is worth a pound of obscure.
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
Do defensive, low scoring tactics work? haverfordfords Rules/Strategy 37 18-02-2005 12:25
Rotating the motor cage to lock in LOW sanddrag Motors 3 10-03-2004 07:23
How to measure execution time? And code size? gnormhurst Programming 17 17-02-2004 08:06
Bug: Login Problems - Session timeout value too low? DanL CD Forum Support 4 09-01-2004 16:33
Tape measure proboscus tito General Forum 24 29-04-2002 15:56


All times are GMT -5. The time now is 16:01.

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