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?
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-
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).
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));
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?
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:
First I run the program (with internal antenna wifi conn), and the program set External Antenna
I install my photon in a place that has no signal for internal antenna.
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.
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?