Readme updates

master
Anatoli Arkhipenko 4 years ago
parent fd4b6aade2
commit 67e7c8a932

@ -8,25 +8,39 @@
2. unzip using `unzip -j esp32-cam-master.zip` command. This will place all files in the same folder 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 In **esp32-cam.ino** sketch select your camera pin assignment.
CPU Freq: 240
Flash Freq: 80 The choices are:
Flash mode: QIO
Flash Size: 4Mb - CAMERA_MODEL_WROVER_KIT
Partition: Minimal SPIFFS (or any other that would fit the sketch)
PSRAM: Enabled - 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: ### Results:

@ -45,16 +45,16 @@
#include "camera_pins.h" #include "camera_pins.h"
/* /*
Next one is an include with wifi credentials. Next one is an include with wifi credentials.
This is what you need to do: 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"). 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: 2. Place the following text in the file:
#define SSID1 "replace with your wifi ssid" #define SSID1 "replace with your wifi ssid"
#define PWD1 "replace your wifi password" #define PWD1 "replace your wifi password"
3. Save. 3. Save.
Should work then Should work then
*/ */
#include "home_wifi_multi.h" #include "home_wifi_multi.h"
@ -395,35 +395,35 @@ void setup()
// Configure the camera // Configure the camera
// camera_config_t config; // camera_config_t config;
// config.ledc_channel = LEDC_CHANNEL_0; // config.ledc_channel = LEDC_CHANNEL_0;
// config.ledc_timer = LEDC_TIMER_0; // config.ledc_timer = LEDC_TIMER_0;
// config.pin_d0 = Y2_GPIO_NUM; // config.pin_d0 = Y2_GPIO_NUM;
// config.pin_d1 = Y3_GPIO_NUM; // config.pin_d1 = Y3_GPIO_NUM;
// config.pin_d2 = Y4_GPIO_NUM; // config.pin_d2 = Y4_GPIO_NUM;
// config.pin_d3 = Y5_GPIO_NUM; // config.pin_d3 = Y5_GPIO_NUM;
// config.pin_d4 = Y6_GPIO_NUM; // config.pin_d4 = Y6_GPIO_NUM;
// config.pin_d5 = Y7_GPIO_NUM; // config.pin_d5 = Y7_GPIO_NUM;
// config.pin_d6 = Y8_GPIO_NUM; // config.pin_d6 = Y8_GPIO_NUM;
// config.pin_d7 = Y9_GPIO_NUM; // config.pin_d7 = Y9_GPIO_NUM;
// config.pin_xclk = XCLK_GPIO_NUM; // config.pin_xclk = XCLK_GPIO_NUM;
// config.pin_pclk = PCLK_GPIO_NUM; // config.pin_pclk = PCLK_GPIO_NUM;
// config.pin_vsync = VSYNC_GPIO_NUM; // config.pin_vsync = VSYNC_GPIO_NUM;
// config.pin_href = HREF_GPIO_NUM; // config.pin_href = HREF_GPIO_NUM;
// config.pin_sscb_sda = SIOD_GPIO_NUM; // config.pin_sscb_sda = SIOD_GPIO_NUM;
// config.pin_sscb_scl = SIOC_GPIO_NUM; // config.pin_sscb_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 = 20000000; // config.xclk_freq_hz = 20000000;
// config.pixel_format = PIXFORMAT_JPEG; // config.pixel_format = PIXFORMAT_JPEG;
// //
// // Frame parameters: pick one // // Frame parameters: pick one
// // config.frame_size = FRAMESIZE_UXGA; // // config.frame_size = FRAMESIZE_UXGA;
// // config.frame_size = FRAMESIZE_SVGA; // // config.frame_size = FRAMESIZE_SVGA;
// // config.frame_size = FRAMESIZE_QVGA; // // config.frame_size = FRAMESIZE_QVGA;
// config.frame_size = FRAMESIZE_VGA; // config.frame_size = FRAMESIZE_VGA;
// config.jpeg_quality = 12; // config.jpeg_quality = 12;
// config.fb_count = 2; // config.fb_count = 2;
static camera_config_t camera_config = { static camera_config_t camera_config = {
.pin_pwdn = PWDN_GPIO_NUM, .pin_pwdn = PWDN_GPIO_NUM,
@ -447,12 +447,12 @@ void setup()
.ledc_timer = LEDC_TIMER_0, .ledc_timer = LEDC_TIMER_0,
.ledc_channel = LEDC_CHANNEL_0, .ledc_channel = LEDC_CHANNEL_0,
.pixel_format = PIXFORMAT_JPEG, .pixel_format = PIXFORMAT_JPEG,
// .frame_size = FRAMESIZE_QVGA, // .frame_size = FRAMESIZE_QVGA,
.frame_size = FRAMESIZE_UXGA, // .frame_size = FRAMESIZE_UXGA,
// .frame_size = FRAMESIZE_SVGA, // .frame_size = FRAMESIZE_SVGA,
// .frame_size = FRAMESIZE_QVGA, // .frame_size = FRAMESIZE_QVGA,
// .frame_size = FRAMESIZE_VGA, .frame_size = FRAMESIZE_VGA,
.jpeg_quality = 12, .jpeg_quality = 12,
.fb_count = 2 .fb_count = 2
}; };
@ -499,7 +499,6 @@ void setup()
APP_CPU); APP_CPU);
} }
void loop() { void loop() {
// loop() runs in the RTOS Idle Task. // loop() runs in the RTOS Idle Task.
// If loop has a chance to run, there is nothing else for the CPU to do // If loop has a chance to run, there is nothing else for the CPU to do

Loading…
Cancel
Save