Advertisement
svinedyret

ESP32-CAM / ESPHome

Feb 24th, 2023 (edited)
37
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | Source Code | 0 0
  1. # Basic Config
  2. # Projekt sammen med Michael Fris Pedersen
  3. esphome:
  4.  
  5.  
  6. name: esp_cam02
  7. platform: ESP32
  8. board: esp32dev
  9.  
  10. # Enable logging
  11. logger:
  12.  
  13. # Enable Home Assistant API
  14. api:
  15. encryption:
  16. key: "zzufFDnYR8S7oKPsX7bHvItcEwVcv8qCYY7TBShGmk8="
  17.  
  18. ota:
  19. password: "457afc8365538ad1301fc593942269f5"
  20.  
  21. web_server:
  22. port: 80
  23. auth:
  24. username: 'test'
  25. password: 'test'
  26.  
  27. wifi:
  28. ssid: !secret wifi_ssid
  29. password: !secret wifi_password
  30.  
  31. # Enable fallback hotspot (captive portal) in case wifi connection fails
  32. ap:
  33. ssid: "Kamera-Projekt Fallback Hotspot"
  34. password: "d7SW9xe3cV1i"
  35.  
  36. captive_portal:
  37.  
  38. esp32_camera:
  39. external_clock:
  40. pin: GPIO0
  41. frequency: 20MHz
  42. i2c_pins:
  43. sda: GPIO26
  44. scl: GPIO27
  45. data_pins: [GPIO5, GPIO18, GPIO19, GPIO21, GPIO36, GPIO39, GPIO34, GPIO35]
  46.  
  47. # the order of the data_pins is significant, don't mix up the order
  48.  
  49. vsync_pin: GPIO25
  50. href_pin: GPIO23
  51. pixel_clock_pin: GPIO22
  52. power_down_pin: GPIO32
  53. resolution: 800x600
  54. name: esp_cam02
  55. idle_framerate: 0.1fps
  56.  
  57. output:
  58. - platform: ledc
  59. pin: GPIO4
  60. channel: 2 # channel 1 is used for esp32_camera
  61. id: led
  62. light:
  63. - platform: monochromatic
  64. output: led
  65. name: espcam_02 light
  66.  
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement