Big ESP32 + SX127x topic part 2

(Ryan Walmsley) #672

Does anyone know of any Micropython libraries for this setup? I know Pycom have their own but was wondering if there’s a generic one. All the googling I’ve done has only found RPi based ones.

(Deux Vis) #673

Yeah I have that in my todolist. Also need to use some sleeping, it currently draws way too much for a battery powered mapper.

(LoRaTracker) #674

If you use a GPS such as one of the (cheap) Ubloxes with the large ceramic antenna then they will ‘hotfix’ in normally less than 5 seconds. The rest of the time you can put them asleep (500uA or less) with an appropriate UBX command.

But the Ubloxes (again with a large ceramic antenna) will run in power saving mode once a fix is established at around 15mA average for a Ublox 8 and 25mA average for a Ublox 7.

(LoRaTracker) #675

Also bear in mind that the ESP32 itself will use around 60mA, and if there is a gap between transmissions of circa 30secs, due to duty cycle limits, then just shut down the ESP32 for 30secs at a time.

(Deux Vis) #676

I got a branch that implement that “No Send Before Fix” feature at

Not fully tested yet as I lack TTN coverage where I am right now.

(LoRaTracker) #677

I see the code does a check;

if (gps.location.isValid())

Given the sequence of the GPGGA and GPRMC sententences its possible that the location (lat and long) has been updated, but height and hdop have not.

(Amedee) #678

To close the loop on my “power-on” issue, Liligo kindly sent me a replacement device, working perfectly.
Nice customer service.

(The factory pre-loaded sketch is the PAX Counter :wink: )

(Sveinutne) #679

What is the version number on the new TTGO 2.1?
Is it T3_V1.6

(Verkehrsrot) #680

So, if you have paxcounter software on board, power up is working! :wink:

(Amedee) #681

No, it is a T3_V1.5 20180523

I haven’t done any further test – I won’t have time to play with it until week after next…

(Sveinutne) #682

Is there any links to Paxcounter for Arduino IDE?


It’s not developed with Arduino IDE, I had the same question at first, but using it with Atom is really easy (easier than I thought), just install atom and follow the instruction, Atom will install everything needed for you


Not really. This is about PlatformIO, not about Atom.
PlatformIO consists of the PlatformIO IDE and the PlatformIO Core.
PlatformIO runs as a plugin on top of both Atom and Visual Studio Code (VSCode) code editors.

So you can use PlatformIO with VSCode and with Atom. Both editors are cross platform supported (OSX, Windows and Linux).

PlatformIO recommends to use VSCode. It has better code editor features and has the best PlatformIO debugging support.

“In our experience, PlatformIO IDE for VSCode offers better system performance, and users have found it easier to get started”

For an overview and comparison see:

(Sveinutne) #685

I am using a PC with only 128GB of SSD memory, and it is almost full, so I am not sure if I have space for PlatformIO if it taks several GB. Any idea of its size?


For atom

For platformio, I’ve got 4 targets, STM32, ESP8266 and ESP32, (each approx 500mb) and the last is for arduino avr (140mb)
The heavy ones are for the toolchain

So in your case with atom and ESP32 should be total less than 1GB

(Sveinutne) #687

Thank you for your help. It is working, but it takes10 min to compile. Maybe that is just the first time.
Yes, on the next run it only took 10 sec.


First time usually the whole toolchain has to be downloaded and installed (once per platform only).
Compiling in PlatformIO usually goes (much) faster than in the Arduino IDE.

(Linar) #689

I use “cloud” (GCP) build on a regular basis. The build is on Debian virtual host with command-line only. Source code access is through SSH tunnel (WinSCP). Editor choice is of my preference.
With this approach both Arduino and PlatformIO methods are almost equal in speed performance.
Major advantage of “Arduino world” - it gives a variety of source code libraries available, built-in and external ones (github). This makes sketches code much smaller, easier to read and portable (to compare with “native ESP-IDF code”).

(Verkehrsrot) #690

You find lots of arduino libs in the platformio library manager. And if one is missing, it’s an easy process to get this in there.

(Ha Sch) #691

Today, I got my TTGO LoRa32 v2.1 T3_V1.5 20180523 board. The display flips like in post #623. One footprint of the LoRa module seems not to be soldered, it’s the third in the upper row (near the SD card slot).

  1. Where can I find and download the original software? Is it
  2. How is it possible to set the flipped display in the other order (readable with antenna up). In the github repository I didn’t find a source that handles the display.