| 1 | |
| 2 | ==== Infrastructure & Assembly ==== |
| 3 | We used the following components to build up our client infrastructure. Note that links provided are just proposals for your convenience, other components will also work. |
| 4 | - a FLARM device |
| 5 | - a [http://www.raspberrypi.org Raspberry PI] |
| 6 | - Power supply: |
| 7 | - As Flarm is running on 12V and to ease use of a mobile flarmradar gound station powered by a 12V battery, we recommend a 12V power supply for the flarmradar ground station (FGS) |
| 8 | - Use a standard power converter (e.g. [http://de.rs-online.com/web/p/steckernetzteile/6666928/ RS-Online]) if an electical outlet is available to power the FGS |
| 9 | - For battery powered FGS, use a 12V battery as used in most gliders |
| 10 | - To connect the FGS to external power supply or battery, use a connector, which is protected against polarity reversal (e.g. [http://de.rs-online.com/web/p/dc-buchsen/7684419/ RS-Online]) |
| 11 | - To protect your Flarm against over current, a 500mA fuse should be installed in the power supply route to the Flarm (e.g. [http://de.rs-online.com/web/p/sicherungshalter-fuer-frontplattenmontage/3595961/ RS-Online]) |
| 12 | - To connect your Flarm to the FGS, we recommend installing a RJ45 connector on the FGS front panel and to use a short network cable to connect the FGS to the Flarm |
| 13 | - For pin assignment of the RJ45 please consult [http://www.flarm.com/support/manual/FLARM_InstallationManual_v5.00E.pdf Flarm Installation Manual] |
| 14 | - Wiring instructions: 12V DC In --> Flarm fuse --> RJ45 connector --> network cable --> Flarm |
| 15 | - Alternative way of Flarm power supply: [http://shop.segelflugbedarf24.de/product_info.php?info=p32_Update-Cable-RS232.html update cable] |
| 16 | - Raspberry is running on a 5V power supply therefore the 12V power supply must be converted to 5V for the Pi. |
| 17 | - Power conversion can be performed using DC/DC converter. Make sure the DC/DC converter can deliver at least 1A. |
| 18 | - To protect your Pi against over current, a 500mA fuse should be installed in the power supply route to the Pi (e.g. [http://de.rs-online.com/web/p/sicherungshalter-fuer-frontplattenmontage/3595961/ RS-Online]) |
| 19 | - Use a Micro-USB connector to feed the power into your pi |
| 20 | - Wiring instructions: 12V DC IN --> Pi Fuse --> DC/DC converter --> Micro-USB connector --> Pi |
| 21 | - Alternative way of Pi power supply: A USB charger to power the Raspberry, just make sure it can deliver at least 1000mA |
| 22 | - All in one power supply: The Mean Well power converter [http://www.meanwell.com/search/ADD-55/ADD-55-spec.pdf ADD-55A] offers 12V and 5V power output which can be run on standard power supply (88-264VAC) when available. If no power line is availble the device features a battery connection, which serves as backup power source. |
| 23 | - Flarm <--> Pi Data connection |
| 24 | - Flarm delivers RS232 signal on its data port. To feed this signal into the Pi, there are presently two alternative ways of doing: |
| 25 | - RS232-USB-cable |
| 26 | - Buy a RS232 to USB converter cable. Preferable one which uses the FTDI chipset (e.g TBD). If you use a different chipset, this may not be supported by default by the Pi operating system. |
| 27 | - Attach the converter to your Flarm and to one of the USB connectors on the Pi |
| 28 | - Serial-In of the Pi |
| 29 | - The Pi features a serial interface (UART) on its GPIO pins. |
| 30 | - Pi's serial interface works on 3.3V. Hower, Flarm supplies higher signal levels. DO NOT CONNECT THE FLARM DATA LINES DIRECTLY TO THE PI'S GPIO PINS!!! |
| 31 | - Buy a RS232 to TTL level shifter (e.g. [http://www.ebay.de/itm/115200bps-Stucke-Mini-RS232-auf-TTL-Converter-Module-Konverter-Board-MAX3232-/261070156589?pt=Wissenschaftliche_Geräte&hash=item3cc8fe732d E-Bay] - costs less than 2 EUR) |
| 32 | - Solder Flarm's TX, RX and ground (coming from the RJ45 jack) onto the RS232 side of the level shifter. Most level shifters have well labeled soldering pads |
| 33 | - Solder 4 wires to the TTL side of the level shifter. Ground, +3.3V, TX and RX need to be connected |
| 34 | - Buy a 2x13 IDC connector which attaches to the Pi's GPIO pin headers (e.g. [http://de.rs-online.com/web/p/idc-steckverbinder/3237902/ RS-Online]) |
| 35 | - Connect the four wires coming from the TTL side of the level shifter to the IDC connector. Pin layout depends on the version of your Pi. See [http://www.raspberrypi-spy.co.uk/2012/06/simple-guide-to-the-rpi-gpio-header-and-pins/ GPIO Pins]. If you have a revision 2 Pi, this is the pin connection: Pin1=+3.3V, Pin6=GND, Pin8=TX, Pin9=RX. |
| 36 | - Disable console output and boot messages on the serial interface. See [http://www.irrational.net/2012/04/19/using-the-raspberry-pis-serial-port/ here] |
| 37 | |
| 38 | |
| 39 | |
| 40 | - optional, recommended for a stationary installation: we use currently an [http://shop.segelflugbedarf24.de/product_info.php?info=p29_FLARM--Outside-Antenna-4-m-cable.html external antenna] |