Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Data from BuiltInAccelerometer (http://www.chiefdelphi.com/forums/showthread.php?t=133580)

Arhowk 27-01-2015 18:40

Data from BuiltInAccelerometer
 
I currently don't have access to the roboRIO (well... access to the ability to send it flying across the room at 13 feet per second) untill later in the build season so I was wondering if anyone had any data regarding reads from the accelerometer, specifically converting the g's from the accelerometer at setpoints.

Thanks!

Note: I realize Z might differ slightly based on altitude of the testing facility, I'm not so concerned in that as I am x-y

Ether 27-01-2015 18:48

Re: Data from BuiltInAccelerometer
 
Quote:

Originally Posted by Arhowk (Post 1434883)
converting the g's from the accelerometer at setpoints.

Converting them to what? And what do you mean by "setpoints" in this context?



Arhowk 27-01-2015 19:06

Re: Data from BuiltInAccelerometer
 
Quote:

Originally Posted by Ether (Post 1434891)
Converting them to what? And what do you mean by "setpoints" in this context?



FPS (feet per second).

by "setpoints" i mean something like

"at defined 3 feet per second the accelerometer was reading 1g"
"at defined 5 feet per second the accelerometer was reading 1.5g"
"at defined 9 feet per second the accelerometer was reading 2g"
known feet per second / accelerometer g reading pairs.

RufflesRidge 27-01-2015 19:10

Re: Data from BuiltInAccelerometer
 
Quote:

Originally Posted by Arhowk (Post 1434903)
FPS (feet per second).

known feet per second / accelerometer g reading pairs.

Velocity is not proportional to accelerometer readings. Accelerometers measure acceleration. You would need to integrate accelerometer readings to get velocity.

Ether 27-01-2015 19:11

Re: Data from BuiltInAccelerometer
 

I see RufflesRidge beat me to it.

Arhowk 27-01-2015 19:46

Re: Data from BuiltInAccelerometer
 
Quote:

Originally Posted by RufflesRidge (Post 1434906)
Velocity is not proportional to accelerometer readings. Accelerometers measure acceleration. You would need to integrate accelerometer readings to get velocity.

Oh, that makes sense. Than, 1g should be proportional to 32.1740486 ft * s^-1 * s^-1. I feel dumb now.

Thanks!

E/ the neutral reading of the accelerometer seems to oscillate around 0.002 and 0.004. (not 0.2 and 0.4)

Within 10 seconds, this would give the incorrect reading of ten feet per second if integrated.

Has anyone even got the accelerometer to work properly?

rich2202 28-01-2015 01:02

Re: Data from BuiltInAccelerometer
 
The math is trivial with the assumption that the robot never turns.

As soon as the robot turns, or goes up/down over the scoring zone, the math gets complex really quickly.

Then, you have to map the xyz space of the roboRio to your xyz space (you don't want to assume that the accelerometer in the roboRio is exactly flat to the base of the roboRio, and that the roboRio is mounted in a plane parallel to the floor.

FrankJ 28-01-2015 08:14

Re: Data from BuiltInAccelerometer
 
A little bit off topic, but. I was listening on the radio today about a basket ball with sensors (I assume an accelerometer hence the slight topic correlation) that tracks its movement and transmits to a smart phone app. So if you can do it through 3D space, you should be able to do it on a robot in 2d space with something that weighs less than a basketball.

Joshua Sicz 28-01-2015 11:59

Re: Data from BuiltInAccelerometer
 
I would be very careful with this because it is very hard to get velocity with acceleration from something like the built in accelerometer. Our team has messed with it alot and found there is no good way to figure it our because you have a LOT of noise comming from it. The only real use we found is just telling which direction the robot is going.

The earth has a huge force that is hard to get rid of. If you want to get something accurate enough to tell velocity you might want to go get the NavX board sold my andymark but even with that board the velocity is only accurate for only about 2-3 seconds before it starts to get off.

If the accelerometer was accurate enough to tell speed we would have used them in cars on such. But because of the earth it won't be useful as you think it would. What you learn in physics is only ideal situation. :)

Ether 28-01-2015 12:05

Re: Data from BuiltInAccelerometer
 
Quote:

Originally Posted by Joshua Sicz (Post 1435183)
The only real use we found is just telling which direction the robot is going.

The above is a bit ambiguous. How does an accelerometer tell which direction the robot is going?




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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi