Custom ESP32 board WiFi connection issues
Posted: Thu Mar 18, 2021 6:34 pm
Hello everyone,
I have a custom PCB I've designed that makes use of an ESP32 as both the MCU and a WiFi chip. Am currently trying to get it to connect to an ESP32 WROOM dev kit via WiFi, and I've tried a lot of different configurations with no luck. I'm asking for a rubber ducky to bounce my tests off of, and give any feedback/criticism/advice. Below is a chronological description of the tests I've ran, with a TL;DR at the bottom.
TEST1:
As a sanity check, I've gotten two dev kits to connect. One I set up with the Espressif example code for being an access point (AP), and the other is set up with the Espressif example code for being a station. The dev kits successfully establish a network and connect to each other: great! As expected. Firmware seems functional out of the box.
TEST2:
Next I flash the station code to my board, and the ESP32 gets stuck in a loop, as seen below, and times out.
https://media.discordapp.net/attachment ... height=702
TEST3:
If I flash my board with the AP code, it thinks that it successfully sets up the network, but the network isn't visible on anything (not on the dev kits, nor my cellphone, etc.). This leads me to believe its a HW issue, possibly with the antenna, or matching network.
TEST4:
I used a Particle Argon board to test both antennas (both are PCB antennas on 10cm micro-coax cables), and the Argon can connect to WiFi using both antennas, so I think the antennas are fine. I used the Argon since it uses an ESP32 as its WiFi slave.
QUICK COMMENT:
The next item to check off was the antenna matching network. I designed one according to the ESP32 datasheet, which suggested a CLC pi matching network. Using some online tools I made one. With the wireless not working though, I decided to open up one of the dev kits, and I noticed they use a LCC matching network, or more accurately a tapped capacitor matching network .
REWORK + TEST5:
Fearing my matching was shit, I ripped the dev kits and soldered it to my board. Still though, same results as before: as a station it times out, and as an AP it thinks the network is up, but it can't be seen anywhere.
CONCLUSION:
At this point I'm hesitant to replace the ESP32 chip, since it works in every other way EXCEPT WiFi, so I have a hard time believing only the LNA_IN pin is busted. This being said, what else could it be? The firmware seems to work, the antennas seem to work, and the matching network seemed to work.
Any suggestions/ideas are welcome. I can also provide schematics/PCB pics/IRL pictures and have access to a scope if needed.
TL;DR pretty sure firmware works, pretty sure ESP32 ok, pretty sure matching network is ok, and pretty sure antennas are ok... any help figuring out any possible issues is appreciated
I have a custom PCB I've designed that makes use of an ESP32 as both the MCU and a WiFi chip. Am currently trying to get it to connect to an ESP32 WROOM dev kit via WiFi, and I've tried a lot of different configurations with no luck. I'm asking for a rubber ducky to bounce my tests off of, and give any feedback/criticism/advice. Below is a chronological description of the tests I've ran, with a TL;DR at the bottom.
TEST1:
As a sanity check, I've gotten two dev kits to connect. One I set up with the Espressif example code for being an access point (AP), and the other is set up with the Espressif example code for being a station. The dev kits successfully establish a network and connect to each other: great! As expected. Firmware seems functional out of the box.
TEST2:
Next I flash the station code to my board, and the ESP32 gets stuck in a loop, as seen below, and times out.
https://media.discordapp.net/attachment ... height=702
TEST3:
If I flash my board with the AP code, it thinks that it successfully sets up the network, but the network isn't visible on anything (not on the dev kits, nor my cellphone, etc.). This leads me to believe its a HW issue, possibly with the antenna, or matching network.
TEST4:
I used a Particle Argon board to test both antennas (both are PCB antennas on 10cm micro-coax cables), and the Argon can connect to WiFi using both antennas, so I think the antennas are fine. I used the Argon since it uses an ESP32 as its WiFi slave.
QUICK COMMENT:
The next item to check off was the antenna matching network. I designed one according to the ESP32 datasheet, which suggested a CLC pi matching network. Using some online tools I made one. With the wireless not working though, I decided to open up one of the dev kits, and I noticed they use a LCC matching network, or more accurately a tapped capacitor matching network .
REWORK + TEST5:
Fearing my matching was shit, I ripped the dev kits and soldered it to my board. Still though, same results as before: as a station it times out, and as an AP it thinks the network is up, but it can't be seen anywhere.
CONCLUSION:
At this point I'm hesitant to replace the ESP32 chip, since it works in every other way EXCEPT WiFi, so I have a hard time believing only the LNA_IN pin is busted. This being said, what else could it be? The firmware seems to work, the antennas seem to work, and the matching network seemed to work.
Any suggestions/ideas are welcome. I can also provide schematics/PCB pics/IRL pictures and have access to a scope if needed.
TL;DR pretty sure firmware works, pretty sure ESP32 ok, pretty sure matching network is ok, and pretty sure antennas are ok... any help figuring out any possible issues is appreciated