Hacking The Raspberry Pi WiFi Antenna For More DB

I’ve been testing out the Raspberry Pi 3, and one thing I have found is that the WiFi antenna that was added in this new model is not especially good: the Pi has trouble connecting to my WiFi network in places that other devices have no issues. That’s not surprising, because the antenna on the Pi 3 is tiny: mounted right next to the display connector, it is just a few millimeters wide. [Ward] at DorkbotPDX agrees, so he decided to look into adding a better antenna by adding an external connector.

He tried two approaches: replacing the antenna with a tail connector, and adding a U.FL connector to the unused solder pads on the board. Both require some delicate soldering work, so they aren’t approached lightly. Replacing the antenna with an external connector produced a significant increase in signal output, which should equate with more range for the WiFi connection.

It is also interesting to note that the Pi 3 has solder pads on the board to add an external antenna connector, but that they are not used. Plus, one of the solder pads is covered by solder mask. Using these is the second approach that [Ward] used, soldering on a U.FL connector and connecting that to a small rubber duckie antenna. Again, this proved more efficient, increasing the power output of the antenna significantly.

NOTE: This hack definitely falls into “Don’t try this at home” territory. Messing with antennas voids the warranty and FCC certification for the Pi, and can cause all sorts of signal-related unpleasantness if you aren’t careful.

38 thoughts on “Hacking The Raspberry Pi WiFi Antenna For More DB

  1. I’m now looking at my Pi3. Apparently, adding the second ground pad would trigger DRC or something. However, it seems that you need to desolder a 0402 resistor/cap and then solder it slightly differently for u.FL pad to get enabled. Not for most of us, though I could do it if I really really needed.
    BTW, does the radio support monitor mode? Somebody please do “iw list | grep -A8 modes” and post it here.

    1. If you have a pi3, why do you need our output?

      Supported interface modes:
      * IBSS
      * managed
      * AP
      * P2P-client
      * P2P-GO
      * P2P-device
      Band 1:
      Capabilities: 0x1020

      software interface modes (can always be added):
      valid interface combinations:
      * #{ IBSS, managed, AP } <= 2, #{ P2P-client, P2P-GO } <= 1, #{ P2P-device } <= 1,
      total <= 3, #channels <= 2
      Device supports scan flush.

      1. Lack of resources =) I’ve got 2 Pis running at my workdesk right now, they’re doing important tasks and can’t be turned off, and they currently use all the cards with working images, as well as occupy all the HDMI inputs I have. I’m also short on keyboards&mice. Thanks for the answer!

    1. I suppose if you bridge the wrong traces or overheat a component, you could kill the device or certain capabilities of it. It’s a fair warning.

      Oh, and the FCC could kick down your door, though that is an exceedingly remote possibility. :P

      1. Its a low cost board, I would argue that the simple learning experience of trying it and failing is more than worth the $35 but you would have to be quite retarded to screw it up. These boiler-plate disclaimers do nothing to improve the community and when improperly used the artificially discourage people from experimenting and learning.

        1. “I would argue that the simple learning experience of trying it and failing is more than worth the $35” — It’s all fine and dandy if you’re swimming in cash, but don’t assume everyone else is, too. Also, it’s not $35 everywhere, like e.g. here in Finland it’s closer to $45 + shipping if ordered from an out-of-country location, and $66 if ordered from a Finnish store.

      1. Yes, but he didn’t say you couldn’t try it at a friend’s house. Or at the park. Or dangling from a cliff. Or while sky-diving. Or scuba diving. In fact, when you think about it, he was actually quite restrained with his disclaimer.

    2. The safety of the Pi is at risk if the person attempting to do the modifications is incompetent at working with boards and components at the scale of size. Unlikely that this mode would affect the FCC certification I haven’t read the applicable FCC regulations to know if this would be in violation of those. Those two things are something most who are subject to FCC regulation doing this mod would think about. No doubt those who say they don’t care about the regulations would be the first to call the FCC if another’s carelessness louse’s up their WiFi use.

  2. It makes me wonder, why they designed a place to solder a proper connector, but didn’t connect it and added a solder mask over it in the first place? They should just put a space for that connector and connect it to Wi-Fi module or if FCC has problems with that, add two pads that can be bridged with solder or solder and piece of wire to enable usage of proper antenna connector. And FCC can go and fork themselves in their collective bass…

    1. Maybe they thought it would work, but testing said otherwise. They could go back and change the board, but that would be another iteration. Compliance with the radio rules might men more testing after the board change, takes time and money. Maybe they anticipated problems, so the potential is built in, but one “can’t” be used. Maybe they decided it was simpler or cheaper to have just the built in antenna, considering many don’t have solder skills, especially at microwave frequencies.

      It’s never been uncommon to lay out boards which can have various options or different size components, so one board will fit. I suppose it might be les common today with the whole thing being redone for each product run since the main components may not be available, but in the past you didn’t want things held up because you were waiting for capacitors with the right spacing.

      Michael

    2. I would guess that a non-populated connector is for FCC/CE/etc compliance testing and/or development. Compliance testing requires conducted power measurements and the samples are prepared in one of the two ways shown here (unless it has a real RF connectors, but I’m thinking anything with a chip antenna will not). You can probably rotate that resistor to connect the u.fl to the antenna as well, hook the thing up to your VNA and do a little antenna matching.

      1. Both of those are distinct possibilities. It makes an excellent point for connecting in a coax probe for antenna tuning and for conducted measurements. It’s possible that the convenient fit with a u.FL connector is just coincidental. I didn’t bother looking at the built-in antenna’s tuning with my VNA, but I assume the designers have done their job there. There is a shunt 1.5 or 1.8pF cap near the antenna feedpoint, so they’ve done some tuning for sure. The second zero-ohm stuff is almost certainly there in case an L-network was needed.

    3. Sorry that’s representative an attitude that could wreck a good thing. For profit companies looking to serve the larger general population, working withe the FCC to create a license free radio service is why the DIY community has access to affordable RF modifiable RF equipment. That equipment wouldn’t be available at current prices, Cost would me much higher if the market consisted of the DIY segment of society. S For me it looks to a bit arrogant or ignorant to bash the FCC on this, where they could have denied type acceptance saying the design is easily modifiable from the product that would be granted type acceptance. S it is the Pi 3 I think the old timey term for attitude and arrogance so often displayed here at HAD is don’t look a gift horse in the mouth.

        1. That’s probably just a zero-ohm jumper to connect the internal antenna.
          With it removed the connector should be okay.
          I’ve done a similar operation on an Ouya game console where I removed an internal jumper and it set the stage so to speak for the connector installation.
          The connector install wasn’t all that bad and the performance increase from using an external antenna was notable.
          Too bad the Ouya was doomed to failure, but that is a tale for another time…

    1. Yes, it does. RF stuff doesn’t really like being paralleled; by putting a connector on the transmission line with the onboard antenna in place you’re essentially putting two 50 ohm* loads in parallel and presenting a 25 ohm load to the radio. Not only will each only get a portion of the power, the transmitter will see an impedance it’s not designed for. But give it a shot, that’s what hacking’s all about. Physics and engineering aside, the goal is to improve performance, and if the performance is improved then you win.

      *The antenna is likely a bit off from 50 ohms, even after tuning. They all are.

      1. This^
        I see similar mistakes made with RC transmitters where people think just soldering on random wires will make it work better, but one has to be taught antenna theory to put it into practice so makeshifts abound.
        I would disconnect that internal antenna and just go with the external connection as external antennas are always always better than internal antennas. -Always, no shit.

        I was going to add that prepping the coax cable for soldering can be really easy: The trick is to trim it, tin the braid part and then let it cool down completely so that the cable insulation isn’t stressed by constant heat and movement.

Leave a Reply to Kris JacobsCancel reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.