Add configuration for Declan's A1 Camera
- Created a new YAML configuration file for the Declan A1 camera. - Configured ESP32 settings, including WiFi, API, OTA, and logging. - Set up I2C for camera communication and defined camera parameters. - Enabled web server for streaming and snapshot modes. - Added a GPIO switch for camera flash control.
This commit is contained in:
80
Cameras/declan-a1-camera.yaml
Normal file
80
Cameras/declan-a1-camera.yaml
Normal file
@@ -0,0 +1,80 @@
|
||||
substitutions:
|
||||
device_name: declan-a1-camera
|
||||
friendly_name: "Declan's A1 Camera"
|
||||
|
||||
esphome:
|
||||
name: ${device_name}
|
||||
friendly_name: ${friendly_name}
|
||||
|
||||
esp32:
|
||||
board: esp32dev
|
||||
framework:
|
||||
type: esp-idf
|
||||
#cpu_frequency: 240MHZ
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
encryption:
|
||||
key: !secret api_encryption_key
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
password: !secret ota_password
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_iot_ssid
|
||||
password: !secret wifi_password
|
||||
ap:
|
||||
ssid: "${friendly_name} Fallback"
|
||||
password: !secret fallback_password
|
||||
|
||||
captive_portal:
|
||||
|
||||
i2c:
|
||||
- id: camera_i2c
|
||||
sda: GPIO26
|
||||
scl: GPIO27
|
||||
|
||||
psram:
|
||||
mode: quad
|
||||
speed: 80MHz
|
||||
|
||||
esp32_camera:
|
||||
external_clock:
|
||||
pin: GPIO0
|
||||
frequency: 20MHz
|
||||
i2c_id: camera_i2c
|
||||
data_pins: [GPIO5, GPIO18, GPIO19, GPIO21, GPIO36, GPIO39, GPIO34, GPIO35]
|
||||
vsync_pin: GPIO25
|
||||
href_pin: GPIO23
|
||||
pixel_clock_pin: GPIO22
|
||||
power_down_pin: GPIO32
|
||||
resolution: 800x600
|
||||
jpeg_quality: 15
|
||||
vertical_flip: False
|
||||
horizontal_mirror: False
|
||||
max_framerate: 20 fps
|
||||
idle_framerate: 0.05 fps
|
||||
|
||||
# Image settings
|
||||
name: ${device_name}
|
||||
brightness: 1
|
||||
#contrast: 0
|
||||
agc_gain_ceiling: 2X
|
||||
agc_mode: MANUAL
|
||||
agc_value: 5
|
||||
# ...
|
||||
|
||||
esp32_camera_web_server:
|
||||
- port: 80
|
||||
mode: STREAM
|
||||
- port: 8080
|
||||
mode: SNAPSHOT
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: "${device_name}-flash"
|
||||
pin: 4
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user