Go to Post *Teams. The competitors, who wear brightly colored shirts, scream like crazy, and bring robots. Without them, there would be no competition. - EricH [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 17-01-2009, 11:15
ThisIsFood ThisIsFood is offline
Registered User
AKA: Christopher
FRC #2846 (FireBears)
Team Role: Mechanical
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Minnesota
Posts: 4
ThisIsFood is an unknown quantity at this point
Help with accelerometer.

In labVIEW, we are trying to put our accelerometer into our robot program, but we are not sure where that should be what wires connecting where and such... Can anyone give us a little help or a push in the right direction? sorry for low clarification >.<

Last edited by ThisIsFood : 17-01-2009 at 11:36. Reason: more clarity
Reply With Quote
  #2   Spotlight this post!  
Unread 17-01-2009, 11:49
ThisIsFood ThisIsFood is offline
Registered User
AKA: Christopher
FRC #2846 (FireBears)
Team Role: Mechanical
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Minnesota
Posts: 4
ThisIsFood is an unknown quantity at this point
Re: Help with accelerometer.

we also need help finding an aceleramitor devref
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2009, 11:51
Derek Allen's Avatar
Derek Allen Derek Allen is offline
Head Programmer
FRC #1785 (Jagwired Robotics)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Blue Springs, MO
Posts: 13
Derek Allen is an unknown quantity at this point
Send a message via MSN to Derek Allen Send a message via Yahoo to Derek Allen
Re: Help with accelerometer.

You should look in the senor manual on the competition manual. As to making it work in the program we don't know. Our problem is that the measurement is returned in volts per gravity of acceleration. What is that and how do you convert it to linear measurement?
__________________
Reply With Quote
  #4   Spotlight this post!  
Unread 17-01-2009, 12:00
Lafleur Lafleur is offline
Registered User
AKA: Tom Lafleur
FRC #0812
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2006
Location: San Diego
Posts: 34
Lafleur will become famous soon enoughLafleur will become famous soon enough
Re: Help with accelerometer.

Ok, here is a push in the right direction:

To connect up the boards: Use the standard 3 wire servo cable and solder the male (pin end) direct into the accelerometer board... The edge of the board is ground or the black wire...(Check the drawing for the board to make sure!!!) You will need three cables if you want all three axis.. Use a low wattage solder iron and be careful....

Now, just plug them into the AtoD inputs on the analog board... One each for X-Y-Z for a total of 3 AtoD channels. The cable will plug directly into the 3 wire input on the AtoD sidecar with out any modification. Make sure you check orientation of the connector when you plug it in.

This is also true for the rate gyro.. one for rate and the 2nd for temperature

To use the data, you should filter the data, then integrate the accelerations over time to find velocity in X or Y.. This can also give you the direction of travel...

The accelerometer output is about 1.5V steady state and +- .3 volt per G up to a max of 3g ie: moving forward (X+) at 1g you would get 1.5v +.3 v = 1.8volts, moving in reverse (X-), it would be 1.5v - .3v or 1.2volts... see the data sheet for precise information.

see: http://www.glenbrook.k12.il.us/gbssc...Kin/U1L1e.html
and: http://www.math.ucdavis.edu/~hass//C...ts/node25.html
http://www.glenbrook.k12.il.us/gbssc...Kin/U1L1d.html


see the data sheet on the First web site...

http://www.usfirst.org/uploadedFiles...%20Rev%20B.pdf

http://www.usfirst.org/uploadedFiles...ier%20r0.1.pdf

http://www.usfirst.org/uploadedFiles...%20Carrier.pdf


tom lafleur
mentor team 812
The Preuss School at UCSD

Last edited by Lafleur : 17-01-2009 at 12:45.
Reply With Quote
  #5   Spotlight this post!  
Unread 17-01-2009, 12:17
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Help with accelerometer.

Quote:
Originally Posted by Lafleur View Post
Now, just plug them into the AtoD inputs on the analog board... X-Y-Z
Of course, X, Y and Z each need to go to their OWN Analog inputs (you will thus use three analog inputs for all three axes). That means that the other end of the PWM cables you soldered in almost certainly needs to be reconfigured.
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #6   Spotlight this post!  
Unread 17-01-2009, 12:27
ThisIsFood ThisIsFood is offline
Registered User
AKA: Christopher
FRC #2846 (FireBears)
Team Role: Mechanical
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Minnesota
Posts: 4
ThisIsFood is an unknown quantity at this point
Re: Help with accelerometer.

We mean in programing not in electrics we have the electrics figured out
Reply With Quote
  #7   Spotlight this post!  
Unread 17-01-2009, 12:40
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Help with accelerometer.

OK, step zero would be to wire it up correctly. I guess you have this done already.

Next would be to use programming to simply read the value and display it. Pick one axis for now.

With the robot standing still, you'll get a voltage (I think 2.5 volts, but look it up). Accelerating the robot in one direction will make that voltage go up, in the other direction it will go down.

To find out what voltage it will give in a 1 gravity field, turn the robot (or the sensor!) on its side, you'll be able to read the change in value. If what I mean isn't clear to you, let me know.

OK, once you can read the voltage and its changes, convert that to an acceleration in, say, meters per second per second. (m/s2).

Now to convert that to a motion reading: Let's say you measure exactly one meter/sec2 acceleration, for exactly one second. After that one second, the robot is moving at a speed of 1 meter per second. I'll leave it to you to figure out how far it went, but it is less than 1 meter.

But, step 1 is reading inthe analog voltage(s) and converting it to an acceleration value.

Have fun.
__________________

I am N2IRZ - What's your callsign?
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
Accelerometer help Red Mage Programming 3 30-01-2008 18:49
URGENT! We need help with the accelerometer lkdjm Electrical 5 11-02-2005 16:42
URGENT! We need help with the accelerometer lkdjm Technical Discussion 0 08-02-2005 14:35
Using Accelerometer with '04 controller sanddrag Control System 4 20-02-2004 12:18


All times are GMT -5. The time now is 22:14.

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