Pages: [1]   Go Down
Author Topic: Detecting Speed of Robot with Accelerometer.  (Read 694 times)
0 Members and 1 Guest are viewing this topic.
Florida
Offline Offline
God Member
*****
Karma: 2
Posts: 559
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello, is it possible to use the sensor listed below to detect speed of robot? Normally I would just use motor encoders however they wont fit on the robot I'm using. If this sensors is not capable of it what sensor would work?


Thanks!


https://www.sparkfun.com/products/9652
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8856
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Accelerometers aren't very good at measuring speed because they only react to CHANGES in speed.  You have to add up all the changes to get the current velocity relative to the starting velocity and all that addition is subject to rounding errors that cause drift over time.

The best way to measure speed is with some kind of encoder.  You can paint stripes on the wheels and use a sensor to count the stripes as they go by.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Florida
Offline Offline
God Member
*****
Karma: 2
Posts: 559
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't really think any type of motor encoder is possible on my robot. Could I use and equation? For example say my robot traveled 12inches every 2 seconds at full speed. It's speed would be 6 inches a second right? Using a ruler and a stop watch I could determine how fast the robot moves depending on how much voltage I apply to the motor. Using math I'm guessing I could get pretty close to how fast the robot is actually moving. What do you guys think?

I'm entering in a competition and one of the task is to display how fast my robot is moving.

Thanks!

Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26327
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
It's speed would be 6 inches a second right?
Wrong.
That would be its average speed.
If it moved from rest, then the maximum speed would be higher.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Florida
Offline Offline
God Member
*****
Karma: 2
Posts: 559
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What if I had it move for a little bit of time before I started my calculations (time/distance)? If that will not work do you have any more ideas?

Thanks!
Logged

Pages: [1]   Go Up
Jump to: