Compare commits

2 Commits
main ... hc300

Author SHA1 Message Date
cc609653da . 2021-11-26 14:38:08 -08:00
af882b5a3b configuration more or less dialed in 2021-11-26 14:35:33 -08:00
6 changed files with 22 additions and 6 deletions

5
.gitignore vendored Normal file
View File

@@ -0,0 +1,5 @@
.pio
.vscode/.browse.c_cpp.db*
.vscode/c_cpp_properties.json
.vscode/launch.json
.vscode/ipch

7
.vscode/extensions.json vendored Normal file
View File

@@ -0,0 +1,7 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"platformio.platformio-ide"
]
}

View File

@@ -13,8 +13,8 @@ platform = espressif32
board = esp32cam board = esp32cam
framework = arduino framework = arduino
board_build.partitions = customparts.csv board_build.partitions = customparts.csv
;upload_port = COM6 ;com port of the ESP32-cam upload_port = /dev/ttyUSB0 ;com port of the ESP32-cam
upload_port = x.x.x.x ;ip address of the ESP32-cam ; upload_port = x.x.x.x ;ip address of the ESP32-cam
build_flags = build_flags =
; -DBOARD_HAS_PSRAM=TRUE ; -DBOARD_HAS_PSRAM=TRUE
-DLED_BUILTIN=4 -DLED_BUILTIN=4

View File

@@ -33,7 +33,11 @@ void setup()
// Initialize the ESP32 CAM, here we use the AIthinker ESP32 CAM // Initialize the ESP32 CAM, here we use the AIthinker ESP32 CAM
delay(100); delay(100);
cam.init(esp32cam_aithinker_config); camera_config_t cfg=esp32cam_aithinker_config;
cfg.frame_size=FRAMESIZE_XGA;
cfg.jpeg_quality=25;
cfg.fb_count=1; // 2 causes interference-like streaking
cam.init(cfg);
delay(100); delay(100);
//LED settings //LED settings

View File

@@ -116,7 +116,7 @@ void handle_jpg_stream(void)
thisClient.write((char *)cam.getfb(), cam.getSize()); thisClient.write((char *)cam.getfb(), cam.getSize());
server1.sendContent("\r\n"); server1.sendContent("\r\n");
delay(20); delay(100); // 10 fps
} }
} }

View File

@@ -1,4 +1,4 @@
#include <Arduino.h> #include <Arduino.h>
// Change YOUR_AP_NAME and YOUR_AP_PASSWORD to your WiFi credentials // Change YOUR_AP_NAME and YOUR_AP_PASSWORD to your WiFi credentials
const char *ssid = "YOUR_SSID"; // Put your SSID here const char *ssid = "ncc74656"; // Put your SSID here
const char *password = "YOUR_PASSWORD"; // Put your PASSWORD here const char *password = "Rw7qfY5tmtaWbXaWQ5aMSRkF"; // Put your PASSWORD here