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
  • Connector for a battery
  • 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
  • Can be used anywhere there's GSM but no Wi-Fi

Views

Programming

Preparation

I am using a SIM card from Things Mobile.

Things Mobile Sim Karte
Things Mobile SIM Card

This is broken out to the MicroSD card and then needs to be inserted into the card slot on the back of the TTGO module. To open the cover, carefully slide it in the direction of the „open“ arrow (to the right in the image).

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

A library is needed to control the SIM800L chip. There are several implementations; I have used TinyGSM, here is the link:

https://github.com/vshymanskyy/TinyGSM

The library can be installed via the librarian 😉.

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

For thingsmobile, I only had to enter „TM“ as the APN:

Code snippet for setup

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

Build the project and upload it to the ESP. I've used the following settings for the ESP32 (please adjust the Comport to your own):

This is how it looks on the console:

Console output

Send SMS

Even though texting isn't my preferred form of communication, it is one of the more important ones for a mobile device like this. That's why I've also looked at the AllFunctions example from the 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

The project will not compile.

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

Other SIM card providers

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

Nice board, easy to program thanks to the manufacturer's examples and library. The price of around €14 is also persuasive.

Related Posts

Sources

Github Library

Manufacturer Lilygo

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

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

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 *