TTGO T-Camera ESP32 (V162/V17)

Last updated on 13 March 2021 by Suffocation

Many who engage with the ESP32 Cam beschäftigt haben, dachten über eine Erweiterung um einen PIR oder andere Sensoren nach. LiLyGo hat eine Serie von mehreren Kameras herausgebracht, unter anderem die beiden vorliegenden Modell 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 without microphone (called 17 by the manufacturer)

These are also available with two different lenses. A normal and a fisheye lens.

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 aussen geführt. Über diese kann mittels I²C Bus mehr Peripherie angeschlossen werden.

Facts

  • ESP32
  • OV2640 2 Megapixel Camera (optional fisheye lens)
  • SSD1306 Monochrome OLED Display 128x64 Pixels
  • PIR Sensor AS312
  • Micro USB port for programming
  • Microphone (optional)
  • 2-button reset + freely assignable
  • Battery connection Japan Standard Time 1,25mm mit Lader IP5306 mit I²C Anschluss
  • Antenna connector IPEX
  • Anschlussstecker für I²C Geräte

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/docs

Other

DescriptionPin
PIR Sensor (with mic/without mic)19/33
Right button34
Microphone
SCK28
SDO33
WS32
SSD
I²C SDA21
I²C 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/docs

Areas of application

  • Überwachung
  • Model making
  • Spycam
  • Türspion

Views

Analyse

TC(1)
Without a microphone
Source: Link
TC_Mic
With microphone
Source: Link

Programming

Libraries

Camera

The library is now included with the ESP32 board. For those who like it up to date, here's the link to the Git project.

https://github.com/espressif/arduino-esp32

SSD1306

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

https://github.com/ThingPulse/esp8266-oled-ssd1306

Taster

Für den Taster wird die folgende Bibliothek verwendet:

https://github.com/mathertel/OneButton

Optional IP5306 Ladegerät

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

Hier eine Bibliothek die dabei unterstützt:

https://github.com/shaap/IP5306-arduino/blob/master/IP5306.h

Test programme

Preliminary work

  • Download the example program Link.
    • 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

Änderungen in der Datei Sketch.ino

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""

Das Ganze umrühren, leicht erhitzen, compilieren und auf das Board spielen. Hier noch meine Board Einstellungen:

Board settings

Auf dem Display sollte nach kurzer Zeit eine IP angezeigt werden. Evtl. mal den linken (Reset) Taster drücken.

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 anschliessen.

Website not reachable

Firewall überprüfen. Evtl. Kamera mal anpingen.

Further issues

Im Beitrag ESP32 Cam sind weitere Problemfälle gelistet, die helfen könnten.

https://www.fambach.net/esp32-cam-modul/

Miscellaneous

Battery operation

Das Kameraboard, verfügt über einen Japan Standard Time 1.25mm battery connector that is connected to the IP5306 charging module.

With a 3.7V 1500mAh LiPo, I was able to operate the camera in continuous use for over 3 hours.

Interessanter wäre es die Kamera in den schlafmodus zu versetzten und nur auf Signale vom PIR to wait.

In addition to the class already linked above:

https://github.com/shaap/IP5306-arduino/blob/master/IP5306.h

I found these from the M5 Stack, they seem a bit more comfortable.

https://github.com/m5stack/M5Stack/blob/master/src/utility/Power.h

3D Gehäuse

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

This also looks smart:

https://www.thingiverse.com/thing:3704769

Das folgende Gehäuse habe ich mal selbst ausgedruckt:

https://www.thingiverse.com/thing:3440888

Mein Druck ist auf Druckgeschwindigkeit ausgelegt. Mit besseren Druckern oder langsameren Druckoption 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 Hex head screw
  • 3 M3 nuts, possibly with flat washers

Print settings:

PrinterCTC Bizzer
MaterialPLA
AdhesionHere without /
but better with corners
Hotplate0°C
Print matBlue tape
Printing temperature220°C
Hüllen Dicke1mm
Layer Höhe0.2mm
Printing speed60mm/s
Retraction speed50 mm/s
Druckdaten für 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.

Das Gehäuse passt bei mir nicht gut aufeinander, hier sind die Toleranzen für meinen Billigdrucker zu gering. Der Steg in der Mitte ist meiner Druckunterlage geschuldet.

3D Druck Gehäuse montiert, Seitenansicht, passt nicht ganz ineinander.

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

3D Druck Gehäuse, Frontplatte mit Cam Board

All in all, it looks quite good ;)

3D Druck Gehäuse montiert, von der Seite
3D Druck Gehäuse montiert von oben

Für etwas mehr Platzbedarf habe ich noch das folgende Gehäuse ausprobiert.

https://www.thingiverse.com/thing:3414820

Requirement

  • 8 metres filament print time
  • 1.5 hours print duration
  • 4 x M3 x 8 pan head screws
  • 6St M1 Spax o.ä. od. evtl. Heißkleber oä.

Print settings:

PrinterCTC Bizer
MaterialPLA
AdhesionRim/base plate
Hotplate0°C
Print matBlue tape
Printing temperature220°C
Hüllen Dicke1mm
Layer Höhe0.2mm
Printing speed60mm/s
Retraction speed50 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.

Lid with screwed-on board and battery

Auch für den Akku ist genügen Platz

Base unit with battery
Zugeschraubtes Gehäuse

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 heissen, 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 Cam and also seems to work well with supply voltages under 5V.

Einem Dauertest habe ich die Kamera noch nicht unterzogen allerings lief sie bei mir mehrere Stunden am USB-Port ohne Abstürze. Den PIR 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.

Verwandte Beiträge

Sources

Manufacturer's page on GIT

Shopping on Ali Express

Facial recognition

Circuit diagram V162

Circuit diagram V17

IP5306

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

https://www.thingiverse.com/thing:3440888

https://www.thingiverse.com/thing:3704769

fambach.net/esp32-cam-module

https://github.com/lewisxhe/esp32-camera-screen

DateChangeAuthor
31.05.2020Post createdSuffocation

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 *