Hello everyone!
I have a very frustraiting problem with my 2,4'' TFT SPI 240x320 display (ST7789 based, if it matters)
Long story short - I connected everything on my breadboard, and it was working fine, so i began the soldering. I have some experience with arduino, and i know how much problems can poor soldering cause, so i was very carefull - making sure there is no shorts, cleaning everything with isopropyl and checking connections every step, with my multimeter.
After i was done and connected soldered device to arduino, it was also working fine, but after 20mins or so, the screen of display just went white.
The day after i tried again, and it worked! But also only for some time.
I tried to change Arduino itself to a new one, but problem remain.
So i started to invistigate connections, and found some confusing results. (When i say that there is a "connection" i mean that my multimeter giving me a beeb, when i touch different pins with it)
When power is OFF, all connections are working as expected. But when i give power ON, my GND and 5V or 3.3V pins on arduino itself are connected. Which should mean the shortcut. But when i drop the power, connection dissaper!
Other confusing result - when power is OFF, GND pin on LCD and on arduino are connected. But when power ON, this connection is lost.
And final too mention - some of pins, used in TFT display (in my case there are CS - pin 10, RESET - pin 8, DC - pin 9, MOSI - pin 11, SCK - pin 13, MISO - pin 12. All for Arduino UNO) are also connected to GND of arduino, when power is ON.
And after i found the problem pattern. When my screen goes white, there is no connection for LED pin on screen (LED pin connected to 3.3V, the same as VCC). After i turn OFF the power, connection also not there. Only after some of touching it with multimeter, connection is restored (how - no idea), and when i connect everything together again - it is working! But only for a few seconds. And after this LED pin connection lost again.
So, my questions are:
- How it can be, that connections in scheme behave itself differently, depending on power supply?
- How can it be, that my LED pin loosing its connection, and after not working for a while - gains it again?
- What can my problem be, considering that device was working in first.
I also give you a photo of my soldering, as well as a test code i use, even tho im sure it is not a software problem.
Thanks in advance, dear community, i hope i learn something new with you!
#include <Adafruit_GFX.h>
#include <Adafruit_ST7789.h>
#include <SPI.h>
#define TFT_CS 10
#define TFT_DC 9
#define TFT_RST 8
Adafruit_ST7789 tft = Adafruit_ST7789(TFT_CS, TFT_DC, TFT_RST); //CS - 10, RESET - 8, DC - 9, MOSI - 11, SCK - 13, LED - //, MISO - 12.
void setup() {
// put your setup code here, to run once:
tft.init(240, 320);
tft.setRotation(3);
tft.invertDisplay(false);
tft.fillScreen(ST77XX_CYAN);
delay(2000);
tft.fillScreen(ST77XX_YELLOW);
delay(2000);
tft.fillScreen(ST77XX_GREEN);
}
void loop() {
// put your main code here, to run repeatedly:
}