树梅派wifi天线改造

origin:https://www.dorkbotpdx.org/blog/wramsdell/external_antenna_modifications_for_the_raspberry_pi_3

Preface:

This post will detail a couple of different ways that an external antenna can be added to the Raspberry Pi 3.

DO NOT TRY THIS AT HOME.  ALL OF THE FOLLOWING WILL HAPPEN:
1) YOU WILL VOID YOUR WARRANTY
2) YOU WILL VIOLATE FCC REGULATIONS
3) THE PI'S WI-FI CERTIFICATION WILL BE VOID
IN ADDITION, YOU COULD EASILY DAMAGE YOUR PI

Please view this as a purely experimental exercise and proceed at your own risk.

It's not clear why an external antenna is not an option for the Pi 3, there are a number of possible reasons and I don't presume to know the Raspberry Pi Foundation's exact rationale.  It could be to improve the out-of-box experience, an integrated antenna "just works" and there's no potential for the antenna connector to be broken plugging in an antenna.  It could be to reduce complexity, the unit with an integrated antenna is compact and self-contained.  It could be for regulatory reasons: in order to sell the device for use with a user-supplied antenna, the performance characteristics of that antenna need to be specified as part of the user instructions, and those characteristics must be adhered to in order to maintain compliance.  Good luck with that.

Overview:

There are two basic approaches to adding a connector for an external antenna: remove the onboard antenna on the top side of the board and solder a coaxial pigtail in its place, or use the supplied pads on the bottom side and mount a U.FL connector.  The first approach is much easier and can likely be accomplished with few special tools aside from a good soldering iron; however it results in compromised performance.  The second approach involves precision soldering and is best attempted with strong magnification and a very fine soldering iron tip.  Do not attempt it unless you're comfortable working with 0201 components (0.020" by 0.010", about the width of two and a half human hairs).  It does result in substantially improved performance as compared to the top mount approach.

Top mount:

Start by removing the onboard antenna.  Soldering tweezers or a heat gun can be used, or a well-tinned soldering iron with a sufficiently large tip.  After removal, the board will look like this:

Raspberry Pi 3 top view #1, showing coaxial attachment point

Note that some soldermask will need to be cleared away to attach the coax's shield, as seen to the left in the image.  Next, prepare the coax tail.  Strip the outer insulation back ~0.150" (3.75mm), tin the shield, then trim the shield back about 0.100" (2.5mm), finally, strip the center conductor about 0.050" (1.25mm) from the end.  Solder the shield to the groundplane, and the center conductor to the antenna feed pad.  The finished result will look like this:

Top view #2, showing the coax attached

The finished product, with coaxial "tail" attached will look like ths:

Finished top view

U.FL Connector:

Mounting a U.FL connector to the board is straightforward for those with experience working with miniscule surface mount devices.  It involves clearing some soldermask and rotating one zero-ohm resistor.

Here is a U.FL connector overlaid on the provided pads:

Raspberry Pi bottom view, showing U.FL connector overlaid on the provided mounting pads

Note that while the U.FL connector fits very well on the two exposed pads, there's soldermask covering the area where one of the leads falls.  While you could just solder the two exposed pins, for mechanical robustness and optimal RF performance it's best to clear out that solder mask and solder the lead.  After mounting the U.FL, rotate the resistor nearest the output filter, the large white device in the bottom of the image, 45 degrees to the left.  The result will look like this:

Raspberry Pi 3 bottom view #3: U.FL connector mounted

Be careful not to short ground to the header pin just above the connector.

Another approach would be to cut the output trace leading to the antenna and add a solder blob to bridge the output trace to the trace leading to the U.FL connector.  I haven't tried this, but I don't see any reason it wouldn't work, though likely with some adverse impact on the RF performance.

Performance:

I configured my Raspberry Pi 3 as an access point following the excellent instructions here:
https://learn.adafruit.com/downloads/pdf/setting-up-a-raspberry-pi-as-a-wifi-access-point.pdf

After completing the steps in that procedure and rebooting, I was able to connect to the Pi with my Android phone.  Using a spectrum analyzer with an attached rubber duckie antenna, I was able to observe the AP beacon packets being transmitted.  I captured the transmitted beacon spectrum at channels 1, 6, and 11 (2412, 2437, and 2462 MHz), then moved on to conducted measurements.

I observed the conducted output power of the Pi using a Tektronix MDO4000-series mixed-domain oscilloscope, using an RF power trigger on the beacon packets.  Power measurements were calibrated to an HP 8481D power sensor.  The observed RF output powers are shown below:

ChannelFrequencyCoaxial tail output powerU.FL output power
12412 MHz14.13 dBm15.98 dBm
62437 MHz13.67 dBm16.15 dBm
112462 MHz13.47 dBm16.39 dBm

The U.FL numbers are consistently 2-3 dBm higher, almost a doubling in conducted power at the high end of the band.  This is due to the massive impedance discontinuities presented by the antenna feed trace and the exposed center conductor of the coaxial cable.  While it's likely possible to recoup some of that with RF tuning using the series and shunt placements in the RF path, at that point it makes more sense to go to the U.FL connector approach.  A comparison of the output spectra is shown below, with no compensation applied (hence the radiated power is much lower than the conducted powers).  All graphs use a resolution bandwidth of 10 kHz.

Output power comparison

A normalized graph showing the relative spectral regrowth is below.

Spectral regrowth of the three approaches

This graph is useful for comparing the in-band noise performance of the various approaches.  The onboard antenna fares the worst close-in to the carrier, likely due to either fundamental mismatch or poor harmonic termination impacting power amplifier linearity.  Further out the spectra become more comparable.  The violating spikes are transient in nature, not part of the modulated waveform.  Also, the resolution bandwidth used here is incorrect, it should be 100 kHz for 802.11 spectral mask measurement.

Future Work:

No attempt has been made to characterize out-of-band performance, or performance with any particular make or model of external antenna.  A more comprehensive review of spurious and harmonic emissions is advised.  Also, while it's likely that the U.FL and coaxial cable approaches lead to satisfactory WLAN performance, further analysis of adjacent channel power and error vector magnitude would be wise.


智慧旅游解决方案利用云计算、物联网和移动互联网技术,通过便携终端设备,实现对旅游资源、经济、活动和旅游者信息的智能感知和发布。这种技术的应用旨在提升游客在旅游各个环节的体验,使他们能够轻松获取信息、规划行程、预订票务和安排食宿。智慧旅游平台为旅游管理部门、企业和游客提供服务,包括政策发布、行政管理、景区安全、游客流量统计分析、投诉反馈等。此外,平台还提供广告促销、库存信息、景点介绍、电子门票、社交互动等功能。 智慧旅游的建设规划得到了国家政策的支持,如《国家中长期科技发展规划纲要》和国务院的《关于加快发展旅游业的意见》,这些政策强调了旅游信息服务平台的建设和信息化服务的重要性。随着技术的成熟和政策环境的优化,智慧旅游的时机已经到来。 智慧旅游平台采用SaaS、PaaS和IaaS等云服务模式,提供简化的软件开发、测试和部署环境,实现资源的按需配置和快速部署。这些服务模式支持旅游企业、消费者和管理部门开发高性能、高可扩展的应用服务。平台还整合了旅游信息资源,提供了丰富的旅游产品创意平台和统一的旅游综合信息库。 智慧旅游融合应用面向游客和景区景点主管机构,提供无线城市门户、智能导游、智能门票及优惠券、景区综合安防、车辆及停车场管理等服务。这些应用通过物联网和云计算技术,实现了旅游服务的智能化、个性化和协同化,提高了旅游服务的自由度和信息共享的动态性。 智慧旅游的发展标志着旅游信息化建设的智能化和应用多样化趋势,多种技术和应用交叉渗透至旅游行业的各个方面,预示着全面的智慧旅游时代已经到来。智慧旅游不仅提升了游客的旅游体验,也为旅游管理和服务提供了高效的技术支持。
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值