I am working o a project where two remote units (Arduino ProMicro + nRF24L01 + sensors) send data to a central location (Arduino ProMicro + nRF24L01 + TFT display).
After a lot o work and help from this Forum I managed to get everything working.
Since I would like to add some more features to the receptor (more status leds, buzzer, alarm onn/off toggle button, etc) as well as a “faster display”, I decided to use an ESP32 in the receiver (using the VSPI pins for the display).
I tested the basic hardware with the Adafruit graphic test code and the display worked much faster than with the Arduino Promicro.
Then I connected the nRF24 sharing the ESP32 MOSI(pin23) and SCK(pin18) with the TFT display.
The other nRF24 pin were connected to the ESP32 as follows: MISO–> pin 19, CE–> pin4 and
(See attached wiring diagram)
I made the necessary changes in the (working) code to reflect the new wiring and the change of the board to ESP32.
To my surprize, the ESP32 can connect to both transmitters but it receives only garbage!!!
None of the values received (more than 10) is correct!
If I use the “old” Arduino receiver I can confirm that all the variables are being transmitted and received correctly.
Just in case I have also attached the receiver code, but be aware that it is a rather lengthy.
ESP32 wiring.pdf (338 KB)
Receptor_ILI9341_OptFlow_ESP32_Rev0.ino (17.2 KB)