=== Infrastructure & Assembly === 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. Depending on your specific needs, there are several different methods to build and use your flarmradar groundstation. For all cases you need: - a FLARM device - a [http://www.raspberrypi.org Raspberry PI] All revisions of the Pi can be used for Flarmradar ground stations. Depending on the revision you choose to use, wiring instructions differ slightly. We recommend a Raspberry Type B. You can purchase an SD card with the Pi's operating system pre-installed. For Pi+SD card [http://de.rs-online.com/web/p/entwicklungskits-prozessor-mikrocontroller/7858654/ see here]. For initial OS setup of your Pi, you will need a USB keyboard (mouse is optional but helps) and a screen which connects to Chinch-video signal or HDMI. Once your Pi is connected to the network, you can disconnect keyboard and screen and access it remotely via SSH. - a Power supply Depending on your specific requirements, creativity, etc. there are a lot of different ways to supply your Flarmradar ground station with power. We gathered experience with a few ways and will describe the different setups below. Flarm devices typically run on 12VDV power supply. All Raspberry Pi run on 5VDC. Hence you will have to generate and supply two different voltages within your ground station. Use a Micro-USB connector (e.g. [http://de.rs-online.com/web/p/usb-kabel-konfektioniert/7589342/ RS-Online]) to feed the power into your Pi. - Power supply from grid available - Use an external Flarm power converter (e.g. [http://shop.segelflugbedarf24.de/product_info.php?info=p32_Update-Cable-RS232.html update cable]) and a standard cell phone charger to supply 12VDC and 5VDC. [attachment:Flarmradar_GS5.png Schematic] - Use one standard external power converter (e.g. [http://de.rs-online.com/web/p/steckernetzteile/6666928/ RS-Online]) which supplies 12VDC and use a DC/DC converter (e.g. XXX) within the Flarmradar Ground station to convert 12VDC to 5VDC for the Pi. See [attachment:Flarmradar_GS4.png Schematic]. Make sure your DC/DC converter can deliver at least 600 mA of 5VDC to the Pi. - Use an internal power converter, which can supply 12VDC and 5VDC. See [attachment:Flarmradar_GS3.png Schematic] - NO Power supply from grid available = battery power - Use a 12V battery (e.g. [http://de.rs-online.com/web/p/bleiakkus/6603627/ RS-Online]) to power your Flarm and use a DC/DC converter (e.g. 2 x [http://de.rs-online.com/web/p/dc-dc-wandler-isoliert/7511459/ MEE3S1205SC] in parralel OR 1x [http://de.rs-online.com/web/p/dc-dc-wandler-isoliert/7553683/ TEN 6-2411WIN-HI]) to power your Pi. Make sure you buy a DC/DC converter with high efficiency so you don't drain your battery too fast. - 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 charger to which you will have to attach a 12V backup battery (e.g. [http://de.rs-online.com/web/p/bleiakkus/6603627/ RS-Online]). This battery will power the groundstation when disconnected from power grid. See [attachment:Flarmradar_GS2.png Schematic] General hints for electrical wiring: - To connect the FGS to external power supply or battery, use a connectors, which are protected against polarity reversal. - 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]) - Wiring instructions: 12V DC In --> Flarm fuse --> RJ45 connector --> network cable --> Flarm - 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 - For pin assignment of the RJ45-connector on Flarm, please consult [http://www.flarm.com/support/manual/FLARM_InstallationManual_v5.00E.pdf Flarm Installation Manual] - 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]) - Wiring instructions: 12V DC IN --> Pi Fuse --> DC/DC converter --> Micro-USB connector --> Pi - Powering your Pi over the GPIO pins is not recommended. Reasons see [http://raspberrypi.stackexchange.com/questions/1617/how-do-i-supply-power-through-the-gpio here] - Flarm <--> Pi Data connection - Flarm delivers RS232 signal on its data port. To feed this signal into the Pi, there are presently two alternative ways of doing: - RS232-USB-cable - 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. - Attach the converter to your Flarm and to one of the USB connectors on the Pi - Serial-In of the Pi - The Pi features a serial interface (UART) on its GPIO pins. - 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!!! - 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) - 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 - Solder 4 wires to the TTL side of the level shifter. Ground, +3.3V, TX and RX need to be connected - 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]) - 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. - 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] - Pi <--> Internet - data connection - If you have Lan network available at the location where you will setup your ground station, you can connect it directly to the Pi. It comes with a lan network connector. - If you have Wifi network available at the location where you will setup your ground station, you will have to buy a USB-Wifi connector. [http://raspberrypi.rsdelivers.com/product/edimax/ew-7811un/edimax-wireless-nano-usb-adapter/7603621.aspx This Wifi-connector] was tested by us with the Pi and works out of the box. - 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] === Shopping list === To build your own Wifi enabled Flarmradar ground station which runs on 12VDC external power following items are required: ||Raspberry Pi Type B with SD card||[http://de.rs-online.com/web/p/entwicklungskits-prozessor-mikrocontroller/7858654/ Link]||34,80 €|| ||IDC-socket 2,54mm 2x13 pins||[http://de.rs-online.com/web/p/idc-steckverbinder/3237902/ Link]||3,82€|| ||External power supply 12V 1A 12W||[http://de.rs-online.com/web/p/steckernetzteile/6666928/ Link]||14,29 €|| ||Fuse socket||[http://de.rs-online.com/web/p/sicherungshalter-fuer-frontplattenmontage/3595961/ Link]||4,19 €|| ||DC/DC-converter 9-36Vin 5Vout 1,2A 6W||[http://de.rs-online.com/web/p/dc-dc-wandler-isoliert/7553683/ Link]||23,20 €|| ||micro-USB cable||[http://de.rs-online.com/web/p/usb-kabel-konfektioniert/7589342/ Link]||3,43 €|| ||Cell 1||Cell 2||Cell 3|| ||Cell 4||Cell 5||Cell 6|| ||Cell 1||Cell 2||Cell 3|| ||Cell 4||Cell 5||Cell 6|| === Examples of already realized ground stations === [attachment:Flarmradar_GS_overview.jpg Example_I.1] [attachment:Flarmradar_GS_overview2.jpg Example_I.2] [attachment:Flarmradar_GS_peli1.jpg Example_II.1] [attachment:Flarmradar_GS_peli2.2.jpg Example_II.2] === Knowledge & Troubleshooting === - [wiki:raspberry Raspberry PI specific issues] are collected on a separate page