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).
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.
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
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.