Android Phone Vario with External Barometric Pressure Sensor - Hang Gliding Org - Worlds largest Hang Gliding community, discover Hang Gliding

Search

  • Sorry...You must register to activate searching









Post new topic   Reply to topic    Hang Gliding Org Forum Index -> Hang gliding general->Android Phone Vario with External Barometric Pressure Sensor
BURY this topic
View previous topic :: View next topic  
st1lgar
3 thumbs up
3 thumbs up


Joined: 25 Jan 2011
Posts: 343
Location: Oak Ridges, ON

PostPosted: Fri Mar 02, 2012 9:39 am    Post subject: Android Phone Vario with External Barometric Pressure Sensor Reply with quote #1   
Managed to get a beta version working.

Now I need sound, icons and ... suggestions Smile

What do you think?

Link



surrender

_________________
"Men were not meant to leave the Earth. Spend too much time in the clouds and you never want to come back down again. I know skinchangers who've tried hawks, owls, ravens. Even in their own skins, they sit moony, staring up at the bloody blue" -- Hoggon
George R.R. Martin
Send private message Blog  Rate this post
blindrodie
3 thumbs up
3 thumbs up


Joined: 06 Dec 2006
Posts: 3762
Location: Roeland Park, KS

PostPosted: Fri Mar 02, 2012 9:51 am    Post subject: Reply with quote #2   
Nice Dude!

If you get one for iPhones I'll beta test for you...

Find a "sexy" beep tone that's more soothing than pokin you in the ear.

Keep indicators BIG for the sight impaired.

Sell it cheap like an App.


thumbsup Cool

_________________
"Tow me up. I'll find my way down"

Kansas City Hang Glider Supplies
Guggenmos E7
WW U2 145
WW F1 195
FlyTec 6015
CG 1000
Tracer Plus
Organ Donor
Torrey Hawk #212
Send private message  Rate this post
klh
3 thumbs up
3 thumbs up


Joined: 13 Jul 2008
Posts: 330
Location: San Bernardino, CA

PostPosted: Fri Mar 02, 2012 10:27 am    Post subject: Reply with quote #3   
NICE!

Can you record the data? It would be interesting to somehow coordinate (in-flight or later) with a GPS track. Presumably you are using an air-pressure sensor plugged in to the phone. Since it's a phone, maybe the locations of great lift and bad sink could be posted tot he web or sent to others with phones running appropriate apps. An evolving (near) real-time map of the day's conditions, perhaps.

This would mean I'd have to get one of those secure cases for my DroidX and figure out a mount...
Send private message  Rate this post
st1lgar
3 thumbs up
3 thumbs up


Joined: 25 Jan 2011
Posts: 343
Location: Oak Ridges, ON

PostPosted: Fri Mar 02, 2012 12:05 pm    Post subject: Reply with quote #4   
Quote:

If you get one for iPhones I'll beta test for you...

Find a "sexy" beep tone that's more soothing than pokin you in the ear.

Keep indicators BIG for the sight impaired.

Sell it cheap like an App.


Sorry, no iPhones... Objective C is not my strength. C, C++ & Java only Smile
What beep do you like more? Sine, square or sawtooth? http://en.wikipedia.org/wiki/Waveform

I like BIG Smile

Quote:
Can you record the data? It would be interesting to somehow coordinate (in-flight or later) with a GPS track. Presumably you are using an air-pressure sensor plugged in to the phone. Since it's a phone, maybe the locations of great lift and bad sink could be posted tot he web or sent to others with phones running appropriate apps. An evolving (near) real-time map of the day's conditions, perhaps.


That's phase 2.
I can log GGA NMEA sentences (taking the calculated altitude as hight) http://www.gpsinformation.org/dale/nmea.htm#GGA
Sorry but I'm against any form of radiation Smile be it BT, WiFi or GSM. That's why I focused on a USB solution.

I love "Airplane mode" ! ahh

I guess it's a good idea to turn off the phone at least while flying Smile Land is full of zombies texting, browsing and messaging so why take it in the air?

Peace! surrender

_________________
"Men were not meant to leave the Earth. Spend too much time in the clouds and you never want to come back down again. I know skinchangers who've tried hawks, owls, ravens. Even in their own skins, they sit moony, staring up at the bloody blue" -- Hoggon
George R.R. Martin
Send private message Blog  Rate this post
4X8
3 thumbs up
3 thumbs up


Joined: 24 Nov 2011
Posts: 32

PostPosted: Fri Mar 02, 2012 12:13 pm    Post subject: Reply with quote #5   
How much ($) for the sensor doohicky and app?
Send private message  Rate this post
TomGalvin
3 thumbs up
3 thumbs up


Joined: 07 Nov 2006
Posts: 3548
Location: ............... Pagosa Springs, Colorado

PostPosted: Fri Mar 02, 2012 1:00 pm    Post subject: Reply with quote #6   
Here's one

http://www.toradex.com/En/Products/USB_Sensors_and_Peripherals/Oak_USB_Sensors/Atmospheric_Pressure

_________________
Real freedom lies in wildness, not in civilization.
Charles Lindbergh
Send private message Blog  Rate this post
st1lgar
3 thumbs up
3 thumbs up


Joined: 25 Jan 2011
Posts: 343
Location: Oak Ridges, ON

PostPosted: Fri Mar 02, 2012 1:19 pm    Post subject: Reply with quote #7   
4X8 wrote:
How much ($) for the sensor doohicky and app?


$41+shipping for the sensor
$10-$15 USB OTG cable
$2 USB 2 mini adapter

App - currently priceless ahh - I just paid Google $25 to be able to post apps to the market...

Sensor manufacturer prices:
Code:

   1-5    6-49     50-499   500-999         1000+
$41.00   $37.00   $31.00    $28.00        $26.00


Smile

Downside is that your phone has to power the device. The term is USB-Host.
You'll know it works if you can use a regular mouse or keyboard to control the phone... like here :
Link


I'm working on a "native solution" as well to enable android phones with android 2.x to use the app - but you would need root in that case.

_________________
"Men were not meant to leave the Earth. Spend too much time in the clouds and you never want to come back down again. I know skinchangers who've tried hawks, owls, ravens. Even in their own skins, they sit moony, staring up at the bloody blue" -- Hoggon
George R.R. Martin
Send private message Blog  Rate this post
therider
3 thumbs up
3 thumbs up


Joined: 04 Nov 2010
Posts: 138
Location: Milpitas, CA

PostPosted: Fri Mar 02, 2012 3:31 pm    Post subject: Reply with quote #8   
This is great! Finally a real excuse to root my android phone and try some app coding.

The toradex sensor seems to only have windows drivers. Wondering how to interface it for a droid app written in java.

st1lgar, what is the sensor that you used ?

_________________
H3 FL ST 360 FSL
WW F1 195
Send private message  Rate this post
klh
3 thumbs up
3 thumbs up


Joined: 13 Jul 2008
Posts: 330
Location: San Bernardino, CA

PostPosted: Fri Mar 02, 2012 4:09 pm    Post subject: Reply with quote #9   
I just hope the Guild Navigators don't get wind of this.
Send private message  Rating: 1 thumb up
st1lgar
3 thumbs up
3 thumbs up


Joined: 25 Jan 2011
Posts: 343
Location: Oak Ridges, ON

PostPosted: Fri Mar 02, 2012 4:39 pm    Post subject: Reply with quote #10   
therider wrote:
This is great! Finally a real excuse to root my android phone and try some app coding.

The toradex sensor seems to only have windows drivers. Wondering how to interface it for a droid app written in java.

st1lgar, what is the sensor that you used ?


It's the Toradex Smile

If you run ICS you have API for accessing USB devices but you still have to b able to power it...

If not, and that's what I'm working on for gingerbread devices, I ported the libusb, and libhid to android using the google NDK.

Then , with root access you can see the USB dvice in /dev/bus/usb/... What remains is to interface the C/C++ library with JNI calls from java .

_________________
"Men were not meant to leave the Earth. Spend too much time in the clouds and you never want to come back down again. I know skinchangers who've tried hawks, owls, ravens. Even in their own skins, they sit moony, staring up at the bloody blue" -- Hoggon
George R.R. Martin
Send private message Blog  Rate this post
st1lgar
3 thumbs up
3 thumbs up


Joined: 25 Jan 2011
Posts: 343
Location: Oak Ridges, ON

PostPosted: Fri Mar 02, 2012 4:41 pm    Post subject: Reply with quote #11   
klh wrote:
I just hope the Guild Navigators don't get wind of this.


Not if they have their spice... crazy

_________________
"Men were not meant to leave the Earth. Spend too much time in the clouds and you never want to come back down again. I know skinchangers who've tried hawks, owls, ravens. Even in their own skins, they sit moony, staring up at the bloody blue" -- Hoggon
George R.R. Martin
Send private message Blog  Rate this post
st1lgar
3 thumbs up
3 thumbs up


Joined: 25 Jan 2011
Posts: 343
Location: Oak Ridges, ON

PostPosted: Fri Mar 02, 2012 5:21 pm    Post subject: Reply with quote #12   
Testing the app in the elevator on my way home

I might need to calculate the mean altitude for a given period (1-3 sec) before I display it...


Link

_________________
"Men were not meant to leave the Earth. Spend too much time in the clouds and you never want to come back down again. I know skinchangers who've tried hawks, owls, ravens. Even in their own skins, they sit moony, staring up at the bloody blue" -- Hoggon
George R.R. Martin
Send private message Blog  Rate this post
KostasVonitsa
3 thumbs up
3 thumbs up


Joined: 23 Nov 2010
Posts: 33
Location: Switzerland

PostPosted: Sat Mar 03, 2012 11:33 am    Post subject: Reply with quote #13   
Hey check this out http://groups.google.com/group/gaggle-users and contribute if you want!!
Send private message  Rate this post
st1lgar
3 thumbs up
3 thumbs up


Joined: 25 Jan 2011
Posts: 343
Location: Oak Ridges, ON

PostPosted: Sat Mar 03, 2012 12:25 pm    Post subject: Reply with quote #14   
KostasVonitsa wrote:
Hey check this out http://groups.google.com/group/gaggle-users and contribute if you want!!


I was thinking to contribute to XCSoar thumbsup

_________________
"Men were not meant to leave the Earth. Spend too much time in the clouds and you never want to come back down again. I know skinchangers who've tried hawks, owls, ravens. Even in their own skins, they sit moony, staring up at the bloody blue" -- Hoggon
George R.R. Martin
Send private message Blog  Rate this post
staylo



Joined: 04 Mar 2012
Posts: 2

PostPosted: Sun Mar 04, 2012 12:51 pm    Post subject: Reply with quote #15   
st1lgar wrote:
I was thinking to contribute to XCSoar thumbsup


That would be excellent! We'd really like some help on the vario functionality (and improving the suitability of XCSoar for hang glider / paraglider pilots). The main XCSoar developers are all sailplane pilots without barometric sensors on their devices, so although there have been requests for audio vario functionality, nobody has the hardware to develop it nor the ability to compare the response in flight against other non-TE-compensated varios. Please ask on the forum, mailing list or IRC channel if you need help or feedback. (I can't post links, but if you check the 'Discover' link on xcsoar.org you can find those items.)

Thanks!
Send private message  Rate this post
st1lgar
3 thumbs up
3 thumbs up


Joined: 25 Jan 2011
Posts: 343
Location: Oak Ridges, ON

PostPosted: Sun Mar 04, 2012 3:37 pm    Post subject: Reply with quote #16   
I've been on the xcsoar-devel list for a while now crazy
Just didn't had anything to contribute to since recently ... and I'm familiarizing with the code.

What do you mean
Quote:
without barometric sensors on their devices


The list is huge http://www.xcsoar.org/discover/features.html#supported_devices

... and I don't have a HG vario to compare the thingamajingie to...
Mr. Green

We'll see

_________________
"Men were not meant to leave the Earth. Spend too much time in the clouds and you never want to come back down again. I know skinchangers who've tried hawks, owls, ravens. Even in their own skins, they sit moony, staring up at the bloody blue" -- Hoggon
George R.R. Martin
Send private message Blog  Rate this post
staylo



Joined: 04 Mar 2012
Posts: 2

PostPosted: Mon Mar 05, 2012 2:32 am    Post subject: Reply with quote #17   
st1lgar wrote:
I've been on the xcsoar-devel list for a while now crazy
Just didn't had anything to contribute to since recently ... and I'm familiarizing with the code.


Cool Smile

Quote:
What do you mean 'without barometric sensors on their devices'

The list is huge


Unfortunately most of those devices only give a pressure reading over NMEA every 1 second or less (intended only for use as a pressure altitude altimeter), it's only the latest Android devices with built in barometric pressure sensors, and presumably the Toradex, that give low level access to the sensor and allow fast & precise enough readings to generate an audio vario.

Quote:

... and I don't have a HG vario to compare the thingamajingie to...


It might be worth begging someone to loan you one temporarily. Even if you're just comparing the two in the elevator it'll give some indication of the response rate. Unfortunately you may find the Toradex sensor is not as good as some of the latest devices (The best sensor I've seen is the MS5611, I don't know of any USB HID interface boards for it though)

Quote:

We'll see


;)
Send private message  Rate this post
TheNewGuy
3 thumbs up
3 thumbs up


Joined: 22 Dec 2011
Posts: 52
Location: Ohio

PostPosted: Tue Mar 06, 2012 11:48 am    Post subject: Reply with quote #18   
I would like to check this out. Can you post or pm me with a link to the beta app? I have a little knowledge with Android app development and might be able to help with the UI. But mostly I am really excited about this idea as a vario, and would like to try it out... And I am really looking forward to you making it a part of XC Soar.
Send private message  Rate this post
st1lgar
3 thumbs up
3 thumbs up


Joined: 25 Jan 2011
Posts: 343
Location: Oak Ridges, ON

PostPosted: Tue Mar 06, 2012 12:08 pm    Post subject: Reply with quote #19   
Have't touched the app since Friday. Busy at work...
As soon as I have something I'll let you know.

Thanks! thumbsup

_________________
"Men were not meant to leave the Earth. Spend too much time in the clouds and you never want to come back down again. I know skinchangers who've tried hawks, owls, ravens. Even in their own skins, they sit moony, staring up at the bloody blue" -- Hoggon
George R.R. Martin
Send private message Blog  Rate this post
TheNewGuy
3 thumbs up
3 thumbs up


Joined: 22 Dec 2011
Posts: 52
Location: Ohio

PostPosted: Tue Mar 06, 2012 12:35 pm    Post subject: Reply with quote #20   
Ok thanks!
Send private message  Rate this post
Display posts from previous:   
Post new topic   Reply to topic    Hang Gliding Org Forum Index -> Hang gliding general
 
All times are GMT - 8 Hours
Goto page 1, 2, 3, 4  Next
Page 1 of 4


 
Jump to:  


(c) HangGliding.org All rights reserved. Based on PhpBB