Being Arduino minded makes that route attractive to me, especially as I didn’t know a cheap off-the-shelf solution existed until Michael found one! Quite likely there are Smart Phone apps too, because all Smart Phones contain an accelerometer.
This Arduino project shows how its done. As the program is written, the Arduino / accelerometer combo isn’t stand-alone – it copies accelerometer data to a another USB connected computer, which may not be convenient. Depends on how big Gerry’s vehicle is. Not difficult to write the data instead to an SD-card, if you know how, but Gerry may not have the time or interest to get into that. I could have a go, but might take a while because I’m wading through treacle at the moment due to illness.
What do do with the data once collected may be a complication. The simple case is horizontal acceleration in a straight line, which matches Gerry’s requirement, so shouldn’t be a problem. Only one rate of change matters, keeping life simple. Accelerating around a circular track is harder to compute because the X and Y accelerations have to be combined – because the vehicle is moving in two dimensions. A model aircraft accelerating around a circle whilst climbing and diving is even worse. Calculating the aircraft’s acceleration requires integration of acceleration data in all three dimensions, X,Y and Z. Hard work, at least for me.
Dave