mirror of
https://github.com/EyeTrackVR/OpenIris.git
synced 2025-11-04 15:39:42 +08:00
Increase XCLK frequency to 24MHz for higher frame rates on ESP32-S3 boards (#49)
* feat: increase OV2640 clock freq to yield ~70FPS * fix: cleanup comments
This commit is contained in:
parent
e8c6bab99b
commit
f496ec4a52
@ -11,6 +11,13 @@ void CameraHandler::setupCameraPinout() {
|
|||||||
log_i("Camera module is undefined");
|
log_i("Camera module is undefined");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// camera external clock signal frequencies
|
||||||
|
// 10000000 stable
|
||||||
|
// 16500000 optimal freq on ESP32-CAM (default)
|
||||||
|
// 20000000 max freq on ESP32-CAM
|
||||||
|
// 24000000 optimal freq on ESP32-S3
|
||||||
|
int xclk_freq_hz = 16500000;
|
||||||
|
|
||||||
#if CONFIG_CAMERA_MODULE_ESP_EYE
|
#if CONFIG_CAMERA_MODULE_ESP_EYE
|
||||||
/* IO13, IO14 is designed for JTAG by default,
|
/* IO13, IO14 is designed for JTAG by default,
|
||||||
* to use it as generalized input,
|
* to use it as generalized input,
|
||||||
@ -27,6 +34,9 @@ void CameraHandler::setupCameraPinout() {
|
|||||||
pinMode(13, INPUT_PULLUP);
|
pinMode(13, INPUT_PULLUP);
|
||||||
pinMode(14, INPUT_PULLUP);
|
pinMode(14, INPUT_PULLUP);
|
||||||
log_i("CAM_BOARD");
|
log_i("CAM_BOARD");
|
||||||
|
#elif CONFIG_CAMERA_MODULE_ESPS3WROVER
|
||||||
|
/* ESP32-S3 is capable of using higher freqs */
|
||||||
|
xclk_freq_hz = 24000000;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
config.ledc_channel = LEDC_CHANNEL_0;
|
config.ledc_channel = LEDC_CHANNEL_0;
|
||||||
@ -48,9 +58,7 @@ void CameraHandler::setupCameraPinout() {
|
|||||||
config.pin_sccb_scl = SIOC_GPIO_NUM;
|
config.pin_sccb_scl = SIOC_GPIO_NUM;
|
||||||
config.pin_pwdn = PWDN_GPIO_NUM;
|
config.pin_pwdn = PWDN_GPIO_NUM;
|
||||||
config.pin_reset = RESET_GPIO_NUM;
|
config.pin_reset = RESET_GPIO_NUM;
|
||||||
config.xclk_freq_hz = 16500000; // 10000000 stable,
|
config.xclk_freq_hz = xclk_freq_hz;
|
||||||
// 16500000 optimal,
|
|
||||||
// 20000000 max fps
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CameraHandler::setupBasicResolution() {
|
void CameraHandler::setupBasicResolution() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user