Author Topic: A Single Box PiAware  (Read 7988 times)

johnjoyes

A Single Box PiAware
« on: April 08, 2018, 03:10:29 pm »
Dear forum viewers,
As a newbie to this forum AND to PilotAware I thought I’d share some thoughts with you .
I received my box of bits earlier in the year and have now had several good flights with a fully working system.. I thought I would let you know how I got on.
I’m a (retired) design engineer, I’ve been designing electronic products all my life; my aircraft is a pusher with a fibreglass nosecone, ideal for forward upward and downward radio reception with no horrid engine in the way; so between us I though we should be ideally placed for an optimum installation. Central to my philosophy is that I wanted something that would work first time, I’m not interested in experiments and successive approximations!  Here are my thoughts.

1. The enclosure
I’m sure you all agree that the PiAware system is a bit of a meccano kit – too many bits! Scarcely anything has caused me more grief in my career than poor connectors. And  here we have a box full of them! So the first thing I wanted to do is put everything in one box, including the power supply and amplifier (see later) and all the dongles and antennas. So out went the supplied enclosure and I found one in my junk box about the right size (but I later wished I’d found one a bit bigger),  So at least they won’t get knocked about in flight. The box is permanently installed and wired straight into the aircraft 12V supply. Sadly, not much we can do about the micro-USB connector that is used for the power supply to the raspberry pi –it’s a pity that raspberry pi had to choose the most unreliable connector ever devised by mankind, but at least it’s all inside my box.

2. The antennas.
It’s a pity that Pilot Aware don’t see fit to supply alternative sets of antennas, one for metal-skinned aircraft and one for fabric/plastic, as the pair they provide are good for neither.
The end-feed dipole supplied for the pi-aware board is great for plastic planes, but should be mounted well clear of metal and certainly not on a metal-skinned aircraft, which need a monopole quarter-wave antenna.
The monopole antenna supplied for the receiver dongle I can’t see as being any use for anybody. It needs a ground plane, but it’s only means of attachment is the magnetic base! Throw it out! For myself, needing another end-feed dipole, I cut the wire, stripped back the screen about 80mm and folded it back along the wire and taped it down, then inserted the whole in a bit of plastic tube about 160mm long, and glued it to the side of my box. Job Done, zero cost. For the rest of you, I don’t know what you are supposed to do.

3. The Power Supply.
Those of you in the know will be aware that there are two fundamentally different types of voltage regulator: Switch-Mode and Linear.
Switchmode regulators are small, light, efficient, cheap, so are the universal choice these days, and probably the only ones you can buy. But  they have the unfortunate property of emitting electrical noise, both conducted and radiated, so be prepared for problems. Of course, some are worse than others, so you must stick to the tried and tested types.
Years back, when installing my radio, I was getting complaints that my transmissions were almost drowned by a high-pitched whine, which after much head-scratching was traced to the power supply. A change to a linear power supply fixed it.  Some years later, when running moving-map software on my android tablet I found that the power supply that came with the tablet was blocking the GPS reception. I tried using a power-bank battery instead, but these too have a switchmode power supply inside, and this did the same. So my tablet now also has a linear power supply – problem solved. So you’ll understand why I wasn’t going to have a switchmode power supply inside my box right up close to the GPS and radio dongles!
 If you want a linear power supply, you have to build your own. The chip I used is and LM1084 – you’ll find some data sheets telling you how to use it. But the biggest problem with linear regulators is that they need a big heatsink, and central to the design is an accurate figure for the PiAware power consumption.
You’ve read the instructions about the wire length and the “approved” 2Amp 5V regulator. But I measured a mere 0.7 amps average consumption, but with microsecond-long peaks up to more than 3 amps occurring every 29 microseconds, ringing horribly and causing disturbance to the 5V rail !  I put this down to the piaware transmission bursts (possibly wrongly), but whatever the cause it seems to me that the instructions about the wire length and 2amp regulator are the wrong solution . What it needs is more energy storage at the piaware to feed the peak currents. Looking at the PiAware board, and also the Raspberry Pi itself, I see no sizeable capacitors to perform this role, so it is left to the power regulator at the wrong end of a very long wire! A very poor bit of design I think.  I did not bother to try it, because my power supply lead was only 2 inches long, but if anybody suspects they are having power problems, they should try fitting a capacitor on the Pi Aware board. There are some “expansion” solder pads on the board, even labelled with 5V and ground, which are perfect for the job. A few hundred microfarads will be fine. Then maybe, if you need to, you can use a longer power supply lead.
Even though less than one amp consumption, a linear regulator needs a sizeable heatsink. Dropping 14-odd volts down to 5V at  (say) 1Amp needs to dissipate about 10 Watts, which needs quite a big chunk of finned aluminium. To get round this I used a fan-cooled heatsink, you can buy them very cheaply from china, designed for cooling computer graphics cards. The fan increases the effectiveness of the heatsink ten-fold. Best look for ones with 5V fans.  Mine is 40mm square and 10mm high (including the fan) , and when I tested it gave only 30 degree rise for 10 watts dissipation – perfect!. I have arranged airflow in my box so that the cool air entering the fan first cools the Raspberry Pi and Pilot Aware, and that dongle that runs so hot, which should improve their reliability also.

4. The audio output.
Even the few flight I have made since installation have convinced me that the audio output is the MOST USEFUL benefit of PiAware, as you are never going to be always looking at your screen. However, I bet most of you haven’t got a satisfactory audio installation yet. Partly because you haven’t got a spare input to your intercom system, and partly because the audio output from the Raspberry Pi is a low amplitude signal from a  high impedance, not really capable of driving very much. It needs an amplifier. I measured a peak-to-peak signal amplitude of about 400mV, and the source impedance (from memory)  is some tens of thousands of ohms.
Some of you may have looked at amplifier modules using the LM386 chip, very cheaply available from China. This chip has a fixed gain of 20, but the modules I have looked at claim a gain of 200, much too high. If you run these modules from 5V, you can only have a peak to peak voltage swing of less than 4V, so a gain of more than 10 would be bad, so buy the version with a pot and turn it right down.  I used the LM380 chip, which has the advantage of being able to run from the raw 12v supply, giving much more power if you need it, but I couldn’t find any ready-made modules using this chip so you have to do your own thing.
The other issue relating to the audio output, and possibly more important,  is the creation of ground loop. Your audio output will create an additional ground path to your intercom and radio, and in my opinion the chances of being able to get a decent audio feed without introducing the inevitable buzzes and burps created by digital electronics is very low. It’ll probably interfere with your radio transmissions as well.  You can buy ground-loop filters, how effective they might be is anybody’s guess, and I am not interested in experiments, so I went for the only possible certain solution of transformer isolation of the audio signal.  Searching through my junk box I found a telecom line isolating transformer from an old computer modem card, absolutely perfect for the job and only a 20mm cube.  These old modems turn up on Freegle frequently so you should be able to get one for free.

But having said that the audio out is the most useful feature pf PiAware, you are going to need the capability to turn it off. As I have found, your ears are full of dire warnings of imminent collisions when you are taxying around an airfield and trying to communicate with ATC. Hopefully, PiAware will at some time be able to turn off the warnings when you are on the ground, but they will remain a nuisance when on approach unless you can turn them off. I am planning to fit a mute switch, and maybe mod my intercom box so it is automatically muted for (say) 30 secs after I have pressed the PTT button, to allow for communications with ATC.

A friend has suggested that it would be just as effective to have a flashing light on the dash instead of audible warning, and I agree. I am sure it would be easy for PiAware to code this, as a simultaneous warning with the audio output, I am inclined to ask for it.  There are spare outputs from the Raspberry Pi which are routed to an expansion port on the Pi Aware board, it would be easy to connect a cheapo relay board to this port and much easier to implement a flashing LED than the audio solution. If they wanted to be really helpful, they could have a low flash rate for the low priority alerts and a high flash rate for the important ones. And no interference with your important radio calls.  How about it?

5. Software upgrades
With a permanently installed box (albeit still only fixed with Velcro) I was wary about the ease of software upgrades. The “network” method is not practical.  But the USB Dongle method worked a treat. The “spare” USB socket is out of reach, and I was intending to put a socket on the side of my box, but I ran out of room. In the end I just left a short flying lead with the USB socket on the end.

6 The “Radar” display screen
Do you like it? I think it’s great fun, you can run it on your phone at the same time as your mapping on your tablet. Being only black-and-white display, I thought it would be amusing to see if it would run on a Kindle with e-ink display (and a web browser), which has the perfect sunlight-readable display for monochrome.  But my Kindle won’t connect to the WiFi hotspot. I wonder why? Please try it out and let me know if yours is different.

So I have my system all working; range is great, now all I need is the rest of the light aircraft fleet to fit their own. I have to say that some of the “meccano” aspects of PiAware need to be resolved before this is likely. But I’ve done my bit. Look out for me on your screens G-MYLN. Safe flying..

PS if you are interested to see my single-box solution with amp and power supply  I have posted some photos here (with the lid off). You won’t be impressed, it’s only built on stripboard, but hey it worked first time!, raw 12V in, amplified audio out, antennas built in. This is what PiAware SHOULD be shipping.

http://www.ge.tt/1dkF6Lp2



PaulSS

Re: A Single Box PiAware
« Reply #1 on: April 09, 2018, 01:28:25 am »
Hi John,

A very detailed write-up and I'm glad you managed to put your considerable knowledge to good use in the construction of your PAW system. There are a lot of threads in this forum that discuss many of your points but they tend to be more for people like me who wouldn't know where to stick a capacitor, even if it sat in front of me with an arrow pointing to the board.

That the PAW is a bit 'Meccano' is probably fair (if a trifle disingenuous) but the guys have managed to do a fantastic job in keeping costs down by having it thus and, therefore, enabling more people to be able to afford the kit and put more electronic eyes in the sky. If they were to have to employ a manufacturing process rather than a plug-n-play philosophy then I'm quite sure the unit price would go up and many people would not bother. I have to say I like the ability to be able to swap out components for other gadgets but I can only do that because of the 'Meccano' construction. Getting a different ADSB dongle from Amazon and slotting it into the box is something even I can do....hand me a soldering iron and it gets very messy  :(

The boxes for PAW have been discussed and you'll find the threads on here easily by using the search function. Some people have gone for the sandwich box option, others modify (or not) Stratux boxes and there are a couple of very nice containers built on 3D printers. There are some very inventive people around these parts and the beauty of the 'Meccano' approach is that one bloke might be able to design his own box to fit his Scroggins Microlight with space for only a sandwich box, whereas if PAW came ready wrapped in a box that is, for instance, the same dimensions as your own then it may well not fit.

The power supply issue is often a topic for conversation here and it clearly causes issues when the uninformed, such as I, do things other than we're told to  :) Fortunately there are other clever people around to rescue us. I will be fitting a permanent installation but instead of wiring straight into the aircraft power I'll be using the USB power lead (over a short distance) but with the power supplied courtesy of a Charge4 power supply (http://www.charge4.co.uk). One of the clever people mentioned above hangs out around these hallowed Internet halls and is the inventor/maker of these things, which are specifically designed to get rid of all that nasty noise. I'm sure you and he could have a very interesting conversation about wiggly amps and such but for me it means I don't have to start ordering things I know nothing about from China, soldering them in the wrong place and making a pigs ear of it all. I can simply add a box like this to my Meccano set and not only will it work and be nice and quiet while it does so but I can also use it for my iPad etc and still remain static-free. Another important consideration is that of portability. It's fine for those who want to fit their PAW into their aircraft as a permanent fixture but I'm sure the vast majority of people will be hiring aircraft etc and need to be able to either use their already-charged battery or be able to plug it into the club aircraft's cigarette charger/USB slot.

The antennas topic is very interesting and I have gone round and round in circles over it. I have all sorts of options ready for me to try (because I'm an impatient git and have to get things NOW) and it will be very telling what does and doesn't work. Suffice to say, I think it is worth reading the threads on this forum because some of the thinking seems to be at odds with what you've written. Or, more probably, I've read something incorrectly again  ;D

I don't think anyone will disagree with your comments on the audio volume outputs and there are a few threads about that as well. Mixers have been used, incorporating on/off switches etc and a few other electrical boxes that involve the dreaded soldering iron again. I'm sure a permanent solution does need to be found for this but, fortunately, there are some decent work-arounds as well. You can plug a Bluetooth transmitter into the 3.5mm jack and pipe the audio to your Bluetooth headset or even run a 3.5mm extension from the PAW to an aux input that many headsets have nowadays. I'm still waiting for Sky Demon to have vocal audio (which is in the pipeline according to Tim) and that will be fantastic. The same PAW warnings will be transmitted through SD and I'll just Bluetooth my headset to my iPad to hear all. The beauty of that is once I'm in the circuit I'll just turn the Bluetooth off or turn the volume right down on my iPad. No panel switches, no mixers, no wires  ;D

By the way, your observations on ground loops are obviously correct and this topic has done the rounds as well. From memory, all the cases so far have been resolved with very simple in-line ground loop isolators. They're cheap and they seem to work, so no need to experiment  ;)

I certainly hope you'll continue to hang around these parts and give us the benefit of your knowledge and skills. I've learnt a lot from reading the various topics here and value the input from guys like you who know what they're talking about. It will be very interesting to see if the PAW gurus have comments to make on your points as then I might even learn some more  :o
« Last Edit: April 09, 2018, 01:30:15 am by PaulSS »

Ian Melville

Re: A Single Box PiAware
« Reply #2 on: April 09, 2018, 06:35:45 am »
Hi John,
I can only see the thumbnail for your photos, the download does not work for me? How big is that case, looks quite large?

That's a good write up and I would broadly agree with findings. I have not had any issues with switched mode voltage converters, but Then I have stuck with the recommendations. They may cost a bit more but do the job. Chucking out 10w as hot air is not an option as I run on batteries.
I don't see the point of LEDs to replace the audio warnings. PAW team are keen to stop pilots being 'eyes-in' and LEDs will encourage that? The mute switch is possible the best solution, though I don't think there is a winning solution here.

AlanG

Re: A Single Box PiAware
« Reply #3 on: April 09, 2018, 06:04:15 pm »
Hi John

I really appreciate the time you have taken to give this full and frank write up of your journey with your PAW unit.  Whilst a lot of your points are quite valid, as PaulSS has said most, if not all, have been thoroughly kicked about in this forum on previous occasions.
The unit has previously been compared to an explosion in a now defunct electronics company but is no more deserving of this than your comments regarding it being a Meccano set.
The original conception was of a simple, inexpensive unit that can be carried on to just about any aircraft and provide a very cost effective EC capability that did not require any Permit or CofA mods in the hope that it would be attractive to as many pilots as possible.
A hell of a lot of peoples free time and effort has gone into getting this ingenious piece of equipment to the stage that it is now at.   
I've been involved with this project, (as a user and voluntary tester,) for about 2 years and was one of the early birds that ordered all the bits from the internet and put it together myself. I then purchased one of the Classic units when they became available and this has been rattling around in my Flexwing pod (not renowned for their suspension qualities,) since then and nothing has ever come loose.  Initially this was just as it came out of the box sitting on top of the pod behind the windscreen with the attached Pi3 antenna, and the SDR dipole velcroed to the pod.  This received PAW traffic from 20 miles plus and ADS-B traffic from one side of Scotland to the other so I disagree with your comments about the supplied antennas.
I have since permanently mounted the unit, with velcro, inside the pod and purchased the alternative dipole antenna from PilotAware Hardware and attached this to the side of my windscreen with excellent results. 
I use the recommended Anker Power Drive  direct from the aircraft 12volt and this also powers my tablet and a small audio mixer to get the audio from both into my Trigg intercom, which has inbuilt "Mute" for when the radio is in tx/rx,
So you will see that my set-up is a little different from yours and this is the beauty of the PilotAware system.  It is fairly easily adaptable to the myriad of different aircraft that can use it.
With all of the above in mind I have to agree with Paul that your remarks as to what should or should not be supplied as standard with a PilotAware unit are indeed disingenuous would add considerable cost to production and therefore increase the price to the consumer for features they do not need and therefore defeat the object of getting as many as possible out there to improve safety for all of us.

Regards
Alan
« Last Edit: April 09, 2018, 07:18:53 pm by AlanG »