Speedometer via accelerometer

Quickly share your Android Code Snippets here...

Speedometer via accelerometer

Postby pinaise » Fri Aug 14, 2009 12:40 am

I was wondering if any of you have a code snippet for a speedometer using the accelerometer?

i'm trying to create a speedometer for a while now but i can't get it to work.

I am aware of the fact that you need acceleration for this this work properly.
it would be used starting from a stand still and only untill a surten checkpoint of acceleration is reached.

tia

Greetz pinaise
pinaise
Freshman
Freshman
 
Posts: 9
Joined: Sun Jul 05, 2009 7:00 pm

Top

Postby noya » Tue Sep 29, 2009 10:06 am

hi man,

I too have to work on a speedometer but reading in internet i found that using GPS start and end coordinates over time you can depict speed with an accuracy of 1 kmh... so no need of accelerometer.

if i find a solution I'll post it
User avatar
noya
Junior Developer
Junior Developer
 
Posts: 14
Joined: Fri May 08, 2009 3:16 pm
Location: Bergamo, Italy

Postby SlumberMachine » Tue Sep 29, 2009 7:38 pm

Wouldn't it be very exact if you somehow measured a short period of time and the distance traveled in that time?

Like use 10 seconds and if 10 Km was passed in those 10 seconds you could report that 60 kmph is the speed. I guess it wouldn't really be a speedometer as much as a cruising speedometer... but

I have no idea about how the gps works, but if it reads within 1 meter of accuracy you could even go down to tenths of a second and just do the math to convert it "per hour".

Just some random thoughts, sorry if it's not helpful.
SlumberMachine
Developer
Developer
 
Posts: 39
Joined: Tue Feb 24, 2009 9:00 pm

Re: Speedometer via accelerometer

Postby completefailure » Thu Feb 24, 2011 6:13 pm

Some basic implementation of speedometer based on built in accelerometer AcMeter - https://market.android.com/details?id=com.a10 There's a little video demonstrating how it works in moscow metro
completefailure
Freshman
Freshman
 
Posts: 5
Joined: Tue Feb 15, 2011 9:31 pm

Top

Return to Code Snippets for Android

Who is online

Users browsing this forum: Exabot [Bot] and 4 guests