Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save peyanski/3c02a7276db7c9371b725713b1391a4c to your computer and use it in GitHub Desktop.
Save peyanski/3c02a7276db7c9371b725713b1391a4c to your computer and use it in GitHub Desktop.
esphome:
name: esp32-cam
platform: ESP32
board: esp32dev
# Enable logging
logger:
# Enable Home Assistant API
api:
reboot_timeout: 0s
ota:
web_server:
port: 80
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp32-Cam Fallback Hotspot"
password: "C3FOhAPFtouw"
captive_portal:
# Example configuration entry
esp32_camera:
external_clock:
pin: GPIO0
frequency: 20MHz
i2c_pins:
sda: GPIO26
scl: GPIO27
data_pins: [GPIO5, GPIO18, GPIO19, GPIO21, GPIO36, GPIO39, GPIO34, GPIO35]
vsync_pin: GPIO25
href_pin: GPIO23
pixel_clock_pin: GPIO22
power_down_pin: GPIO32
# Image settings
name: My ESP32-CAM
# Flashlight
output:
- platform: gpio
pin: GPIO4
id: gpio_4
## GPIO_4 is the flash light pin
light:
- platform: binary
output: gpio_4
name: flashlight
@lidans5
Copy link

lidans5 commented Jan 21, 2023

Hi, i'm trying to run your project which seems great, but I get the following message:
ERROR Running command failed: Failed to connect to ESP32: No serial data received.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
ERROR Please try running esptool.py --before default_reset --after hard_reset --baud 460800 --port /dev/ttyUSB1 --chip esp32 write_flash -z --flash_size detect 0x10000 /data/esp32-cam/.pioenvs/esp32-cam/firmware.bin 0x1000 /data/esp32-cam/.pioenvs/esp32-cam/bootloader.bin 0x8000 /data/esp32-cam/.pioenvs/esp32-cam/partitions.bin 0xe000 /data/cache/platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment