ESP32 with stand alone Lora

All that relates to the H/W
Post Reply
Zim
Posts: 280
Joined: Mon Feb 08, 2021 9:15 pm
Has thanked: 251 times
Been thanked: 128 times

ESP32 with stand alone Lora

Post by Zim »

Hi cicciocb
Will Annex Lora support this setup?
I believe it is a SX1278 LoRa Module
Thanks
Zim
You do not have the required permissions to view the files attached to this post.
User avatar
cicciocb
Site Admin
Posts: 1889
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 405 times
Been thanked: 1260 times
Contact:

Re: ESP32 with stand alone Lora

Post by cicciocb »

If you respect the wiring defined for the module WiFi LoRa 32 as below, it should work :

https://resource.heltec.cn/download/WiF ... _32_V2.pdf
https://github.com/Heltec-Aaron-Lee/WiF ... oRa_32(V2)
Zim
Posts: 280
Joined: Mon Feb 08, 2021 9:15 pm
Has thanked: 251 times
Been thanked: 128 times

Re: ESP32 with stand alone Lora

Post by Zim »

Thanks cicciocb!

I will give it a try and post my findings.

Thanks
Zim
Michel Alexander
Posts: 18
Joined: Sun Aug 15, 2021 5:23 pm
Has thanked: 4 times
Been thanked: 1 time

Re: ESP32 with stand alone Lora

Post by Michel Alexander »

Hallo,
ist es möglich ein eigenständiges SX1276 und ein TFT-Display zu betreiben.
Für einen Lora Empfänger mit grösseren Display.
Vielen Dank im voraus.
User avatar
cicciocb
Site Admin
Posts: 1889
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 405 times
Been thanked: 1260 times
Contact:

Re: ESP32 with stand alone Lora

Post by cicciocb »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Wed Jan 25, 2023 6:48 am Hallo,
ist es möglich ein eigenständiges SX1276 und ein TFT-Display zu betreiben.
Für einen Lora Empfänger mit grösseren Display.
Vielen Dank im voraus.
No, in the current implementation the TFT display is disabled and the wiring is supported mainly for the module WIFI LORA 32.
[Local Link Removed for Guests]
User avatar
cicciocb
Site Admin
Posts: 1889
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 405 times
Been thanked: 1260 times
Contact:

Re: ESP32 with stand alone Lora

Post by cicciocb »

Sorry for the previous answer but I think I'm wrong as it should be possible to use the LORA module with an external TFT display.
Basically the SX127X module must be connected on the SPI pins (shared with the TFT) plus the pins SS, RESET and DI0 on any free pins.

In addition, with the introduction of the "Advanced" config mode, it is possible to freely define any GPIO pin so the SX127X LORA module should be supported even on other ESP32 modules wired differently.
Tymon Elektryk
Posts: 4
Joined: Mon Apr 19, 2021 4:24 pm
Been thanked: 2 times

Re: ESP32 with stand alone Lora

Post by Tymon Elektryk »

I confirm the operation of the LoRa-02 SX1278 module
An example of the transmitter code and connection details in the info at the beginning of the program



'Annex32 CAN 1.51.2 LFS


'Lora LoRa-02 SX1278 433MHz Pin connect

' Lora <---> ESP32 DEVKIT1

' SCK <---> GPIO 5
' MISO <---> GPIO 19
' MOSI <---> GPIO 27
' NSS <---> GPIO 18
' RTS <---> GPIO 14
' DI00 <---> GPIO 26

WLOG BAS.VER ' 1.512 'Annex32 CAN 1.51.2 LFS

WLOG BAS.DEVICE '120 ' WIFI loRa 32 120 info defice Config menager <= True module ESP32 DEVKIT1

timer0 2000, mytimer


wlog "if 1 then OK Var =", LoRa.Setup 18, 14, 26 ' SS, RESET, DIO0

wlog "if 1 then OK Var =", LoRa.Begin(433e6) ' 433 MHz

wait



mytimer:

wlog "Send "
gosub send

return



send:
wlog "TX Power if 1 then OK",LoRa.TXpower 15
LoRa.Setup 18, 14, 26 ' SS, RESET, DIO0

LoRa.Begin(433e6) ' 433 MHz

pkt = pkt + 1

wlog "if 1 then OK Var =", LoRa.BeginPacket

wlog "Len send =",LoRa.Print "SEND Data Nr=" + str$(pkt)

wlog "if 1 then OK Var =", LoRa.EndPacket

return
Post Reply