PaulSchulz / esphome-lora-sx126x

Component to use Lora on SX126X based boards
MIT License
8 stars 5 forks source link

NodeMCU/PICO W with SX1262 #1

Open Jaishankar872 opened 6 months ago

Jaishankar872 commented 6 months ago

I built two lora system with below configuration.

  1. NodeMCU+ SX1262
  2. Pico W + SX1262 Now, I want integrated with ESPHome with External Components.

To start with I want to first send your text message between this two devices. I tried using your code, but it is not working for me. I have fewer following doubts.

  1. Reconfig SPI pin for the MCU
  2. How to check SPI communication is successful (I couldn't see debug print from the function void LoraSX126X::setup() )
  3. How to port this for other ESPHome like NoduMCU, PICO W

I am newbie to ESPHome, your support will greatly help for me.

Thank you in Advance!!!!!!!!!!!!!!

PaulSchulz commented 6 months ago

Sorry for the delay.. could you please post links to specs for these two boards?

Jaishankar872 commented 6 months ago

Thanks for your response @PaulSchulz

  1. NodeMCU + SX1262

    Here I used NodeMCU board with SX1262 XXXM LoRaWAN/GNSS HAT from Waveshare (https://www.waveshare.com/wiki/SX1262_XXXM_LoRaWAN/GNSS_HAT)

Connnection Diagram

Untitled Diagram drawio

NodeMCU -> SX1262 pin

GPIO14 -> SCLK pin GPIO12 -> MISO pin GPIO13 -> MOSI pin GPIO15 -> NSS pin GPIO16 -> DIO1 pin GPIO4 -> NRST pin GPIO5 -> BUSY pin


  1. Pico W + SX1262 Here I used the Official Raspberry Pico w with Pico-LoRa-SX1262-868M from waveshare(https://www.waveshare.com/wiki/Pico-LoRa-SX1262-868M#Hardware_Description)

Connnection Diagram Pico-LoRa-SX1262-868M-details-inter

image


Note: Both hardware I tested using the Radiolib library in Arduino

After this build the new 2 identical setup which explained in this issue (https://github.com/PaulSchulz/esphome-lora-sx126x/issues/2)

timotoots commented 5 months ago

I think this could be related to my problem as well. #3

Hardware is different, but this is the same for me: I couldn't see debug print from the function void LoraSX126X::setup()