Skip to content

MKR 1310 Setup #343

Answered by engeen-nl
engeen-nl asked this question in Q&A
Aug 2, 2021 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

So, it seems the default SPI frequency is 2 MHz, which doesn't work on the MKR 1310. Adding SPISettings with a Frequency of 200 kHz and doing a SPI1.begin() before radio.beginFSK works:

SX1276 radio = new Module(LORA_IRQ_DUMB, LORA_IRQ, RADIOLIB_NC, RADIOLIB_NC, SPI1, SPISettings(200000, MSBFIRST, SPI_MODE0));

void setup() {
  // Reset Modem (thank you sandeepmistry and associates)
  pinMode(LORA_IRQ_DUMB, OUTPUT);
  digitalWrite(LORA_IRQ_DUMB, LOW);

  // Hardware reset
  pinMode(LORA_BOOT0, OUTPUT);
  digitalWrite(LORA_BOOT0, LOW);

  pinMode(LORA_RESET, OUTPUT);
  digitalWrite(LORA_RESET, HIGH);
  delay(200);
  digitalWrite(LORA_RESET, LOW);
  delay(200);
  digitalWrite(LORA_RESET, HI…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@engeen-nl
Comment options

@jgromes
Comment options

Comment options

You must be logged in to vote
2 replies
@jgromes
Comment options

@engeen-nl
Comment options

Answer selected by engeen-nl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants