Working on esp32-cam.
This commit is contained in:
@@ -29,30 +29,47 @@ api:
|
|||||||
|
|
||||||
ota:
|
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:
|
i2c:
|
||||||
- id: bus_a
|
- id: bus_a
|
||||||
sda: 13
|
sda: GPIO03
|
||||||
scl: 16
|
scl: GPIO01
|
||||||
scan: True
|
scan: True
|
||||||
|
|
||||||
|
|
||||||
#i2c:
|
|
||||||
# sda: D2
|
|
||||||
# scl: D1
|
|
||||||
# scan: True
|
|
||||||
# id: bus_a
|
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- platform: bme280
|
- platform: bme280
|
||||||
temperature:
|
temperature:
|
||||||
name: "esp32_cam1_BME280 Temperature"
|
name: "ESP32_Cam1_BME280 Temperature"
|
||||||
oversampling: 16x
|
oversampling: 16x
|
||||||
pressure:
|
pressure:
|
||||||
name: "esp32_cam1_BME280 Pressure"
|
name: "ESP32_Cam1_BME280 Pressure"
|
||||||
humidity:
|
humidity:
|
||||||
name: "esp32_cam1_BME280 Humidity"
|
name: "ESP32_Cam1_BME280 Humidity"
|
||||||
address: 0x76
|
address: 0x76
|
||||||
i2c_id: bus_a
|
|
||||||
update_interval: 60s
|
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
|
||||||
|
|
||||||
|
|||||||
1
upload_esp32_cam1
Normal file
1
upload_esp32_cam1
Normal file
@@ -0,0 +1 @@
|
|||||||
|
esphome esp32_cam1.yaml run --upload-port 192.168.87.17
|
||||||
Reference in New Issue
Block a user