1486
|
1 # jump IO0 to GND on the board for programming
|
|
2
|
|
3 esphome:
|
|
4 name: garage_hall_cam
|
|
5 platform: ESP32
|
|
6 board: nodemcu-32s
|
|
7 build_path: build
|
|
8
|
|
9 wifi:
|
|
10 ssid: !secret wifi_ssid
|
|
11 password: !secret wifi_password
|
|
12 domain: ''
|
|
13 use_address: 10.2.0.21
|
|
14
|
|
15 #mqtt:
|
|
16 # broker: '10.2.0.1'
|
|
17 # port: 1883
|
|
18 # username: ''
|
|
19 # password: ''
|
|
20
|
|
21 logger:
|
|
22 baud_rate: 115200
|
|
23 level: DEBUG
|
|
24
|
|
25 ota:
|
|
26
|
|
27 api:
|
|
28 port: 6053
|
|
29 password: 'MyPassword'
|
|
30
|
|
31 esp32_camera:
|
|
32 external_clock:
|
|
33 pin: GPIO0
|
|
34 frequency: 20MHz
|
|
35 i2c_pins:
|
|
36 sda: GPIO26
|
|
37 scl: GPIO27
|
|
38 data_pins: [GPIO5, GPIO18, GPIO19, GPIO21, GPIO36, GPIO39, GPIO34, GPIO35]
|
|
39 vsync_pin: GPIO25
|
|
40 href_pin: GPIO23
|
|
41 pixel_clock_pin: GPIO22
|
|
42 power_down_pin: GPIO32
|
|
43
|
|
44 name: camera
|
|
45 # setting to 5 causes 'Setup Failed: ERROR'
|
|
46 max_framerate: 1 fps
|
|
47 # https://github.com/raphaelbs/esp32-cam-ai-thinker#capabilities says camera
|
|
48 # is likely ov2640 with these native resolutions:
|
|
49 # uxga=1600x1200 svga=800x600 cif=400x296
|
|
50 # My camera has 'Setup Failed: ERROR' if this is not 640x480. Not sure why.
|
|
51 resolution: 640x480
|
|
52
|
|
53 # 10 to 63. default=10. higher is
|
|
54 # worse. https://github.com/esphome/esphome/blob/6682c43dfaeb1c006943ae546145e5f22262cadb/esphome/components/esp32_camera/__init__.py#L84
|
|
55 # sets the lower limit to 10, but
|
|
56 # https://github.com/raphaelbs/esp32-cam-ai-thinker/blob/master/components/ov2640/sensors/ov2640.c#L345
|
|
57 # suggests that it might be 0 (for an ov2640, anyway).
|
|
58 jpeg_quality: 20
|
|
59
|