Hello, it's nice to be a part of this forum
I have a certain question about usage of Slave Select in SPI
I am working with NRF24L01 and a 3.2" LCD TFT with SSD1289. After troubleshooting, i found out that i was actually really stupid, using SPI with Slave Select pin 10 for both devices and also that the NRF device was interfering with the touch controller of the LCD. When i had both of the devices connected to the arduino, getX and getY always returned their max values. When i disconnected the NRF module, getX and getY worked perfectly. So i understood that i must use the SS pins to activate/deactivate each module so that every time only one of two is working while the other is "off".
With Arduino Uno, the LCD display uses pins A0-A6, touch uses SPI pins 10-13 and pins 1-7 are data buses, while pin 9 is SS for the TF card on the display. Here is a topic with basic code for the TFT LCD i'm using, if there is anything unclear: http://arduino.cc/forum/index.php?topic=134581.0
Both modules use SS pin 10. The LCD uses pin 9 as SS for the TF card. On the documentation of the LCD, there is no info about pin 8, so i'm thinking of using it as SS pin for the NRF module.
Instead of changing my custom shield for the NRF, i tried using SPI code to deactivate the display touch by changing the output of pin 10 from LOW to HIGH and see what happens (while having disconnected the NRF module of course).
If you take a look at the code in the topic i linked above, you can see that, while the LCD uses the SPI pins, it actually does not need inclusion of SPI headers and commands in the code. I understand that the touch controller is using the SPI bus, but when i try to add usage of SPI (including SPI.h, and adding SPI.begin() to my code), the touch stops working. What should i do so that i can use the SPI buses correctly with both the TFT and the NRF?
Here is a PDF with some useful information about the TFT shield for Arduino Uno, on page 4 are the pin definitions.http://www.uctronics.com/download/arduinolcd/3inch2_Arduino_LCD_Shield_UG.pdf
And here is an example of how i used the NRF module. I'm using the connections but not the MIRF library, i'm using the NRF network library.http://maniacbug.wordpress.com/2011/11/02/getting-started-rf24/
The LCD display with the NRF work perfectly together, here is an example of my work:https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-prn1/602233_341076379343329_2109883873_n.jpg
The only problem is that i can't get touch and nrf to work together without one interfering with the other.
Thanks in advance, i hope i was very clear with my questions!