/EasyLoRaNode_LowPower

Low-Power Easy LoRa Node with STM32L0 and LoRa SX1278

Primary LanguageC

Easy LoRa Node - Low Power (With battery)

Low-Power Easy LoRa Node with STM32L0 and LoRa SX1278

Code is written in Arduino style from stm32duino https://github.com/stm32duino/Arduino_Core_STM32

1. Hardware

1.1 Pin locations

lsn50 pintout - with detail

1.2 Pin mapping for STM32L072CZT6 (used by LSN50)

Original at https://github.com/dragino/Lora/blob/master/LoRaST/v1.0/LoRa%20ST%20v1.0_Sch.pdf stm32L0

2. Connect to hardware

2.1 Use STLink v2 to upload code

  • LSN50 -> STLink v2
  • PA14 -> SWCLK
  • PA13 -> SWDIO
  • VCC -> 3.3+
  • GND -> GND

Switch of LSN50 is ISP to upload code. It's recommended to remove UART TTL USB before uploading code via STLink

2.2 Use UART to debug

  • LSN50 -> CP1202 USB TTL
  • GND -> GND
  • PA2 -> RX
  • PA3 -> TX

3. Programming guides

3.1 Installation of stm32duino to Arduino IDE

Additional Boards Manager URLs: https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json lsn50-installation

3.2 Add STM32 variant

3.3 Compilation of Arduino code using Arduino IDE on STM32 board

lsn50-compilation

4. Reference