Saturday, July 15, 2017

Live Sectional Map

A polished and well-crafted variant of this project was featured on HomebuiltHELP's Tip of the Week

The Live Sectional Map is a small cylinder showing the aeronautical sectional chart around Sea-Tac. Seven airports are illuminated with colored LEDs. When the cylinder is plugged in, it will download the METARs for these airports every minute, and update the color for each airport depending on the conditions.


Just like ForeFlight, VFR is green, MVFR is blue, and IFR is red. LIFR flashes red.


The map was super glued around an old Quaker oats can. I wrapped it in rubber bands for a day to let the glue settle.


I drilled holes for each airport and hot-glued common cathode RGB LEDs to each airport.


After experimenting with an Arduino like I did with Thinking Man, I decided Arduinos are a pain to connect to WiFi, and Raspberry Pis are much more robust. I SSH'ed onto a RPi running Raspbian on headless mode while developing. The RPi's GPIO ports control each LED anode.

I used a simple GPIO breakout along with female-female jumpers to connect each LED. The cathodes were strung along this awkward extension, shown below. I used a 200 ohm resistor on ground for the whole circuit. Later I found out the red LEDs ate a lot more power, and would dim rival blue LEDs when in use. Rather than put 21 resistors on all of these anodes, I just balanced the color using pulsewidth modulation through the RPi.GPIO library. Code: https://github.com/dylanrush/categorical-sectional




5 comments:

  1. Wow, this is an awesome idea. I've been looking for a Raspberry Pi project and this would be perfect. I am thinking though to do a big full size wall-mounted one... I understand having dozens of LEDs would be very difficult to manage though - how many total are you using?

    ReplyDelete
  2. Neat! Does this work on a first gen Rpi??

    ReplyDelete
    Replies
    1. Yes it does, all raspberry pi have GPIO - just depends what you're doing with it.

      Delete
  3. Do you have an Amazon link for these LEDs?

    ReplyDelete