Slashdot Mirror


Measuring Acceleration/Speed for Small Vehicles?

stampfli_brit asks: "I am the captain of rowing at my local club, and was looking for a way to improve training. We have an NK SpeedCoach. However, I was looking for something that could measure the speed of the shell several times a second, more like this [pdf]. Any ideas on a cheap system using IC accelerometers or GPS, that could get this kind of information, log it for an hour or two, then dump it to an Apple Mac for analysis?"

55 comments

  1. Why not use a Powerbook by Lars+T. · · Score: 1

    Or rather the acceleration sensor in it?

    --

    Lars T.

    To the guy who modded me down from perfect to terrible Karma - Apple haters still suck

    1. Re:Why not use a Powerbook by stampfli_brit · · Score: 1

      Thought that, and we have those available, but waterproofing is too much of an issue...

  2. One idea by Jorkapp · · Score: 1

    Not exactly what you're looking for, but it would work:

    Either delegate people from your team, or hire some local person (IE: College student looking for a little extra cash) to point a radar gun at the boats, and have the radar gun output to something.

    --
    Frink: Nice try floyd, but you were designed for scrubbing, and scrubbing is what you shall do.
  3. So which is it? by Profane+MuthaFucka · · Score: 1

    Acceleration or speed? If this is the combination Calculus/Rowing club, you can figure one from the other. Otherwise, it's much easier to pick what you want ahead of time.

    --
    Fascism trolls keeping me up every night. When I starts a preachin', he HITS ME WITH HIS REICH!
    1. Re:So which is it? by confusion+here · · Score: 2, Interesting

      Actually you can't. Acceleration is a vector and speed is a scalar. Speed is the magnitude of velocity. Additionally, the derivative of speed is not the magnitude of acceleration, but rather the magnitude of the tangential component of acceleration.

      /nitpick ;)

    2. Re:So which is it? by pyite · · Score: 1

      Thank you. FYI, most people use speed and velocity interchangably and denote which one they're talking about by whether or not the answer is a vector. And by "most people," I mean professors and the like.

      --

      "Nature doesn't care how smart you are. You can still be wrong." - Richard Feynman

    3. Re:So which is it? by Profane+MuthaFucka · · Score: 1

      If you've got that little doohicky device that records a log of instantaneous accelerations over time, you could certainly get a good estimate if you combine it with a drag model and other appropriate characteristics of the hull.

      --
      Fascism trolls keeping me up every night. When I starts a preachin', he HITS ME WITH HIS REICH!
    4. Re:So which is it? by tonsofpcs · · Score: 1

      You can't figure speed out from acceleration? The OP said: you can figure one out from the other, not you can figure each one out from the other.

      </nitpick>

    5. Re:So which is it? by confusion+here · · Score: 1

      Touché.

  4. use GPS VTG by cerebralpc · · Score: 1
    One of the standard GPS messages is VTG (track made good and heading).

    The message provides the current speed and heading.

    A standard (>$200) GPS receiver should give this information. You will need a more expensive one if you want to save the data and sync it to your computer.

    If you want a real cool rolls royce solution you could contact my company - we'll write PDA solution for you.
    http://www.sapien.com.au/

  5. GPS Handheld by hillg3 · · Score: 2, Informative

    Most handheld GPS devices out these days offer this functionality. You can dump raw NMEA data to a PDA/LAPTOP as well if the built-in speed logging isn't sufficient. Take a look around Garmin and Magellan's web sites for a starting point.

  6. How about.... by Seraphim_72 · · Score: 2, Informative


    How about one of these attached to one of these? Together you are looking at about $500 but compared to the alternative ... Dig around on thier site they even have accelerometers and other neat stuff. I have used thier software and hardware it's good stuff and the people at the company are friendy and helpfull.

    --
    Slashdot, where armchair scientists get shouted down and armchair theologians get modded up.
    1. Re:How about.... by bcrowell · · Score: 1
      The OP wanted to use a Mac -- not sure if Vernier supplies software for MacOS? I know they are pretty open about their devices' specs, though. The older versions went through the COM ports, but I think the newer versions use USB.

      I'm also not sure what kind of accuracy you get on the x(t) and v(t) by integrating off of the a(t) the acceleremeter gives (haven't had a chance to play with one yet). You'd have lots of oscillations in the a(t) due to the oars cycling, right?

      We measure accelerations in physics labs using their sonar sensors, but the maximum range is 2 meters or so.

      Another possibility would just be video capture. Some physics profs use this in labs. The only thing is, you see everything in perspective, so you have to do various somewhat complicated corrections/calibrations in order to get an actual x(t) function. And I think the analysis is somewhat time-consuming.

    2. Re:How about.... by magefile · · Score: 1

      Their Graphical Analysis comes in a Mac flavor, and (IIRC), you can even use LabPro with Linux (assuming you have a USB->serial converter dongle handy).

    3. Re:How about.... by toddbu · · Score: 1

      I know a guy who uses these to measure power output of an engine in a car. Put in the accelerometer, stand on the gas pedal, compute the g forces, and work the numbers backwards. From what I hear, the problem with using very sensitive accelerometers is that they can pick up stray noise such as the moon passing overhead, so you'll need to be careful.

      --
      If you don't want crime to pay, let the government run it.
    4. Re:How about.... by WhyCause · · Score: 1
      I'm also not sure what kind of accuracy you get on the x(t) and v(t) by integrating off of the a(t) the acceleremeter gives (haven't had a chance to play with one yet). You'd have lots of oscillations in the a(t) due to the oars cycling, right?

      You can integrate a(t) once to get v(t) and twice to get x(t), but I wouldn't recommend it. I've tried it (not with a boat) and it just plain doesn't work very well. At all. Period. Even with very high quality accelerometers and a very high acquisition rate, you don't get very good results for v(t) and x(t). The numerical integration tends to amplify any noise you might have picked up, and it makes the results well-nigh worthless (this also tends to happen the other way, when you measure x(t) and take the first and second derivative).

      Your best bet is to pick the data you want, and use a sensor specifically designed to measure that data. Since you're not necessarily using this for scientific use (i.e., publication), I think a GPS unit would likely be your best bet, combining all the best of low-cost with ease of use. The data won't show all of the little impulse accelerations that happen when the oars hit the water, but I gather that you're not interested in that.

      If you were interested in acceleration data that fine, it would be relatively straight-forward to hook up all the necessary components, but it'll cost you (ruggedized laptop + data acquisition card + sensors = $10,000). Once you have that setup, though, it would be a neat trick to measure the force applied by each rower, and then get on the case of the slackers... OK, I've got to stop before I write a grant to do this.

      If you really want to get this far into it, though, I'd talk to your local Mechanical Engineering department, and see if they have any students willing to work on this problem. The department likely has all the resources necessary to fully wire everything up, and the expertise necessary to do it right.

  7. Serial Accelerometer by jotux · · Score: 1

    serial accelerometer

    Scroll down, and they have accelerometer you can just plug into a serial port. You'd want to have a laptop on board, and some simple software to interface with the serial port...but serial port interfacing isn't to hard, so this might work for you.

    oh, and it's like $45 or so.....

    1. Re:Serial Accelerometer by stampfli_brit · · Score: 1
      Thanks! This looks the most useful.

      Any ideas on where to buy a similarly cheap data logger for serial? Or software for a PDA to do the same thing?

    2. Re:Serial Accelerometer by jotux · · Score: 1

      :-/ not really
      Yes, it would be convenient to have a handheld data logger that you could dump later....but I think that would just add to the complexity of using something like this device.

      I think the simplest solution would be to plug it into a laptop, and either capture the data with a serial terminal (which are easy to get/use on any system) then dump it to some kind of software and plot it....or write something to intercept the data in real time and plot it. The latter would probably be the most useful, since you could watch the acceleration profile of the stroke as it happens....but I'm not sure of your experience/willingness to write a bunch of code for this. :-/

      If you were to write something like that, and interface it to this device...it would seem like a pretty good product to sell to other rowing teams :-)

  8. Data Rates by Anonymous Coward · · Score: 0
    The big problem I see is your request for subsecond samples (20 Hz in the PDF).

    A cheap GPS isn't going to output at 20 Hz. I don't think you can even get 5 Hz for cheap.

    You can get a cheap accelerometer, but they have drift problems.

    You could use a one second GPS to correct the drift in the accelerometer data, but that mean a lot of programming.

    1. Re:Data Rates by aaarrrgggh · · Score: 1

      That is basically what you have to do; accelerometers for precision, corrected by GPS for drift. The programming isn't that bad as long as you can synch the time stamp between a accelerometer datalogger and GPS.

  9. Oh, that's easy! by NewWazoo · · Score: 2, Interesting

    All you need is a string, a weight, three poles, and a protractor.

    Make a crossbar out of the poles, and mount the protractor to it, with 90* facing downward. Tie the weight to the string, and hang the lot right next to the protractor. Align the contraption such that the length of the protractor runs parallel with the keel of the boat.

    With some (very) simple fizzix, you've just built an accelerometer.

    B

    1. Re:Oh, that's easy! by tuupharr · · Score: 1

      There is no way that work work in a crew shell.. what are u thinking...

    2. Re:Oh, that's easy! by roseblood · · Score: 1

      tuupharr, you don't know how right you are. Unless the crossbar is very high and the string very long the angle of deflection you get will be far to small to accurately eyeball.

      --
      There are lies, damned lies, and statistics.
    3. Re:Oh, that's easy! by Anonymous Coward · · Score: 0

      That's what the high speed camera is for... haven't you ever watched mythbusters?

  10. How fast? by sneakers563 · · Score: 2

    Roughly how fast do you normally go? GPS speed becomes less reliable the slower you go because of positional error. 15-20 foot error can be fairly substantial at low speeds.

    1. Re:How fast? by tuupharr · · Score: 1

      while in a crew shell you travel about 4 to 5 m/s that is about 10 mph

    2. Re:How fast? by Mendenhall · · Score: 1

      That depends on the receiver. The Rockwell/Conexant/NavMan/SiRF receivers used in the DeLorme Earthmate are (at least were in the serial version; don't know about the new USB ones) quite sophisticated. They use a separate receiving chain for the Doppler data, so the velocity solution is independent of the position solution. The error ellipse on a zero velocity point was only about 0.1 m/s in radius. That's plenty good to get a nice velocity on a crew hull. They only return data 1 point per second, but that should realistically be enough, since a hull doesn't accelerate THAT fast.

  11. Ticker-tape timer by Anonymous Coward · · Score: 0

    Ticker-tape timer. Cost you under $50.

  12. Tricky by linuxwrangler · · Score: 3, Informative

    This can be a lot harder than it seems at first. In the yachts I race on we have some top-of-the-line instrumentation. Sensors feed GPS info, wind speed/direction, speed-through-water, compass-heading, etc. into the instrumentation computer (black box) and on to the various displays on-deck as well as into a pc for tactics and analysis.

    It's very useful info but you also learn rather quickly that it's full of errors. Consider that the wind speed and direction is usually read from a anemometer/vane at the top of the mast (often on a small pole to attempt to keep it out of the wash of the sails). Speed through the water is done ultrasonically or with a paddle wheel. All these direct measurements are converted to things like true wind speed, true wind direction, velocity made good and so on.

    Damping is a huge problem. You may think that several readings a second is good but as the boat rides over waves and heels to varying degrees all of your measurements will be off. Wind due to the mast swinging (doesn't take much heel to really move things around 7 stories up - I've been there many times), boat speed due to water-flow differences at different heel angles (some boats average readings from multiple sensors to combat this issue), and even magnetic heading due to compass-dip if the compass sensor isn't gimballed or otherwise compensated. Essentially you become limited to short-term running averages of the readings.

    You don't have quite as many inputs but still need to be concerned with yaw and tilt of the shell, turbulence from the oars and so on. Boat motion will be especially problematic if you are trying to directly measure acceleration.

    I suspect that an appropriately designed towed speed sensor might get you the data you desire (though the data-quality will still be sketchy). Perhaps a small propellor/chopper-disk/optical sensor. You could probably build one for a few dollars. The problem then will be to convert the pulses to something you can use.

    --

    ~~~~~~~
    "You are not remembered for doing what is expected of you." - Atul Chitnis
  13. GPS for gross approximation only by topham · · Score: 1


    Normally I'm a big proponent of GPS units. I think they are very cool, and they have a lot of inherent functionality.

    For this task they are probably a poor choice. Typical GPS unit uses algorithms for determining speed which will filter out minor changes, or delay their appearance in the data.

    They do a very good job of giving an accurate speed when they are neither accelerating nor decelerating. (more accurate than your average speedometer in good conditions). But it is unlikely the data will show any details of individual strokes.

    An accelerometer would be a better choice as you should then be able to plot the power of each stroke.

  14. Why? by Zebra_X · · Score: 3, Informative

    Several times a second? What can you garner from that kind of resolution in speed? Perhaps you are looking to analyze the impact of the rudder on the boats performance?

    Having been a varstiy cox for a top D1 rowing team I've never needed such information to make my boat faster.

    The speed coach is a very good device. Short of rebuilding it, you will not find anything that will come close to it's level of accuracy (or durability). If you're looking for a device that can dump to a PC (presumably Mac as well) have a look here. It's not that expensive and comes with all of the hardware that you would have to build yourself.

    Your only other option is to find an impeller, and get a data logger and make it waterproof. You'll also need a display and a C compiler to drive the impeller -> display conversions.

    I guess the question is how much is your time worth?

    1. Re:Why? by stampfli_brit · · Score: 2, Informative

      Several times a second: in order to measure changes in the force profile of the stroke.

      Example: If the cox calls "send the boat off the finishes", to see what effect that has on the force curve, and boat speed.

  15. Derivatives by Anonymous Coward · · Score: 0

    Remember, speed is the first derivative of the position function, and acceleration is the second derivative.

    How that helps you, I have no idea.

  16. Ball bearing solution by stick_figure_of_doom · · Score: 3, Interesting

    My crew club is having another problem (which I know all crews are subjected to). The steel ballbearings in the slide wheels rust out, and when you have 4 wheels for 8 seats you have 32 wheels rusting. We end up replacing the shotty we find about every two weeks. The old slide solution didn't involve ballbearings, but it sucked. It involved rolling axles attached to the wheels, a sliding plate, and another set of rollers below the actual seat. It jams all the time, but it never rusted out. What would anyone say is a more appropriate mechanical solution? Thanks for not modding this off-topic, because you don't see crew on /. very often...

    --
    If someone drops a fort on Will, he makes a reflex save.
    1. Re:Ball bearing solution by BSDevil · · Score: 2, Informative

      Go back to slide plates. In all my years (5) of competitive rowing, the only times I ever lost a seat that was connected via a slide plate was when I wasn't paying attention to my technicque. The few times I did, it was because I was putting too much weight onto one side of the seat (which will throw off the set of the boat anyways), or too much pressure on the front edge of the seat (which leads to an inefficient stroke.

      So my advice - go back to what works. Slide plates have very few moving parts, and do the job. Fix your stroke, and the rest will follow.

      --
      Cue The Sun...
    2. Re:Ball bearing solution by MrResistor · · Score: 1

      Stainless steel bearings.

      Seriously, why is this even a question?

      --
      Under capitalism man exploits man. Under communism it's the other way around.
    3. Re:Ball bearing solution by Anonymous Coward · · Score: 0

      ever hear of Grease??!

      - and here I thought Slashdot folk were supposed to be smart...

    4. Re:Ball bearing solution by drinkypoo · · Score: 1

      there are sealed bearings with grease fittings. Some modification may be required, and it will probably end up spewing some grease which is nasty to clean up, but it will solve your corrosion problem. It's one solution to protecting the bearings on boat trailers.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    5. Re:Ball bearing solution by stick_figure_of_doom · · Score: 1

      You think they aren't already stainless? Saltwater can be pretty corrosive if the metal never actually gets dry. I know you can get saltwater rigging, so I assume the bearings are already proofed as best as can be.

      --
      If someone drops a fort on Will, he makes a reflex save.
  17. can be done... by blackcoot · · Score: 1

    ... but not for cheap as far as i know. we have played with several imus and a couple accelerometers. all the reasonably cheap ones have enormous drift rates, and the rest all seem to be $1500+.

    that said, once you have the sensor, you can talk to it pretty easily using a standard serial interface.

  18. More than Accel by BSDevil · · Score: 3, Informative

    Correct me if I'm wrong, but you're looking for something that will do everything a SpeedCoach does, but you want a better resolution, and you want it (presumably) for less money.

    My immediate thought would be to go grab a few Vernier sensors (as someone else mentioned) and a TI-92, and do it on that. However, NK has spend a whole lot of time and cash making sure their impellers work perfectly for what they're supposed to do, and produce the minimum drag possible. I know if I was rowing at that level (I rowed in HS for a while), I wouldn't want some homemade impeller giving me excess drag.

    Upon further though, why would you want that much resolution in terms of speed? The SpeedCoach measues at the midpoint of each stroke, as the power phase is finishing. If you want something more specific than that (maybe to analyze for the effect of small changes in stroke shape or recovery speed), I would think that you'd be using a tank anyways, and you could do something with video for that (not needing an impeller at all).

    Also, think about this: most national teams use SpeedCoaches for their training. If it's good enough for them, why do you need more prescision?

    I think you need to rethink your problem. If you're measuring for the impact of rudder usage on speed, you can do that with models in a flow tank (go talk to your hydrodynamics departement). If you're doing stroke geometry, use an erg (or a tank, a videocamera, and a few Vernier probes). I can't think of a good reason for needing that much prescision in an on-water situation.

    --
    Cue The Sun...
    1. Re:More than Accel by stampfli_brit · · Score: 2, Informative

      The SpeedCoach is good for measuring general speed. What it does not show is how small technique changes alter the power curve of a stroke.

      I want the ability to be able to compare the power curve on the water to that on the erg. And see how specific changes in the stroke make the boat slower / faster, and compare that to the rowers' perceptions.

    2. Re:More than Accel by taradfong · · Score: 1

      What if you mounted force transducers on your rowing stays. Lots of work, I know, but then you could plot the application of force over time. You could see how well the team is in sync, how well the left and right halves are balanced and so on. It would be independent of wind. You could compare individual rowers, and their performance over time.

      --
      Does it hurt to hear them lying? Was this the only world you had?
  19. One option by stienman · · Score: 2, Informative

    If you want to do precision inertial measurements then cheap GPS will not work well.

    A good system would be GPS coupled with an accelerometer and microcontroller. Use the GPS for absolute positioning, and to calibrate the accelerometer. Use the accelerometer for speed and position updates as quickly as you need them.

    It would probably take about 40-60 hours of work to develop and test the concept, and probably cost about $200 per prototype unit. Thereafter one could probably make them for $100 apiece. Assuming a cheap engineer at $60/hr you're looking at $2,800 to $4,000 for the first 2 prototypes.

    If you want to go the cheap and quick route, you can skip the GPS and simply use an accelerometer. One such gizmo is here. This person created a simple acceleration meter that analyzes a few car parameters by monitoring acceleration during a 0-60 test. This doesn't match up directly with what you need, but with some work you can take this and make it do what you're looking for.

    -Adam

  20. Gyro Plug by lukej · · Score: 1
  21. What I do: by Rufus88 · · Score: 1

    I keep a pair of fuzzy dice hanging from my rear view mirror.

  22. cheap, fun, dorky by norkakn · · Score: 1

    Okay, the easiest is to average the output from an array of accelerometers and put them into a joystick port on a laptop (mac probably won't work) because these can double as a 0-5V ADC. The next level of coolness will work with a mac. Average the accelerometors and use it to control the gain of a JFET. use a schmidt trigger (trust me, 555s are too noisy for anything) to occilate at some frequency. Put this into the audio in of the mac and use supercollider to write a program to exam the amplitude of the signal. You could also use multiple schmit triggers and do the averaging in software, which might give you better resolution. Each schmit trigger gives you two occilators.

    Oh, if you are using 9Volts and running them through a transistor to bring it down to 5, make sure that you cap it to ground or it will occilate like crazy at like 1.6MHz (but it will look fine with 5v going into the transistor)

  23. Uhh... sure, GPS by LadyLucky · · Score: 1
    I use a Garmin G76 GPS to record my glider flights. It takes a breadcrumb trail, and can be set to do it pretty damn frequently, at least 1/sec I am pretty sure. You can then download the trace via a serial port to your computer for analysis.

    It's very simple to use.

    --
    dominionrd.blogspot.com - Restaurants on
  24. GTech-Pro by Rob+Parkhill · · Score: 2, Informative

    I don't know if this would work for you, but check out the features on the GTech-Pro RR.

    It's a set of precision accelerometers designed for car racing, but it might give you enough detail that you can use the output to suit your needs.

    Looks like it only works with a PC, but for $300 you can't have everything.

    --
    "Tomorrow's forecast: a few sprinkles of genius with a chance of doom!" - Stewie Griffin
  25. GPS by satterth · · Score: 1

    Also remember that most cheaper/oem GPS modules only output 1 pulse per second on a serial line. This may infact not be anywhere near the frequency that you require.

    --
    Being called a dork on Slashdot must be like being called the retard in special ed.
  26. Optical solution by dfranks · · Score: 1

    You might want to mount a corner-cube reflector on the boat and use a laser doppler velocity measurement system. Your like would be made simpler if you could row directly away from the laser. This would move all the electronics off the boat and allow reasonably high-precision and high-sample rate measurments.

  27. Data logger by Sooner+Boomer · · Score: 1

    There are several inexpensive (under $200) data loggers available. For example, the HOBO, or something from the Datalogger Store. Dataq also sells inexpensive A/D converters, but you would have to take a laptop along on the rowing shell to record the data, Their stand-alone data loggers are a bit more pricey ~$400), but use SD memory and have high resolution and high storage capacity. You can get free samples of accellerometers from Analog Devices .

    --
    Chaos maximizes locally around me.
  28. Speaking as a rower myself... by sexybomber · · Score: 1

    You don't want a laptop on board a racing shell. Trust me on this one.

    The only way it would work is if it was very light and very waterproof, or better yet, if it floats and is waterproof.

    I'm surprised nobody mentioned this, although geeks who row are probably a rarity.