Hi
My Display is not starting up correctly if it is not connected with the USB serial line to the PC. So just running on an external Power Supply.
After Power Up only the back light comes on (white screen) and stops there. Pressing the reset button on the Arduino then will solve the problem. I am using a Arduino Mini Pro and am using the Arduino reset pin #define TFT_RST -1 .
Don't think it is a hardware problem as I have 2 displays and both does the same. I also tried different Power Supplies to no avail.
Any suggestions to fix this?
Thanks
1.8" Color TFT LCD display with MicroSD Card Breakout: Not c
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- FVA1
- Posts: 20
- Joined: Sat Aug 20, 2016 4:26 am
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: 1.8" Color TFT LCD display with MicroSD Card Breakout: N
Do you have a line like this in the setup() of your sketch?
Code: Select all
while (!Serial);
- FVA1
- Posts: 20
- Joined: Sat Aug 20, 2016 4:26 am
Re: 1.8" Color TFT LCD display with MicroSD Card Breakout: N
Yes, just after Serial.begin(9600); Today it is only the one display. I use a Pro Mini and loaded the code on it and then just swapped the LCD's. If I press the init button when the problematic LCD is fitted it comes on. Maybe I must ad a hard reset in the code?adafruit_support_carter wrote:Do you have a line like this in the setup() of your sketch?Code: Select all
while (!Serial);
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: 1.8" Color TFT LCD display with MicroSD Card Breakout: N
Try commenting out that line. On batteries, the Serial will never init, so that loop will run forever and your code won't get past it.
- FVA1
- Posts: 20
- Joined: Sat Aug 20, 2016 4:26 am
Re: 1.8" Color TFT LCD display with MicroSD Card Breakout: N
OK. I out commented the while loop out of the same example sketch to 2 Pro Mini's mounted on a PC board. Header pins are soldered on both LCD's that plugs into the PC boards so both can run simultaneously. Only the one fails to start, If I swapped then between the Pro Mini'e the fault moves with the LCD. It proves that the issue is only with the one LCD. I made a video an can upload it, but size will be to big.
Best regards
Best regards
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: 1.8" Color TFT LCD display with MicroSD Card Breakout: N
A photo of the setup showing how everything is connected is OK.
- FVA1
- Posts: 20
- Joined: Sat Aug 20, 2016 4:26 am
Re: 1.8" Color TFT LCD display with MicroSD Card Breakout: N
Attached
- Attachments
-
- 20190814_220631.jpg (122.84 KiB) Viewed 341 times
-
- 20190814_220616.jpg (96.97 KiB) Viewed 341 times
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: 1.8" Color TFT LCD display with MicroSD Card Breakout: N
Can you move to a breadboard setup for testing? So the only hardware will be the Pro Mini(s) and the display(s). Just setup one Pro Mini with one display and we can swap out displays as needed.
- FVA1
- Posts: 20
- Joined: Sat Aug 20, 2016 4:26 am
Re: 1.8" Color TFT LCD display with MicroSD Card Breakout: N
Sure will do that tomorrow
- FVA1
- Posts: 20
- Joined: Sat Aug 20, 2016 4:26 am
Re: 1.8" Color TFT LCD display with MicroSD Card Breakout: N
Hi
It seems I have found the issue. It is with the reset pin. In my project I define the reset pin to -1 instead of Pin 9 as guided in your example [#define TFT_RST 9 // Or set to -1 and connect to Arduino RESET pin} Why it affects only the one LCD I don't know, although occasionally it will do it on both.
Not a big problem I just need to move it to another pin, although I run out of pins. But then again I also run out of storage space and if I can't reduce that I will have to go another route.
Regards
It seems I have found the issue. It is with the reset pin. In my project I define the reset pin to -1 instead of Pin 9 as guided in your example [#define TFT_RST 9 // Or set to -1 and connect to Arduino RESET pin} Why it affects only the one LCD I don't know, although occasionally it will do it on both.
Not a big problem I just need to move it to another pin, although I run out of pins. But then again I also run out of storage space and if I can't reduce that I will have to go another route.
Regards
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: 1.8" Color TFT LCD display with MicroSD Card Breakout: N
Cool. Glad you figured it out. Good luck with your project - it looks neat. Have fun!
Please be positive and constructive with your questions and comments.