HelTec ESP32 LoRa OLED v3 433MHz

Hello,

I have a few of these boards and like to experiment with LoRa communications. I like to broadcast messages and also receive broadcasts from other units.

Furthermore, I was able to create a project, build it and flush it with LED blinker.
Here is my platformio.ini

[platformio]
default_envs = heltec_wifi_lora_32_V3
name = LoRa
description = Lota Test Project

[env:heltec_wifi_lora_32_V3]
platform = espressif32
board = heltec_wifi_lora_32_V3
framework = arduino
upload_protocol = esptool
monitor_speed = 115200
board_build.mcu = esp32s3
board_build.f_cpu = 240000000L
build_type = debug

Before I get to LoRa, I am looking for suggestion on debugging setup options.
What additional hardware are you using, and what modifications to the above INI I need to make, as well how to physically connect it to this board to enable line by line debugging.


Now I like to incorporate LoRa support. I searched in project PlatformIO library for LoRa.
I found three that were of possible interest.

LoRa 0.8.0
ESP32_LoRaWAN 2.1.1
Heltec ESP32 Dev-Boards 1.1.2
  • First one seems not applicable since it lists SX1276/77/78/79 support, since my boards have SX1262 LoRa node chip. Just out of curiosity, I created another project and did try it. It was failing on LoRa initialization @ 433MHz.
  • Second option as far as I can say is not supported any more?
  • Third option seems the best option?

So I did try to add this library. Here is updated platformio.ini file

[platformio]
default_envs = heltec_wifi_lora_32_V3
name = LoRa
description = Lota Test Project

[env:heltec_wifi_lora_32_V3]
platform = espressif32
board = heltec_wifi_lora_32_V3
framework = arduino
upload_protocol = esptool
monitor_speed = 115200
board_build.mcu = esp32s3
board_build.f_cpu = 240000000L
build_type = debug
lib_deps = 
    heltecautomation/Heltec ESP32 Dev-Boards@^1.1.1
build_flags =
    -DARDUINO_HELTEC_WIFI_KIT_32=1

Now, I did copy its example LoRaDumpRegisters and attempted to build it. I get two errors for these two lines.

Heltec.begin(true, true , true , true  BAND);
LoRa.dumpRegisters(Serial);

Looks like BAND is undefined and 'LoRa' was not declared in this scope
Looking into heltec.h header, I do not see support for version 3.

Then I found this repo Heltec_ESP32 which looks like the same but newer version 1.1.2. Looking at is header, it looks like BAND was added to example and v3 is supported.

What is the best way to add it to platformio.ini?

After little google I found I can add it.

[platformio]
default_envs = heltec_wifi_lora_32_V3
name = LoRa
description = Lota Test Project

[env:heltec_wifi_lora_32_V3]
platform = espressif32
board = heltec_wifi_lora_32_V3
framework = arduino
upload_protocol = esptool
monitor_speed = 115200
board_build.mcu = esp32s3
board_build.f_cpu = 240000000L
build_type = debug
lib_deps = 
    https://github.com/HelTecAutomation/Heltec_ESP32

Now the project builds but it fails to run. It waits with a message

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x28 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x44c
load:0x403c9700,len:0xbe4
load:0x403cc700,len:0x2a38
entry 0x403c98d4
Serial initial done
you can see OLED printed OLED initial done!
Starting LoRa failed!

I will keep looking. Looking into downloaded library, it downloaded “master”. Is there a way to download 1.1.2 vs master?

Hey! There is my full and complete project: GitHub - Diaver/heltec_wifi_lora_v3_platformio