Change board name from ESP32_S3_CAM to ESP32_S3_DEV_CAM. Added template for the ESP32-S3-CAM board

pull/60/head
Miroslav Pivovarsky 2024-06-27 22:31:46 +02:00
parent c88d352720
commit 7cbc3b39be
9 changed files with 90 additions and 21 deletions

View File

@ -4,7 +4,7 @@
It's neccesary install support for ESP32 board to the arduino IDE. In the board manager we need add next link It's neccesary install support for ESP32 board to the arduino IDE. In the board manager we need add next link
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
Then we can install "ESP32 by Espressif Systems" board in the board manager. Then we can install "ESP32 by Espressif Systems" board in the board manager.
ESP32 lib version: 2.0.16 (ESP-IDF v4.4.7) by Espressif Systems ESP32 lib version: 3.0.2 (ESP-IDF v5.1.4) by Espressif Systems
This project uses other libraries. It is necessary to install them in the arduino IDE. This project uses other libraries. It is necessary to install them in the arduino IDE.
- Library - License - Version - Link - Library - License - Version - Link
@ -12,7 +12,7 @@
- AsyncTCP - LGPL 3.0 - 3.1.4 - https://github.com/mathieucarbou/AsyncTCP - AsyncTCP - LGPL 3.0 - 3.1.4 - https://github.com/mathieucarbou/AsyncTCP
- ArduinoJson - MIT - 7.0.4 - https://github.com/bblanchon/ArduinoJson - ArduinoJson - MIT - 7.0.4 - https://github.com/bblanchon/ArduinoJson
- ArduinoUniqueID - MIT - 1.3.0 - https://github.com/ricaun/ArduinoUniqueID - ArduinoUniqueID - MIT - 1.3.0 - https://github.com/ricaun/ArduinoUniqueID
- ESP32 - LGPL 2.1 - 3.0.2 - https://github.com/espressif/arduino-esp32 - arduino-esp32 - LGPL 2.1 - 3.0.2 - https://github.com/espressif/arduino-esp32
Arduino IDE configuration for the MCU are stored in the module_XXX.h file. Arduino IDE configuration for the MCU are stored in the module_XXX.h file.
@ -22,15 +22,6 @@
If you do not disable this option, your camera configuration will continue to be erased from the flash memory If you do not disable this option, your camera configuration will continue to be erased from the flash memory
after uploading new firmware from the Arduino IDE. after uploading new firmware from the Arduino IDE.
Here is partitions table
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
app0, app, ota_0, 0x10000, 0x1E0000,
app1, app, ota_1, 0x1F0000,0x1E0000,
spiffs, data, spiffs, 0x3D0000,0x20000,
coredump, data, coredump,0x3F0000,0x10000,
Project: ESP32 PrusaConnect Camera Project: ESP32 PrusaConnect Camera
Developed for: Prusa Research, prusa3d.com Developed for: Prusa Research, prusa3d.com
Author: Miroslav Pivovarsky Author: Miroslav Pivovarsky

View File

@ -16,9 +16,10 @@
/* ----------------- CAMERA TYPE ---------------*/ /* ----------------- CAMERA TYPE ---------------*/
#define AI_THINKER_ESP32_CAM true #define AI_THINKER_ESP32_CAM true
#define ESP32_WROVER_DEV false #define ESP32_WROVER_DEV false
#define CAMERA_MODEL_ESP32_S3_CAM false #define CAMERA_MODEL_ESP32_S3_DEV_CAM false
#define CAMERA_MODEL_ESP32_S3_EYE_2_2 false #define CAMERA_MODEL_ESP32_S3_EYE_2_2 false
#define CAMERA_MODEL_XIAO_ESP32_S3_CAM false #define CAMERA_MODEL_XIAO_ESP32_S3_CAM false
#define CAMERA_MODEL_ESP32_S3_CAM false
/* ---------------- BASIC MCU CFG --------------*/ /* ---------------- BASIC MCU CFG --------------*/
#define SW_VERSION "1.1.0-rc1" ///< SW version #define SW_VERSION "1.1.0-rc1" ///< SW version

View File

@ -0,0 +1,74 @@
/**
@file module_ESP32-S3-CAM.h
@brief Definition of the diymore esp32-s3-cam module
@author Miroslav Pivovarsky
Contact: miroslav.pivovarsky@gmail.com
@bug: NOT COMPLETED!
*/
#pragma once
#include "mcu_cfg.h"
#ifdef CAMERA_MODEL_ESP32_S3_CAM
/* --------------- CAMERA CFG -------------------*/
#define PWDN_GPIO_NUM -1 ///< Power down control pin
#define RESET_GPIO_NUM -1 ///< Reset control pin
#define XCLK_GPIO_NUM 15 ///< External clock pin
#define SIOD_GPIO_NUM 4 ///< SCCB: SI/O data pin
#define SIOC_GPIO_NUM 5 ///< SCCB: SI/O control pin
#define Y9_GPIO_NUM 16 ///< SCCB: Y9 pin
#define Y8_GPIO_NUM 17 ///< SCCB: Y8 pin
#define Y7_GPIO_NUM 18 ///< SCCB: Y7 pin
#define Y6_GPIO_NUM 12 ///< SCCB: Y6 pin
#define Y5_GPIO_NUM 10 ///< SCCB: Y5 pin
#define Y4_GPIO_NUM 8 ///< SCCB: Y4 pin
#define Y3_GPIO_NUM 9 ///< SCCB: Y3 pin
#define Y2_GPIO_NUM 11 ///< SCCB: Y2 pin
#define VSYNC_GPIO_NUM 6 ///< Vertical sync pin
#define HREF_GPIO_NUM 7 ///< Line sync pin
#define PCLK_GPIO_NUM 13 ///< Pixel clock pin
/* ------------------ MCU CFG ------------------*/
#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-s3-cam.bin") ///< OTA update firmware file name
#define FW_STATUS_LED_PIN 4 ///< 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 FLASH_GPIO_NUM 48 ///< 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 14 ///< GPIO pin for SD card clock
#define SD_PIN_CMD 15 ///< GPIO pin for SD card command
#define SD_PIN_DATA0 2 ///< GPIO pin for SD card data 0
/* ---------- RESET CFG CONFIGURATION ----------*/
#define CFG_RESET_PIN 12 ///< GPIO 16 is for reset CFG to default
#define CFG_RESET_LED_PIN 4 ///< 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 33 ///< GPIO pin for status LED
#define STATUS_LED_OFF_PIN_LEVEL LOW ///< GPIO pin level for status LED ON
#endif
/* EOF */

View File

@ -61,7 +61,7 @@
#define ENABLE_PSRAM true ///< Enable PSRAM #define ENABLE_PSRAM true ///< Enable PSRAM
/* --------------- OTA UPDATE CFG --------------*/ /* --------------- OTA UPDATE CFG --------------*/
#define OTA_UPDATE_FW_FILE PSTR("ESP32S3_EYE22_PrusaConnectCam.ino.bin") ///< OTA update firmware file name #define OTA_UPDATE_FW_FILE PSTR("ESP32S3_EYE22.bin") ///< OTA update firmware file name
#define FW_STATUS_LED_PIN 3 ///< GPIO pin for status FW update LED #define FW_STATUS_LED_PIN 3 ///< GPIO pin for status FW update LED
#define FW_STATUS_LED_LEVEL_ON LOW ///< GPIO pin level for status LED ON #define FW_STATUS_LED_LEVEL_ON LOW ///< GPIO pin level for status LED ON

View File

@ -49,7 +49,7 @@
#define ENABLE_PSRAM true ///< Enable PSRAM #define ENABLE_PSRAM true ///< Enable PSRAM
/* --------------- OTA UPDATE CFG --------------*/ /* --------------- OTA UPDATE CFG --------------*/
#define OTA_UPDATE_FW_FILE PSTR("ESP32_WROVERDEV_PrusaConnectCam.ino.bin") ///< OTA update firmware file name #define OTA_UPDATE_FW_FILE PSTR("ESP32_WROVERDEV.bin") ///< OTA update firmware file name
#define FW_STATUS_LED_PIN 2 ///< GPIO pin for status FW update LED #define FW_STATUS_LED_PIN 2 ///< GPIO pin for status FW update LED
#define FW_STATUS_LED_LEVEL_ON LOW ///< GPIO pin level for status LED ON #define FW_STATUS_LED_LEVEL_ON LOW ///< GPIO pin level for status LED ON

View File

@ -1,5 +1,5 @@
/** /**
@file module_ESP32-WROVER-DEV.h @file module_ESP32-S3-DEV-CAM.h
@brief Definition of the ESP32-S3 DEV CAM module @brief Definition of the ESP32-S3 DEV CAM module
@ -35,7 +35,7 @@
#include "mcu_cfg.h" #include "mcu_cfg.h"
#ifdef CAMERA_MODEL_ESP32_S3_CAM #ifdef CAMERA_MODEL_ESP32_S3_DEV_CAM
/* --------------- CAMERA CFG -------------------*/ /* --------------- CAMERA CFG -------------------*/
#define PWDN_GPIO_NUM -1 ///< Power down control pin #define PWDN_GPIO_NUM -1 ///< Power down control pin
@ -60,7 +60,7 @@
#define ENABLE_PSRAM true ///< Enable PSRAM #define ENABLE_PSRAM true ///< Enable PSRAM
/* --------------- OTA UPDATE CFG --------------*/ /* --------------- OTA UPDATE CFG --------------*/
#define OTA_UPDATE_FW_FILE PSTR("ESP32S3_CAM_PrusaConnectCam.ino.bin") ///< OTA update firmware file name #define OTA_UPDATE_FW_FILE PSTR("ESP32S3_DEV_CAM.bin") ///< OTA update firmware file name
#define FW_STATUS_LED_PIN 34 ///< GPIO pin for status FW update LED #define FW_STATUS_LED_PIN 34 ///< GPIO pin for status FW update LED
#define FW_STATUS_LED_LEVEL_ON LOW ///< GPIO pin level for status LED ON #define FW_STATUS_LED_LEVEL_ON LOW ///< GPIO pin level for status LED ON

View File

@ -20,8 +20,8 @@
#elif (true == ESP32_WROVER_DEV) #elif (true == ESP32_WROVER_DEV)
#include "module_ESP32-WROVER-DEV.h" #include "module_ESP32-WROVER-DEV.h"
#elif (true == CAMERA_MODEL_ESP32_S3_CAM) #elif (true == CAMERA_MODEL_ESP32_S3_DEV_CAM)
#include "module_ESP32_S3_CAM.h" #include "module_ESP32_S3_DEV_CAM.h"
#elif (true == CAMERA_MODEL_ESP32_S3_EYE_2_2) #elif (true == CAMERA_MODEL_ESP32_S3_EYE_2_2)
#include "module_ESP32-S3-EYE_2_2.h" #include "module_ESP32-S3-EYE_2_2.h"
@ -29,6 +29,9 @@
#elif (true == CAMERA_MODEL_XIAO_ESP32_S3_CAM) #elif (true == CAMERA_MODEL_XIAO_ESP32_S3_CAM)
#include "module_XIAO_ESP32-S3-cam.h" #include "module_XIAO_ESP32-S3-cam.h"
#elif (true == CAMERA_MODEL_ESP32_S3_CAM)
#include "module_ESP32_S3_CAM.h"
#else #else
#error "No module selected" #error "No module selected"