[go: up one dir, main page]

Skip to content

Hello World example code for the new Heltec WiFi LoRa 32 (V3) board with LoRa SX1262 chip

License

Notifications You must be signed in to change notification settings

JJJS777/Hello_World_RadioLib_Heltec-V3_SX1262

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello_World_RadioLib_Heltec-V3_SX1262

Hello World example code for the new Heltec WiFi LoRa 32 (V3) board with LoRa SX1262 chip

Setup

I use, as metioned, the Heltec WiFi LoRa 32 (V3) and vsc with the platformio plugin. My PlatformIO Configuration looks like this and can be found her.

[env:esp32dev]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
lib_deps = 
	olikraus/U8g2@^2.34.13
	jgromes/RadioLib@^5.6.0

Note: i don't use a heltec board, as you can see here (board = esp32-s3-devkitc-1) and, because of that i didn't rely on the pins_arduino.hin platformio\packages\framework-arduinoespressif32\variants\heltec_WIFI_LoRa_32_V3.

Pins for LoRa Chip and OLED on Heltec WiFi LoRa 32 (V3)

According to the schematic Diagram (WORKS)

LoRa sx1262

lora_nss: 8 //same as cs
lora_rst: 12 //same as nrst
dio1: 14 //same as irq, first interrupt/GPIO
lora_busy: 13 //same as gpio Pin, second interrupt/GPIO
lora_sck: 9
lora_miso: 11
lora_mosi: 10

OLED

oled_scl: 18
oled_sda: 17
oled_rst: 21

// new u8g2 library
U8G2_SSD1306_128X64_NONAME_1_SW_I2C u8g2(U8G2_R0, /* clock=*/18, /* data=*/17, /* reset=*/21);

// old u8x8 library
U8X8_SSD1306_128X64_NONAME_SW_I2C u8x8(scl, sda, rstOlcd);

According to scan and pins_arduino.h (WRONG)

MOSI: 11
MISO: 13
SCK: 12
SS: 10

Pins from the RadioLib Example

SX1262 has the following connections:
NSS pin:   10 (cs Pin)
DIO1 pin:  2 (irq Pin)
NRST pin:  3 (rst pin) 
BUSY pin:  9 (gpio Pin)
SX1262 radio = new Module(10, 2, 3, 9);
Module(cs, irq, rst, gpio) 

hmu if you have any questions, maybe i can help (::

About

Hello World example code for the new Heltec WiFi LoRa 32 (V3) board with LoRa SX1262 chip

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages