Working on esp32-cam.

This commit is contained in:
2020-12-24 08:04:42 -05:00
parent 0ca3ec7faa
commit 0f248f982a
2 changed files with 31 additions and 13 deletions

View File

@@ -29,30 +29,47 @@ api:
ota:
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: ESP32_Cam1
resolution: 640x480
jpeg_quality: 20
i2c:
- id: bus_a
sda: 13
scl: 16
sda: GPIO03
scl: GPIO01
scan: True
#i2c:
# sda: D2
# scl: D1
# scan: True
# id: bus_a
sensor:
- platform: bme280
temperature:
name: "esp32_cam1_BME280 Temperature"
name: "ESP32_Cam1_BME280 Temperature"
oversampling: 16x
pressure:
name: "esp32_cam1_BME280 Pressure"
name: "ESP32_Cam1_BME280 Pressure"
humidity:
name: "esp32_cam1_BME280 Humidity"
name: "ESP32_Cam1_BME280 Humidity"
address: 0x76
i2c_id: bus_a
update_interval: 60s
i2c_id: bus_a
- platform: bh1750
name: "ESP32_Cam1_BH1750 Illuminance"
address: 0x23
measurement_time: 69
update_interval: 60s
i2c_id: bus_a