Board to select for esp32C3

Hello,

I am using one of the ESP32C3 based boards with the build in 0.42" OLED display...
( https://fr.aliexpress.com/item/1005007448048350.html )

But I am unable to get any wifi working. Using the Arduino WiFiClient example, I am able to successfully connect using a "ESP32C3 super mini board" (without the LCD), but if I try the same program on the board with the LCD, it does not work...

Does anyone have any idea what I might be missing?

Thanks,
Cyrille

Often with those 'special' boards there are samples, maybe libraries or even boards files. You will probably not find them on AE, you will need to go to the manufacturer/designer web site.

Did you read the comments

Only flaw must be close to the AP otherwise it will not connect to the WiFi.

1 Like

I moved your topic to a more appropriate forum category @brebisson.

The Nano ESP32 category you chose is only used for discussions directly related to the Arduino Nano ESP32 board.

In the future, please take the time to pick the forum category that best suits the subject of your question. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is the third time I've had to ask you to select an appropriate category for your topics. Please pay attention! If polite requests won't cause you to behave in a responsible manner then we will be forced to resort to an account suspension. I don't want to do that and I'm sure you don't want it either.

Thanks in advance for your cooperation.

Hello,

Unfortunately, I have not managed to find anything...
Of course the AliExpress seller is of no use...
I have found some similar boards on other website, but none of them have pointers to any libraries...
Actually, this is incorrect one of them has... But the WiFi project (whichis just a copy of the standard Arduino one) it does not work either :frowning: And I ahve tried 2 of my boards...

I have no problem compiling and sending code to the board. I can get the LCD and IO pins working... but no wifi :frowning:

Is there anything that I can check? As far as I can tell the CPU pin 1 is supposed to be connected to the ceramic resonator antena.. But what about the other side of the antena? what does it connect to?

As I said in my original post, I have tried running the exact same program on an ESP32C3 super mini, from the same location in my house and it connects to the WiFi without any issues, so it is not a ssid/password issue, nor a placement issue (unless the LCD board is way worse on interferences)...

Cyrille

The Ether.

1 Like

AE won't be of any help, you need to find out who the 'normal' seller is. Post GOOD photos of each side of the board, maybe one of us recognizes it.

What do you see on the Serial monitor when running the WiFi sketch on the combo board?

Hello,

Here are some pictures....
Using the Arduino WiFi example, I get '........'
Using ESP-IDF in visual studio code (which is WAY more verbose, I get the output bellow).

The antena chip does seem to have 2 side (like a resistor), which is why I am asking what the other side is connected to...

Cyrille
ok, uploading the images did not work (unknown error), so here are links to the images:

And here is the output using esp-idf

ts\esp\v5.3.2\esp-idf\tools\idf_monitor.py' -p COM12 -b 115200 --toolchain-prefix riscv32-esp-elf- --target esp32c3 'c:\Users\cydeb\Desktop\station\build\wifi_station.elf'
--- Warning: GDB cannot open serial ports accessed as COMx
--- Using \\.\COM12 instead...
--- esp-idf-monitor 1.5.0 on \\.\COM12 115200
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
I (114) esp_image: segment 1: paddr=000280e0 vaddr=3fc934ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x40384ce4
--- 0x40384ce4: rv_utils_wait_for_intr at C:/Users/cydeb/Documents/esp/v5.3.2/esp-idf/components/riscv/include/riscv/rv_utils.h:62
 (inlined by) esp_cpu_wait_for_intr at C:/Users/cydeb/Documents/esp/v5.3.2/esp-idf/components/esp_hw_support/cpu.c:62

SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd5820,len:0x1820
load:0x403cc710,len:0xbcc
load:0x403ce710,len:0x2f5c
entry 0x403cc71a
I (24) boot: ESP-IDF v5.3.2-dirty 2nd stage bootloader
I (24) boot: compile time Jan 22 2025 17:13:58
I (25) boot: chip revision: v0.3
I (28) boot: efuse block revision: v1.1
I (32) boot.esp32c3: SPI Speed      : 80MHz
I (37) boot.esp32c3: SPI Mode       : DIO
I (42) boot.esp32c3: SPI Flash Size : 2MB
I (47) boot: Enabling RNG early entropy source...
I (52) boot: Partition Table:
I (56) boot: ## Label            Usage          Type ST Offset   Length
I (63) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (70) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (78) boot:  2 factory          factory app      00 00 00010000 00100000
I (85) boot: End of partition table
I (89) esp_image: segment 0: paddr=00010020 vaddr=3c090020 size=180b8h ( 98488) map
I (114) esp_image: segment 1: paddr=000280e0 vaddr=3fc93400 size=02df0h ( 11760) load
I (116) esp_image: segment 2: paddr=0002aed8 vaddr=40380000 size=05140h ( 20800) load
I (124) esp_image: segment 3: paddr=00030020 vaddr=42000020 size=84e34h (544308) map
I (217) esp_image: segment 4: paddr=000b4e5c vaddr=40385140 size=0e284h ( 57988) load
I (233) boot: Loaded app from partition at offset 0x10000
I (234) boot: Disabling RNG early entropy source...
I (245) cpu_start: Unicore app
I (254) cpu_start: Pro cpu start user code
I (254) cpu_start: cpu freq: 160000000 Hz
I (254) app_init: Application information:
I (257) app_init: Project name:     wifi_station
I (262) app_init: App version:      1
I (266) app_init: Compile time:     Jan 22 2025 17:13:47
I (272) app_init: ELF file SHA256:  0848dd711...
I (278) app_init: ESP-IDF:          v5.3.2-dirty
I (283) efuse_init: Min chip rev:     v0.3
I (288) efuse_init: Max chip rev:     v1.99 
I (293) efuse_init: Chip rev:         v0.3
I (297) heap_init: Initializing. RAM available for dynamic allocation:
I (305) heap_init: At 3FC9A3F0 len 00025C10 (151 KiB): RAM
I (311) heap_init: At 3FCC0000 len 0001C710 (113 KiB): Retention RAM
I (318) heap_init: At 3FCDC710 len 00002950 (10 KiB): Retention RAM
I (325) heap_init: At 50000200 len 00001DE8 (7 KiB): RTCRAM
I (332) spi_flash: detected chip: generic
I (336) spi_flash: flash io: dio
W (340) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (353) sleep: Configure to isolate all GPIO pins in sleep state
I (359) sleep: Enable automatic switching of GPIO sleep configuration
I (367) main_task: Started on CPU0
I (367) main_task: Calling app_main()
I (377) wifi station: ESP_WIFI_MODE_STA
I (377) pp: pp rom version: 9387209
I (377) net80211: net80211 rom version: 9387209
I (397) wifi:wifi driver task: 3fca2f18, prio:23, stack:6656, core=0
I (397) wifi:wifi firmware version: b0fd6006b
I (397) wifi:wifi certification version: v7.0
I (397) wifi:config NVS flash: enabled
I (397) wifi:config nano formating: disabled
I (407) wifi:Init data frame dynamic rx buffer num: 32
I (407) wifi:Init static rx mgmt buffer num: 5
I (417) wifi:Init management short buffer num: 32
I (417) wifi:Init dynamic tx buffer num: 32
I (427) wifi:Init static tx FG buffer num: 2
I (427) wifi:Init static rx buffer size: 1600
I (427) wifi:Init static rx buffer num: 10
I (437) wifi:Init dynamic rx buffer num: 32
I (437) wifi_init: rx ba win: 6
I (447) wifi_init: accept mbox: 6
I (447) wifi_init: tcpip mbox: 32
I (447) wifi_init: udp mbox: 6
I (457) wifi_init: tcp mbox: 6
I (457) wifi_init: tcp tx win: 5760
I (467) wifi_init: tcp rx win: 5760
I (467) wifi_init: tcp mss: 1440
I (467) wifi_init: WiFi IRAM OP enabled
I (477) wifi_init: WiFi RX IRAM OP enabled
I (487) phy_init: phy_version 1180,01f2a49,Jun  4 2024,16:34:25
I (517) wifi:mode : sta (84:f7:03:56:c0:d4)
I (527) wifi:enable tsf
I (527) wifi station: wifi_init_sta finished.
I (2937) wifi station: retry to connect to the AP
I (2937) wifi station: connect to the AP fail
I (5337) wifi station: retry to connect to the AP
I (5337) wifi station: connect to the AP fail
I (7747) wifi station: retry to connect to the AP
I (7747) wifi station: connect to the AP fail
I (7787) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1, snd_ch_cfg:0x0
I (7787) wifi:state: init -> auth (0xb0)
I (8797) wifi:state: auth -> init (0x200)
I (8807) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1, snd_ch_cfg:0x0
I (8807) wifi station: retry to connect to the AP
I (8807) wifi station: connect to the AP fail
I (11217) wifi station: retry to connect to the AP
I (11217) wifi station: connect to the AP fail
I (13617) wifi station: connect to the AP fail
I (13617) wifi station: Failed to connect to SSID:****, password:**** // I removed the pass from the original outputs...
I (13627) main_task: Returned from app_main()

You have a Access Point failure. did you supply SSID and PASSWORD? if you did, then you need to troubleshoot why it failed. I would add code to print the error reason and go from there.

I don't see what you are calling an antenna resistor. BUT many boards have a jumper (zero ohm) that allows you to switch from the internal antenna to an external via one of those circular antenna connectors. Since you have not changed the jumper you are using the internal antenna which will have VERY short range. Move the board closer to a router.

Hello,

ssid/password. Yes, I did. I tried running the SAME code on an esp32C3 super mini board (which looks the same, but without the LCD) and that code works there.. So I doubt that the problem is with the code itself :frowning:

With regard to errors. I added a display of the not-connected cause to the code and got error codes
2 (WIFI_REASON_AUTH_EXPIRE)
205 (Not documented!)
201 (WIFI_REASON_NO_AP_FOUND)

I am honestly doubting the physical antena at this point in time... But I do not know the schematics of it, and what I should be testing for...

Cyrille
P.S: the board does not have any circular antena connector, just a "red" chip...

Hello

Spending some more time looking at the PCB (for which I do not have any schematics of course), the ESP32C3 pin 1 (WiFi) seems to be connected to the antena (red chip) through what looks like a 0Ohm resistor (or at least lower than what my multimeter can measure).

In comparison my working ESP32C3 super mini is connected to the antena through what looks like a capacitor...

Which one is correct?

Cyrille

Some more info...

I am trying in parallel the board with the LCD and an ESP32C3 super mini board (which does not have a LCD)...

I have tried loading the scann sketch...

What I found is that the LCD board finds 2 or 3 Wifi networks while the other one find 5 to 7....

So it looks like the LCD based board has much less sensitivity than the one without the LCD...

I tried looking for schematics to understand what should be there... but the schematics that I found use a PCB trace antenna, not a ceramic resonator, so I do not think that it can be use as is...

Any clues?
Thanks,
Cyrille

Yes
see post #3

Hello,

:slight_smile:

I guess I meant: Any clue on how to make it better/fix it?

Also, Less than 1.5m is VERY close (to the point that one can legitimately wonder why there is WiFi)... By close to an AP, I was more envisioning 5 to 10m...

Cyrille

I don't have that board, but given that the antenna is very small (even for a chip) and it is positioned between two metal pushbuttons and the signal goes through a via on the PCB, I would think that the range would be severly limited.

wonder why there is WiFi

It only cast a few pennies to add the antenna and claim it has WiFi.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.