Using nRF24L01 and TFT LCD Mega Shield V2.2 on Mega 2560

Hello together,
I have the issue that I cannot use the nRF24L01 sensor, when connecting a TFT LCD Mega Shield V2.2.
So at the beginning I connect the nRF24L01 to the Mega2560 using the inner SPI-connector cluster and pin 8 & 10. The following code works fine (so the sender gets connected directly).

#include <RF24_config.h>
#include <RF24.h>
#include <printf.h>
#include <nRF24L01.h>

RF24 sender(8,10);

void setup() {
	Serial.begin(4800);
	if (!sender.begin())Serial.println("radio hardware is not responding!");
}
void loop() {
	sender.isChipConnected()? Serial.println("connected") : Serial.println("not connected");
	delay(5000);
}

In the next step, I simply plug the TFT LCD Mega Shield V2.2 shield (no re-wireing of the nRF24L01) and try to run the same code as again without a display connected. Unfortunately, it will not work out and the nRF24L01 cannot be reached anymore.
I have even tried this with another arduino and another shield, but it will always lead to the same behavior. I especially also checked for any shortcuts, but non are there.
Does anyone have an idea on what I might have done wrong, or how to fix this issue?
Thanks a lot in advance.

What pins does the TFT shield use?

Post the code that does not work.

This page discusses the pins used by the TFT screen, touch panel and SD card. Along with the SPI pins pins 10 and 4 are used as is pin 8, pin 8 depending on the touch panel type.

Thanks for the reply,
the code that does not work is the same as posted above. Without the shield it works; with the shield plugged, it does not work. 'Does not work' means, that the sender.begin() will return false, because the the antenna cannot be reached.
The shield uses the pins 0-7 and 22-53

Remember to add a 10uF capacitor to the radio power. Your touble MAY be caused by the extra current to the shield.

This page discusses the pins used by the TFT screen, touch panel and SD card. Along with the SPI pins pins 10 and 4 are used as is pin 8, pin 8 depending on the touch panel type.

I am using a bigger shield for displays up to 7". This one. In addition, I tried changing the CE and CSN Pin to A0 and A1. But still the issue occurs.

Remember to add a 10uF capacitor to the radio power. Your touble MAY be caused by the extra current to the shield.

Thanks for your help. I have a capacitor connected as to the datasheed. In addition I now tried to supply the antenna separately to ensure sufficient current. But still the issue keeps occuring.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.