English | 中文
examples examples
├─AllFunction # Full function test
├─MinimalCameraExample # Minimal camera example
├─MinimalPowersExample # Minimal PMU operation example
├─MinimalScreenExample # Minimal screen example
├─MinimalSoundDetectionExample # Minimal ambient sound detection example
└─MinimalVoiceWakeupExample # Minimal voice wakeup example
- Install VisualStudioCode and Python
- Search for the
PlatformIOplugin in theVisualStudioCodeextension and install it. - After the installation is complete, you need to restart
VisualStudioCode - After restarting
VisualStudioCode, selectFilein the upper left corner ofVisualStudioCode->Open Folder-> select theLilyGo-Cam-ESP32S3directory - Click on the
platformio.inifile, and in theplatformiocolumn, cancel the sample line that needs to be used, please make sure that only one line is valid - Click the (✔) symbol in the lower left corner to compile
- Connect the board to the computer USB
- Click (→) to upload firmware
- Click (plug symbol) to monitor serial output
- To use the
AllFunctionandMinimalSoundDetectionExampleexamples, additional model files need to be uploaded, follow the steps below- Click
PlatformIO(the little bee icon) on the left side ofVisualStudioCode - select
t-cameras3 - Select
Platform - After making sure the board is connected to USB, click
Upload Filesystem image
- Click
- Install Arduino IDE
- Install Arduino ESP32, ESP32 core version should be lower than V 3.0.0, 2.0.17 is recommended
- Copy all the folders in the
LilyGo-Cam-ESP32S3/libdirectory to<C:\Users\%USERNAME%\Documents\Arduino\libraries>. If there is nolibrariesdirectory, please create a new one. Please note that you are not copying thelibdirectory, but copying the folders in the lib directory - Open ArduinoIDE -> Tools
- Board -> ESP32S3 Dev Module
- USB CDC On Boot -> Enable ## Note that you need to change Enable to Disable when USB is not connected, so USB CDC will not prevent the board from starting
- CPU Frequency -> 240MHz
- USB DFU On Boot -> Disable
- Flash Mode -> QIO 80MHz
- Flash Size -> 16MB(128Mb)
- USB Firmware MSC On Boot -> Disable
- PSRAM -> OPI PSRAM
- Partition Scheme -> 16M Flash(3MB APP/9.9MB FATFS)
- USB Mode -> Hardware CDC and JIAG
- Upload Mode -> UART0/Hardware CDC
- Upload Speed -> 921600
- Insert USB into the PC and click Upload <If the upload fails, View the Tips below>
- Can I use the
Arduino IDE?AllFunctionandMinimalSoundDetectionExampleexamples are not acceptable, because model files and custom partition tables need to be uploaded. Currently,Arduino IDEdoes not support custom partition tables and upload model files (the time to write README is 20220930)- The rest of the examples are available using the
Arduino IDE
- The board integrates PMU (Power management chip), which has short circuit and overload protection. By default,
PWRKEYneeds to be pressed for 6 seconds to turn off the power supply of the board. PressPWRKEYfor 128 milliseconds to turn on the power supply. If you need to modify the shutdown pressing time, please refer toMinimalPowersExample - The
PMUTS Pindetection function needs to be turned off if the charging function is required. There is no NTC sensor on the board by default, so you need to disable theTS Pindetection function to use the charging function normally. If theTS Pindetection function is not turned off, insert the battery After the PMU charging indicator will flash, charging will be disabled at this time - The external
5 Pinexpansion socket of the board, 5V is shared withPMUSYS, please do not connect an external power supply load greater than 600mA,3.3VusePMUDCDC3power supply, the voltage can be adjusted, The maximum output current should not exceed1A, 5V is the silkscreen name of the board. The actual output is equal to the input voltage. The VSYS output is equal to the input voltage. - The display screen shares the
DCDC1power channel with theESP32S3core, so the display power supply cannot be turned off. Please set the display screen to sleep mode to reduce power consumption when sleeping. - All onboard peripherals except
OLEDcan be powered off - When the sketch cannot be uploaded, please press and hold the
BOOTbutton on the board, then insert the USB, you should be able to see the port in the device manager of the computer, and then click upload sketch again - When the power supply channel of
ESP32S3is closed by mistake, please insert the USB, then press and hold theBOOTbutton of the board, then press and hold thePWRKEYbutton, the board enters the download mode, and the sketch can be uploaded normally. - ⚠ Please understand the risks you need to face before changing the peripheral voltage, otherwise please do not try to change the voltage of the camera and other onboard devices, you may face permanent damage
- When you think there is a problem with the board, you can try to burn our factory firmware for testing. You can first rule out whether it is a hardware problem FactoryFirmware
- The board uses USB as the JTAG upload port. When printing serial port information on USB_CDC_ON_BOOT configuration needs to be turned on.
If the port cannot be found when uploading the program or the USB has been used for other functions, the port does not appear.
Please enter the upload mode manually.
- Connect the board via the USB cable
- Press and hold the BOOT button , While still pressing the BOOT button, press RST
- Release the RST
- Release the BOOT button
- Upload sketch
- How to use ESPHome?
| PWDN | Reset | XCLK | SDA | SCL | VSYNC | HREF | PCLK |
|---|---|---|---|---|---|---|---|
| N/A | 39 | 38 | 5 | 4 | 8 | 18 | 12 |
| D9 | D8 | D7 | D6 | D5 | D4 | D3 | D2 |
| 9 | 10 | 11 | 13 | 21 | 48 | 47 | 14 |
| OLED/PMU/PIR | SDA | SCL | PMU IRQ | PIR |
|---|---|---|---|---|
| 7 | 6 | 2 | 17 | |
| Microphone | WS | DATA | CLK | |
| 42 | 41 | 40 |
| PMU Channel | Microphone | OLED/ESP32S3 | Camera | Pir |
|---|---|---|---|---|
| BLDO1 | DCDC1 | ALDO1/ALDO2/ALDO4 | ALDO3 |
| GPIO | Valid |
|---|---|
| 35 | ❌ Unavailable, internal PSRAM in use |
| 36 | ❌ Unavailable, internal PSRAM in use |
| 37 | ❌ Unavailable, internal PSRAM in use |
| 15 | ✅ |
| 16 | ✅ |
| 45 | ✅ |
| 3 | ✅ |
| 46 | ✅ |