Teens 3.6 + Audio Adaptor + nRF24L01 + Multiple SPI

Status
Not open for further replies.
Hallo,

i try to make a wireless connection sending data with nRF24L01+ >))) to teensy 3.6 connected with the audio adpator and the reciver nRF24L01+.

The Teensy 3.6 has 3 Spi Ports:
SPI0 is 11=MOSI 12=MISO 13=SCK
SPI1 is 0 =MOSI 1=MISO 32=SCK
SPI2 is 44=MOSI 45=MISO 46=SCK

I want to connect the nRF24L01+. reciver to SPI2 because i want to avoid conflicts with the audio adaptor.

The nRF24L01+. uses the RF24libray which uses the SPI Library.
The Audio Adapter uses also the SPI Library.

How can I tell the RF24 Library which is using by default SPI0 is 11=MOSI 12=MISO 13=SCK to use the other ports SPI2 is 44=MOSI 45=MISO 46=SCK
to communicate with nRF24L01+?
Have to change something in the RF24 Libray?
Or can assign it within the SPI-Library?

Any Ideas?:confused:

THX
 
Last edited:
The audio board only uses SPI for the SD card. Since you have Teensy 3.6, if you need to use the SD card you can put it into the SD slot on Teensy 3.6 which uses SDIO (no conflict with any SPI).

Then you can use SPI (not SPI1 or SPI2). Just use the SPI.setMOSI(7) and SPI.setSCK(14) functions to assign the pins before you start the RF24 lib.

If you *really* want to use SPI2, you'll probably have a lot of work to do editing the library.
 
Hallo Paul,

will the alternate SPI pins suggestion disable the use of the external 23LC1024 RAM which i need for longer delays.
 
Status
Not open for further replies.
Back
Top