Skip to content
Branch: master
Clone or download
Latest commit f923e2f Apr 25, 2019




  • Now Arduino officially supports the camera, you need to update the Arduino to the latest, see arduino-esp32 for details.I am using the 1.0.1rc2 version when writing this code.

  • In order to support BME280, I will use Adafruit_BME280_Library, but this library conflicts with <esp_camera.h> and enters Adafruit_BME280_Library In Adafruit_BME280_Library change <Adafruit_BME280.h> --> 29 lines comment #include <Adafruit_Sensor.h>, BME280 this library does not use this header file, so comment out and no problem

  • OLED requires esp8266-oled-ssd1306 library support

  • Buttons require OneButton library support

Board Modify

  • The Camera version sold by TTGO will not have the BME280 sensor, because the temperature on the board affects the accuracy of the sensor. The default program does not enable the BME280 function. If necessary, turn on the ENABLE_BME280 (on esp32-camera-bme280.ino line 12)
  • Add OV2640 microphone version board support, need to enable TTGO_OV2640_V16 macro for pin conversion, no microphone test, need microphone test please use T-Camera


Name BME280/NoBME280-Version Microphone-Version
Y9 39 36
Y8 36 15
Y7 23 12
Y6 18 39
Y5 15 35
Y4 4 14
Y3 14 13
Y2 5 34
VSNC 27 5
HREF 25 27
PCLK 19 25
PWD 26 N/A
XCLK 32 4
SIOD 13 18
SIOC 12 23
SDA 21 21
SCL 22 22
Button 34 0
PIR 33 19
  • BUTTON Click: Reverse camera Currently the camera reverse color will not be normal, see issues#9

  • BUTTON LongPress : Enter sleep Mode , Sleep current 6.9mA

  • RESET BUTTON: When the battery is powered, click to turn on the power

  • PIR: Detecting human motion and will display the first screen

Test Video


You can’t perform that action at this time.