longfi-arduino/Heltec-WiFi-LoRa-32-V2/longfi-us915
..
README.md
longfi-us915.ino

README.md

Heltec WiFi LoRa 32 V2

This example demonstrates sending a simple data packet using a Heltec Wifi LoRa 32 V2 development board. Please follow every instruction step below from top to bottom.

Heltec LoRa 32 V2 Product Page
Heltec LoRa 32 V2 Docs

Installing the Heltec ESP32 Library

From the Arduino IDE, open the Library Manager (Sketch->Include Library->Manage Libraries). In the search box, type Heltec ESP32 and look for Heltec ESP32 Dev-Boards. Select the latest version and install.

Install Serial Driver

Find Directions here.

Install Arduino-ESP32 Board Support

Find Directions here

Select Board

Arduino IDE:

  1. Select Tools -> Board: -> WiFi LoRa 32(V2)

Select Region

Arduino IDE:

  1. Select Tools -> LoRaWAN Region: -> REGION_US915

Obtain Heltec License Key

Upload GetChipID example

Arduino IDE:

  1. Select File -> Examples -> ESP32 -> ChipID -> GetChipID
  2. Select Tools -> Port: "COM# or ttyACM#"
  3. Select Sketch -> Upload
  4. Wait for Done uploading message
  5. Select Tools -> Serial Monitor Serial Monitor Window
  6. Select 115200 baud from bottom right dropdown.
  7. You should see something that looks like this every second ESP32 Chip ID = ############
  8. Save this Chip ID

Obtain License Key with Chip ID

1.Go to resource.heltec.cn/search 2. Enter ChipID 3. Save license field, will look like 0x########,0x#########,0x########,0x########

Upload OTAA_OLED example

Arduino IDE:

  1. Select File -> Examples -> ESP32_LoRaWAN -> OTAA_LED
  2. Enter License Key at line 32
uint32_t  license[4] = {`0x########,0x#########,0x########,0x########};
  1. Enter DevEUI(msb), AppEUI(msb), and AppKey(msb) from Helium Console, at lines 34,35,36.
uint8_t DevEui[] = { FILL_ME_IN };
uint8_t AppEui[] = { FILL_ME_IN };
uint8_t AppKey[] = { FILL_ME_IN };
  1. Select Sketch -> Upload.
  2. Wait for Done uploading message
  3. Select Tools -> Serial Monitor Serial Monitor Window
  4. Select 115200 baud from bottom right dropdown.
  5. Wait for device to successfully join, may take 1-3 min, and show several failures. Do not be alarmed by the failures, it is expected.