annotate espNode/office_back_cam.yaml @ 773:bc3516d02762

old changes in espNode Ignore-this: cbdcaf859b465e76c2c98e0d4510a1d3
author drewp@bigasterisk.com
date Sun, 28 Jun 2020 14:05:12 -0700
parents
children 7831b5de3572
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
773
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
1 # device is https://www.amazon.com/ESP32-CAM-Bluetooth-Camera-Module-Development/dp/B07S5PVZKV/ref=sr_1_3
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
2
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
3 # has no rst pin, so
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
4 # 1. connect DTR to IO0
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
5 # 2. inv monitor-usb --board office_back_cam
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
6 # 3. press reset button
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
7 # 4. ctrl-c, inv program-board-over-usb --board office_back_cam
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
8
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
9 # mosquitto_sub -v -t office_back_cam/status
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
10
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
11 # bang(pts/15):/my/proj/homeauto/espNode% catchsegv ./readcam.py --cam office_back_cam --port 10021
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
12
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
13
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
14
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
15 esphome:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
16 name: office_back_cam
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
17 platform: ESP32
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
18 board: esp32cam
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
19 build_path: build
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
20
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
21 wifi:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
22 ssid: !secret wifi_ssid
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
23 password: !secret wifi_password
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
24 domain: ''
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
25 use_address: '10.2.0.35'
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
26
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
27 mqtt:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
28 broker: '10.2.0.1'
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
29 port: 1883
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
30 username: ''
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
31 password: ''
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
32
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
33 logger:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
34 baud_rate: 115200
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
35 level: DEBUG
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
36
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
37 ota:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
38
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
39 api:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
40 port: 6053
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
41 password: 'MyPassword'
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
42
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
43 # https://randomnerdtutorials.com/esp32-cam-ai-thinker-pinout/
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
44 esp32_camera:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
45 external_clock:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
46 pin: GPIO0
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
47 frequency: 20MHz
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
48 i2c_pins:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
49 sda: GPIO26
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
50 scl: GPIO27
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
51 data_pins: [GPIO5, GPIO18, GPIO19, GPIO21, GPIO36, GPIO39, GPIO34, GPIO35]
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
52 vsync_pin: GPIO25
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
53 href_pin: GPIO23
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
54 pixel_clock_pin: GPIO22
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
55 power_down_pin: GPIO32
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
56
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
57 name: camera
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
58
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
59 # https://github.com/esphome/esphome/blob/dev/esphome/components/esp32_camera/esp32_camera.cpp#L265 says a 'stream' is 5 sec long
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
60
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
61 # setting to 5 causes 'Setup Failed: ERROR'
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
62 max_framerate: 4 fps
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
63 # https://github.com/raphaelbs/esp32-cam-ai-thinker#capabilities says camera
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
64 # is likely ov2640 with these native resolutions:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
65 # uxga=1600x1200 svga=800x600 cif=400x296
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
66
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
67 # 160x120 (QQVGA) 'Got invalid frame', then no more
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
68 # 128x160 (QQVGA2)
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
69 # 176x144 (QCIF) fps: 25 jpg: 20 img: 2KB burst of frames then stopped.
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
70 # fps: 20 jpg: 20 no frames
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
71 # 240x176 (HQVGA)
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
72 # 320x240 (QVGA) fps: 10 jpg: 20 some frames, 4.5KB
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
73 # 400x296 (CIF)
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
74 # 640x480 (VGA) fps: 4 jpg: 10 works, 20KB
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
75 # 800x600 (SVGA)
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
76 # 1024x768 (XGA)
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
77 # 1280x1024 (SXGA) fps: 1 works
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
78 # 1600x1200 (UXGA)
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
79
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
80 resolution: 640x480
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
81
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
82 # 10 to 63. default=10. higher is
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
83 # worse. https://github.com/esphome/esphome/blob/6682c43dfaeb1c006943ae546145e5f22262cadb/esphome/components/esp32_camera/__init__.py#L84
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
84 # sets the lower limit to 10, but
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
85 # https://github.com/raphaelbs/esp32-cam-ai-thinker/blob/master/components/ov2640/sensors/ov2640.c#L345
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
86 # suggests that it might be 0 (for an ov2640, anyway).
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
87 jpeg_quality: 10
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
88
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
89 output:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
90 - platform: gpio
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
91 pin: GPIO4
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
92 id: gpio_4
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
93
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
94 light:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
95 - platform: fastled_clockless
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
96 chipset: WS2812B
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
97 pin: GPIO13
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
98 num_leds: 1
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
99 rgb_order: GRB
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
100 name: "strip"
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
101 # - platform: monochromatic
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
102 # name: "flash"
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
103 # output: flash_out
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
104 - platform: binary
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
105 output: gpio_4
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
106 name: flash
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
107
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
108
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
109 dallas:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
110 - pin: GPIO15
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
111 update_interval: 10s
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
112
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
113 sensor:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
114 - platform: dallas
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
115 index: 0
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
116 name: temperature
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
117
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
118 # output:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
119 # - platform: ledc
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
120 # id: flash_out
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
121 # pin: GPIO4
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
122 # frequency: 19531Hz