The ESP32-CAM has the option to use either the built-in PCB antenna or an external antenna as the one shown in the following figure.

Next to the IPEX connector, there are three little white squares laid out like a “<” with the middle position being common. There is a resistor selecting the desired antenna. Here are the two configurations:
- To use the IPEX connector with an external antenna, the resistor must be on the bottom position, like this “”. See the illustration below;
- To use the PCB antenna (onboard antenna), the resistor must be in the top position, like this “/”.

Take a look at your board to see if it is set to use the onboard antenna or the IPEX connector. Using the onboard antenna works well if you are close to your router. We recommend using the IPEX connector with an external antenna for better results.
Projects with video streaming crash frequently when you don’t use an external antenna due to poor connectivity. So, make sure you get one to have your projects working reliably.
To enable or disable the onboard antenna, you just need to unsolder that resistor and solder it in the desired configuration. You can also drop some solder to connect those points (you don’t necessarily need to add the resistor as long as the pads are connected).
Note: You can’t use the two antennas at the same time, so you can only have one connection for the antenna.