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?