Go to Post me: "Was I on fire!?" Roberto: "Sure you were. We only let you burn for about 10 seconds.":yikes: - El Geffe [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-01-2010, 22:22
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,503
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
How Precise and Accurate is the Analog In on the Crio?

My team and I have been discussing novel ways to measure the right amount to pull our shooter back. One of the things that was brought up as a neat possibility is a strain gage. We can get a strain gage that is temperature compensated for aluminum, and the wheatstone bridge we have can be powered by the 5 volts, however the return voltage from a strain gage is very small - in the millivolt range.

I'm concerned that:
#1 The Crio won't be able to accurately measure values that small repeatably
#2 The strain gage will be affected by the jostling and slamming around that will result when we put it on our shooter.

Can someone chime in on the Crio resolution and accuracy? (Perhaps Eric?)
Reply With Quote
  #2   Spotlight this post!  
Unread 30-01-2010, 23:20
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: How Precise and Accurate is the Analog In on the Crio?

Aargh! I was so close to going to sleep after a long day of packing my life into my tiny car! Any insanity in this post is directly attributable to the ratio between my enormous pile of life and my tiny 2 door honda.

Before I get all grumpy with numbers, let me start by saying that that is a really cool idea. I hope to see it at competition.

The analog input module (9201) has 12 bits across -10 to +10V. This is just under 5mV per count ( (10 - -10)/2^12 ). With the right conditions, I'd wager that you could get another 2 (3??) bits of resolution with oversampling. I'd stick it at 4bit oversampling and assume the last bit is garbage. This would put you into the mV per count range.

Considering most strain gauge outputs, I'd give up here and slap a pre-amp on it.

If you were watching me closely, you noticed that I swept a huge pink elephant under the rug about halfway through the last paragraph - what does "with the right conditions" mean? Well, it means a two things:
1) No irregular noise like spikes or pops from your motors.
2) Enough small noise to let over-sampling work.
3) A good understanding of exactly how your sensor behaves.

I'll let someone else chime in on one and three, but I'll rant about two for a moment. Oversampling assumes an additive noise signal that pushes the perceived value around the threshold. I like to imagine it thusly: I have a ruler that is only capable of measuring something to the nearest inch, but I need it to the nearest quarter inch. If I measure it a bunch of times, I'll still only get it to the nearest inch. However, I repeatedly randomly offset the ruler by some amount and average all the measurements. As long as my random offsets average out to zero their impact averages out to zero. BUT, they did allow me to get better resolution, because they "unstuck" my ruler.


PS: Joe Hershberger is way more of an expert on this than I am.

PPS: Don't even try this with a 2009 Analog Breakout. The 2010 Analog Breakout is much cleaner, and stands a chance of getting you what you need.

PPPS: You should be sure to graph your measured value in known steady state while driving. That will tell you everything you need to know about feasibility.
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2010, 23:26
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: How Precise and Accurate is the Analog In on the Crio?

The 9201 is +- ten volts and 12 bits, meaning that it is 20 volts range over 4096 intervals, or about 5 millivolts for each interval. Noise in the power supply or wiring will likely reduce this by a bit or two. The next thing to do is to measure a fixed signal to see how much noise is picked up.

If you know what your minimum needs are that may help, also if the noise you pick up is random, you can average to quieten it and gain some effective resolution back.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 30-01-2010, 23:36
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,544
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 Precise and Accurate is the Analog In on the Crio?

Quote:
Originally Posted by EricVanWyk View Post
I'll let someone else chime in on one and three, but I'll rant about two for a moment. Oversampling assumes an additive noise signal that pushes the perceived value around the threshold. I like to imagine it thusly: I have a ruler that is only capable of measuring something to the nearest inch, but I need it to the nearest quarter inch. If I measure it a bunch of times, I'll still only get it to the nearest inch. However, I repeatedly randomly offset the ruler by some amount and average all the measurements. As long as my random offsets average out to zero their impact averages out to zero. BUT, they did allow me to get better resolution, because they "unstuck" my ruler.
Here's a nice whitepaper about oversampling which gets deeper into this issue.
Reply With Quote
  #5   Spotlight this post!  
Unread 31-01-2010, 00:28
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: How Precise and Accurate is the Analog In on the Crio?

I did some cursory investigation of strain gauges a week ago for exactly this application. I decided overcoming the mechanical and electrical challenges weren't worth the potential niftiness of making it work. However, I've come to almost expect that everything we considered and discarded as unworkable will be done by some team or another each year.
Reply With Quote
  #6   Spotlight this post!  
Unread 31-01-2010, 01:56
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: How Precise and Accurate is the Analog In on the Crio?

While I think this is a great idea, the 9201 is simply not designed for this kind of measurement directly. We make the 9237 for this application. Without a preamp / external signal conditioning, I don't believe you'll be satisfied with the results.

-Joe
Reply With Quote
  #7   Spotlight this post!  
Unread 31-01-2010, 11:00
Manoel's Avatar
Manoel Manoel is offline
Registered User
FRC #0383 (Brazilian Machine)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Porto Alegre, RS, Brazil
Posts: 608
Manoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond repute
Send a message via ICQ to Manoel Send a message via MSN to Manoel
Re: How Precise and Accurate is the Analog In on the Crio?

Quote:
Originally Posted by Tom Line View Post
My team and I have been discussing novel ways to measure the right amount to pull our shooter back. One of the things that was brought up as a neat possibility is a strain gage. We can get a strain gage that is temperature compensated for aluminum, and the wheatstone bridge we have can be powered by the 5 volts, however the return voltage from a strain gage is very small - in the millivolt range.

I'm concerned that:
#1 The Crio won't be able to accurately measure values that small repeatably
#2 The strain gage will be affected by the jostling and slamming around that will result when we put it on our shooter.

Can someone chime in on the Crio resolution and accuracy? (Perhaps Eric?)
Are you using a winch to pull your shooter back? If so, may I suggest using the magnetic encoders supplied in this year's kit - the non-contact characteristic makes it perfect for something that must unwind as quickly and with as little drag as possible.
__________________
Manoel Flores da Cunha
Mentor
Brazilian Machine
Team # 383
Reply With Quote
  #8   Spotlight this post!  
Unread 31-01-2010, 13:07
petek's Avatar
petek petek is offline
What would Dave do?
AKA: Peter Kieselbach
FRC #3654 (Tech Tigers)
Team Role: Mentor
 
Join Date: May 2002
Rookie Year: 2002
Location: Middletown, CT
Posts: 923
petek has a reputation beyond reputepetek has a reputation beyond reputepetek has a reputation beyond reputepetek has a reputation beyond reputepetek has a reputation beyond reputepetek has a reputation beyond reputepetek has a reputation beyond reputepetek has a reputation beyond reputepetek has a reputation beyond reputepetek has a reputation beyond reputepetek has a reputation beyond repute
Send a message via AIM to petek
Re: How Precise and Accurate is the Analog In on the Crio?

Tom: I've spent a bit of time in the data acquisition/measurements world and recommend that you not go directly from the strain gauge bridge to the 9201. You probably could make it work on the bench, but I'm pretty sure the signal will be too noisy to be of use in the real world of competition. Main sources will be mechanical vibrations and motor noise, as well as impact spikes caused by contact with other robots, etc.

If I were to try this I would go with a preamp with some low-pass filtering. I'd probably try ~ 200Hz as a corner frequency to start with to remove some of the common vibrations and then see what the signal looks like.

Manoel: your approach sounds workable, but doesn't provide accurate force feedback which is the key benefit of Tom's concept.
__________________
Pete Kieselbach
#4

Reply With Quote
  #9   Spotlight this post!  
Unread 11-04-2010, 14:53
boomergeek's Avatar
boomergeek boomergeek is offline
Registered User
AKA: Mr. D (Dick DiPasquale)
FRC #0241 (Pinkerton Robotics)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Derry, NH
Posts: 191
boomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant future
Re: How Precise and Accurate is the Analog In on the Crio?

Team 241 is also curious about strain gauges- We can across nerdkits solution to the problem- http://www.youtube.com/watch?v=fPzUtzFJFus

We were thinking of adding a nerdkit to produce a USB weight/torque reading.

Any experts have any thoughts using nerdkits in combination with the cRio?
Reply With Quote
  #10   Spotlight this post!  
Unread 12-04-2010, 01:34
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: How Precise and Accurate is the Analog In on the Crio?

Quote:
Originally Posted by boomergeek View Post
Team 241 is also curious about strain gauges- We can across nerdkits solution to the problem- http://www.youtube.com/watch?v=fPzUtzFJFus

We were thinking of adding a nerdkit to produce a USB weight/torque reading.

Any experts have any thoughts using nerdkits in combination with the cRio?
Looks interesting. You can implement the same thing they did on the robot using the cRIO's I/O. You still need the instrumentation amp. They used 2 digital outputs for the excitation voltage and 1 analog input for the measurement. You can use the outputs on the 9403 and the analog inputs on the 9201. Then use a similar algorithm in your robot code. You don't need the nerdkits micro, though that should be possible as well.

-Joe
Reply With Quote
  #11   Spotlight this post!  
Unread 12-04-2010, 08:13
boomergeek's Avatar
boomergeek boomergeek is offline
Registered User
AKA: Mr. D (Dick DiPasquale)
FRC #0241 (Pinkerton Robotics)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Derry, NH
Posts: 191
boomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant future
Re: How Precise and Accurate is the Analog In on the Crio?

Thanks for the analysis. The advantage we were thinking about the nerdkits version is that it is small and portable and we can use it with a regular PC.

The price and convenience of the nerdkits options might make prototyping by several students much more convenient.

We have not figured out a good way to share the NI controller for so many students and mentors and the robot.
Reply With Quote
  #12   Spotlight this post!  
Unread 12-04-2010, 12:02
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: How Precise and Accurate is the Analog In on the Crio?

Quote:
Originally Posted by boomergeek View Post
Thanks for the analysis. The advantage we were thinking about the nerdkits version is that it is small and portable and we can use it with a regular PC.

The price and convenience of the nerdkits options might make prototyping by several students much more convenient.

We have not figured out a good way to share the NI controller for so many students and mentors and the robot.
I see... you want independent test and training, not to use that measurement on your robot.
Reply With Quote
Reply


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
How to connect the Workbench with the cRIO? kentschool C/C++ 3 28-12-2009 16:03
How do you run the pneumatics through the CRio w/o using the Jaguars and the Spikes brreadd Pneumatics 3 20-11-2009 15:35
how to transfer the program to the crio? beefy1 Programming 5 04-01-2009 10:04
How do the Analog Inputs work? JBotAlan Electrical 3 07-01-2005 00:11


All times are GMT -5. The time now is 17:29.

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