Hi folks,
So my son and I are planning a project for his fine Pinewood Derby car next year. The idea is to have it light up an 8x8 LED matrix in response to motion.
We have a 3-axis accelerometer (adxl335 gy-61), and what I'm trying to do is determine if it will provide specific enough information to do what we want.
Here are the states we'd like to have the car respond to:
State 1: Idle. The car is not moving. It is probably on the impound table with all of the other cars, doing nothing.
Stage 2: Staging. The car has been picked up and is carried to the track and placed in the starting location.
Stage 3: Racing. The starting gate has dropped and the car rolls down the incline and over the track to the finish line.
The part that has me rubbing my chin is what criteria would I used to distinguish between the car being picked up and carried to the track, and the car actually rolling down the track. The main difference that I can see is that the latter involves a definite sloped drop (as it rolls down the slope of the track) and will be moving much faster in a linear direction.
Can I reliably read enough data from the accelerometer to distinguish between these states?