TTGO T-Camera ESP32 (V162/V17)

Last Updated on 4. October 2026 by SuffocationLink status: OK

Many who engage with the ESP32 CamLink status: OK have been occupied with, thought about an expansion with a PIRLink status: OK oder andere Sensoren nach. LiLyGo hat eine Serie von mehreren Kameras herausgebracht, unter anderem die beiden vorliegenden Modelle mit einem PIR Sensor und einigen anderen interessanten Zusätzen.

Es gibt mehr als zwei Varianten, hier möchte ich die folgenden vorstellen:

  • Version 1.62 with microphone (called 162 by the manufacturer)
  • Version 1.7 ohne Mikrophon (beim Hersteller 17 genannt)

Diese gibt es zudem noch mit zwei unterschiedlichen Linsen. Eine normale und eine Fischaugen-Linse.

Als Zubehör gibt es einen Drucksensor, der an den Steckverbinder angeschlossen werden kann und ein Gehäuse. Für das Gehäuse gibts noch eine Gummi-Stoßsicherung.

Pins sind bis auf die Schnittstelle unten keine nach außen geführt. Über diese kann mittels I²C Bus mehr Peripherie angeschlossen werden.

Facts

  • ESP32
  • OV2640 2 Megapixel Camera (optional fisheye lens)
  • SSD1306Link status: OK Monochrom Oled Display 128×64 Pixel
  • PIR SensorLink status: OK AS312
  • Micro USB port for programming
  • Microphone (optional)
  • 2-button reset + freely assignable
  • Battery connection Japan Standard TimeLink status: OK 1.25mm with charger IP5306 with I²C connection
  • Antenna connector IPEXLink status: Unknown
  • Connector for I²C devices

Pin assignment

Camera

DescriptionPin Without Mic (V170)Pin with mic (V162)
DVP Y93936
DVP Y83637
DVP Y72338
DVP Y61839
DVP Y51535
DVP Y4414
DVP Y31413
DVP Y2534
Variable speed drive (VSD)275
DVP HREF2527
DVP PCLK1925
DVP PWDN/AN/A
DVP XCLK324
DVP SIOD1318
DVP SIOC1223
DVP RESETN/AN/A
https://github.com/lewisxhe/esp32-camera-series/blob/master/docsLink status: OK

Other

DescriptionPin
PIR Sensor (with mic/without mic)19/33
Right button34
Microphone
SCK28
SDO33
WS32
SSD
I²C SDA21
I2C SCL22
Connector
5V1
Mass GND2
3.3V3
IO22 (I²C SCL)4
IO21 (I²C SDA)5
https://github.com/lewisxhe/esp32-camera-series/blob/master/docsLink status: OK

Areas of application

  • Surveillance
  • Model making
  • Spycam
  • Spyhole

Views

Analyse

TC(1)
Without a microphone
Source: LinkLink status: Unknown
TC_Mic
With microphone
Source: LinkLink status: Unknown

Programming

Libraries

Camera

Die Bibliothek ist mittlerweile beim ESP32 Board dabei, wer es aktuell mag, hier der Link zum Git Projekt.

https://github.com/espressif/arduino-esp32Link status: OK

SSD1306

LiLyGo verwendet per se nicht die Adafruit Bibliotheken, somit wird für das SSD1306 Display die folgende Bibliothek verwendet:

https://github.com/ThingPulse/esp8266-oled-ssd1306Link status: OK

Taster

The following library is used for the button:

https://github.com/mathertel/OneButtonLink status: OK

Optional IP5306 charger

Der Akkulader hat einen I²C Anschluss, mit Hilfe dessen einige Informationen wie Batterieladestatus usw. ausgelesen werden können.

Hier eine Bibliothek, die dabei unterstützt:

https://github.com/shaap/IP5306-arduino/blob/master/IP5306.hLink status: OK

Test programme

Preliminary work

  • Download the example program LinkLink status: OK.
    • Clone the repository or download as a Zip.
    • The test program is in the sketch folder.
  • Install the above libraries or place copies in the Sketch folder.

Code anpassen

Changes in the Sketch.ino file

Document the correct board version

/***************************************
 *  Board selection
 **************************************/
/* Select your board here; see the board list in the README for details*/
// #define T_Camera_JORNAL_VERSION
// #define T_Camera_MINI_VERSION
// #define T_Camera_PLUS_VERSION
// #define T_Camera_V05_VERSION
// #define T_Camera_V16_VERSION
#define T_Camera_V162_VERSION
// #define T_Camera_V17_VERSION
// #define ESPRESSIF_ESP_EYE

Enter WLAN data

/***************************************
 *  Wi-Fi
 **************************************/
#define WIFI_SSID   "TEST"
#define WIFI_PASSWD "TEST123456789""

Stir everything together, heat gently, compile, and play to the board. Here are my board settings:

Board settings

Link status: Unknown

An IP address should be displayed on the screen after a short time. You might try pressing the left (Reset) button.

IP on the display

With the help of this IP, the camera's website can be accessed in the browser.

Start the stream now, and a somewhat dark camera image should appear.

Problems

The IP address is not displayed

WLan Einstellungen nochmal überprüfen, evtl. externe Antenne anschließen.

Website not reachable

Check firewall. Ping the camera if possible.

Weitere Probleme

The ESP32 Cam post lists further problem cases that might help.

https://www.fambach.net/esp32-cam-modul/Link status: OK

Miscellaneous

Battery operation

Das Kameraboard verfügt über eine Japan Standard TimeLink status: OK 1,25mm Akkuanschlussbuchse, die mit dem Laderbaustein IP5306 verbunden ist.

Mit einem Lipo 3.7V 1500mAh konnte ich die Kamera im Dauerbetrieb rund >3 Stunden betreiben.

Interessanter wäre es, die Kamera in den Schlafmodus zu versetzen und nur auf Signale vom PIRLink status: OK to wait.

In addition to the class already linked above:

https://github.com/shaap/IP5306-arduino/blob/master/IP5306.hLink status: OK

habe ich noch diese vom M5 Stack gefunden, sie erscheint mir etwas komfortabler.

https://github.com/m5stack/M5Stack/blob/master/src/utility/Power.hLink status: OK

3D housing

https://www.thingiverse.com/search?q=t-camera&type=things&sort=relevantLink status: Unknown

This also looks smart:

https://www.thingiverse.com/thing:3704769Link status: Unknown

I printed this case myself.

https://www.thingiverse.com/thing:3440888Link status: Unknown

Mein Druck ist auf Druckgeschwindigkeit ausgelegt. Mit besseren Druckern oder langsameren Druckoptionen ist sicherlich eine bessere Qualität möglich.

Requirement

  • 12 Metre Filament Print Time
  • 2.5 hours printing time
  • 4th M3 * 16 Countersunk Screw (I only had pan head, which also worked)
  • 1st M3 *20 Countersunk Screw
  • 1st M3 * 8 Senkkopfschraube
  • 3 M3 Muttern evtl. Unterlegscheiben

Print settings:

PrinterCTC Bizzer
MaterialPLA
AdhesionHere without /
aber besser mit, siehe Ecken
Hotplate0°C
Print matBlue tape
Printing temperature220°C
Shell thickness1mm
Layer height0.2mm
Druckgeschwindigkeit60mm/s
Retraction-Geschwindigkeit50 mm/s
Print data for CTC Bizzer

Die Teile sehen auf den ersten Blick ganz gut aus. Die Halterung passt perfekt auf die Kugel. Diese ist nicht zu klein, somit auch schön rund.

The housing doesn't fit together well for me, the tolerances are too small for my cheap printer. The strut in the middle is due to my print bed.

3D printed enclosure assembled, side view, doesn't quite fit together.

Dafür passt das Kameraboard mit sanfter Gewalt gut ins Gehäuse.

3D Printed Housing, Front Panel with Cam Board

Alles in allem sieht ganz gut aus 😉

3D printed housing mounted, from the side
3D printed case mounted from above

For a bit more space, I also tried the following casing.

https://www.thingiverse.com/thing:3414820Link status: Unknown

Requirement

  • 8 metres filament print time
  • 1.5 hours print duration
  • 4 x M3 x 8 pan head screws
  • 6St M1 Spax etc. or possibly hot glue or similar.

Print settings:

PrinterCTC Bizer
MaterialPLA
AdhesionRim/base plate
Hotplate0°C
Print matBlue tape
Printing temperature220°C
Shell thickness1mm
Layer height0.2mm
Druckgeschwindigkeit60mm/s
Retraction-Geschwindigkeit50 mm/s

Das Gehäuse sieht schlicht aus, erfüllt aber seinen Zweck. Die kleinen Schrauben sind etwas friemelig aber halten das Board gut am Deckel.

Deckel mit aufgeschraubtem Board und Akku

Auch für den Akku ist genügend Platz

Base unit with battery
Screwed-on housing

Even my thick micro USB plug fits.

Conclusion

Thanks to the manufacturer's website and some prior knowledge, the camera is quickly ready for use (approx. 30 minutes). One advantage is the existing Micro USB port. You don't need to connect a programmer first.

Die Helligkeit der Kamera ist mit den Standard Einstellungen nicht wirklich überzeugend. Hieran kann sicherlich noch etwas optimiert werden. Auch laufen die Bilder etwas nach. Das soll heißen, wenn sich die Szene ändert, werden noch, wie bei einem Wasserzeichen, Teile des alten Bildes angezeigt. Ich vermute, auch das dürfte mit etwas Tuning behoben werden.

Otherwise the camera reacts better than its little brother the ESP32 CamLink status: OK and also seems to work well with supply voltages under 5V.

Einem Dauertest habe ich die Kamera noch nicht unterzogen, allerdings lief sie bei mir mehrere Stunden am USB-Port ohne Abstürze. Der PIRLink status: OK and a few other features haven't been used by me yet.

If you have any further information or recommendations that I should include, please just leave me a comment.

Related Posts

Sources

Manufacturer's page on GITLink status: OK

Shopping on Ali ExpressLink status: Unknown

Facial recognitionLink status: Unknown

Circuit diagram V162Link status: Unknown

Circuit diagram V17Link status: Unknown

IP5306Link status: OK

https://www.thingiverse.com/search?q=t-camera&type=things&sort=relevantLink status: Unknown

https://www.thingiverse.com/thing:3440888Link status: Unknown

https://www.thingiverse.com/thing:3704769Link status: Unknown

fambach.net/esp32-cam-moduleLink status: OK

https://github.com/lewisxhe/esp32-camera-screenLink status: Unknown

DateChangeAuthor
04.10.2026Rechtschreibung korrigiert: Tippfehler, Kommas, Groß-/Kleinschreibung, GrammatikSuffocation
03.10.2026Log-Liste eingefügtSuffocation
31.05.2020Post createdSuffocation
Changelog

5 thoughts on “TTGO T-Kamera ESP32 (V162/V17)”

  1. Hello Stefan,
    I still need a prompt for programming the PIR sensor.
    A photo upon movement, then going back to sleep until the next motion detection.
    I can't manage it on my own.
    Thanks in advance.
    LG

  2. Hello forum,
    As often happened, the problem was sitting in front of the computer. I had only copied the ino file in the sketch and not all the others, such as the select_pins..h file.
    Have a nice weekend

  3. Hi, I've deleted your other posts...
    You are missing the file with the pinout for the board, you can find it here:

    https://github.com/lewisxhe/esp32-camera-series/tree/master/sketch

    You still need to add a `define` for your camera before the `#include "select_pins.h"` in the .ino file – or it’s probably already there, so you just need to comment it out.

    For version 1.7, that would then be:
    #define T_Camera_V17_VERSION

    For a V17 Plus version, I found nothing in the file.
    But the pinout is described on the camera screen page in the same repository, so you just need to create a new section in select_pins.h or adapt the one for the 17.

    Hello
    Stefan

  4. Hello forum, hopefully now in the right section!

    I am a new owner of the TTGO t-camera esp32 board. The back has the definition ESP 32 Wrover-B.

    I followed the instructions precisely, downloaded the test program, and installed version 17 plus the two libraries.

    https://github.com/lewisxhe/esp32-cam...

    Version 05 also tried without success, although recommended by Rui Santos (Random Nerd Tutorials)

    [Blocked Graphic: https://makeradvisor.com/wp-content/uploads/2020/09/TTGO-T-Camera-ESP32-OLED-PIR-Sensor-Arduino-IDE-Settings.png%5D
    Should the image not arrive!

    Board: ESP32 Dev Module

    Partition Scheme: Huge APP /3MB No OTA/1MB SPIFFS

    PSRAM: Enabled

    Compilation error

    Exit status 1
    select_pins.h: No such file or directory
    Marking in the sketch
    #include "select_pins.h"„

    I would be grateful for suggestions for solutions 🙂

    Greetings

Leave a Reply

Your email address will not be published. Required fields are marked *