Dear all,
I am looking for help because, despite of many days of reading, googling and experimenting, I fail to run my TFT display after my nRF024L01 module is initialized.
My goal is to build a wireless controlled dog training device, with an Arduino + TFT Touchscreen + a nRF24L01 radio module as controller. The device itself (I call it the 'Launcher') is managed by another Arduino and will have a second nRF24L01 connected.
I am not new to computer controlled systems, but entered the Arduino world only some months ago. I developed the various sub-systems stand-alone first, and now get stuck in the stage of merging parts together.
The hardware:
I bought an OpenSmart 3.5" TFT-display with Touch-function, 240x400pixels, SPI interface with a ST7793 driver, mounted on a 16 pins shield, together with an OpenSmart ONE R3 Air Arduino clone.
For the wireless communication I initially bought two 'nRF24L01+ plus PA plus LNA' boards plus external antenna, plus two YL106 adapter boards for easy 3.3V supply. In a later stage I also bought three EBYTE E01-ML01DP5 boards, which should be the shielded version of the two I already had.
The software:
I installed the 'Adafruit_GFX' library and the "special version" of the 'MCUFRIEND_kbv' library the seller pointed me to with stringent warning NOT TO USE the version, supported by Arduino. After some struggle I got the display and touchscreen working.
I got the nRF24 examples for 1way and 2way communication running, stable for long time.
The problem:
I added a radio module to the Arduino with the display, electrically (pin13 for SCK, pin12 MISO, pin11 MOSI, pin2 for CE and pin3 for CSN) and the code (some initialization in 'setup()' and a simple 'radio.write(...)' in 'loop', mixed with some display actions. The display actions appear not effective after the first radio statement!
When I comment out the initialization of the radio, the display fails later, after the call 'radio.write(...)'. Without the 'radio.write', the display is functioning well. I also checked the radio: it seems to work normally for a simple 1way send action (the receiver gets the sent number).
This afternoon I checked the 'CSN' signals for both devices with a decent scope: it looks OK, no simultaneous use of the SPI bus.
Unfortunately, I fail to add the code for my testing in the preferred way, maybe I can do this later.
I hope someone is willing and capable to help me out, I will appreciate that very,very much, as I struggle already many days without result.
Thanks in advance,
Fred