Last active
March 9, 2024 23:45
-
-
Save mbernson/4d7768b4fda6403b9220f38c069069b0 to your computer and use it in GitHub Desktop.
esphome configuration for the TTGO T-Camera ESP32-WROVER-B
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
Hi @m1kr0b1, the ESP32-WROVER-B module is standalone and can be flashed via USB using a computer. There's no raspberry pi or wiring involved.
Adding 'inverted' to the button gives you a momentary "on" in HASS
- platform: gpio
pin:
number: 34
inverted: True
name: "Button"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, can you tell me how you wired this to the RasPi? Are you using an FTDI programer? If so, what is the wiring diagram?