4

I have an Arduino UNO, a NRF24L01 as receiver (receive data from elsewhere), and this touch screen from Adafruit for display and control.

The Adafruit TFT is a shield so it fits the UNO perfectly.

I wonder if this TFT shield can share SPI pins with NRF24L01?

Given that I use pin 10 (=SS) for TFT and pin 8 (=SS) for NRF24L01, with set (SS, low) to toggle between two slaves (TFT and nRF24)?

Somehow it doesn't work once I start to share SPI pins (11, 12, 13) between two slaves.

jfpoilpret
  • 8,962
  • 6
  • 35
  • 53
user27030
  • 41
  • 1
  • 1
    Did you check the schematics for the TFT? https://cdn-learn.adafruit.com/assets/assets/000/013/453/original/adafruit_products_tftshieldv2.png?1388769644. Looks like pin 8 is already in use. – Mikael Patel Sep 30 '16 at 19:03
  • The TFT you mention is much more than just a TFT, it seems to include a touch screen and also a SD card reader. Depending on what parts you use, the list of pins available may differ. – jfpoilpret Sep 30 '16 at 19:13
  • I think you'll need to show more of what you've done so far (NRF24L01 wiring, code for your sketch, debug traces...) as of now, it is rather difficult to answer your question with the little description you made of your problem, – jfpoilpret Sep 30 '16 at 19:16
  • 1
    You also have to ensure any libraries that also use SPI are capable of operating with multiple SPI devices on the same bus. Another thing you have to look out for is with certain SPI devices is that they lock up the bus making it impossible to use more than one device on the bus. There are a lot of variables you need to define before we can help you more. So, what TFT library and what nRF24 library are you using? – Avamander Sep 30 '16 at 22:29
  • Why not use SoftwareSPI with the NRF24L01? IIRC, the maniacbug and tmrh20 NRF24 libraries both support it. It would also prevent the issues mentioned by Avamander. – SoreDakeNoKoto Sep 30 '16 at 23:01
  • @ Mikael Patel : I checked with manufacture and they said only pin 9, 10, 11, 12, 13, Vdd, gnd pins were used if I dont need SD card. @ jfpoilpret: You are right, It is a touch screen that I tried to use to get data from three different RF devices. I will share more info. @TisteAndii : I am not sure what you refer to. SOftwareSPI? sounds interesting. –  Oct 04 '16 at 23:50
  • Look, you are making a big mess here. How about registering as one user, rather than making post after post as user27030, user27141, user27142, user27143, user27144 and user27145? That makes it very hard to follow. – Nick Gammon Oct 05 '16 at 05:10
  • Please use the *Post answer* button only for actual answers. You should modify your original question to add additional information. I've deleted all your "answers". Slow down and edit your original question to add further information. This isn't a forum, and answers are not for adding more details. Format code using the code formatting markdown (four leading spaces). For help see [Markdown help](http://meta.stackexchange.com/editing-help). You should be able to do this by selecting the code and pressing `Ctrl+K` to have your browser do this for you. – Nick Gammon Oct 05 '16 at 05:11

0 Answers0