XIAO ESP32S3 SENSE - New Unit just arrived - Camera server AOK

I just got my first ESP32s3 Sense with camera. :clap:

  1. opened package , read most of the Documentation and a few threads.
  2. Updated/ downgraded the ESP32 BSP to 2.0.8.
  3. Connected only the Antenna.
  4. connected it to Computer running Arduino 2.2.1 IDE (computer beeps with new device)
  5. I select Xioa ESP32S3 and com(23) Shows connected in lower right
  6. Opened Serial monitor Showed with the board plugged in to usb (I got no camera error code ) ok
    (because it wasn’t plugged in) so good so far. it’s alive and the docs said it’s got pre-installed code
    (unplugged it from usb)
  7. I added the camera board and a 32G SD formatted fat32.

This time when connected I got a boot message and some Periods “” It’s waiting on WiFi
So I go on. Good to this point! (i reviewed the example code)

OUT of the Box & Bag it’s waiting for a WiFi with no Credentials (FACTORY CODE) proof of life no doubt,for end users. SO If you :index_pointing_at_the_viewer: buy one, put it together and power it on with usb monitor ON you should get “…periods…” until forever.

Then It got weird, when I copied and pasted the WIKI demo “Camera-Server” code section and added my Creds for my home WiFi I got the “camera.pin.h” file was missing ? HUH?
(turns out) THIS LINK
I had to open the Camera Server example from Example menu and it opened additional TABS with the other files.opened the example camera server project and pasted in the WIKI code, added my Creds. and it compiled with this output AOK

FQBN: esp32:esp32:XIAO_ESP32S3
Using board 'XIAO_ESP32S3' from platform in folder: C:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.8
Using core 'esp32' from platform in folder: C:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.8

loading library from d:\Arduino_projects\libraries\arduino-esp32-master: invalid library: no header files found
cmd /c if exist "D:\\Arduino_projects\\CameraWebServer\\partitions.csv" COPY /y "D:\\Arduino_projects\\CameraWebServer\\partitions.csv" "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\2483406E539F426B3724F5B26F4C3E0D\\partitions.csv"
        1 file(s) copied.
cmd /c if not exist "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\2483406E539F426B3724F5B26F4C3E0D\\partitions.csv" if exist "C:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.8\\variants\\XIAO_ESP32S3\\partitions.csv" COPY "C:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.8\\variants\\XIAO_ESP32S3\\partitions.csv" "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\2483406E539F426B3724F5B26F4C3E0D\\partitions.csv"
cmd /c if not exist "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\2483406E539F426B3724F5B26F4C3E0D\\partitions.csv" COPY "C:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.8\\tools\\partitions\\default_8MB.csv" "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\2483406E539F426B3724F5B26F4C3E0D\\partitions.csv"
cmd /c IF EXIST "D:\\Arduino_projects\\CameraWebServer\\bootloader.bin" ( COPY /y "D:\\Arduino_projects\\CameraWebServer\\bootloader.bin" "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\2483406E539F426B3724F5B26F4C3E0D\\CameraWebServer.ino.bootloader.bin" ) ELSE ( IF EXIST "C:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.8\\variants\\XIAO_ESP32S3\\bootloader.bin" ( COPY "C:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.8\\variants\\XIAO_ESP32S3\\bootloader.bin" "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\2483406E539F426B3724F5B26F4C3E0D\\CameraWebServer.ino.bootloader.bin" ) ELSE ( "C:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esptool_py\\4.5.1/esptool.exe" --chip esp32s3 elf2image --flash_mode dio --flash_freq 80m --flash_size 8MB -o "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\2483406E539F426B3724F5B26F4C3E0D\\CameraWebServer.ino.bootloader.bin" "C:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.8\\tools\\sdk\\esp32s3\\bin\\bootloader_qio_80m.elf" ) )
esptool.py v4.5.1
Creating esp32s3 image...
Merged 1 ELF section
Successfully created esp32s3 image.
cmd /c if exist "D:\\Arduino_projects\\CameraWebServer\\build_opt.h" COPY /y "D:\\Arduino_projects\\CameraWebServer\\build_opt.h" "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\2483406E539F426B3724F5B26F4C3E0D\\build_opt.h"
cmd /c if not exist "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\2483406E539F426B3724F5B26F4C3E0D\\build_opt.h" type nul > "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\2483406E539F426B3724F5B26F4C3E0D\\build_opt.h"
Detecting libraries used...
C:\Users\Dude\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32s3-elf-gcc\esp-2021r2-patch5-8.4.0/bin/xtensa-esp32s3-elf-g++ -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -DUNITY_INCLUDE_CONFIG_H -DWITH_POSIX -D_GNU_SOURCE -DIDF_VER="v4.4.4" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -IC:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.8/tools/sdk/esp32s3/include/newlib/platform_include -IC:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.8/tools/sdk/esp32s3/include/freertos/include -IC:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.8/tools/sdk/esp32s
*** EDIT for brevity***
C:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.8\\tools\\ide-debug\\esp32s3.json" "D:\\Arduino_projects\\CameraWebServer\\debug_custom.json"
cmd /c IF 0==1 COPY /y "C:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.8\\tools\\ide-debug\\svd\\esp32s3.svd" "D:\\Arduino_projects\\CameraWebServer\\debug.svd"

Using library WiFi at version 2.0.0 in folder: C:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.8\libraries\WiFi 
"C:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\xtensa-esp32s3-elf-gcc\\esp-2021r2-patch5-8.4.0/bin/xtensa-esp32s3-elf-size" -A "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\2483406E539F426B3724F5B26F4C3E0D/CameraWebServer.ino.elf"
Sketch uses 773397 bytes (23%) of program storage space. Maximum is 3342336 bytes.
Global variables use 59492 bytes (18%) of dynamic memory, leaving 268188 bytes for local variables. Maximum is 327680 bytes.

Uploaded to the Xiao and got this IP address on the serial monitor as promised.

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0x9 (SPI_FAST_FLASH_BOOT)
Saved PC:0x420800ea
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x44c
load:0x403c9700,len:0xbe4
load:0x403cc700,len:0x2a38
entry 0x403c98d4
E (165) esp_core_dump_flash: No core dump partition found!
E (165) esp_core_dump_flash: No core dump partition found!
.
WiFi connected
Camera Ready! Use 'http://192.168.1.166' to connect

Open a Chrome tab and pasted the IP address and BOB’s Your Uncle It WORKS ! :star_struck: :heart_hands:


took a still (note this is a low light room, Image was pretty good)

VGA & HD settings , very Nice.! :kissing_heart: :ok_hand:

first impression It does get warm, I like the B2B connector, I probably would never use a camera perhaps just the SD card and increased performance, but sure would like a mating board with IMU SD card slot and digital mic like the Xiao Nrf52480 BLE SEnse. :innocent: :pray: and for christmas add a display connection. :santa: IMO Another Sweet Device.

HTH
GL :slight_smile: PJ

1 Like

Thanks for sharing, how do you feel about XIAO’s internet connection? Is the video push streaming stable enough?

Hi there,
Yes very Stable and very good range indoors , no stuttering at the 640x480 res AOK.
small package Packs a sweet punch. Love the B2B connector and some possibilities there.
GL :slight_smile: PJ

1 Like

Hi PJ,
I also got the ESP32S3 Sense.
I followed the steps you wrote, but I can’t get the camera to work. If possible, could you please make a ZIP file of your code as is, including the header files?

XIAO ESP32S3 Sense camera not working

Hi there,
Sure… The trick was to open the Real Example from the IDE, then paste in the seeed camera info from WIKI, leaving out the others. the first time through I had to load a adafruit board to fix the compiler i think, but maybe not, too many projects LOL.
Here is what works. LMK?
CameraWebServer_copy_PJ.zip (54.6 KB)
HTH
GL :slight_smile: PJ

PJ, thanks for sending me the code.
I tried, but the situation did not improve and the camera did not work. I need to find out what the LEDC is and isolate if it is a hardware or software problem !

Can you elaborate on this? Is it a hardware problem?

I am trying to get the camera to work by following the steps in the Wiki.
I can connect to Chrome via Wifi, but when I click on GetStill, the serial monitor shows an error and no images from the camera.

....
WiFi connected
e[0;31mE (16036) MFN: Partition Not founde[0m
e[0;31mE (16037) MFN: Please Set the Partitione[0m
Camera Ready! Use 'http://192.168.11.51' to connect
E (33426) ledc: ledc_set_duty(719): LEDC is not initialized
E (33426) ledc: ledc_update_duty(647): LEDC is not initialized
E (76704) ledc: ledc_set_duty(719): LEDC is not initialized

Hi there,
I get that LEDC is not initialized Error too, but Camera works anyway.
from that error I would say it’s the SD card NOT being Fast enough.
I used BSP 2.0.8 of the ESP32 (exspresif) package, had to roll back from the Beta or alpha package that’s current.
look at that output info is yours the same on the compiler?

FQBN: esp32:esp32:XIAO_ESP32S3
Using board 'XIAO_ESP32S3' from platform in folder: 
C:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.8
Using core 'esp32' from platform in folder: 
C:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.8

HTH
GL :slight_smile: PJ

PJ, thanks for the info.
I have the exact same compile message, and I don’t use an SD card.
I tried it on another PC and the camera did not work. I am beginning to wonder if it is a hardware failure.

Hi there,
I went back and removed the SD card , camera and server stared almost instantly.
be sure to give High visual inspection, Maybe a large hand tried to assemble.
The other error about the partition , is that for the PSram partition? perhaps there’s a failure.
HTH
GL :slight_smile: PJ