Add RAKwireless RAK11300 #1802

Merged
nmaas87 merged 2 commits from master into master 2023-11-05 13:26:19 +03:00
nmaas87 commented 2023-11-02 23:50:47 +03:00 (Migrated from github.com)

Adding a PR for getting the RAKwireless RAK11300 board into the Arudino Pico environment.
The RAK11300 is a combined board, having a RP2040 and an SX1262 LoRa RF chip included.

Information was scare, but I could find what I needed using:

The original BSP is only available for Arduino mbedOS - and the repo is quite mangled.

The RAK11300 is basically just an RP2040 with some pins for the SPI1 rearranged to better fit the directly connected SX1262 module - and that were basically the changes I included.

If accepted, this should close: https://github.com/earlephilhower/arduino-pico/issues/406

This repo does not contain any examples to use with the LoRa module included and also shall not contain something, as this is part of library for LoRa modules. I am currently trying to get it working with https://github.com/jgromes/RadioLib/issues/864

Best regards and thanks for the awesome work and support of Arduino Pico

Nico

Some additional infos about the whole project in my blog post: https://www.nico-maas.de/?p=2607

Adding a PR for getting the RAKwireless RAK11300 board into the Arudino Pico environment. The RAK11300 is a combined board, having a RP2040 and an SX1262 LoRa RF chip included. Information was scare, but I could find what I needed using: - https://docs.rakwireless.com/Product-Categories/WisDuo/RAK11300-Module/Datasheet/#description - https://forum.rakwireless.com/t/rak11300-pinout-rp2040-to-sx1262/8414 - https://github.com/RAKWireless/RAK-RP-Arduino/tree/main - https://github.com/RAKWireless/RAK11300-AT-Command-Firmware/tree/main/RAK11300-AT-Arduino The original BSP is only available for Arduino mbedOS - and the repo is quite mangled. The RAK11300 is basically just an RP2040 with some pins for the SPI1 rearranged to better fit the directly connected SX1262 module - and that were basically the changes I included. If accepted, this should close: https://github.com/earlephilhower/arduino-pico/issues/406 This repo does not contain any examples to use with the LoRa module included and also shall not contain something, as this is part of library for LoRa modules. I am currently trying to get it working with https://github.com/jgromes/RadioLib/issues/864 Best regards and thanks for the awesome work and support of Arduino Pico Nico Some additional infos about the whole project in my blog post: https://www.nico-maas.de/?p=2607
maxgerhardt (Migrated from github.com) reviewed 2023-11-04 15:58:29 +03:00
maxgerhardt (Migrated from github.com) commented 2023-11-04 15:58:00 +03:00

If you add , None, "https://store.rakwireless.com/products/wisduo-lpwan-module-rak11300 in the arugment list, then that URL can show up in the board definition too, instead of just the generic Pico one.

If you add `, None, "https://store.rakwireless.com/products/wisduo-lpwan-module-rak11300` in the arugment list, then that URL can show up in the board definition too, instead of just the generic Pico one.
maxgerhardt (Migrated from github.com) commented 2023-11-04 15:53:25 +03:00

This is the same as https://github.com/earlephilhower/arduino-pico/blob/master/variants/generic/common.h. New variants should not copy this file into their variant board folder, but just reference it with

https://github.com/earlephilhower/arduino-pico/blob/87f6646e959646ef96f6d7ceb71bdd9ac973395d/variants/adafruit_feather/pins_arduino.h#L44

in their pins_arduino.h file.

This is the same as https://github.com/earlephilhower/arduino-pico/blob/master/variants/generic/common.h. New variants should not copy this file into their variant board folder, but just reference it with https://github.com/earlephilhower/arduino-pico/blob/87f6646e959646ef96f6d7ceb71bdd9ac973395d/variants/adafruit_feather/pins_arduino.h#L44 in their `pins_arduino.h` file.
@@ -0,0 +3,4 @@
// Pin definitions taken from:
// RAK definition: https://github.com/RAKWireless/RAK-RP-Arduino/
// RAK datasheet: https://docs.rakwireless.com/Product-Categories/WisDuo/RAK11300-Module/Datasheet/#overview
// Internal wiring of SX1262 module: https://forum.rakwireless.com/t/rak11300-pinout-rp2040-to-sx1262/8414/
maxgerhardt (Migrated from github.com) commented 2023-11-04 15:55:09 +03:00

Maybe we can add the pin definitions for SX1262 NRESET, BUSY, DIO1 and ANT_PWR (GPIO25) directly in this file, together with a define for SX1262_SPI = SP1?

Maybe we can add the pin definitions for SX1262 NRESET, BUSY, DIO1 and ANT_PWR (GPIO25) directly in this file, together with a define for SX1262_SPI = SP1?
nmaas87 (Migrated from github.com) reviewed 2023-11-04 17:53:12 +03:00
nmaas87 (Migrated from github.com) commented 2023-11-04 17:53:12 +03:00

Thanks, I did that, also more closely specified the used flash chip as I took one of this modules apart under a microscope :)

Thanks, I did that, also more closely specified the used flash chip as I took one of this modules apart under a microscope :)
nmaas87 (Migrated from github.com) reviewed 2023-11-04 17:55:06 +03:00
@@ -0,0 +3,4 @@
// Pin definitions taken from:
// RAK definition: https://github.com/RAKWireless/RAK-RP-Arduino/
// RAK datasheet: https://docs.rakwireless.com/Product-Categories/WisDuo/RAK11300-Module/Datasheet/#overview
// Internal wiring of SX1262 module: https://forum.rakwireless.com/t/rak11300-pinout-rp2040-to-sx1262/8414/
nmaas87 (Migrated from github.com) commented 2023-11-04 17:55:05 +03:00

Thanks, I did most of that and added some more comments as some of these pins have multiple names and this might be otherwise confusing. I kept SPI1 on SPI1 as it neatly integrates with the RadioLib library.

Thanks, I did most of that and added some more comments as some of these pins have multiple names and this might be otherwise confusing. I kept SPI1 on SPI1 as it neatly integrates with the RadioLib library.
nmaas87 (Migrated from github.com) reviewed 2023-11-04 17:55:17 +03:00
nmaas87 (Migrated from github.com) commented 2023-11-04 17:55:17 +03:00

Thanks, done :)

Thanks, done :)
maxgerhardt (Migrated from github.com) approved these changes 2023-11-04 23:03:51 +03:00
maxgerhardt (Migrated from github.com) left a comment

Looking great!

Looking great!
nmaas87 commented 2023-11-04 23:31:51 +03:00 (Migrated from github.com)

Thanks so much 💯

Thanks so much 💯
earlephilhower commented 2023-11-05 13:26:46 +03:00 (Migrated from github.com)

Addin again, thanks @maxgerhardt for the assist!

Addin again, thanks @maxgerhardt for the assist!
nmaas87 commented 2023-11-05 13:41:05 +03:00 (Migrated from github.com)

Thank you so much for merging @earlephilhower and @maxgerhardt for the guidelines and support 👍🏻

Thank you so much for merging @earlephilhower and @maxgerhardt for the guidelines and support 👍🏻
Sign in to join this conversation.