comparison espNode/garage_hall_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 b14020802f8a
children 7831b5de3572
comparison
equal deleted inserted replaced
772:2500a3ee9102 773:bc3516d02762
1 # jump IO0 to GND on the board for programming 1 # jump IO0 to GND on the board for programming
2
3 # bang(pts/13):/my/proj/homeauto/espNode% forever { catchsegv ./readcam.py --cam garage_hall_cam --port 10020 -v }
4
2 5
3 esphome: 6 esphome:
4 name: garage_hall_cam 7 name: garage_hall_cam
5 platform: ESP32 8 platform: ESP32
6 board: nodemcu-32s 9 board: nodemcu-32s
8 11
9 wifi: 12 wifi:
10 ssid: !secret wifi_ssid 13 ssid: !secret wifi_ssid
11 password: !secret wifi_password 14 password: !secret wifi_password
12 domain: '' 15 domain: ''
13 use_address: 10.2.0.21 16 use_address: 10.2.0.28
14 17
15 #mqtt: 18 #mqtt:
16 # broker: '10.2.0.1' 19 # broker: '10.2.0.1'
17 # port: 1883 20 # port: 1883
18 # username: '' 21 # username: ''
40 href_pin: GPIO23 43 href_pin: GPIO23
41 pixel_clock_pin: GPIO22 44 pixel_clock_pin: GPIO22
42 power_down_pin: GPIO32 45 power_down_pin: GPIO32
43 46
44 name: camera 47 name: camera
48
49 # https://github.com/esphome/esphome/blob/dev/esphome/components/esp32_camera/esp32_camera.cpp#L265 says a 'stream' is 5 sec long
50
45 # setting to 5 causes 'Setup Failed: ERROR' 51 # setting to 5 causes 'Setup Failed: ERROR'
46 max_framerate: 1 fps 52 max_framerate: 4 fps
47 # https://github.com/raphaelbs/esp32-cam-ai-thinker#capabilities says camera 53 # https://github.com/raphaelbs/esp32-cam-ai-thinker#capabilities says camera
48 # is likely ov2640 with these native resolutions: 54 # is likely ov2640 with these native resolutions:
49 # uxga=1600x1200 svga=800x600 cif=400x296 55 # uxga=1600x1200 svga=800x600 cif=400x296
50 # My camera has 'Setup Failed: ERROR' if this is not 640x480. Not sure why. 56 # My camera has 'Setup Failed: ERROR' if this is not 640x480. Not sure why.
57 # Also the camera had 'Setup Failed: ERROR' when its cable needed reseating.
58
59 # 160x120 (QQVGA) 'Got invalid frame', then no more
60 # 128x160 (QQVGA2)
61 # 176x144 (QCIF) fps: 25 jpg: 20 img: 2KB burst of frames then stopped.
62 # fps: 20 jpg: 20 no frames
63 # 240x176 (HQVGA)
64 # 320x240 (QVGA) fps: 10 jpg: 20 some frames, 4.5KB
65 # 400x296 (CIF)
66 # 640x480 (VGA) fps: 4 jpg: 10 works, 20KB
67 # 800x600 (SVGA)
68 # 1024x768 (XGA)
69 # 1280x1024 (SXGA) fps: 1 works
70 # 1600x1200 (UXGA)
71
51 resolution: 640x480 72 resolution: 640x480
52 73
53 # 10 to 63. default=10. higher is 74 # 10 to 63. default=10. higher is
54 # worse. https://github.com/esphome/esphome/blob/6682c43dfaeb1c006943ae546145e5f22262cadb/esphome/components/esp32_camera/__init__.py#L84 75 # worse. https://github.com/esphome/esphome/blob/6682c43dfaeb1c006943ae546145e5f22262cadb/esphome/components/esp32_camera/__init__.py#L84
55 # sets the lower limit to 10, but 76 # sets the lower limit to 10, but
56 # https://github.com/raphaelbs/esp32-cam-ai-thinker/blob/master/components/ov2640/sensors/ov2640.c#L345 77 # 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). 78 # suggests that it might be 0 (for an ov2640, anyway).
58 jpeg_quality: 20 79 jpeg_quality: 10
59 80