From 67e7c8a9328c8c34ddb8bcb43e5099cdab312690 Mon Sep 17 00:00:00 2001 From: Anatoli Arkhipenko Date: Tue, 26 May 2020 09:19:06 -0400 Subject: [PATCH] Readme updates --- README.md | 44 ++++++++++++++------- esp32-cam/esp32-cam.ino | 87 ++++++++++++++++++++--------------------- 2 files changed, 72 insertions(+), 59 deletions(-) diff --git a/README.md b/README.md index 0dd0b11..7c1427a 100644 --- a/README.md +++ b/README.md @@ -8,25 +8,39 @@ 2. unzip using `unzip -j esp32-cam-master.zip` command. This will place all files in the same folder -**NOTE:** please observe the `-j` flag: the sketch assumes all files are in the same folder. + -3. In **esp32-cam.ino** sketch select your camera pin assignment. The choices are: + **NOTE:** please observe the `-j` flag: the sketch assumes all files are in the same folder. -1. CAMERA_MODEL_WROVER_KIT -2. CAMERA_MODEL_ESP_EYE -3. CAMERA_MODEL_M5STACK_PSRAM -4. CAMERA_MODEL_M5STACK_WIDE -5. CAMERA_MODEL_AI_THINKER -4. Compile the **esp32-cam.ino** sketch using the following settings: -ESP32 Dev Module -CPU Freq: 240 -Flash Freq: 80 -Flash mode: QIO -Flash Size: 4Mb -Partition: Minimal SPIFFS (or any other that would fit the sketch) -PSRAM: Enabled +In **esp32-cam.ino** sketch select your camera pin assignment. + +The choices are: + +- CAMERA_MODEL_WROVER_KIT + +- CAMERA_MODEL_ESP_EYE + +- CAMERA_MODEL_M5STACK_PSRAM + +- CAMERA_MODEL_M5STACK_WIDE + +- CAMERA_MODEL_AI_THINKER + + + +Compile the **esp32-cam.ino** sketch using the following settings: + +- ESP32 Dev Module +- CPU Freq: 240 +- Flash Freq: 80 +- Flash mode: QIO +- Flash Size: 4Mb +- Partition: Minimal SPIFFS (or any other that would fit the sketch) +- PSRAM: Enabled + + ### Results: diff --git a/esp32-cam/esp32-cam.ino b/esp32-cam/esp32-cam.ino index a72468b..10ef464 100644 --- a/esp32-cam/esp32-cam.ino +++ b/esp32-cam/esp32-cam.ino @@ -45,16 +45,16 @@ #include "camera_pins.h" /* -Next one is an include with wifi credentials. -This is what you need to do: + Next one is an include with wifi credentials. + This is what you need to do: -1. Create a file called "home_wifi_multi.h" in the same folder OR under a separate subfolder of the "libraries" folder of Arduino IDE. (You are creating a "fake" library really - I called it "MySettings"). -2. Place the following text in the file: -#define SSID1 "replace with your wifi ssid" -#define PWD1 "replace your wifi password" -3. Save. + 1. Create a file called "home_wifi_multi.h" in the same folder OR under a separate subfolder of the "libraries" folder of Arduino IDE. (You are creating a "fake" library really - I called it "MySettings"). + 2. Place the following text in the file: + #define SSID1 "replace with your wifi ssid" + #define PWD1 "replace your wifi password" + 3. Save. -Should work then + Should work then */ #include "home_wifi_multi.h" @@ -395,35 +395,35 @@ void setup() // Configure the camera -// camera_config_t config; -// config.ledc_channel = LEDC_CHANNEL_0; -// config.ledc_timer = LEDC_TIMER_0; -// config.pin_d0 = Y2_GPIO_NUM; -// config.pin_d1 = Y3_GPIO_NUM; -// config.pin_d2 = Y4_GPIO_NUM; -// config.pin_d3 = Y5_GPIO_NUM; -// config.pin_d4 = Y6_GPIO_NUM; -// config.pin_d5 = Y7_GPIO_NUM; -// config.pin_d6 = Y8_GPIO_NUM; -// config.pin_d7 = Y9_GPIO_NUM; -// config.pin_xclk = XCLK_GPIO_NUM; -// config.pin_pclk = PCLK_GPIO_NUM; -// config.pin_vsync = VSYNC_GPIO_NUM; -// config.pin_href = HREF_GPIO_NUM; -// config.pin_sscb_sda = SIOD_GPIO_NUM; -// config.pin_sscb_scl = SIOC_GPIO_NUM; -// config.pin_pwdn = PWDN_GPIO_NUM; -// config.pin_reset = RESET_GPIO_NUM; -// config.xclk_freq_hz = 20000000; -// config.pixel_format = PIXFORMAT_JPEG; -// -// // Frame parameters: pick one -// // config.frame_size = FRAMESIZE_UXGA; -// // config.frame_size = FRAMESIZE_SVGA; -// // config.frame_size = FRAMESIZE_QVGA; -// config.frame_size = FRAMESIZE_VGA; -// config.jpeg_quality = 12; -// config.fb_count = 2; + // camera_config_t config; + // config.ledc_channel = LEDC_CHANNEL_0; + // config.ledc_timer = LEDC_TIMER_0; + // config.pin_d0 = Y2_GPIO_NUM; + // config.pin_d1 = Y3_GPIO_NUM; + // config.pin_d2 = Y4_GPIO_NUM; + // config.pin_d3 = Y5_GPIO_NUM; + // config.pin_d4 = Y6_GPIO_NUM; + // config.pin_d5 = Y7_GPIO_NUM; + // config.pin_d6 = Y8_GPIO_NUM; + // config.pin_d7 = Y9_GPIO_NUM; + // config.pin_xclk = XCLK_GPIO_NUM; + // config.pin_pclk = PCLK_GPIO_NUM; + // config.pin_vsync = VSYNC_GPIO_NUM; + // config.pin_href = HREF_GPIO_NUM; + // config.pin_sscb_sda = SIOD_GPIO_NUM; + // config.pin_sscb_scl = SIOC_GPIO_NUM; + // config.pin_pwdn = PWDN_GPIO_NUM; + // config.pin_reset = RESET_GPIO_NUM; + // config.xclk_freq_hz = 20000000; + // config.pixel_format = PIXFORMAT_JPEG; + // + // // Frame parameters: pick one + // // config.frame_size = FRAMESIZE_UXGA; + // // config.frame_size = FRAMESIZE_SVGA; + // // config.frame_size = FRAMESIZE_QVGA; + // config.frame_size = FRAMESIZE_VGA; + // config.jpeg_quality = 12; + // config.fb_count = 2; static camera_config_t camera_config = { .pin_pwdn = PWDN_GPIO_NUM, @@ -447,12 +447,12 @@ void setup() .ledc_timer = LEDC_TIMER_0, .ledc_channel = LEDC_CHANNEL_0, .pixel_format = PIXFORMAT_JPEG, - -// .frame_size = FRAMESIZE_QVGA, - .frame_size = FRAMESIZE_UXGA, -// .frame_size = FRAMESIZE_SVGA, -// .frame_size = FRAMESIZE_QVGA, -// .frame_size = FRAMESIZE_VGA, + + // .frame_size = FRAMESIZE_QVGA, + // .frame_size = FRAMESIZE_UXGA, + // .frame_size = FRAMESIZE_SVGA, + // .frame_size = FRAMESIZE_QVGA, + .frame_size = FRAMESIZE_VGA, .jpeg_quality = 12, .fb_count = 2 }; @@ -499,7 +499,6 @@ void setup() APP_CPU); } - void loop() { // loop() runs in the RTOS Idle Task. // If loop has a chance to run, there is nothing else for the CPU to do