Skip to content

Instantly share code, notes, and snippets.

@crossan007
Forked from mbernson/camera.yaml
Created November 25, 2021 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crossan007/5c4c561986e61ed1e69321a36730da50 to your computer and use it in GitHub Desktop.
Save crossan007/5c4c561986e61ed1e69321a36730da50 to your computer and use it in GitHub Desktop.
esphome configuration for the TTGO T-Camera ESP32-WROVER-B
# esphome configuration for the TTGO T-Camera ESP32-WROVER-B
# https://www.aliexpress.com/item/TTGO-T-Camera-ESP32-WROVER-B-PSRAM-Camera-Module-ESP32-WROVER-OV2640-Camera-Module-0-96/32966036489.html
# I use this 3D-printed case for the device:
# https://www.thingiverse.com/thing:3540059
esphome:
name: woonkamer
platform: ESP32
board: esp32dev
wifi:
ssid: "your_network"
password: "xxxxx"
# Enable logging
logger:
# Enable Home Assistant API
api:
password: 'xxxx'
# Password for over-the-air updating of ESPHome firmware
ota:
password: 'xxxx'
i2c:
sda: 21
scl: 22
# Comment out if you have a font file in place, otherwise it won't compile
# font:
# - file: "Roboto-Bold.ttf"
# id: roboto
# size: 14
#
# display:
# - platform: ssd1306_i2c
# model: "SSD1306 128x64"
# rotation: 180
# lambda: |-
# it.print(0, 10, id(roboto), "Hello World!");
esp32_camera:
name: Camera
external_clock:
pin: 32
frequency: 20MHz
i2c_pins:
sda: 13
scl: 12
data_pins:
- 5
- 14
- 4
- 15
- 18
- 23
- 36
- 39
vsync_pin: 27
href_pin: 25
pixel_clock_pin: 19
resolution: 640x480 # Can be higher, I think, but this has a pretty good framerate
binary_sensor:
- platform: gpio
pin: 33
name: "PIR Sensor"
device_class: motion
- platform: gpio
pin: 34
name: "Button"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment