I am using an Arduino Nano to control a 0.96" TFT display. I use it to generate advertisements for the model railroad. The sketch currently only controls one display with an Arduino Nano and an SD card reader. I can also connect two copies of the display with the same picture to the circuit board.
On Arduino, pins (D0, D1), D2, D3 and D5, D6 and D7 are still unassigned.
If they are the same model of display and they show the same image, it should be very easy. The code won't need to be changed because the Nano won't even know it is connected to more than one display.
Probably only the CS pins of the displays need to connect to different Arduino pins. The RST and DC pins can be shared, like the CLK and COPI/MOSI pins.
Yes and once you understand that SPI is a bus where Clk, MISO and MOSI go to each of the SPI peripherals. The only thing different is the CS (chip select) pin for each device.
Sorry I cannot follow your schematic as I do not have the pinouts of the parts you memorized. It is normal practice to label them on the schematic.
No, these are used for uploading your code and debugging with serial monitor on Nano.
That's assuming you mean a classic Nano V3 (ATMEGA328). There are many Arduino models called "Nano" these days, with different specifications and features.
Now I think more about it, I'm am not certain this is true.
There is a danger that if the RST pins of two or more displays are connected to the same Arduino pin, it may not be possible to initialise each display. The first display may get initialised correctly, but then when the second display is initialised, this might reset the first display again.
It may be possible to solve that problem by giving the library dummy pin numbers for the reset pins of each display, and having your code reset all the displays once in setup(), before any of the displays are initialised.
The Nano's 3V3 pin can only supply a small current, maybe 50mA or less. Not enough for even 1 TFT display, certainly not more than one.
Do your displays have built-in regulators so that they can be supplied with 5V? If so, just do that.
If not, you will need to use an additional 3.3V regulator such as AMS1117.
Also, are your displays 5V tolerant? If not, they could be damaged by connecting to 5V Nano pins. You can use voltage dividers to reduce the Nano's 5V signals to 3.3V.
It's no problem. I know, you said, you're not sure.
I think, 3 or 4 different displays would be great, so there are a lot of pins to use for.
There will be eight displays on each station platform. If four different advertisements are randomly displayed on them, that would be very cool, by using one Arduino Nano and one SD Card Reader.
The TFT library inherits from the Adafruit_ST7735 library, with which you can use a common RST pin for multiple displays by specifying the pin in the first display constructor, then using -1 for the pin number in all subsequent display constructors. That triggers the reset on all displays when the first display is initialized, which is the only time it will be needed.
I was just about to present my solution, which I have been working on in vain for the last hour. I had already defined an array, integrated it into the setup, but had no idea how to integrate it into the loop. I just wanted to present this partial solution and found your approach. I will test it right away and thank you for the nice suggestion.