Notifications
Clear all

Two SPI’s  


Warrens Corner
(@warrens-corner)
New Member
Joined: 4 months ago
Posts: 2
Topic starter  

I would like to connect an nRF24L01 and an SD card module to my project but I can’t seem to get them working together. I’m using an Elegoo Mega since I ran into memory issues with the SD card module and gps module. I was using the tutorials on Paul McWhorter’s YouTube channel for that. I can get the RF working or the SD card but not both. I’m thinking it’s a wiring issue since I have the RF working and as soon as I connect the SD card the RF stops working. I’m using pins 50, 51, 52 plus 53 for chip select for the RF. The SD card uses the same 50, 51, 52 and I have tried various pins for chip select. Has anyone ever tried something similar?


Quote
frogandtoad
(@frogandtoad)
Honorable Member
Joined: 2 years ago
Posts: 670
 

@warrens-corner

Posted by: @warrens-corner

I would like to connect an nRF24L01 and an SD card module to my project but I can’t seem to get them working together. I’m using an Elegoo Mega since I ran into memory issues with the SD card module and gps module. I was using the tutorials on Paul McWhorter’s YouTube channel for that. I can get the RF working or the SD card but not both. I’m thinking it’s a wiring issue since I have the RF working and as soon as I connect the SD card the RF stops working. I’m using pins 50, 51, 52 plus 53 for chip select for the RF. The SD card uses the same 50, 51, 52 and I have tried various pins for chip select. Has anyone ever tried something similar?

Being serial, only one device can communicate at a time.

Assuming you have the right pins set, to select which slave device you wish to communicate with, you need to set it's chip select pin to LOW, and then back to HIGH to deselect the device, freeing up the bus for another device.


ReplyQuote