From 0f248f982a9adfc23cbce73bfe551267b69c566f Mon Sep 17 00:00:00 2001 From: Tim Meneely Date: Thu, 24 Dec 2020 08:04:42 -0500 Subject: [PATCH] Working on esp32-cam. --- esp32_cam1.yaml | 43 ++++++++++++++++++++++++++++++------------- upload_esp32_cam1 | 1 + 2 files changed, 31 insertions(+), 13 deletions(-) create mode 100644 upload_esp32_cam1 diff --git a/esp32_cam1.yaml b/esp32_cam1.yaml index 80710ee..8bfec38 100644 --- a/esp32_cam1.yaml +++ b/esp32_cam1.yaml @@ -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 - diff --git a/upload_esp32_cam1 b/upload_esp32_cam1 new file mode 100644 index 0000000..693554a --- /dev/null +++ b/upload_esp32_cam1 @@ -0,0 +1 @@ +esphome esp32_cam1.yaml run --upload-port 192.168.87.17