# External Antenna

**URL:** <https://community.particle.io/t/external-antenna/26204>\
**Category:** General\
**Created:** [September 30, 2016, 7:25pm UTC](https://community.particle.io/t/external-antenna/26204 "2016-09-30T19:25:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rolecram](https://avatars.discourse-cdn.com/v4/letter/r/3e96dc/32.png) [@rolecram](https://community.particle.io/u/rolecram)\
**Post date:** [September 30, 2016, 7:25pm UTC](https://community.particle.io/t/external-antenna/26204/1 "2016-09-30T19:25:02Z")

</div>

Hi photon fellows:

I need to install a Photon in a place with almost no WiFi signal.  
My idea is to connect to the photon an external antenna (4 meters of cable aprox). Is it possible?. Is there an standard connector for an external antenna in the microcontroller?

On the other hand, if I connect an external antenna, is it neccesary to specify it in the program code?

thank you in advance.

Marcelo

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [September 30, 2016, 8:10pm UTC](https://community.particle.io/t/external-antenna/26204/2 "2016-09-30T20:10:37Z")

</div>

Yes, the uFL connector on the Photon is an industry standard.  
But no, you can’t just connect any old cable as antenna, you need an antenna that’s suitable for 2.4GHz WiFi.  
The command to switch antenna is documented here  
[https://docs.particle.io/reference/firmware/photon/#selectantenna-](https://docs.particle.io/reference/firmware/photon/#selectantenna-)

---

<div class="post-metadata">

**Author:** ![rolecram](https://avatars.discourse-cdn.com/v4/letter/r/3e96dc/32.png) [@rolecram](https://community.particle.io/u/rolecram)\
**Post date:** [October 4, 2016, 1:44pm UTC](https://community.particle.io/t/external-antenna/26204/3 "2016-10-04T13:44:23Z")

</div>

ScruffR:  
Thank you so much for your answer.

I found an adapter cable from RP-SMA to uFL. from Adafruit.  
[product view](https://www.adafruit.com/products/852)

Now, my questions are:

1. The uFL connector is mechanical enchase into the photon connector of it must be weld on it?
2. If I use an external antenna. Is there something to unweld on photon (i.e. the internal antenna) or by code I just select which antenna to use
3. The anntena cable can have 10 meters long? (coaxil cable?)

thank you  
marcelo

---

<div class="post-metadata">

**Author:** ![bko](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/bko/32/20704_2.png) [@bko](https://community.particle.io/u/bko)\
**Post date:** [October 4, 2016, 1:52pm UTC](https://community.particle.io/t/external-antenna/26204/4 "2016-10-04T13:52:23Z")

</div>

The uFL connector is a tight press-fit connector. No soldering is needed.

You select the external antenna in software on a Photon and the setting is “sticky” so that the Photon will try to use the external antenna from that time on.

An antenna cable length of 10 meters is probably too long unless the antenna is an “active” antenna that has a built-in amplifier (which requires power to the antenna).

---

<div class="post-metadata">

**Author:** ![rolecram](https://avatars.discourse-cdn.com/v4/letter/r/3e96dc/32.png) [@rolecram](https://community.particle.io/u/rolecram)\
**Post date:** [October 5, 2016, 12:35pm UTC](https://community.particle.io/t/external-antenna/26204/5 "2016-10-05T12:35:05Z")

</div>

Thanks so much bko.

You said:

_You select the external antenna in software on a Photon and the setting is “sticky” so that the Photon will try to use the external antenna from that time on._

It means that if I put in my program:

STARTUP(WiFi.selectAntenna(ANT\_EXTERNAL));

1. After that, not matter if I upload another program from particle portal (it means load and reset the photon) continue to receive from external antenna?

2. On the post: [Add external antenna to chip-antenna core?](https://community.particle.io/t/add-external-antenna-to-chip-antenna-core/2769) you found the following question and answer.

_if I remove the L1 inductor, does that disable the chip antenna? I’d like to be able to use either the uFL or chip antenna_

_You can’t use both, sorry. The antenna matching circuit only supports one or the other._

The point is:

1. First I run the program (with internal antenna wifi conn), and the program set External Antenna
2. I install my photon in a place that has no signal for internal antenna.
3. Perhaps, I have to load a new version of program to it. (it implies photon reset). I need, when the photon try to connecto to wifi use the external antenna.

Thank you very much,  
marcelo

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [October 5, 2016, 1:09pm UTC](https://community.particle.io/t/external-antenna/26204/6 "2016-10-05T13:09:30Z")

</div>

> [@rolecram](#):
>
> if I remove the L1 inductor, does that disable the chip antenna? I'd like to be able to use either the uFL or chip antenna

That refers to the Spark Core which was available as either chip _or_ uFL version, but Photons come with support for both.

---

<div class="post-metadata">

**Author:** ![bloukingfisher](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/bloukingfisher/32/11573_2.png) [@bloukingfisher](https://community.particle.io/u/bloukingfisher)\
**Post date:** [October 5, 2016, 10:03pm UTC](https://community.particle.io/t/external-antenna/26204/7 "2016-10-05T22:03:55Z")

</div>

What is the reason for the proposed 4m or 10 meter long antenna cable? Have you used another device such as a cellphone and observed significant differences in signal strength between the installation location and proposed antenna location?

Also take a look at getting the signal strength (see [https://docs.particle.io/reference/firmware/photon/#rssi-](https://docs.particle.io/reference/firmware/photon/#rssi-) ) so if it obtains a connection you can evaluate changes in signal strength as you make adaptations.

Not sure about your situation but the other alternative is use a WiFi extender to provide better signal at the location.
