Merge branch 'master' into fix/freenove_and_more

pull/147/head
Miroslav Pivovarsky 2026-10-28 17:21:59 +01:00 committed by GitHub
commit 6f2f1cce92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
16 changed files with 440 additions and 49 deletions

View File

@ -117,10 +117,14 @@ void setup() {
#if (true == ENABLE_SD_CARD)
xTaskCreatePinnedToCore(System_TaskSdCardCheck, "CheckMicroSdCard", 5120, NULL, 4, &Task_SdCardCheck, 0); /*function, description, stack size, parameters, priority, task handle, core*/
#endif
xTaskCreatePinnedToCore(System_TaskSerialCfg, "CheckSerialConfiguration", 3584, NULL, 5, &Task_SerialCfg, 0); /*function, description, stack size, parameters, priority, task handle, core*/
xTaskCreatePinnedToCore(System_TaskSystemTelemetry, "PrintSystemTelemetry", 2560, NULL, 6, &Task_SystemTelemetry, 0); /*function, description, stack size, parameters, priority, task handle, core*/
xTaskCreatePinnedToCore(System_TaskSysLed, "SystemLed", 2560, NULL, 7, &Task_SysLed, 0); /*function, description, stack size, parameters, priority, task handle, core*/
xTaskCreatePinnedToCore(System_TaskWiFiWatchdog, "WiFiWatchdog", 3072, NULL, 8, &Task_WiFiWatchdog, 0); /*function, description, stack size, parameters, priority, task handle, core*/
xTaskCreatePinnedToCore(System_TaskSerialCfg, "CheckSerialConfiguration", 2300, NULL, 5, &Task_SerialCfg, 0); /*function, description, stack size, parameters, priority, task handle, core*/
ESP_ERROR_CHECK(esp_task_wdt_add(Task_SerialCfg));
xTaskCreatePinnedToCore(System_TaskSystemTelemetry, "PrintSystemTelemetry", 2200, NULL, 6, &Task_SystemTelemetry, 0); /*function, description, stack size, parameters, priority, task handle, core*/
ESP_ERROR_CHECK(esp_task_wdt_add(Task_SystemTelemetry));
xTaskCreatePinnedToCore(System_TaskSysLed, "SystemLed", 2000, NULL, 7, &Task_SysLed, 0); /*function, description, stack size, parameters, priority, task handle, core*/
ESP_ERROR_CHECK(esp_task_wdt_add(Task_SysLed));
xTaskCreatePinnedToCore(System_TaskWiFiWatchdog, "WiFiWatchdog", 4096, NULL, 8, &Task_WiFiWatchdog, 0); /*function, description, stack size, parameters, priority, task handle, core*/
ESP_ERROR_CHECK(esp_task_wdt_add(Task_WiFiWatchdog));
//xTaskCreatePinnedToCore(System_TaskSdCardRemove, "SdCardRemove", 3000, NULL, 9, &Task_SdCardFileRemove, 0); /*function, description, stack size, parameters, priority, task handle, core*/
//esp_task_wdt_add(Task_SdCardFileRemove);

View File

@ -73,7 +73,6 @@ void Server_InitWebServer() {
}
return len;
});
response->addHeader("Content-Length", String(total_len));
request->send(response);
} else {
@ -1363,3 +1362,4 @@ String Server_TranslateBoolToString(bool i_data) {
}
/* EOF */

View File

@ -20,6 +20,8 @@
#define CAMERA_MODEL_XIAO_ESP32_S3_CAM false
#define CAMERA_MODEL_ESP32_S3_CAM false
#define ESP32_S3_WROOM_FREENOVE false
#define ESP32_M5_UNIT_CAMS3 false
#define M5STACK_TIMERCAMERA false
/* ---------------- BASIC MCU CFG --------------*/
#define SW_VERSION "1.1.2" ///< SW version

View File

@ -0,0 +1,104 @@
/**
@file module_ESP32-M5_Unit_CamS3.h
@brief Definition of the ESP32 M5 Unit CamS3 board
@author Pawel Chojnacki
Contact: pawel.chcki@gmail.com
Board configuration in the arduino IDE 2.3.2
Tools -> Board -> ESP32 Arduino -> ESP32S3 Dev Module
Tools -> USB CDC on BOOT -> Enabled
Tools -> CPU Frequency -> 240MHz (WiFi/BT)
Tools -> Core debug level -> None
Tools -> USB DFU on BOOT -> Disable
Tools -> Erase all Flash Before Sketch Upload -> Disable (first flash, new board = enable. otherwise = disable)
Tools -> Events Run On -> Core 0
Tools -> Flash Mode -> QIO 80MHz
Tools -> Flash Size -> 8MB
Tools -> Jtag Adapter -> Disable
Tools -> Arduino Runs On -> Core 0
Tools -> USB Firmware MSC On Boot -> Disable
Tools -> Partition scheme -> Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
Tools -> PSRAM -> OPI PSRAM
Tools -> Upload Mode -> UART0 / Hardware CDC
Tools -> Upload Speed -> 921600
Tools -> USB Mode -> Hardware CDC and JTAG
Tools -> Zigbee mode -> Disable
https://docs.m5stack.com/en/unit/Unit_CamS3
Board setup guide: doc/M5-Unit-CamS3/README.md
Known limitations are listed in the board setup guide.
*/
#pragma once
#include "mcu_cfg.h"
#ifdef ESP32_M5_UNIT_CAMS3
/* --------------- CAMERA CFG -------------------*/
#define PWDN_GPIO_NUM -1 ///< Power down control pin
#define RESET_GPIO_NUM 21 ///< Reset control pin
#define SIOD_GPIO_NUM 17 ///< SCCB: SI/O data pin
#define SIOC_GPIO_NUM 41 ///< SCCB: SI/O control pin
#define Y2_GPIO_NUM 6 ///< SCCB: Y2 pin
#define Y3_GPIO_NUM 15 ///< SCCB: Y3 pin
#define Y4_GPIO_NUM 16 ///< SCCB: Y4 pin
#define Y5_GPIO_NUM 7 ///< SCCB: Y5 pin
#define Y6_GPIO_NUM 5 ///< SCCB: Y6 pin
#define Y7_GPIO_NUM 10 ///< SCCB: Y7 pin
#define Y8_GPIO_NUM 4 ///< SCCB: Y8 pin
#define Y9_GPIO_NUM 13 ///< SCCB: Y9 pin
#define VSYNC_GPIO_NUM 42 ///< Vertical sync pin
#define HREF_GPIO_NUM 18 ///< Line sync pin
#define PCLK_GPIO_NUM 12 ///< Pixel clock pin
#define XCLK_GPIO_NUM 11 ///< External clock pin
/* ------------------ MCU CFG ------------------*/
#define BOARD_NAME F("ESP32 M5 Unit CamS3") ///< Board name
#define ENABLE_BROWN_OUT_DETECTION false ///< Enable brown out detection
#define ENABLE_PSRAM true ///< Enable PSRAM
/* --------------- OTA UPDATE CFG --------------*/
#define OTA_UPDATE_FW_FILE PSTR("ESP32-M5-Unit-CamS3.bin") ///< OTA update firmware file name
#define FW_STATUS_LED_PIN 14 ///< GPIO pin for status FW update LED
#define FW_STATUS_LED_LEVEL_ON LOW ///< GPIO pin level for status LED ON
/* --------------- FLASH LED CFG ---------------*/
#define ENABLE_CAMERA_FLASH false ///< Enable camera flash function
#define CAMERA_FLASH_DIGITAL_CTRL true ///< Enable camera flash digital control
#define CAMERA_FLASH_PWM_CTRL false ///< Enable camera flash PWM control
#define CAMERA_FLASH_NEOPIXEL false ///< Enable camera flash NeoPixel control
#define FLASH_GPIO_NUM 14 ///< Flash control pin
#define FLASH_NEOPIXEL_LED_PIN 48 ///< External flash control pin. RGB LED NeoPixel
#define FLASH_OFF_STATUS 0 ///< PWM intensity LED for OFF. 0-2^FLASH_PWM_RESOLUTION = 0-255
#define FLASH_ON_STATUS 205 ///< PWM intensity LED for ON. limitation to 80%. 2^FLASH_PWM_RESOLUTION * 0.8% = 204
#define FLASH_PWM_FREQ 2000 ///< frequency of pwm [240MHz / (100 prescale * pwm cycles)] = frequency
#define FLASH_PWM_CHANNEL 0 ///< channel 0
#define FLASH_PWM_RESOLUTION 8 ///< range 1-20bit. 8bit = 0-255 range
/* --------------- SD CARD CFG ---------------*/
#define ENABLE_SD_CARD true ///< Enable SD card function
#define SD_PIN_CLK 39 ///< GPIO pin for SD card clock
#define SD_PIN_CMD 38 ///< GPIO pin for SD card command
#define SD_PIN_DATA0 40 ///< GPIO pin for SD card data 0
/* ---------- RESET CFG CONFIGURATION ----------*/
#define CFG_RESET_PIN 8 ///< GPIO 8 is for reset CFG to default
#define CFG_RESET_LED_PIN 14 ///< GPIO for indication of reset CFG
#define CFG_RESET_LED_LEVEL_ON LOW ///< GPIO pin level for status LED ON
/* -------------- STATUS LED CFG ----------------*/
#define STATUS_LED_ENABLE true ///< enable/disable status LED
#define STATUS_LED_GPIO_NUM 14 ///< GPIO pin for status LED
#define STATUS_LED_OFF_PIN_LEVEL LOW ///< GPIO pin level for status LED ON
/* -------------- DHT SENSOR CFG ----------------*/
#define DHT_SENSOR_ENABLE false ///< enable/disable DHT sensor
#define DHT_SENSOR_PIN 44 ///< GPIO pin for DHT sensor
#endif // ESP32_M5_UNIT_CAMS3
/* EOF */

View File

@ -0,0 +1,92 @@
/**
@file module_M5Stack_TimerCam.h
@brief Definition of the M5Stack TimerCamera module
@author Tim van der Heide
Contact: hello@timvanderheide.com
https://docs.m5stack.com/en/unit/timercam
Board configuration in the arduino IDE 2.3.2
Tools -> Board -> ESP32 Arduino -> M5TimerCAM
Tools -> CPU Frequency -> 240MHz (WiFi/BT)
Tools -> Core debug level -> None
Tools -> Flash frequency -> 80MHz
Tools -> Flash Mode -> DIO
Tools -> PSRAM -> Enabled
Tools -> Partition scheme -> Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
@bug: no know bug
*/
#pragma once
#include "mcu_cfg.h"
#ifdef M5STACK_TIMERCAMERA
/* --------------- CAMERA CFG -------------------*/
#define PWDN_GPIO_NUM -1 ///< Power down control pin
#define RESET_GPIO_NUM 15 ///< Reset control pin
#define XCLK_GPIO_NUM 27 ///< External clock pin
#define SIOD_GPIO_NUM 25 ///< SCCB: SI/O data pin
#define SIOC_GPIO_NUM 23 ///< SCCB: SI/O control pin
#define Y9_GPIO_NUM 19 ///< SCCB: Y9 pin
#define Y8_GPIO_NUM 36 ///< SCCB: Y8 pin
#define Y7_GPIO_NUM 18 ///< SCCB: Y7 pin
#define Y6_GPIO_NUM 39 ///< SCCB: Y6 pin
#define Y5_GPIO_NUM 5 ///< SCCB: Y5 pin
#define Y4_GPIO_NUM 34 ///< SCCB: Y4 pin
#define Y3_GPIO_NUM 35 ///< SCCB: Y3 pin
#define Y2_GPIO_NUM 32 ///< SCCB: Y2 pin
#define VSYNC_GPIO_NUM 22 ///< Vertical sync pin
#define HREF_GPIO_NUM 26 ///< Line sync pin
#define PCLK_GPIO_NUM 21 ///< Pixel clock pin
/* ------------------ MCU CFG ------------------*/
#define BOARD_NAME F("M5Stack TimerCamera") ///< Board name
#define ENABLE_BROWN_OUT_DETECTION true ///< Enable brown out detection
#define ENABLE_PSRAM true ///< Enable PSRAM
/* --------------- OTA UPDATE CFG --------------*/
#define OTA_UPDATE_FW_FILE PSTR("M5STACK_TIMERCAM.bin") ///< OTA update firmware file name
#define FW_STATUS_LED_PIN 2 ///< GPIO pin for status FW update LED
#define FW_STATUS_LED_LEVEL_ON HIGH ///< GPIO pin level for status LED ON
/* --------------- FLASH LED CFG ---------------*/
#define ENABLE_CAMERA_FLASH false ///< Enable camera flash function
#define CAMERA_FLASH_DIGITAL_CTRL false ///< Enable camera flash digital control
#define CAMERA_FLASH_PWM_CTRL false ///< Enable camera flash PWM control
#define CAMERA_FLASH_NEOPIXEL false ///< Enable camera flash NeoPixel control
#define FLASH_GPIO_NUM 4 ///< Flash control pin
#define FLASH_NEOPIXEL_LED_PIN -1 ///< External flash control pin. RGB LED NeoPixel
#define FLASH_OFF_STATUS 0 ///< PWM intensity LED for OFF. 0-2^FLASH_PWM_RESOLUTION = 0-255
#define FLASH_ON_STATUS 205 ///< PWM intensity LED for ON. limitation to 80%. 2^FLASH_PWM_RESOLUTION * 0.8% = 204
#define FLASH_PWM_FREQ 2000 ///< frequency of pwm [240MHz / (100 prescale * pwm cycles)] = frequency
#define FLASH_PWM_CHANNEL 0 ///< channel 0
#define FLASH_PWM_RESOLUTION 8 ///< range 1-20bit. 8bit = 0-255 range
/* --------------- SD CARD CFG ---------------*/
#define ENABLE_SD_CARD false ///< Enable SD card function
#define SD_PIN_CLK -1 ///< GPIO pin for SD card clock
#define SD_PIN_CMD -1 ///< GPIO pin for SD card command
#define SD_PIN_DATA0 -1 ///< GPIO pin for SD card data 0
/* ---------- RESET CFG CONFIGURATION ----------*/
#define CFG_RESET_PIN 4 ///< GPIO 12 is for reset CFG to default
#define CFG_RESET_LED_PIN 2 ///< GPIO for indication of reset CFG
#define CFG_RESET_LED_LEVEL_ON HIGH ///< GPIO pin level for status LED ON
/* -------------- STATUS LED CFG ----------------*/
#define STATUS_LED_ENABLE true ///< enable/disable status LED
#define STATUS_LED_GPIO_NUM 2 ///< GPIO pin for status LED
#define STATUS_LED_OFF_PIN_LEVEL LOW ///< GPIO pin level for status LED ON
/* -------------- DHT SENSOR CFG ----------------*/
#define DHT_SENSOR_ENABLE false ///< enable/disable DHT sensor
#define DHT_SENSOR_PIN 13 ///< GPIO pin for DHT sensor
#endif // M5STACK_TIMERCAMERA
/* EOF */

View File

@ -14,7 +14,7 @@
#include "mcu_cfg.h"
#if ((AI_THINKER_ESP32_CAM + ESP32_WROVER_DEV + CAMERA_MODEL_ESP32_S3_DEV_CAM + CAMERA_MODEL_ESP32_S3_EYE_2_2 + CAMERA_MODEL_XIAO_ESP32_S3_CAM + CAMERA_MODEL_ESP32_S3_CAM + ESP32_S3_WROOM_FREENOVE) != 1)
#if ((AI_THINKER_ESP32_CAM + ESP32_WROVER_DEV + CAMERA_MODEL_ESP32_S3_DEV_CAM + CAMERA_MODEL_ESP32_S3_EYE_2_2 + CAMERA_MODEL_XIAO_ESP32_S3_CAM + CAMERA_MODEL_ESP32_S3_CAM + ESP32_S3_WROOM_FREENOVE + M5STACK_TIMERCAMERA + ESP32_M5_UNIT_CAMS3) != 1)
#error "Exactly one camera model must be defined as true."
#endif
@ -39,9 +39,15 @@
#elif (true == ESP32_S3_WROOM_FREENOVE)
#include "module_ESP32-S3_Wroom_Freenove.h"
#elif (true == ESP32_M5_UNIT_CAMS3)
#include "module_ESP32-M5_Unit_CamS3.h"
#elif (true == M5STACK_TIMERCAMERA)
#include "module_M5Stack_TimerCam.h"
#else
#error "No module selected"
#endif
/* EOF */
/* EOF */

View File

@ -117,7 +117,9 @@ void WiFiMngt::Init() {
log->AddEvent(LogLevel_Info, "WiFi network IP Address: http://" + WiFi.localIP().toString());
#endif
} else {
log->AddEvent(LogLevel_Warning, "Wifi unavailable. Skip connecting to WiFi: " + WifiSsid);
/* SSID not found, connect anyway and retry in WiFiReconnect() */
log->AddEvent(LogLevel_Warning, "Wifi unavailable at boot: " + WifiSsid + ". Will keep retrying in background");
WiFiStaConnect();
}
} else {
ScanWiFiNetwork();
@ -190,6 +192,10 @@ void WiFiMngt::WiFiReconnect() {
log->AddEvent(LogLevel_Warning, F("Disconnect from WiFi"));
WiFi.reconnect();
log->AddEvent(LogLevel_Warning, F("Reconnecting to WiFi. STA"));
} else if ((WiFi.status() != WL_CONNECTED) && (FirstConnected == false) && (true == config->CheckActifeWifiCfgFlag())) {
/* not connected since boot, retry connection to STA */
log->AddEvent(LogLevel_Warning, "Not connected to WiFi since boot. Retrying connection to: " + WifiSsid);
WiFiStaConnect();
} else if (WiFi.status() == WL_CONNECTED) {
char cstr[150];
sprintf(cstr, "Wifi connected. SSID: %s, BSSID: %s, RSSI: %d dBm, IP: %s, TX power: %s", WiFi.SSID().c_str(), WiFi.BSSIDstr().c_str(), WiFi.RSSI(), WiFi.localIP().toString().c_str(), TranslateTxPower(WiFi.getTxPower()).c_str()); //print 3 digits
@ -436,12 +442,7 @@ void WiFiMngt::WiFiWatchdog() {
log->AddEvent(LogLevel_Verbose, "Time: " + String(currentMillis - TaskWdg_previousMillis) + "/" + String(WIFI_STA_WDG_TIMEOUT));
if (false == StartStaWdg) {
if (ScanWifiNetwork(WifiSsid) >= 1) {
log->AddEvent(LogLevel_Warning, F("WiFi STA connection lost. Start watchdog timer!"));
} else {
log->AddEvent(LogLevel_Warning, F("WiFi STA connection lost. No available network!"));
}
log->AddEvent(LogLevel_Warning, F("WiFi STA connection lost. Start watchdog timer!"));
StartStaWdg = true;
TaskWdg_previousMillis = currentMillis;
}

View File

@ -40,8 +40,9 @@ What we need for functionality:
| ESP32-S3-DEV-CAM | in Progress | | | External | | | [ here ](doc/ESP32-S3-DEV-CAM/README.md) |
| Seeed Studio XIAO ESP32S3 | Full | Yes | Yes | External | Yes | Yes | [ here ](doc/XIAO_ESP32S3/README.md) |
| ESP32-S3-CAM | Full | Yes | Yes | Board/Ext | Yes | Yes | [ here ](doc/ESP32-S3-CAM/README.md) |
| M5Stack Unit CamS3 | in Progress | Yes | Untested | No | Manual | No | [ here ](doc/M5-Unit-CamS3/README.md) |
The compiled firmware for each supported board is published with every release.
The compiled firmware for boards included in `fw_build.sh` is published with every release. For the M5Stack Unit CamS3, [build and upload from source](doc/M5-Unit-CamS3/README.md); it is not yet included in the release build script.
<a name="flash_fw"></a>
## How to flash binary files to ESP32-cam board from Linux/MAC/Windows
@ -157,6 +158,9 @@ The second problem is that the camera module is not usually attached to the micr
<a name="service_ap"></a>
## Service AP
> [!NOTE]
> If you're facing any issues with the **AP mode** and/or are familiar with a serial console like screen/minicom/..., try the serial interface.
After powering on and booting up the camera, it enters **AP mode**, which serves as a configuration mode for the camera. Essentially, it starts its own Wi-Fi network. The network name (SSID) is **ESP32_camera_UID**, where **UID** is the first three numbers from the **MCU ID**, serving as a unique identifier for the camera. The password for connecting to the AP is **12345678**. The camera's IP address is **192.168.0.1**. To configure the camera via **AP mode**, you need to connect to this IP address using a web browser: **http://192.168.0.1**. Alternatively, you can also use the **http://prusa-esp32cam.local** hostname (**mDNS**) instead of the IP address.
After establishing a successful connection, your computer might display a "**No Internet**" warning for the given network. **This is normal**.

View File

@ -2,7 +2,7 @@
What we need for functionality
- Freenove ESP32-S3 WROOM board with OV2640 camera module [ here ](#esp32)
- Supported camera modules [here](cam_modules)
- Supported camera modules [here](#cam_modules)
- How to flash binary files to board from Linux/MAC/Windows [ here ](#flash_fw)
- How to compile software in the Arduino IDE [ here ](#arduino_cfg)
- How to reset the configuration to factory settings [here](#factory_cfg)
@ -71,7 +71,7 @@ You must use the console to upload the firmware on the MAC or Linux platform. Fi
And command for FLASH FW is here, where **/dev/ttya0** is your serial interface for communication with the ESP32-cam board. This is the command for the first flash FW to MCU.
```
./esptool --chip esp32s3 -p /dev/ttya0 -b 921600 --before default_reset --after hard_reset write_flash --erase-all --flash_mode qio --flash_size 8MB --flash_freq 80m 0x0 ESP32_PrusaConnectCam.ino.bootloader.bin 0x8000 ESP32_PrusaConnectCam.ino.partitions.bin 0x10000 ESP32_PrusaConnectCam.ino.bin
./esptool --chip esp32s3 -p /dev/ttya0 -b 921600 --before default_reset --after hard_reset write_flash --erase-all --flash_mode dio --flash_size 8MB --flash_freq 80m 0x0 ESP32_PrusaConnectCam.ino.bootloader.bin 0x8000 ESP32_PrusaConnectCam.ino.partitions.bin 0x10000 ESP32_PrusaConnectCam.ino.bin
```
This command contains the parameter **--erase-all**, which erases the entire flash in the MCU. So, for just updating the firmware, it is necessary to remove the parameter **--erase-all**; otherwise, the MCU configuration will also be deleted. The basic command list can be found [here](https://docs.espressif.com/projects/esptool/en/latest/esp32s3/esptool/basic-commands.html)
@ -79,7 +79,7 @@ This command contains the parameter **--erase-all**, which erases the entire fla
Here is the command for updating the firmware in the MCU without erasing the MCU configuration
```
./esptool --chip esp32s3 -p /dev/ttya0 -b 921600 --before default_reset --after hard_reset write_flash --flash_mode qio --flash_size 8MB --flash_freq 80m 0x0 ESP32_PrusaConnectCam.ino.bootloader.bin 0x8000 ESP32_PrusaConnectCam.ino.partitions.bin 0x10000 ESP32_PrusaConnectCam.ino.bin
./esptool --chip esp32s3 -p /dev/ttya0 -b 921600 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 8MB --flash_freq 80m 0x0 ESP32_PrusaConnectCam.ino.bootloader.bin 0x8000 ESP32_PrusaConnectCam.ino.partitions.bin 0x10000 ESP32_PrusaConnectCam.ino.bin
```
Launching the esptool application may be different in different operating systems

164
doc/M5-Unit-CamS3/README.md Normal file
View File

@ -0,0 +1,164 @@
# M5Stack Unit CamS3
What we need for functionality
- M5Stack Unit CamS3 board with OV2640 camera module [here](#esp32)
- Supported camera modules [here](#cam_modules)
- How to upload firmware to the board [here](#flash_fw)
- How to compile software in the Arduino IDE [here](#arduino_cfg)
- How to connect camera board to Prusa Connect [here](#prusa_connect)
- How to reset configuration to factory settings [here](#factory_cfg)
- Status LED [here](#status_led)
- Schematic and pinout [here](#schematic)
- Power supply [here](#power_supply)
- Potential issue [here](#issue)
<a name="esp32"></a>
## M5Stack Unit CamS3
Basic information:
- ESP32-S3-WROOM-1-N16R8 processor module
- 16MB FLASH and 8MB PSRAM
- OV2640 2MP camera
- Internal WiFi antenna
- Micro SD card slot and PDM microphone
- Programmable status LED on GPIO14
- USB programming through the Grove2USB-C adapter
This guide covers the **Unit CamS3 (U174)** with the OV2640 camera. Manufacturer documentation is available [here](https://docs.m5stack.com/en/unit/Unit_CamS3).
<img src="board.webp" alt="M5Stack Unit CamS3 board and hardware features" width=50%>
The hardware images below are saved locally. Their original M5Stack URLs and retrieval details are listed in [SOURCES.md](SOURCES.md).
<a name="cam_modules"></a>
## Supported camera modules
| Camera chip | FOV | Resolution | Tested | Works | Description |
|-------------|-----|------------|--------|-------|-------------|
| OV2640 | 66.5° | 2MP | Yes | Yes | Standard camera module |
The CamS3-5MP is a different camera variant and is not covered by this configuration.
<a name="flash_fw"></a>
## How to upload firmware to the board
Use the **Grove2USB-C adapter**, a Grove cable, a USB data cable and a jumper wire. The Grove port carries the ESP32-S3 native USB signals.
<img src="board_des.webp" alt="Unit CamS3 programming headers, including G0 and GND" width=40%>
- Build the firmware with the Arduino IDE settings [below](#arduino_cfg).
- Disconnect power and connect the camera's Grove port to the Grove2USB-C adapter.
- Connect **G0 (GPIO0)** to **GND** on the exposed pin header, then connect the adapter to the computer using the USB data cable.
- When the serial port appears, remove the jumper and select the port under **Tools -> Port**.
- For the first upload, set **Tools -> Erase All Flash Before Sketch Upload -> Enabled**. This clears saved settings.
- Select **Sketch -> Upload** and wait for it to finish.
- Disconnect and reconnect power with **G0 disconnected from GND** to start the firmware.
For later updates, set **Erase All Flash Before Sketch Upload -> Disabled** to preserve the camera settings. Repeat the download-mode procedure if the uploader cannot connect. If uploading at 921600 fails, try 115200.
This board is not yet included in `fw_build.sh`, so a precompiled release archive is not available. Build and upload from source using the instructions below.
<a name="arduino_cfg"></a>
## How to compile software in the Arduino IDE
Install the Arduino IDE, ESP32 board support and libraries listed in the [main instructions](../../README.md#arduino_lib), then open `ESP32_PrusaConnectCam/ESP32_PrusaConnectCam.ino`.
In [mcu_cfg.h](../../ESP32_PrusaConnectCam/mcu_cfg.h), enable only the M5Stack board:
```c
#define AI_THINKER_ESP32_CAM false
#define ESP32_WROVER_DEV false
#define CAMERA_MODEL_ESP32_S3_DEV_CAM false
#define CAMERA_MODEL_ESP32_S3_EYE_2_2 false
#define CAMERA_MODEL_XIAO_ESP32_S3_CAM false
#define CAMERA_MODEL_ESP32_S3_CAM false
#define ESP32_S3_WROOM_FREENOVE false
#define ESP32_M5_UNIT_CAMS3 true
```
Board configuration in the Arduino IDE, matching the [board configuration header](../../ESP32_PrusaConnectCam/module_ESP32-M5_Unit_CamS3.h):
- Tools -> Board -> ESP32 Arduino -> ESP32S3 Dev Module
- Tools -> USB CDC on BOOT -> Disabled
- Tools -> CPU Frequency -> 240MHz (WiFi/BT)
- Tools -> Core debug level -> None
- Tools -> USB DFU on BOOT -> Disable
- Tools -> Erase all Flash Before Sketch Upload -> Disable (first flash or configuration recovery = enable)
- Tools -> Events Run On -> Core 0
- Tools -> Flash Mode -> QIO 80MHz
- Tools -> Flash Size -> 8MB
- Tools -> Jtag Adapter -> Disable
- Tools -> Arduino Runs On -> Core 0
- Tools -> USB Firmware MSC On Boot -> Disable
- Tools -> Partition scheme -> Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
- Tools -> PSRAM -> OPI PSRAM
- Tools -> Upload Mode -> UART0 / Hardware CDC
- Tools -> Upload Speed -> 921600
- Tools -> USB Mode -> Hardware CDC and JTAG
- Tools -> Zigbee mode -> Disable
The physical board has **16MB flash**. The **8MB** setting above follows the current board configuration and does not use all of the physical flash.
<a name="prusa_connect"></a>
## How to connect camera board to Prusa Connect
Follow the [main Prusa Connect setup instructions](../../README.md#prusa_connect) to configure WiFi and the camera token.
Find the camera's IP address in the router's client list; it may appear as `esp32s3-...`. Open `http://<camera-ip>/` to access the web interface. Alternatively, use `http://prusa-esp32cam.local` if mDNS is available.
- JPEG snapshot: `http://<camera-ip>/saved-photo.jpg`
- Video stream: `http://<camera-ip>/stream.mjpg`
<a name="factory_cfg"></a>
## How to reset configuration to factory settings
The current board configuration uses **GPIO0** for configuration reset. However, grounding this pin before powering on selects download mode, so the generic reset procedure does not clear the camera settings on this board.
To reset the settings, repeat the [firmware upload procedure](#flash_fw) with **Erase All Flash Before Sketch Upload -> Enabled**. This removes saved WiFi details, the camera token and other settings. After uploading, disable flash erasing, remove the jumper, restart the camera and configure it again.
<a name="status_led"></a>
## Status LED
The onboard status LED is connected to **GPIO14**. The blinking patterns are described in the [main status LED guide](../../README.md#status_led).
<a name="schematic"></a>
## Schematic and pinout
The M5Stack schematic is saved [here](schematic.png).
<img src="schematic.png" alt="M5Stack Unit CamS3 schematic" width=100%>
Hardware connections from the manufacturer documentation and schematic:
| Function | ESP32-S3 GPIO |
|----------|---------------|
| Camera SCCB data / clock | 17 / 41 |
| Camera external clock | 11 |
| Camera VSYNC / HREF / pixel clock | 42 / 18 / 12 |
| Camera data D0–D7 | 6, 15, 16, 7, 5, 10, 4, 13 |
| Camera reset | 21 |
| Grove USB D+ / D− | 20 / 19 |
| Status LED | 14 |
| Micro SD CS / MOSI / CLK / MISO | 9 / 38 / 39 / 40 |
| PDM microphone clock / data | 47 / 48 |
These are hardware connections; firmware feature support is described [below](#issue). The current camera configuration leaves `RESET_GPIO_NUM` set to `-1`.
The dimensions drawing is saved [here](dimensions.jpg).
<img src="dimensions.jpg" alt="Unit CamS3 dimensions in millimetres" width=60%>
<a name="power_supply"></a>
## Power Supply
Supply **5V USB power** through the Grove2USB-C adapter and Grove cable. Leave **G0 disconnected from GND** for normal operation.
<a name="issue"></a>
## Potential issue with this board
- Micro SD card operation has not been verified on this board.
- Camera flash and DHT sensor support are disabled in the current configuration. The PDM microphone is not supported by this firmware.
- Cloud updates require a board-specific release binary, which is not yet produced by `fw_build.sh`. For manual OTA updates, upload the application binary from a matching CamS3 build through the web interface's **System** tab.
- The manufacturer's factory firmware has different WiFi defaults and features. Follow this project's setup instructions after uploading PrusaConnect firmware.

View File

@ -0,0 +1,14 @@
# M5Stack hardware references
The images in this directory were published by M5Stack and saved unchanged from its [Unit CamS3 documentation](https://docs.m5stack.com/en/unit/Unit_CamS3).
Retrieved: `2026-10-16T01:12:12.508253+00:00` (UTC).
| Local file | Original M5Stack URL | SHA-256 |
|------------|----------------------|---------|
| [board.webp](board.webp) | [source](https://static-cdn.m5stack.com/resource/docs/products/unit/Unit-CamS3/img-01d9c694-5514-4e0e-ae3e-7d965bba9125.webp) | `5221376d2e8c5f1cc9255caa92f3a0476c6cbda258b1ed22a0d63edc23a0ddee` |
| [board_des.webp](board_des.webp) | [source](https://static-cdn.m5stack.com/resource/docs/products/unit/Unit-CamS3/img-e2756f48-fc8a-4238-9635-c0c4a40d53c6.webp) | `e8433835962078e44635cc7c6598fe75b336cd14196ea81036f6db542bface35` |
| [schematic.png](schematic.png) | [source](https://static-cdn.m5stack.com/resource/docs/products/unit/Unit-CamS3/img-e3213db4-1167-4f95-b6b5-9ff7a42d0111.png) | `61e511ccc274935b99ae3795153e35fa350310e5d08796955d258f0e4eec884b` |
| [dimensions.jpg](dimensions.jpg) | [source](https://static-cdn.m5stack.com/resource/docs/products/unit/Unit-CamS3/img-f1d342e1-5b43-40d6-bab8-438134d98477.jpg) | `0348f0a36ee6758d338f4e2b60d0116131db848288219b795478988f9fe7572e` |
The hardware specifications and pin connections summarized in [README.md](README.md) come from that page and the saved schematic. The product page also describes M5Stack factory firmware; those software features are separate from PrusaConnect firmware support.

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 547 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 432 KiB

View File

@ -3,13 +3,13 @@
<body>
<center><table id="data">
<tr><td class="ps3">Basic settings</td><td></td></tr>
<tr><td class="pc1">Connect Token</td><td ><input type="text" name="token" id=tokenid >&nbsp;<button class="btn_save" onclick="changeValue(encodeURIComponent(document.getElementById('tokenid').value), 'set_token?token=', 'config')">Save</button></td></tr>
<tr><td class="pc1">Fingerprint</td><td class=pc2 id="fingerprint"></td></tr>
<tr><td class="pc1">Trigger Interval [s]</td><td ><input type="text" name="refresh" id=refreshid >&nbsp;<button class="btn_save" onclick="changeValue(document.getElementById('refreshid').value, 'set_int?refresh=', 'config')">Save</button></td></tr>
<tr><td class="pc1" title="Unique identifier used to authenticate camera connections to PrusaConnect server. Must match token configured in Prusa web interface.">Connect Token</td><td ><input type="text" name="token" id=tokenid >&nbsp;<button class="btn_save" onclick="changeValue(encodeURIComponent(document.getElementById('tokenid').value), 'set_token?token=', 'config')">Save</button></td></tr>
<tr><td class="pc1" title="Unique camera identifier for Prusa Connect. Generated automatically from the camera ID and MAC address.">Fingerprint</td><td class=pc2 id="fingerprint"></td></tr>
<tr><td class="pc1" title="How often the photo is taken and sent to Prusa Connect. With Save images to microSD enabled, the photo is also saved to the card.">Trigger Interval [s]</td><td ><input type="text" name="refresh" id=refreshid >&nbsp;<button class="btn_save" onclick="changeValue(document.getElementById('refreshid').value, 'set_int?refresh=', 'config')">Save</button></td></tr>
<tr><td style="height: 1px;"></td><td style="height: 1px;"></td></tr>
<tr><td class="pc1">Image quality</td><td class="pc2">Low <input type="range" class="slider" name="photo_quality" id=photo_qualityid min="10" max="63" step="1" onchange="changeValue(this.value, 'set_int?photo_quality=', 'config')"> High</td></tr>
<tr><td class="pc1" title="JPEG quality. Higher quality means bigger photos and slower upload.">Image quality</td><td class="pc2">Low <input type="range" class="slider" name="photo_quality" id=photo_qualityid min="10" max="63" step="1" onchange="changeValue(this.value, 'set_int?photo_quality=', 'config')"> High</td></tr>
<tr>
<td class="pc1">Resolution</td><td><label for="framesize"></label>
<td class="pc1" title="Image resolution. Higher resolutions use more memory and bandwidth, which reduces framerate in streaming mode.">Resolution</td><td><label for="framesize"></label>
<select class="select" id="framesizeid" name="framesize" onchange="changeValue(this.value, 'set_int?framesize=', 'config')">
<option value="0">320x240</option>
<option value="1">352x288</option>
@ -22,12 +22,12 @@
</td>
</tr>
<tr><td style="height: 1px;"></td><td style="height: 1px;"></td></tr>
<tr><td class="pc1">Brightness</td><td class="pc2">Low <input type="range" class="slider" name="brightness" id=brightnessid min="-2" max="2" step="1" onchange="changeValue(this.value, 'set_int?brightness=', 'config')">High</td></tr>
<tr><td class="pc1">Contrast</td><td class="pc2">Low <input type="range" class="slider" name="contrast" id=contrastid min="-2" max="2" step="1" onchange="changeValue(this.value, 'set_int?contrast=', 'config')"> High</td></tr>
<tr><td class="pc1">Saturation</td><td class="pc2">Low <input type="range" class="slider" name="saturation" id=saturationid min="-2" max="2" step="1" onchange="changeValue(this.value, 'set_int?saturation=', 'config')"> High</td></tr>
<tr><td class="pc1" title="Overall image brightness adjustment.">Brightness</td><td class="pc2">Low <input type="range" class="slider" name="brightness" id=brightnessid min="-2" max="2" step="1" onchange="changeValue(this.value, 'set_int?brightness=', 'config')">High</td></tr>
<tr><td class="pc1" title="Difference between light and dark areas.">Contrast</td><td class="pc2">Low <input type="range" class="slider" name="contrast" id=contrastid min="-2" max="2" step="1" onchange="changeValue(this.value, 'set_int?contrast=', 'config')"> High</td></tr>
<tr><td class="pc1" title="Colour saturation">Saturation</td><td class="pc2">Low <input type="range" class="slider" name="saturation" id=saturationid min="-2" max="2" step="1" onchange="changeValue(this.value, 'set_int?saturation=', 'config')"> High</td></tr>
<tr><td style="height: 1px;"></td><td style="height: 1px;"></td></tr>
<tr>
<td class="pc1">Image Rotation</td><td><label for="image_rotation"></label>
<td class="pc1" title="Rotate image to match camera orientation.">Image Rotation</td><td><label for="image_rotation"></label>
<select class="select" id="image_rotationid" name="image_rotation" onchange="changeValue(this.value, 'set_int?image_rotation=', 'config')">
<option value="1">0°</option>
<option value="6">90°</option>
@ -36,15 +36,15 @@
</select>
</td>
</tr>
<tr><td class="pc1">Horizontal mirror</td><td class="pc2"><label class="switch"><input type="checkbox" name="hmirror" id=hmirrorid onchange="changeValue(this.checked, 'set_bool?hmirror=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_hmirror"></span></td></tr>
<tr><td class="pc1">Vertical flip</td><td class="pc2"><label class="switch"><input type="checkbox" name="vflip" id=vflipid onchange="changeValue(this.checked, 'set_bool?vflip=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_vflip"></span></td></tr>
<tr><td class="pc1" title="Mirror image left-to-right.">Horizontal mirror</td><td class="pc2"><label class="switch"><input type="checkbox" name="hmirror" id=hmirrorid onchange="changeValue(this.checked, 'set_bool?hmirror=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_hmirror"></span></td></tr>
<tr><td class="pc1" title="Flip image vertically (upside-down).">Vertical flip</td><td class="pc2"><label class="switch"><input type="checkbox" name="vflip" id=vflipid onchange="changeValue(this.checked, 'set_bool?vflip=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_vflip"></span></td></tr>
<tr><td style="height: 1px;"></td><td style="height: 1px;"></td></tr>
<tr><td class="pc1">LED light</td><td class="pc2"><label class="switch"><input type="checkbox" name="led" id=ledid onchange="changeValue(this.checked, 'action_led?/led=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_led"></span></td></tr>
<tr><td class="pc1">LED flash</td><td class="pc2"><label class="switch"><input type="checkbox" name="flash" id=flashid onchange="changeValue(this.checked, 'set_bool?flash=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_flash"></span></td></tr>
<tr><td class="pc1">Flash duration</td><td class="pc2">Low <input type="range" class="slider" name="flash_time" id=flash_timeid min="50" max="1500" step="50" onchange="changeValue(this.value, 'set_int?flash_time=', 'config')">High</td></tr>
<tr><td class="pc1">Flash duration</td><td class="pc2"><span id="flash_time_value"></span> ms</td></tr>
<tr><td class="pc1" title="Turn the LED on or off.">LED light</td><td class="pc2"><label class="switch"><input type="checkbox" name="led" id=ledid onchange="changeValue(this.checked, 'action_led?/led=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_led"></span></td></tr>
<tr><td class="pc1" title="Flash LED when taking image">LED flash</td><td class="pc2"><label class="switch"><input type="checkbox" name="flash" id=flashid onchange="changeValue(this.checked, 'set_bool?flash=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_flash"></span></td></tr>
<tr><td class="pc1" title="How long the flash LED is on before the photo is taken.">Flash duration</td><td class="pc2">Short <input type="range" class="slider" name="flash_time" id=flash_timeid min="50" max="1500" step="50" onchange="changeValue(this.value, 'set_int?flash_time=', 'config')">Long</td></tr>
<tr><td class="pc1" title="Current flash duration setting in milliseconds.">Flash duration</td><td class="pc2"><span id="flash_time_value"></span> ms</td></tr>
<tr><td style="height: 1px;"></td><td style="height: 1px;"></td></tr>
<tr><td class="pc1">Save images to micro SD</td><td class="pc2"><label class="switch"><input type="checkbox" name="timelaps" id=timelapsid onchange="changeValue(this.checked, 'set_bool?timelaps_enable=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_timelaps"></span></td></tr>
<tr><td class="pc1" title="Save each photo also to the microSD card (timelapse). Photos are not saved while the stream is running.">Save images to microSD</td><td class="pc2"><label class="switch"><input type="checkbox" name="timelaps" id=timelapsid onchange="changeValue(this.checked, 'set_bool?timelaps_enable=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_timelaps"></span></td></tr>
<tr><td style="height: 1px;"></td><td style="height: 1px;"></td></tr>
</table></center>
<center><button class="btn_collapsible">Advanced settings</button></center>
@ -52,10 +52,10 @@
<center><table id="data">
<tr><td style="height: 1px;"></td><td style="height: 1px;"></td></tr>
<tr><td class="ps3">Advanced settings</td><td></td></tr>
<tr><td class="pc1">Automatic white balancing</td><td class="pc2"><label class="switch"><input type="checkbox" name="awb" id=awbid onchange="changeValue(this.checked, 'set_bool?awb=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_awb"></span></td></tr>
<tr><td class="pc1">Automatic white balancing gain</td><td class="pc2"><label class="switch"><input type="checkbox" name="awb_gain" id=awb_gainid onchange="changeValue(this.checked, 'set_bool?awb_gain=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_awb_gain"></span></td></tr>
<tr><td class="pc1" title="Automatic white balance. Adjusts colours to the lighting conditions.">Automatic white balancing</td><td class="pc2"><label class="switch"><input type="checkbox" name="awb" id=awbid onchange="changeValue(this.checked, 'set_bool?awb=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_awb"></span></td></tr>
<tr><td class="pc1" title="Enable/disable automatic gain adjustment for white balance.">Automatic white balancing gain</td><td class="pc2"><label class="switch"><input type="checkbox" name="awb_gain" id=awb_gainid onchange="changeValue(this.checked, 'set_bool?awb_gain=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_awb_gain"></span></td></tr>
<tr>
<td class="pc1">Automatic white balancing mode</td><td><label for="wb_mode"></label>
<td class="pc1" title="White balance mode.">Automatic white balancing mode</td><td><label for="wb_mode"></label>
<select class="select" id="wb_modeid" name="wb_mode" onchange="changeValue(this.value, 'set_int?wb_mode=', 'config')">
<option value="0">Auto</option>
<option value="1">Sunny</option>
@ -65,20 +65,20 @@
</td>
</tr>
<tr><td style="height: 1px;"></td><td style="height: 1px;"></td></tr>
<tr><td class="pc1">Automatic Exposure Control</td><td class="pc2"><label class="switch"><input type="checkbox" name="exposure_ctrl" id=exposure_ctrlid onchange="changeValue(this.checked, 'set_bool?exposure_ctrl=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_exposure_ctrl"></span></td></tr>
<tr><td class="pc1">Second Level Automatic Exposure Control</td><td class="pc2"><label class="switch"><input type="checkbox" name="aec2" id=aec2id onchange="changeValue(this.checked, 'set_bool?aec2=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_aec2"></span></td></tr>
<tr><td class="pc1">Automatic exposure level</td><td class="pc2">Low <input type="range" class="slider" name="ae_level" id=ae_levelid min="-2" max="2" step="1" onchange="changeValue(this.value, 'set_int?ae_level=', 'config')"> High</td></tr>
<tr><td class="pc1">Automatic exposure time</td><td class="pc2">Low <input type="range" class="slider" name="aec_value" id=aec_valueid min="0" max="1200" step="10" onchange="changeValue(this.value, 'set_int?aec_value=', 'config')">High</td></tr>
<tr><td class="pc1">Automatic exposure time</td><td class="pc2"><span id="aec_value_value"></span> ms</td></tr>
<tr><td class="pc1" title="Automatic Exposure Control: Camera automatically adjusts exposure time based on scene brightness.">Automatic Exposure Control</td><td class="pc2"><label class="switch"><input type="checkbox" name="exposure_ctrl" id=exposure_ctrlid onchange="changeValue(this.checked, 'set_bool?exposure_ctrl=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_exposure_ctrl"></span></td></tr>
<tr><td class="pc1" title="Automatic exposure calculated in the image processor (DSP).">Second-stage Exposure Control (AEC2)</td><td class="pc2"><label class="switch"><input type="checkbox" name="aec2" id=aec2id onchange="changeValue(this.checked, 'set_bool?aec2=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_aec2"></span></td></tr>
<tr><td class="pc1" title="Exposure compensation of the automatic exposure. Only active when Automatic Exposure Control is enabled.">Automatic exposure level</td><td class="pc2">Dark <input type="range" class="slider" name="ae_level" id=ae_levelid min="-2" max="2" step="1" onchange="changeValue(this.value, 'set_int?ae_level=', 'config')"> Bright</td></tr>
<tr><td class="pc1" title="Manual exposure value of the sensor (0-1200). Only active when Automatic Exposure Control is disabled.">Manual exposure time</td><td class="pc2">Short <input type="range" class="slider" name="aec_value" id=aec_valueid min="0" max="1200" step="10" onchange="changeValue(this.value, 'set_int?aec_value=', 'config')">Long</td></tr>
<tr><td class="pc1" title="Current manual exposure value.">Manual exposure time</td><td class="pc2"><span id="aec_value_value"></span></td></tr>
<tr><td style="height: 1px;"></td><td style="height: 1px;"></td></tr>
<tr><td class="pc1">Automatic gain control</td><td class="pc2"><label class="switch"><input type="checkbox" name="gain_ctrl" id=gain_ctrlid onchange="changeValue(this.checked, 'set_bool?gain_ctrl=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_gain_ctrl"></span></td></tr>
<tr><td class="pc1">Automatic gain control level</td><td class="pc2">Low <input type="range" class="slider" name="agc_gain" id=agc_gainid min="0" max="30" step="1" onchange="changeValue(this.value, 'set_int?agc_gain=', 'config')">High</td></tr>
<tr><td class="pc1" title="Automatic Gain Control: Camera adjusts sensor gain (light amplification) automatically.">Automatic gain control</td><td class="pc2"><label class="switch"><input type="checkbox" name="gain_ctrl" id=gain_ctrlid onchange="changeValue(this.checked, 'set_bool?gain_ctrl=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_gain_ctrl"></span></td></tr>
<tr><td class="pc1" title="Manual sensor gain. Only active when Automatic Gain Control is DISABLED. Higher values = more amplification = more noise.">Manual gain control level</td><td class="pc2">Low <input type="range" class="slider" name="agc_gain" id=agc_gainid min="0" max="30" step="1" onchange="changeValue(this.value, 'set_int?agc_gain=', 'config')">High</td></tr>
<tr><td style="height: 1px;"></td><td style="height: 1px;"></td></tr>
<tr><td class="pc1">Bad pixel correction</td><td class="pc2"><label class="switch"><input type="checkbox" name="bpc" id=bpcid onchange="changeValue(this.checked, 'set_bool?bpc=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_bpc"></span></td></tr>
<tr><td class="pc1">White pixel correction</td><td class="pc2"><label class="switch"><input type="checkbox" name="wpc" id=wpcid onchange="changeValue(this.checked, 'set_bool?wpc=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_wpc"></span></td></tr>
<tr><td class="pc1">Raw gamma correction</td><td class="pc2"><label class="switch"><input type="checkbox" name="raw_gama" id=raw_gamaid onchange="changeValue(this.checked, 'set_bool?raw_gama=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_raw_gama"></span></td></tr>
<tr><td class="pc1" title="Bad Pixel Correction: Removes dead/stuck pixels from sensor. Usually enabled.">Bad pixel correction</td><td class="pc2"><label class="switch"><input type="checkbox" name="bpc" id=bpcid onchange="changeValue(this.checked, 'set_bool?bpc=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_bpc"></span></td></tr>
<tr><td class="pc1" title="White Pixel Correction: Corrects white pixel defects (always-on pixels). Usually enabled.">White pixel correction</td><td class="pc2"><label class="switch"><input type="checkbox" name="wpc" id=wpcid onchange="changeValue(this.checked, 'set_bool?wpc=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_wpc"></span></td></tr>
<tr><td class="pc1" title="Raw Gamma Correction: Applies gamma correction to raw sensor data before processing. Affects contrast in shadows/highlights.">Raw gamma correction</td><td class="pc2"><label class="switch"><input type="checkbox" name="raw_gama" id=raw_gamaid onchange="changeValue(this.checked, 'set_bool?raw_gama=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_raw_gama"></span></td></tr>
<tr><td style="height: 1px;"></td><td style="height: 1px;"></td></tr>
<tr><td class="pc1">Lens correction</td><td class="pc2"><label class="switch"><input type="checkbox" name="lenc" id=lencid onchange="changeValue(this.checked, 'set_bool?lenc=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_lensc"></span></td></tr>
<tr><td class="pc1" title="Lens shading correction. Brightens the darker corners of the image (vignetting).">Lens correction</td><td class="pc2"><label class="switch"><input type="checkbox" name="lenc" id=lencid onchange="changeValue(this.checked, 'set_bool?lenc=', 'config')"><span class="checkbox_slider round"></span></label> <span id="status_lensc"></span></td></tr>
</table></center>
</div>
</body>
@ -86,4 +86,4 @@
<script>
get_data("config");
setupCollapsibleButtons();
</script>
</script>