Moving on to adding ESP32-Cam while waiting on support for the effect stuff.
This commit is contained in:
parent
515eba5cac
commit
a70729fb98
1 changed files with 65 additions and 0 deletions
65
esphome/device_packages/esp32-cam.yaml
Normal file
65
esphome/device_packages/esp32-cam.yaml
Normal file
|
|
@ -0,0 +1,65 @@
|
||||||
|
esphome:
|
||||||
|
platformio_options:
|
||||||
|
build_flags: "-DBOARD_HAS_PSRAM"
|
||||||
|
board_build.arduino.memory_type: qio_opi
|
||||||
|
board_build.flash_mode: dio
|
||||||
|
|
||||||
|
esp32:
|
||||||
|
board: esp32cam
|
||||||
|
framework:
|
||||||
|
type: esp-idf
|
||||||
|
|
||||||
|
psram:
|
||||||
|
mode: quad
|
||||||
|
speed: 80MHz
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
output_power: 8.5db
|
||||||
|
power_save_mode: NONE
|
||||||
|
|
||||||
|
i2c:
|
||||||
|
- id: camera_i2c
|
||||||
|
sda: GPIO26
|
||||||
|
scl: GPIO27
|
||||||
|
|
||||||
|
esp32_camera_web_server:
|
||||||
|
- port: 8080
|
||||||
|
mode: stream
|
||||||
|
- port: 8081
|
||||||
|
mode: snapshot
|
||||||
|
|
||||||
|
esp32_camera:
|
||||||
|
name: esp32-cam
|
||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
|
max_framerate: 12 fps
|
||||||
|
idle_framerate: 0.2 fps
|
||||||
|
resolution: 1024x768
|
||||||
|
jpeg_quality: 10
|
||||||
|
vertical_flip: False
|
||||||
|
|
||||||
|
|
||||||
|
output:
|
||||||
|
- platform: ledc
|
||||||
|
pin: GPIO4
|
||||||
|
channel: 2
|
||||||
|
min_power: 0
|
||||||
|
max_power: 0.5
|
||||||
|
id: led
|
||||||
|
light:
|
||||||
|
- platform: monochromatic
|
||||||
|
output: led
|
||||||
|
name: espcam_02 light
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: internal_temperature
|
||||||
|
name: "Internal Temperature"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue