TTGO T-Call 1.3 (Lilygo)

Last Updated on 11th December 2020 by Suffocation

The TTGO T-Call 1.3 is an ESP32 module that offers GSM access using the SIM800L chip. I tested the module in conjunction with a ThingsMobile SIM card.

Facts

  • ESP32 and SIM800L Chip
  • Micro-SIM slot
  • Aerial socket
  • Reset Button
  • Anschluss für einen Akku
  • USB 3.1 Type C port

Pinout

Source: https://github.com/Xinyuan-LilyGO/TTGO-T-Call/blob/master/datasheet/

Areas of application

  • GPS Tracker (Requires GPS module)
  • Smart auto control
  • Home automation
  • Alarm systems
  • Weather stations
  • Überall dort einsetzbar wo es GSM aber kein WIFI gibt …

Views

Programming

Preparation

I am using a SIM card from Things Mobile.

Things Mobile Sim Karte
Things Mobile SIM Card

Diese wird bis zur MicroSD Karte herausgeborchen und muss dann in den Kartenslot auf der Rückseite des TTGO Moduls gesteckt werden. Zum öffnen der Abdeckung, diese vorsichtig in Pfeilrichtung „open“ (Im Bild nach rechts) schieben.

TTGO T-Call 1.3 Telefonkarte im Halter
TTGO T-Call 1.3 SIM card in holder

Then the GSM antenna must be plugged in:

TTGO T-Call 1.3 mit aufgesteckter GSM Antenne
TTGO T-Call 1.3 with attached GSM antenna

Libraries

Zur Ansteuerung des Sim800L Chips wird eine Bibliothek benötigt. Es gibt mehrere Implementierungen ich habe die TinyGSM verwendet, hier der Link:

https://github.com/vshymanskyy/TinyGSM

Die Bibliothek kann über den Bibliothekar 😉 installiert werden.

I am using version 0.7.9 as the newest and a few old versions did not compile.
I am currently using version 0.10.1. This version only works for me with the latest ESP32 integration (version 1.0.4).

Test programme

First Test – TTGO Example

Download the example from GitHub, here's the link:

Arduino TinyGSM

Für thingsmobile habe ich nur als APN „TM“ einragen müssen:

Code-Ausschnitt für Setup

If you have a username, password, or SIM PIN, you must enter them here as well.

Das Projekt noch bauen und auf den ESP spielen. Folgende Einstellungen habe ich für den ESP32 verwendet (Comport bitte an euren anpassen):

This is how it looks on the console:

Console output

Send SMS

Auch wenn SMS Schreiben nicht zu meinen bevorzugten Kommunikationsformen zählt, ist es doch eine der wichtigeren für ein mobiles Gerät wie dieses. Deshalb habe ich mir noch das AllFunctions-Beispiel aus der TinyGSM taken the library and adapted it to the board:

Enter your phone number in the designated spot and play it to the module. After it has booted, you should receive an SMS.

Problems

Projekt lässt sich nicht Compilieren

Some versions of the TinyGSM Lib did not work for me. Just try a few versions. I ended up with version 0.7.9.

AddendumWith the update of the ESP32 libraries to version 1.0.4, the current version 0.10.1 of the TinyGSM library also worked for me.

Miscellaneous

Andere Anbieter für SIM Karten

If you don't need a lot of data, any pay-as-you-go SIM card is a good option. Here are a few (not sponsored) links to providers.

Conclusion

Nettes Board, Dank der Beispiele des Herstellers und der Bibliothek leicht zu Programmieren. Auch der Preis von rund 14€ kann überzeugen.

Verwandte Beiträge

Sources

Github Library

Manufacturer Lilygo

https://randomnerdtutorials.com/esp32-sim800l-publish-data-to-cloud/

https://www.hardwareschotte.de/magazin/usb-standards-im-ueberblick-a41540

DateChangeAuthor
22.03.2020Post createdSuffocation

11 thoughts on “TTGO T-Call 1.3 (Lilygo)

  1. Hello Stefan, thank you too for the good compilation of information. This has enabled me to switch over excellently from my first ESP8266 prototypes.
    My goal was a GSM/GPS module that sends position data via secure websockets.
    When I realised I couldn't get the combination of PPPoS, WSS and GPS to work with Arduino libraries, I had to switch to the creepy ESP-IDF SDK. There are also plenty of examples for all the individual components there, but you dive into the annals of C programming.
    With a few modifications (correct UART config, correct RX pin, increasing the buffers) everything worked for the first time last night and I had a really nice alcohol-free beer!
    As a SIM card, I use Netzclub's free data cards (200MB for free, then throttled to 64kBit/s, which suits my needs).
    I hope to find the time to strip down my project to a sample with comments and will then post a link here in the forum.
    Markus's VG

    1. Hello Markus,
      Thank you for your contribution. I've also „played around“ with the Espressif IDF; you can't get past it. Especially if you want to program the new ESP32-S2, you don't have any other choice. In my opinion, the code in the IDF is exponentially harder to read, but you can expect the most up-to-date changes to be in the IDF. I'm also considering switching to it.
      I think the free data card is great, I've already included it in the post.

      Hello
      Stefan

  2. Many thanks for the SMS example. I've also bought the following GPS module (GPS Module GPS-NEO-6M-00) and soldered it to the TX and RX connections. However, I'm not managing to receive GPS data from it using TinyGPS++ or many other methods. I'm using TX = 1, RX = 3 in the program code. I've also tried many other pin numbers, but nothing is working. Do you have any ideas?

    “’#include
    #include

    // The TinyGPS++ object
    TinyGPSPlus gps;
    HardwareSerial SerialGPS(1);

    void setup() {
    Serial.begin(115200);
    SerialGPS.begin(4800, SERIAL_8N1, 3, 1);
    }

    void loop() {
    while (SerialGPS.available() > 0) {
    gps.encode(SerialGPS.read());
    if (gps.location.isUpdated()) {
    Serial.println(„Latitude= „);
    Serial.print(gps.location.lat(), 6);
    Serial.print(F(“Longitude= „));
    Serial.println(gps.location.lng(), 6);
    }
    }

    1. Hello Tinkerpete,

      I don't have a specific suspicion, perhaps a few pointers. I had tested the neo6 V2 once, the link is here:

      https://www.fambach.net/gy-neo6mv2-gps-modul/

    2. The connection speed was 9600 baud for me, as far as I can see, and a few other websites on the internet confirm that too, try it with that.
    3. As far as I'm aware, pins 1 and 3 are already used for UART0 (Serial), which might clash with USB.
    4. Uart1/Serial1 is probably used for the flash memory
    5. So, Uart2/Serial2 (GPIO 17 and GPIO 16) remain.
    6. I couldn't quite work that out from the ESP datasheet, but I think the pins are quite freely configurable.
      Andreas Spies has made a video about that, which I haven't seen yet though: youtu.be/GwShqW39jlE?t=182

      In my example, I didn't explicitly use the hardware Serial, but rather Serial2, assigning pins and a baud rate to it.
      What you can also try is the SoftwareSerial, here any bidirectional IO port should work.

      Hello
      Stefan

      1. Thank you for your detailed reply. At the moment, I've desoldered the GPS module again and connected it to an Uno. I had problems there at first too, but now I'm finally getting the output from the GPS module via RX=2 and TX=3! So it's not defective, at least. Now I'm trying a more differentiated output with TinyGPSPlus, which strangely doesn't work with all the examples from the internet. When I have it back on the T-Call, I'll try the GPIO 17 and GPIO 16 you mentioned.

        1. Hello,

          Slightly longer addendum from me, GPIO16/17 on the top are marked (NC) for not connected.
          I've now tested my example with pins 32/33 and it works (at 9800 baud).
          I must mention that I have only addressed the Neo6-M module now and no further components.
          Another thing that occurred to me is that some modules are a bit fussy about the supply voltage; you could try setting this to 5V (at least for my module, check the datasheet first).

          Greetings Stefan

    1. I haven't managed to send an SMS with the example code yet.
      I am using a prepaid SIM card from Blau, which is actually installed in a GPS tracker and was temporarily removed for testing purposes.
      I ordered 2 SIM cards from Things Mobile yesterday.
      When the cards come in, we're moving on to round 2 😉
      Best regards
      Thomas

  3. Thank you very much for your contribution.
    I've also got a few of these chips and thanks to your description, I was able to get started straight away.
    I've only used the small Wemos so far and am entering new territory with the GSM module.
    The tip regarding the SIM card is also promising.
    Thank you

Leave a Reply

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