Interfeacing NRF24L01 and 1.3inch SPI TFT Display with Arduino Pro Mini

Hello All,

Good Day.

My project with NRF24L01 and I2C Oled was working very well but now Im shifting to 1.3inch SPI TFT Display. This display have following pins onboard.
GND, VCC, SCK, SDA, RES, DC, BLK
I also have tested this display with arduino pro mini and working great also NRF24L01 was working great. But I stuck when I was connecting both modules at a time because both NRF24L01 and TFT display uses two common pins which are SCK and MOSI (SDA). can anybody guide me how to connect and work in this situation
The link of the display is given below.

The SPI bus is intended for connection to multiple devices. The connections to MISO, MOSI and SCLK are shared by all devices and then each device needs a separate ChipSelect or ChipEnable connection which the Arduino asserts to identify which of the devices it wishes to talk to.

If you need more help please post your program and a photo of a simple pencil drawing showing how you have everything connected.

Also please post a link to the datasheet for the TFT display. I am familiar with the nRF24.

...R
Simple nRF24L01+ Tutorial

Thanks for the reply Robin.
Actually I buy this module from china and unfortunately it has no CS/SS pin. Can I use NRF24L01 with CS pin and TFT display without CS pin ?
Previously when I was working I got huge help from your tutorials. Here is the link where

https://aliexpress.ru/item/32918394604.html?spm=a2g0o.detail.1000014.33.38f1570enLtWPv&gps-id=pcDetailBottomMoreOtherSeller&scm=1007.14976.191224.0&scm_id=1007.14976.191224.0&scm-url=1007.14976.191224.0&pvid=d8ead728-fa87-4529-8e23-a67e9af3c1f4&_t=gps-id:pcDetailBottomMoreOtherSeller,scm-url:1007.14976.191224.0,pvid:d8ead728-fa87-4529-8e23-a67e9af3c1f4,tpp_buckets:4976%230%23191224%232_4976%232711%237538%23168_4976%233104%239653%235_4976%234052%2318550%2365_4976%233141%239887%239_21387%230%23183380%230&_ga=2.178434788.173970106.1604871775-648128059.1593880784

After Searching I did not find any manual for this display.

Here are the links I found for TFT display User Manual

https://www.waveshare.com/w/upload/7/70/1.3inch_LCD_Module_user_manual_en.pdf
https://focuslcds.com/content/E13RG62424LWAM450-N_Spec.pdf

On page 2 of the first link in Reply #3 I see this

CS Chip selection, Low active[\quote]

...R

Mini_TFT_OLED_NRF:710:12: error: 'tft' was not declared in this scope

            tft.setTextColor(ST77XX_RED, ST77XX_BLACK);  // set text color to red and black background

            ^

Mini_TFT_OLED_NRF:760:12: error: 'tft' was not declared in this scope

            tft.setTextColor(ST77XX_RED, ST77XX_BLACK);  // set text color to red and black background

            ^

Mini_TFT_OLED_NRF:828:12: error: 'tft' was not declared in this scope

            tft.setTextColor(ST77XX_RED, ST77XX_BLACK);  // set text color to red and black background

            ^

Multiple libraries were found for "Adafruit_GFX.h"

 Used: C:\Users\engrk\Documents\Arduino\libraries\Adafruit_GFX_Library

 Not used: C:\Users\engrk\Documents\Arduino\libraries\Adafruit-GFX-Library-master

Multiple libraries were found for "Adafruit_ST7789.h"

 Used: C:\Users\engrk\Documents\Arduino\libraries\Adafruit_ST7735_and_ST7789_Library

 Not used: C:\Users\engrk\Documents\Arduino\libraries\Adafruit-ST7735-Library-master

Using library SPI at version 1.0 in folder: C:\Users\engrk\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.22\libraries\SPI 

Using library RF24-master at version 1.3.5 in folder: C:\Users\engrk\Documents\Arduino\libraries\RF24-master 

Using library Adafruit_GFX_Library at version 1.10.2 in folder: C:\Users\engrk\Documents\Arduino\libraries\Adafruit_GFX_Library 

Using library Adafruit_ST7735_and_ST7789_Library at version 1.6.0 in folder: C:\Users\engrk\Documents\Arduino\libraries\Adafruit_ST7735_and_ST7789_Library 

Using library Adafruit_BusIO at version 1.6.0 in folder: C:\Users\engrk\Documents\Arduino\libraries\Adafruit_BusIO 

Using library Wire at version 1.0 in folder: C:\Users\engrk\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.22\libraries\Wire 

exit status 1

'tft' was not declared in this scope

I'm doing the same but there is no CS pin on the display.
I merged the two programs and upon verifying very odd error comes. Im uploading the code and error please check.
Here is the code

There are two images in your Original Post and the right-most image shows a CS pin. You did not tell us what the images represent.

Are you sure you have an SPI device?

…R

Sorry for the confusion. I have left one module you can check from the pictures attached in this post. Actually in 1.3inch display maximum manufacture are not giving CS pin but I dont know why. And in second image you can check it is written as SPI interface.

I'm 99% sure that's an I2C interface.

gfvalvo:
I'm 99% sure that's an I2C interface.

+1

...R

Thanks but I got everything working fine after too many work in programming.
But Unfortunately I'm stuck when there is no communication or arduino is not Transmitting anything I got "dataReceived 0" after each 5-10 tries automatically. and I dont know how to tackle this problem. You can see from the Image. Because due to this unwanted dataReceiving, the Text on the display refresh whenever it receive "dataReceived 0". You can see from the picture attached

Did you get the SPI display working with the NRF24L01?

Yeah Display shows in the above pictures is working with NRF24L01

I have resolved above “dataReceived 0” error. But im facing some problems with display. It refreshes when it receive signal but i want it will refresh itself whenever it got different signal than previous

engr_khalil:
Thanks but I got everything working fine after too many work in programming.

You never responded to Reply #8 and without knowing the answer to that its going to be difficult to help you.

If you need more help please (as requested in Reply #1) post a photo of a drawing showing how you have everything connected.

...R