Arduino altimeter & airspeed indicator

Discussion in 'Instruments / Avionics / Electrical System' started by cluttonfred, Apr 8, 2015.

Help Support HomeBuiltAirplanes Forum by donating:

  1. Jun 16, 2019 #101

    kalazzerx

    kalazzerx

    kalazzerx

    Member

    Joined:
    Dec 4, 2018
    Messages:
    5
    Likes Received:
    3
    Location:
    TN
    Curious, why not just use what is out there and build a stratux which provides you with everything I think you are looking for which is provided by GPS, AHRS, and normal ADS-B antennas. You then use your old cell phone or a cheap table and have a cool setup. This is what I am planning to use when I get my LE XL completed :)
     
  2. Jun 16, 2019 #102

    Saville

    Saville

    Saville

    Active Member

    Joined:
    Apr 28, 2014
    Messages:
    39
    Likes Received:
    5
    Location:
    Boston Ma

    That is most definitely the second easiest way to go. The easiest (and most expensive) way is to by a Stratus III (not stratux). But I do understand the fun of building your own system.

    As I mentioned in this thread or a similar one, if I were going to homebrew this myself I'd do it with a Raspberry Pi. That system is much more attuned to this sort of app than an Arduino. All the ancillary hardware exists to give you everything (not just airspeed) and you can store the data on a micro chip.
     
  3. Jun 16, 2019 #103

    kalazzerx

    kalazzerx

    kalazzerx

    Member

    Joined:
    Dec 4, 2018
    Messages:
    5
    Likes Received:
    3
    Location:
    TN
    Agree. I like doing it myself on the cheap and built mine for just over a hundred dollars. Got most of the individual parts on amazon, 3D printer housing, and burned software image.
     
  4. Jun 16, 2019 #104

    Hephaestus

    Hephaestus

    Hephaestus

    Well-Known Member

    Joined:
    Jun 25, 2014
    Messages:
    763
    Likes Received:
    155
    Location:
    YMM
    Actually Arduino superceeds raspberry pi for this type of work.

    A microcontroller will always be safer than a full computer. A pi with WiFi /Bluetooth etc can stall / hang / delay waiting on random connections or have issues with the other subroutines running. The dedicated nature of an Arduino and not having the computing cycles to allow for the extraneous crap that makes it safer.

    Yes you can push an Arduino past the point of reason by adding in other gadgetry but generally you won't have the memory to load enough to make it unstable in that sense. As soon as you get multiple processes running bad things can happen.
     
  5. Jun 16, 2019 #105

    timmyjane

    timmyjane

    timmyjane

    New Member

    Joined:
    Jun 16, 2019
    Messages:
    2
    Likes Received:
    1
    Looks like this sensor has a 10kpa limit but a 0 lower limit vs -2. Any reason to need -2? This sensor should allow for use on higher speed aircraft.

    https://www.mouser.com/datasheet/2/302/MPX5010-1127094.pdf
     
    Last edited: Jun 17, 2019
  6. Jun 17, 2019 #106

    282ex

    282ex

    282ex

    Member

    Joined:
    Jun 30, 2018
    Messages:
    9
    Likes Received:
    1
    Location:
    Everett, WA / USA
    This is why you dont want GPS only supplied gauges:
    https://www.aopa.org/news-and-media...ry/27/more-gps-interference-exercises-planned

    Also, unless you use different media than an sd card, that rpi will hang on you, sd cards are not designed to be os drives. Go browsed the stratux boards to see the complaints of lockups.
     
  7. Jun 17, 2019 #107

    Bill Welter

    Bill Welter

    Bill Welter

    Member

    Joined:
    Jun 11, 2019
    Messages:
    8
    Likes Received:
    8
    Thanks Tim Crumley for the suggestion of using the MPXV5010DP sensor. I just used the common MPXV7002DP sensor since that's what others were using, just to get started, but you can only use 0-2 kpa, with 2.5-5.0 v.. The 5010 sensor will sense 0-10kpa (550 kts?) but we may lose some granularity at low speeds with that one. But I did find the MPXV5004DP sensor which is 0-3.92 kpa (220kts?), which should be about right. And that will sense ~0-4 kpa @ 0-5.0 v, so the code will be very close with a few tweaks. It doesn't come mounted to a circuit board that I could find, but it looks like it would work on the board I already have for the 7002 sensor. Gonna get one and try it
     
    Last edited: Jun 17, 2019
    timmyjane likes this.
  8. Jun 17, 2019 #108

    Bill Welter

    Bill Welter

    Bill Welter

    Member

    Joined:
    Jun 11, 2019
    Messages:
    8
    Likes Received:
    8
    I forgot that the pressure/speed formula is non-linear. 4 kpa will only be good for 185 kts or so. So, the 5010 sensor will be needed above that speed. Or two sensors, one for low speed and one for high speed, switchover about 110 kts
     
  9. Jun 20, 2019 #109

    Bill Welter

    Bill Welter

    Bill Welter

    Member

    Joined:
    Jun 11, 2019
    Messages:
    8
    Likes Received:
    8
    I got the MPXV5004DP sensor, soldered it to the extra board I had for the original sensor, and it reads up to 154 kts with no code changes except for raising the max speed for the display. Code worked correctly with the new sensor with no tweaks. Since the low range of the sensor (ambient pressure) reading is 1.5 volts, we don't get the full range I was looking for, but 154 kts is pretty good. Will need to get a 5010 sensor sometime and see how that works.
     
  10. Jun 20, 2019 #110

    rv7charlie

    rv7charlie

    rv7charlie

    Well-Known Member

    Joined:
    Nov 17, 2014
    Messages:
    339
    Likes Received:
    123
    Location:
    Jackson
    Might not affect you personally, but most people still interpret an analog display faster than a digital readout. I discovered this back in the previous century (early 1980s) when I switched from a match-needle SLR to a Canon 'digital' (readout) SLR. Peripheral vision in the vewfinder can easily interpret a match-needle, but you must focus on a digital display and actually read it. '1050' looks a lot like '105', until you pause, focus on it, and actually read it. But 'needle position', even if it's digitally generated, would be very obvious even in peripheral vision. More current evidence of this effect is found in modern engine monitors. Most of the displays use bar graphs or varying arcs to display data, because it's easier to interpret on the fly (pardon the pun).

    I, too, like the idea of expanding a Stratux to include airspeed/baro altitude, but I do get wanting a separate instrument.

    Charlie
     
  11. Jun 22, 2019 #111

    Saville

    Saville

    Saville

    Active Member

    Joined:
    Apr 28, 2014
    Messages:
    39
    Likes Received:
    5
    Location:
    Boston Ma
    Except that I'm not using the SD card for the OS or programs - just data storage.
     
  12. Jun 22, 2019 #112

    282ex

    282ex

    282ex

    Member

    Joined:
    Jun 30, 2018
    Messages:
    9
    Likes Received:
    1
    Location:
    Everett, WA / USA
    What storage are you using to run the rpi os?
     
  13. Jun 23, 2019 #113

    Saville

    Saville

    Saville

    Active Member

    Joined:
    Apr 28, 2014
    Messages:
    39
    Likes Received:
    5
    Location:
    Boston Ma
    That which comes with the card. The data storage is an add-on SD.

    Please: Use what you like best. I find that the R Pi is better from a programming, peripheral and capability standpoint than the Arduino for this application. Especially the peripheral point of view. Before you ascribe any Stratux hang up to the SD card you'd have to also look at the program.

    If you prefer the Arduino go for it - more power to you. I'm not interested in a drawn out debate.
     
    CharlieN likes this.

Share This Page

arrow_white