Planespotting, The SDR Way

In addition to my interest in electronics and computing, I’ve always found aircraft fascinating. Some of it is the still-magical idea of making something that can lift itself off the ground and fly, supported only by air. Some of it is also the natural inclination, upon seeing an airliner, truck, or freight train, to wonder where it came from and where it’s going. For engineers, I suspect that a lot of the fascination comes from our love of systems of all kinds — and figuring out how they work.

Planespotting (basically, “collecting” aircraft by identification number) is a fun pastime, and can be a good way to learn about different types of aircraft. (A Cessna 152 and Boeing 747-8 are both fixed-wing aircraft, but that’s about the only similarity.)

With all of the recent fuss about National Security (gotta protect our Precious
Bodily Fluids, after all!), some traditional planespotting techniques are frowned upon by the Security Theater types. Hanging around the local airport with a pair of binoculars is likely to get you some suspicious looks if you’re white, and thrown into jail if you’re not.

Fortunately, it’s 2015, and we have some really amazing technology at our disposal. For about US$22, you can purchase a USB-based digital TV receiver, which can be easily reconfigured to be a general-purpose SDR receiver, covering roughly 25MHz to 1750MHz. This covers a lot of interesting content, including FM broadcast radio, several Amateur Radio bands, several aviation-related bands (VORs, VHF comm frequencies, etc.)

Nooelec_SDR_sm

All the hardware you need to turn your PC into a pretty cool radio receiver. Only $22.

It also happens to cover the 1090MHz ADS-B band. ADS-B is a clever extension of the idea behind GPS: Aircraft with GPS receivers (which is basically all aircraft, these days) know their exact position (in terms of latitude and longitude) at all times. If they were to broadcast this in a controlled manner, other local aircraft (and ATC) could listen for these transmissions and draw a map of where nearby aircraft are, adding an extra layer of collision-avoidance safety.

Since aircraft positions are broadcast in the clear, anyone with the right (inexpensive) equipment can pick up these signals and plot a map of where local aircraft are. Here is a map of several hours’ worth of traffic through the Philadelphia area:

ADSB_map_sm

A dynamic map of local aircraft, and maximum detected range. (Click for larger.)

Each plane is generally identified by registration number and often flight number, allowing online lookups of where it came from and where it’s going. By connecting with an online database of aircraft positions, data can be shared with anyone with a web browser. With thousands of inexpensive receivers throughout the world, aircraft could potentially be tracked anywhere that reliable Internet connections exist.

It’s easy enough to get started. All you need is a reasonably fast computer (anything built in the past few years is probably fine), an SDR dongle, and some software. The process goes like this:

  • Buy a SDR dongle, plug in its antenna, and connect it to your computer. (The drivers don’t like some modern USB3.0 ports, so you may have to try a new port if the SDR# software doesn’t recognize your device.)
  • Install the SDR# software. (Their “Airspy” hardware is not needed if you have the inexpensive dongle from Amazon, but it looks to be a nicer, significantly higher-spec version of the same thing.)
  • Use the “Zadig” driver installation program included with the SDR# software to install the SDR driver for the dongle. (There are instructions on the SDR site.)
  • Open the SDR# software to test your setup. Receiving a local FM broadcast station should be a good test.
  • Close the SDR# software and run ADSBSharp.exe (included with the SDR# software.) Hit the Start button to start it running.
  • Download, install, and run the ADSBScope software from sprut.de .
  • In ADSBScope, go to other->Network->Network Setup to set up the network for ADSB# (port 47806).
  • Click Other ->Network->”RAW data Client active” to start the network client.

Happy digital planespotting!

Posted in Aviation, Digital Citizenship, Internet, Reviews, RF, Toys | Leave a comment

Arduino Step By Step

I recently came across a very interesting Udemy course called “Arduino Step by Step: Your guide to the Internet of Things.” It covers everything from blinking a LED (the traditional microcontroller take on “Hello, World” to Internet-connected applications.

It’s only $10 (instead of the usual $199!) for now. For the right person, it might really be worth $199. For $10, though, it’s a no-brainer.

Posted in Arduino, Current Events, Digital, Resources, Reviews | Leave a comment

Word Lens

Technology is always cool. Sometimes, it’s amazing.

Word Lens is one of those amazing technologies that you have to see to believe. It takes translating dictionaries one step further — by recognizing words in the wild, using your Android smartphone’s camera, and seamlessly replacing them with the translation. If I hadn’t tried it for myself, I would have suspected that the demo videos are rigged. It does what it claims, though — even translating labels from Russian into English.

Maybe now I’ll be able to figure out how to start that old TU-154M I downloaded.

We’ll be seeing a lot more of Augmented Reality — and soon, I’d guess.

Posted in Android, Reviews, Tools, Toys | Leave a comment

The EBCs of BJTs

BJTs (Bipolar Junction Transistors) are inexpensive, reliable, relatively easy to use, and very useful. Here’s what you need to know in order to use them as a simple switch.

A BJT is, essentially, a current-controlled current source. In general, the current flowing into one pin is controlled by a smaller amount of current flowing into another pin. In this way, the transistor can act as a current amplifier

There are two types of BJTs — NPN and PNP. These refer to the order of doped silicon layers: negative, then positive, then negative, for an NPN transistor, and the reverse for a PNP.

 

NPN: "Not Pointing iN"

Schematic symbols for NPN and PNP transistors.

The three pins on a BJT are the emitter, the collector, and the base. The way I remember which is which is that the emitter emits (into the device) whatever type of carriers (holes or electrons) are described by the transistor type. NPN? Electrons are negative, so they’re emitted by the emitter. PNP? Holes are positive, so the emitter emits those. The other right-hand-side pin, where the carriers are collected, is the collector.

The central pin is the base. This is where the controlling current flows into (NPN) or out of (PNP). (Note: I use conventional current notation, with current flowing from positive to negative.)  The thing to remember is that the emitter-base junction is a diode, and therefore requires current limiting (just like an LED does.)

To use a NPN transistor as a switch, it’s easiest to use it to “ground” the load to turn it on. Suppose your load was a lamp. Tie one end of the lamp to the positive voltage rail, tie the other to the collector of the NPN, and tie the emitter of the NPN to ground. Now, flowing a small current into the base of the NPN will cause the NPN to conduct a potentially much larger current from the collector to the emitter, grounding the lamp’s negative terminal and completing the circuit.

NPN_switch

PNP transistors are used similarly, except that they are typically used to switch the high side, and current flows out of the base, not in.

 

Posted in Analog, Building blocks, Components, Electronics, HOW-TO | Tagged , , , , , , , | Leave a comment