This was for a new project that I thought might be a bit ‘iffy’ signal strength wise but unfortunately I did not do a baseline test without the antenna first. I can say it is working well.
This sensor is surrounded by metal (sink and dishwasher).
I did try something similar on a PiZero and actually found the external antenna gave less signal strength but I think it’s because the SMA lead I used was really long! Luckily I was able to reverse my mods, and the PCB antenna was good enough.
This could be really handy method for mounting ESP modules inside metal appliances also, just make a small hole for the SMA connector.
Just wanted to add one more:
I found a TYWE3S module in a Tuya plug and replaced the PCB antenna with an external one. The approach is basically the same as in @tom_l’s original post, but the PCB antenna is mirrored on the TYWE3S.
I don’t have a before-after comparison. In my case the plug is used behind the pool where there is absolutely no Wifi signal, but with the above modification I could install an external antenna about 1 metre above the pool water level and ESPHome now reports around -72 dB signal strength.
Also worth pointing out that this is kind of illegal. Now that the device’s effective radiated power has changed the FCC certification is no longer valid.
In this case it’s probably ok as it is a long way from my property boundary and the signal drops off to the noise floor before it gets there.
Scratch away some of the insulation from the on-board antenna. Connect the signal/core of your coax to this point using solder, and be very short/neat about the connection. Connect the shield/ground of the coax to GND on your board. There ya go!
I modded a MagicHome RGB LED strip controller tonight and embedded it inside the metal case of a cheap RGB led floodlight.
Rather than cut the antenna cable, I scraped away the solder mask on the antenna trace, and the ground plane and added a surface mount UFL connector.
After I (succesfully, mind you) modded a standard D1 Mini with an antenna flylead, I now use D1 Mini Pros when I need an external antenna, as that already has the socket in place. Still need to move a super-tiny 0603-size zero ohm resistor from one set of pads to another though.
Did you measure the signal before and after the mod? What kind of results did you get?
I have been doing more research on this and on the board you have both traces are connected. So, ‘the experts’ are claiming that you need to connect one wire of the external antenna to ground on the board and the other wire of the external antenna to the antenna trace on the board. Do you have any comments about that?