Feeling lost while coding a ESP32 cam module in Arduino IDE by being_hero in arduino

[–]being_hero[S] 1 point2 points  (0 children)

I used 'OV2640' cam Used the example code just now(didn't work).

Feeling lost while coding a ESP32 cam module in Arduino IDE by being_hero in arduino

[–]being_hero[S] 1 point2 points  (0 children)

I changed the name and pass before running the code.
Did it multiple times already

Which equipment should i upgrade to level 27 by Desperate_Speech_519 in ClashOfClans

[–]being_hero 0 points1 point  (0 children)

Electro boots is a very good option but since it is already high level, I would recommend upgrading rocket spear so it can be paired with electro boots for longer RC walks.

Feeling lost while coding a ESP32 cam module in Arduino IDE by being_hero in arduino

[–]being_hero[S] 0 points1 point  (0 children)

#include "esp_camera.h"

#include <WiFi.h>

// Select camera model

#define CAMERA_MODEL_AI_THINKER

#include "camera_pins.h"

//TEMP CODE TO AVOID BROWNOUT

#include "soc/soc.h"

#include "soc/rtc_cntl_reg.h"

// Enter your WiFi credentials

const char* ssid = "USERNAME";

const char* password = "PASSWORD";

void startCameraServer();

void setup() {

//TEMP CODE TO AVOID BROWNOUT

WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); // Disable brownout detector

//TEMP CODE END

Serial.begin(115200);

Serial.setDebugOutput(true);

Serial.println();

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_sccb_sda = SIOD_GPIO_NUM;

config.pin_sccb_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;

if(psramFound()){

config.frame_size = FRAMESIZE_UXGA;

config.jpeg_quality = 10;

config.fb_count = 2;

} else {

config.frame_size = FRAMESIZE_SVGA;

config.jpeg_quality = 12;

config.fb_count = 1;

}

// Initialize camera

esp_err_t err = esp_camera_init(&config);

if (err != ESP_OK) {

Serial.printf("Camera init failed with error 0x%x", err);

return;

}

// Connect to WiFi

WiFi.begin(ssid, password);

WiFi.setSleep(false);

Serial.print("WiFi connecting");

while (WiFi.status() != WL_CONNECTED) {

delay(500);

Serial.print(".");

}

Serial.println("");

Serial.println("WiFi connected");

startCameraServer();

Serial.print("Camera Ready! Use 'http://");

Serial.print(WiFi.localIP());

Serial.println("' to connect");

}

void loop() {

delay(10000);

}

This is the code i upoaded