Hi, I would like to know if there are apps that shows the speed of movement by using the build in accelerometer? I know there are some apps that work like this in windows mobile, but what about android?
Thanks
Update: I have made one for this, but just an alpha maybe.....
Have a look at page 2.
Just a thing about speed and acceleration:
The accelerometer can only measure acceleration (ok, it's obvious ). Not actual speed.
What the application could do is calculate the speed if it begins measuring when you don't move and then log all accelerations...
Anyway, you cannot give any accurate speed measure just using an accelerometer. If you start it for example when your car is already moving at a constant speed, the accelerometer will announce a speed of... 0 mph / km/h...
Just my two cents.
Sorry for my bad English. Yes, what I want to see is exactly the thing you say. I know that speed measured by this method is not accurate, but it is nice to have a brief estimation of the speed.
You would not get an estimated speed. The error in speed would increase in a linear fashion. You can only get the speed changes during the short time span.
try gps status in the market, its using your gps, so your battery is going to be drained quicker, but it shows your acceleration in lateral g's and has a speed. I dont know how accurate it is, but i will find out tomorrow. Got a nerd bikemount for my phone, and i already have a speedometer on it, so i should be able to give you a rough idea of how accurate the speed is tomorrow
Hi, Johnny5Walker. I am also using gpsstate2 now, and I know it shows speed according to gps and it also shows acceleration by the accelerometer. But what I am interested in is a program to show a roughly calculated speed when gps is unavailable, like in a metro or something like that.
I have search through the market and found nothing like that. Maybe I will write one, but I don't know how to write android program.....
like someone else has mentioned in this thread, It not physically possible with the accelerometer. It can only measure g forces, and once your done accelerating there is no more gforces being applied. hence no speed rating.
But there may be a way to calculate an approximate speed by the gforces initially put onto the phone. but what that calculation might be, i have no idea
like someone else has mentioned in this thread, It not physically possible with the accelerometer. It can only measure g forces, and once your done accelerating there is no more gforces being applied. hence no speed rating.
But there may be a way to calculate an approximate speed by the gforces initially put onto the phone. but what that calculation might be, i have no idea
It all depends on how accurate the accelerometer is.
If it is accurate enough, it should be no problem to use it to calculate relative speed, and even relative position.
It is just a mater of logging the data, that is if the accelerometer is able to export direction of acceleration.
Johnny5Walker said:
But there may be a way to calculate an approximate speed by the gforces initially put onto the phone. but what that calculation might be, i have no idea
Click to expand...
Click to collapse
It is pretty simple: 1G=9.8 m/s^2 so acceleration * time is "relative" speed
Trndr said:
It all depends on how accurate the accelerometer is.
If it is accurate enough, it should be no problem to use it to calculate relative speed, and even relative position.
It is just a mater of logging the data, that is if the accelerometer is able to export direction of acceleration.
It is pretty simple: 1G=9.8 m/s^2 so acceleration * time is "relative" speed
Click to expand...
Click to collapse
I honestly should have known that. well i did, its just been awhile since physics class. lol
now if only i had any programming skills
It seems that you are having some interests of this feature.
I have written a small program for this purpose, called speed.
Just a very little alpha version.
Tell me what you think about this.
Hold your device stable for setting gravity.
It will not considered as an acceleration if net acceleration is below 0.25 ms2.
Please provide a better method if you have.
Please also give me some idea of how to improve the program.
If you like it, please consider a little donation:
HERE
Car performance meter.
eddielo:
I'm interested in developing an app that uses the accelerometer to calculate performance information about a car.
It would basically integrate the acceleration to obtain a measurement of:
- Instantaneous speed
- Performance: 0-60mph, 0-100Kmph, 60-0mph, quarter mile time.
- Power: Vehicle peak HP (together with vehicle weight) and max torque, plus curves.
It would be possible to integrate this with a vehicle performance database to calculate deviations from vehicle standard performance (and weight data could come from there as well).
Maybe advanced options could include integrating the GPS to improve performance (I don't know if the GPS data timing would be accurate enough to make this feasible).
I have the tools and the physics knowledge, as well as the tools, my dev skills are a bit rusty (haven't done any development on WM and my last development efforts on Windows were five years ago) but I guess it all comes back.
Are you interested in collaborating on something like this?
Given the cost of a typical car accelerometer and performance meter, I guess there might be an actual market for such an app.
can you post the source code for your speed app?
would be much appreciated.
Been trying to figger this out for about a week now, but no success.
i'm trying to build a dyno app
eddielo said:
Sorry for my bad English. Yes, what I want to see is exactly the thing you say. I know that speed measured by this method is not accurate, but it is nice to have a brief estimation of the speed.
Click to expand...
Click to collapse
There are a couple of apps in the market that measure speed:
http://weaverfishdesigns.blogspot.com/
http://www.androlib.com/android.application.org-prowl-speedhud-jz.aspx
eddielo said:
It seems that you are having some interests of this feature.
I have written a small program for this purpose, called speed.
Just a very little alpha version.
Click to expand...
Click to collapse
Hi eddielo
I know this was a long time ago but any chance in sharing the code for this app? I would love to implement something like this in my student project but I am not too sure where to start in terms of code.
Thanks
Liam
bravo.. eddielo..
it would be more accurate if could take into account only a single axis (say x or y axis)
the user will have to hold the phone along this axis(hope u got what i mean)...
also check acmeter application in market...
another prob.. it does seem to account for negetive acc...
We tried to do something similar with Slide Meter.
By mean of a double integration (with tuned filtering and drift compensations) we are able to estimate the distance.
It is not 100% precise, but it's a good guess!
Bye
Dicotomica said:
We tried to do something similar with Slide Meter.
By mean of a double integration (with tuned filtering and drift compensations) we are able to estimate the distance.
It is not 100% precise, but it's a good guess!
Bye
Click to expand...
Click to collapse
Hey, can you please send the apk file if you made it? I'm really eager to use it!!
Thanks
lanksdot said:
Hi eddielo
I know this was a long time ago but any chance in sharing the code for this app? I would love to implement something like this in my student project but I am not too sure where to start in terms of code.
Thanks
Liam
Click to expand...
Click to collapse
Hey, if you've got an Android app on this, please share it. I'm most eager to use it.
I've got one, but it's not too good. Check it out:
Thanks
lanksdot said:
Hi eddielo
I know this was a long time ago but any chance in sharing the code for this app? I would love to implement something like this in my student project but I am not too sure where to start in terms of code.
Thanks
Liam
Click to expand...
Click to collapse
Hey there, please consider sending the Android app, if you've got it. I'm most eager to use it.
I've got one, but it's not too good. It just integrates forward acceleration but not the reverse acceleration. Check it out:
Thanks
Related
I contacted HTC and asked them if they had a tilt sensor SDK, or had plans to release one, and they basically said "no". So, I decided to see what I could come up with to get tilt response integrated into my little pet-project, and to my surprise, managed to figure out how to get some basic data out of the existing tilt sensor DLL on the Diamond.
If you'd like, you can see my "hello world"-level app using the tilt sensor here on my blog. I've included the source so others can play with the few tidbits I've figured out. The app itself is pretty boring, it'll really only be of interest to developers looking to integrate tilt into their app, and even then, it's still a boring app =)
If accessing the tilt sensor is well known, feel free to ignore me.
Well done, thats great!
You should also probably look at this and talk to CharlyV, he might be able to add some info.
http://forum.xda-developers.com/showthread.php?t=403939
That's great news !
Now developers might use such information to release usefull applications and funny games !
Yes, I was wondering, for my car I use the G-tech for acceleration-measurement.
Is this sensor sensitive / good enough to also do those kind of things?
Also, navigation programs can be a lot more precise by knowing when accelerating, cornering or braking.
Riel said:
Yes, I was wondering, for my car I use the G-tech for acceleration-measurement.
Is this sensor sensitive / good enough to also do those kind of things?
Click to expand...
Click to collapse
Good question: I might try to write some sort of logging program and see what kind of data I can get out of a car trip. That's a bit off for now.
Also, I made a minor update the project, I determined a few more of the unknown values that the API returns.
perhaps you or some other guys are capable to work with some tools mentioned in this post??
http://forum.xda-developers.com/showpost.php?p=2373447&postcount=56
Is there any chance to develop a calibration tool for this sensor?? Mine drifts to lower-left and thats annoying because Opera always means, I rotate my phone :-(
Thank you
I updated the project to include a sample of how to use the event driven notification of different orientations that Opera uses (instead of polling the sensor constantly to determine the current orientation).
I'll have to do some digging to see if there's any way to calibrate the sensor. It'd be nice (mine is a bit off too), but I don't see anything immediatly obvious.
Perfect news!
I hope there are devs, who will make apps or games for this. My idea of a new game is "Black Circle".
(Side in German bug game in English, dont worry)
http://spiele.isnichwahr.de/r432-spin-the-black-circle.html
What do you tink about it?
I wrote a managed wrapper based on Scott's work:
http://blog.enterprisemobile.com/2008/07/using-htc-diamonds-sensor-sdk-from-managed-code/
I think it would be possible to calibrate the sensor by replacing the HTCSensorSDK.dll with one that acts as a pass through to the real thing. Then it could "massage" the returned values with calibration adjustments.
Teeter -> HTCSensorSDK.dll (one we roll that tweaks values) -> RealHTCSensorSDK.dll (the real DLL)
I don't think that the DLL is replaceable unless the device is flashed with a new ROM.
Thoughts?
Hi everybody,
I wanted to learn some (basic) programming in VC# and the .Net Framework. So i looked for an idea. After a short time i had this idea, to create a program, in which you can keep track of your Fuel consumption of your car. (i think it is kind of useful, because the prices are changing every day).
I thought i'd share it here.. maybe someone is looking for a piece of software like this.. if not, just ignore it
you can test it, use it etc (whatever you want)..
Currently, there are two languages: German and English, but i dont love my English translation...
News:
v0.1.1 is now online:
I fixed the bug but another problem appeared: people who upgrade to the new version will lose all their data stored in data.xml with the uninstaller...
So i decided to create a simple Backup-Restore Function. Now, with the new version, you can Backup your Data before Upgrading and after that, you can restore it... If you use the Backup - the files will remain in your memory, until you delete them..
This is not the best way to solve the problem, because these files will stay on Memory even if the user uninstalls the program...
I read, that there is a way to costumize the setup process with a custom "Setup.dll" but i could not figure out how this works.. if anyone knows how to do this, please PM me..
Changelog:
v0.1.1 - 10/20/2008
fixed: storing units did not work
added: simple backup-function
added: simple restore-function
v0.1 - 10/19/2008
inital release
Beware: I will not guarantee for damage on your devices
If you have Bugs, ideas for new features or other feedback - let me know ..
This is a cool little program, would help a lot of people who have to teavel to work, etc..
I wish i had this when i was having some mileage problems with my car.
FuelCal
It looks good. I will give it a try.
Don't worry about your English, you can program!!!
Have a great day.
Glenn
FuelCal
Now for some more fun programming.
The store function is not storing the updated info.
It would be very useful for me if it would also calculate Mile/Gallon
Thanks.
Glenn
thanks for the feedback...
well i did not test the "Store" Feature for the Units ... bad in this case...
is will release a fixed version soon, stay tuned...
have a nice day
Just what i was looking for.
Thank you very much.
A bug
Hi. Excellent idea. You should check that on "Evaluation" the "price per Km" should be divided by 100 because it is done in cents but the unit says, when you change it, $/Km and not $cents/Km
Thanks.
Suggestion
Nice idea g3eB4Y. I will try the app.
This is something that could grow into a larger application if you want to track vehicle maintenance too. Also, I think that it would be helpful if you could simply enter the odometer reading and fuel quantity and allow the program to calculate distance.
First of all, thank you for your feedback...
maxzr said:
Hi. Excellent idea. You should check that on "Evaluation" the "price per Km" should be divided by 100 because it is done in cents but the unit says, when you change it, $/Km and not $cents/Km
Thanks.
Click to expand...
Click to collapse
I think there is nothing really wrong with the calculation.
When you change something on the settings page, you will only change the mask, but it will not affect the calculation..
The first Textbox under "Currency" will change the display for the "big-currency-unit" (€,$...) and the other textbox will change the "small-currency-unit" ($Cent, €Cent.. )
I can include a feature, that you really can change the calculation and display mode (€/km, €Cent/km, €Cent/20km ...) but at this moment, it does not
artyjeep said:
Nice idea g3eB4Y. I will try the app.
This is something that could grow into a larger application if you want to track vehicle maintenance too. Also, I think that it would be helpful if you could simply enter the odometer reading and fuel quantity and allow the program to calculate distance.
Click to expand...
Click to collapse
i have some idea for new features, i will try do implement them in one of the next versions, stay tuned...
its great to see, that somebody uses it... thank you!
g3eB4Y,
Very nice app you have. I've been using a excel spreadsheet to do this and now, I'm moving over to your app.
I wonder if you could add in another method of calculating the fuel consumption.
Distance travelled / No. of Litres = km/litre
Hope you can add that in to your next update.
Thanks once again.
PS:
No big deal but if you could name your cab file with the version number, it would be great!
GPS Full Screen Speedometer
--------------------------------------------------------------------------------
Speedometer not working? Maybe you're tired of your dimmly lit stick and bars speedometer. Well here's a better, easier, and possibly safer way to maintain and moniter your speed without the extensive work and expensive changes to your vehicle. It's skinnable in many different color choices and easy to use!
Attached Images
Nice find. Works good.
Speedo, lol.
Cool, thanks for this!
Just gave 'er a try - works very well. A bit laggy, but that's the phone's fault. I think it may be fun to play with (maybe I can get a lock in a plane... would look less GPS-ish).
I'm a nerd and like data.
for the on the plane i've used NoniGPS plot and saved the whole plot to KML and can upload to Google Earth. It's pretty neat, because each point that gets tagged shows you the current speed, point on map, elevation, etc. it's really neat.
That's very cool. about to try installing it right now. Next i'll need a g-force meter .)
GREAT!!
I installed this application a week ago and it works very well when you are driving at a steady pace, like on the highway. However, when you are speeding up or driving in traffic it is not accurate, pretty laggy. With that said, I give it a thumbs up for the application. Great app!!!
shout out with a video: http://www.fuzemobility.com/?p=1695
nice work
What happens after 100mph?
Got it to work on my Sprint TPro.. just in time. I need to calibrate my bike speedo. The sprint telenav is too hard to see.
Hopefully this works well to calibrate with my speedo healer.
Nice app, does it also have a function to show KM/h instead of MP/h? And what happens if you do 100+? Does it automatically resize the numbers or will it stick at 99?
Thanks in advance.
mikemorris said:
for the on the plane i've used NoniGPS plot and saved the whole plot to KML and can upload to Google Earth. It's pretty neat, because each point that gets tagged shows you the current speed, point on map, elevation, etc. it's really neat.
Click to expand...
Click to collapse
WOW! You have no idea how long I have been looking for something like this. I have tried dozens of really sh*tty apps, some trial versions of EXPENSIVE software and none of them do what this one does without hassle.
Thank you for mentioning this!
I currently use a utility called gps altimeter, which i found in the diamond forum. Great for lat, long, tas, altitude
GPS Speedometer Digital & Analog
Guys,
Give a try on this one
http://forum.xda-developers.com/showthread.php?t=513858
nice app.. just a little bit laggy..
Marco Schaap said:
Nice app, does it also have a function to show KM/h instead of MP/h? And what happens if you do 100+? Does it automatically resize the numbers or will it stick at 99?
Thanks in advance.
Click to expand...
Click to collapse
Yes it switches over to Km/h and yes it also will go over 100
It would be perfect if you could mirror it so we could use it as a HUD display in the car
This would be neat if my gps worked...
Ertje88 said:
It would be perfect if you could mirror it so we could use it as a HUD display in the car
Click to expand...
Click to collapse
look at this:
http://tchartdev.com/gps_speedo.htm
its nice but works only 10 min...
Does someone has the full version of this app?
Thanks
So whats so special about that program over this one? It has a mirror effect that's it. The rest of it is no different but is free.
You must see how its work at night when displays speed on glass...
Pls help me to unlock this app.
App now on the market
Seems inordinately slow (i.e. unplayably so) on my Magic (I'm running Dwang's 1.6 Donut ROM).
Otherwise, is a nice piece of software. A full-screen mode would be nice.
Loccy said:
Seems inordinately slow (i.e. unplayably so) on my Magic (I'm running Dwang's 1.6 Donut ROM).
Otherwise, is a nice piece of software. A full-screen mode would be nice.
Click to expand...
Click to collapse
Thanks, I've been doing some more optimizing, but I'm pretty much on the limit with what I can gain from the cpu emulation. Been tweaking the screen updates to see if that helps.
I've tried it running full screen but speed loss is an issue here too. If I can get better optimization I'll introduce it.
I've updated the above file with these optimizations and fixed a sound bug if you want to try again.
Anyone with a Hero or Dream want to try?
found another bug which was slowing things down quite a bit.
Version 3 in first post.
I think I've found the sound bug proper now. I've also found a vast improvement in speed after some GFX tweaks.
Version 5 in the 1st post, be grateful of any feedback.
I reckon I've sorted the controls issue, though I don't have a device with a trackball to test it on. I've also added the suggested full screen mode, though it runs a bit slow even after skipping a few frames, but I've left it in for the moment.
Version 6 Now available in the 1st post.
I havent tried it yet, but are you using a SurfaceView/SurfaceHolder combined with a seperate thread to do you drawing routines?
Thats the only way to really get the fps good enough for in-game graphics...
Not questioning your knowlegde, but maybe it helps.
Downloading now... I will try it out for ya...
On my G1 it runs pretty well. No crashes. The trackball movement seems a lot slower than the tilt movement.
Although... It did remind me of the old arcade style roller action...
I will follow the thread and try any changes you want to try...
Vermithrax
rogro82 said:
I havent tried it yet, but are you using a SurfaceView/SurfaceHolder combined with a seperate thread to do you drawing routines?
Thats the only way to really get the fps good enough for in-game graphics...
Click to expand...
Click to collapse
Cheers, I've got three threads running. One for the main activity, one for the SurfaceView and the last for the Cpu emulation. The java VM is not the fastest, and nearly 80% of the cpu time is being taken up by the cpu core, leaving not much left for drawing.
Vermithrax said:
On my G1 it runs pretty well. No crashes. The trackball movement seems a lot slower than the tilt movement.
Click to expand...
Click to collapse
Try not using the trackball as a roller, use it like a little teeny weeny joystick. One movement to the left, then back to centre to stop, then move again. The trackball event seems to be taking up huge resources when being called, not sure how to contain them?????
Version 7 is now uploaded.
Should be a bit faster now.
Few other little tweaks.
an RC can't be very far away?
Now at version 8
You may be thinking: "oh, not again that GPS crap", but no, I'm not complaining about the GPS as it is working flawlessly for me.
As I have noticed the sampling frequency of the GPS data points is 1Hz i.e. one sample every second which is not the ideal if we want to track accurately our activities specially in the corners and in not so linear routes.
Here you have an example (iPhone), 3G vs 4, the iPhone4 has a higher sampling rate and clearly better results.
So, I want to request the developers to try to change the sampling frequency from 1Hz to 2Hz. I've read somewhere that the integrated chip is 2Hz capable but disabled at driver level.
I am not sure if 2Hz are really needed, at least if you are not in a car. I am using Oruxmaps for recording tracks, there i see a huge difference when setting minimal time between gps points to 0s (Always on) and minimal distance between gps points to a lower value.
I want to see the difference after sampling changes to 2Hz
Yeah, come on, give it a try!!!
This sounds interesting. Wish i could assist in making it happen. Unfortunately Im not that clever.
Sent From My GT-Iphone-killer almost.
Well I thought I would look into this, I've never edited a driver or any thing linux in my life, but i thought "how hard can it be"?
Well I still dont know lol.
I downloaded the jm9 files from this thread.
http://forum.xda-developers.com/showthread.php?t=831725
And looking at the files the only one I can play with is the jupiter.xml file.
Now looking it seems pretty straight forward, i dont know what half of the things being enabled and disabled mean, but we can play i suppose.
One thing does concern me tho, looking at the xml file it seems to use a couple of differant servers for some kind of supl data. I know we can edit the supl entries in the gps.conf file, but maybe the jupiter file overrides that? Im not clever enough to find out unfortunately.
Anyway to cut a long story short the servers it uses are:
http://www.spirent-lcs.com/
bcmls2.glpals.com
bcmlbsqa1.glpals.com
Neither of which seem to work when using a normal web browser.
There is also some references in the xml file to frequency plan, but im not sure i really understand what these mean.
Maybe someone with better knowledge than me could take a look and see what they think.
Or maybe im barking up completely the wrong tree, in which forgive me.
I've uploaded another copy of the jm9 drivers file in case anyone wants to take a look also.
Also noticed that a chap on modaco forums has tried changing some elements, in case it is of any help...
http://android.modaco.com/content/s...xml-etc-gps-conf-and-gps-fixing/#entry1336782