|
Re: Has anyone gotten useful data from the accelerometer?
using the accelerometer to measure speed is exorbitantly difficult?!
velocity is the integration of acceleration. If you have the sensor horizontal pointing fore and aft, then all you need to do is add the output of the sensor to a variable (16 bits is best) each time you pass through the main loop of your code, and subtract out the zero reading (offset)
the register will then contain your velocity, all the time.
|