Skip to content

Instantly share code, notes, and snippets.

@TheGroundZero
Last active April 14, 2021 13:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheGroundZero/85a5c18bee72e6c95afcc654a4e4aa7a to your computer and use it in GitHub Desktop.
Save TheGroundZero/85a5c18bee72e6c95afcc654a4e4aa7a to your computer and use it in GitHub Desktop.
ESPcam ESP32-S AI-Thinker camera
# Board: https://www.aliexpress.com/item/32807887667.html
# FTDI flasher: https://www.aliexpress.com/item/32650148276.html
# Use 3.3V from FTDI for flashing
# Use 5V 1A+ power supply for powering the board
substitutions:
esphome_name: espcam_example
camera_name: Camera example
esphome:
name: "${esphome_name}"
platform: ESP32
board: node32s
wifi:
ssid: !secret iot_wifi_ssid
password: !secret iot_wifi_pass
domain: .iot.local
api:
reboot_timeout: 60min
password: !secret esphome_api_pass
ota:
password: !secret esphome_ota_pass
time:
- platform: homeassistant
logger:
#web_server:
# port: 80
# Configuration for Ai-Thinker Camera
esp32_camera:
name: "${camera_name}"
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
max_framerate: 5 fps
idle_framerate: 0.1 fps
resolution: 800x600
jpeg_quality: 10
# Flash
switch:
- platform: gpio
name: "${camera_name} flash"
pin: 4
#inverted: True
- platform: restart
name: "${esphome_name} - Restart"
id: restart_switch
sensor:
# General
- platform: uptime
name: "${esphome_name} - Uptime Sensor"
- platform: wifi_signal
name: "${esphome_name} - WiFi Signal"
update_interval: 60s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment