I want to ask about the utility of the accelerometer, and what are the main advantages of it.
I know that you can use it to sense when the robot crashes. So if you’re doing programming skills, you can have the robot probably sense when it hits the starting bar (I don’t know, never tried it but this seems reasonable). Also, if you use the data from the accelerometer, and antiderive it twice, you can find the position of the robot, through the program. But for this you would need a little more data (If you know calculus, you’ll know you can’t do this accurately with out the constants C and D. But these could probably be found using other sensors such as gyros, and encoders on the wheels.) But all of that seems like a lot of work, probably the only thing I’d use it for is detecting collisions.
Thanks a lot Easton for your help!
The constants are just your initial position and velocity (the latter of which will always be 0).
What you describe is actually really easy to implement. The problem is the amount of noise in the sensor readings – good luck trying to filter that out.
You’re right about the constants. And I’ve never tried to do what I said you could do, has anyone had any success with doing it? I didn’t know how hard it is but since it’s apparently pretty easy, someone should try it. We don’t have an accelerometer though so we won’t be doing it.
The theory is easy to implement; in practice the accelerometer readings are so noisy that complex filtering is needed to get usable data.
Thank you Barin