Xinyuan-LilyGO / T-Display-S3

MIT License
733 stars 174 forks source link

Unable to power board with wall plug, but computer USB-C works! #143

Closed jessedmatlock closed 1 month ago

jessedmatlock commented 1 year ago

I've been programming and testing the board using a USB-C cable connected to my computer - typical setup.. nothing fancy (Apple iMac, USB port on the keyboard)

BUT, when I connect the SAME cable to any wall wart (power adapter), the board fails to load or it loads the initial image (setup()) and doesn't run the loop().

I've tried several 5v wall power adapters, and which prove good when powering other USB-C devices, with the same cord I'm testing the display with.. ..

Any thoughts?

jessedmatlock commented 1 year ago

Further testing, I used the same USB-C cable and a large battery bank (used for charging cell phones on the go).. and the display works.

I can: 1) connect the board vua USB-C cable to my computer, 2) upload a fresh sketch and 3) reset the board and watch the sketch run.

IF I unplug that USB-C Cable FROM my computer, directly to a wall power adapter, any one of them, it will not run the sketch! I even switched boards thinking something may have effected the one I have been using.. ugh

So, in closing,.. no 5v power adapter, regardless of wattage capability, will power the display fully.

Anyone else having this issue? Any suggestions?

teastainGit commented 1 year ago

I want to help but It seems an impossible situation! I have several for 7 months(!) and they will power from anything, including iPhone white cube chargers, so, I wonder if there is some upload in your LilyGO T-Display S3 that is the problem? It will power from the battery connector too. Have you uploaded a simple known good sketch that that used to run when you got it? What do you think has changed? -Terry

jessedmatlock commented 1 year ago

Thank you! Great suggestion.. I uploaded a known good sketch, set GPIO15 to HIGH, it powered on PC USB as well as Wall Plug just fine.. no issues. I will work with the programmer to address the code and see if we can find what is causing this..

On Apr 24, 2023, at 12:51 PM, Terry Stainton @.***> wrote:

I want to help but It seems an impossible situation! I have several for 7 months(!) and they will power from anything, including iPhone white cube chargers, so, I wonder if there is some upload in your LilyGO T-Display S3 that is the problem? Have you uploaded a simple known good sketch that that used to run when you got it? What do you think has changed? -Terry

— Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/T-Display-S3/issues/143#issuecomment-1520589446, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN4QDAGXNBRPOCVXRVO6ITXC24TFANCNFSM6AAAAAAXIZI2BI. You are receiving this because you authored the thread.

teastainGit commented 1 year ago

Good news! I have a community resource on GitHub here: Https://github.com/teastainGit/LilyGO-T-display-S3-setup-and-examples You may find something useful!

Cheers ! Terry

On Apr 24, 2023, at 2:41 PM, Jesse Matlock @.***> wrote:

 Thank you! Great suggestion.. I uploaded a known good sketch, set GPIO15 to HIGH, it powered on PC USB as well as Wall Plug just fine.. no issues. I will work with the programmer to address the code and see if we can find what is causing this..

On Apr 24, 2023, at 12:51 PM, Terry Stainton @.***> wrote:

I want to help but It seems an impossible situation! I have several for 7 months(!) and they will power from anything, including iPhone white cube chargers, so, I wonder if there is some upload in your LilyGO T-Display S3 that is the problem? Have you uploaded a simple known good sketch that that used to run when you got it? What do you think has changed? -Terry

— Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/T-Display-S3/issues/143#issuecomment-1520589446, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN4QDAGXNBRPOCVXRVO6ITXC24TFANCNFSM6AAAAAAXIZI2BI. You are receiving this because you authored the thread.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

richp-tech commented 5 months ago

May I ask a question? I can't get the Lilygo T Display to mount in my MacBook Air. Any ideas? I have installed both drivers mentioned in the GitHub. I can see the device in the USB tree. Thanks.

image

image

teastainGit commented 5 months ago

You have a 'TTGO' (!) not a LilyGO T-Display S3. So use my GitHub repository with that in mind! What programming environment are you using?

richp-tech commented 5 months ago

Hello @teastainGit

It's very kind of you to reply. The box says T display. My issue is getting it to mount on my MacBook Air. I installed the drivers which are in GitHub pdf for this device.

But it won't mount.

Thank you

image

https://github.com/Xinyuan-LilyGO/T-Display-S3/assets/59874838/da7875c0-90be-46db-86b5-3d3062f29830

image

lewisxhe commented 5 months ago

Hello @teastainGit

It's very kind of you to reply. The box says T display. My issue is getting it to mount on my MacBook Air. I installed the drivers which are in GitHub pdf for this device.

But it won't mount.

Thank you

image

https://github.com/Xinyuan-LilyGO/T-Display-S3/assets/59874838/da7875c0-90be-46db-86b5-3d3062f29830

image

https://github.com/Xinyuan-LilyGO/TTGO-T-Display

teastainGit commented 5 months ago

No, not exactly. You are posting on a LilyGO T-Display S3 GitHub so I wanted to make that clear. My experience is with the newer slightly different board is all ! My GitHub repository: https://github.com/teastainGit/LilyGO-T-display-S3-setup-and-examples may contain some insights, but it is aimed at the S3 larger screen, different type of display board.

Have you tried entering 'upload mode' by holding the GPIO 0 pin button, then press reset button, then release GPIO 0 pin button?

There was a certain year and a certain MACOS version that made it difficult to install the CH340 driver. The problem went away for me with a M1 Mac, where it was pre- installed. Re installing the correct driver, this is a Apple Community type question. I would guess that you have a CP2014 chip. -Terry

richp-tech commented 5 months ago

Hi @teastainGit Thanks for your reply. I see. Sorry about that. Lots to learn and I misunderstood. No combination of button holds and clicks makes a difference. This is an M1 Macbook Air. Thanks for your help. Rich

teastainGit commented 5 months ago

With a modern Mac, one does not usually go to the Settings USB page to check if your ESP32 is connecting. Are you using Arduino IDE ? You can watch live connection, loss of connection right here:

Screenshot 2024-01-29 at 2 35 29 PM

and

Screenshot 2024-01-29 at 2 35 46 PM
richp-tech commented 5 months ago

Hi, that's what I expected. I was surprised I had to install drivers (I installed them both). It won't mount. It will show up in the terminal (twice) and in the USB tree (once) plus twice in Arduino. I have mashed it up somewhere.

Screenshot 2024-01-29 at 19 43 18 Screenshot 2024-01-29 at 19 42 04 Screenshot 2024-01-29 at 19 41 24
richp-tech commented 5 months ago
Screenshot 2024-01-29 at 19 47 13
teastainGit commented 5 months ago

The 'Board Info' feature on Arduino IDE where it tries to "Guess Your Board" is useless for ESP32 and serves as an upsetting distraction, solely. Have looked at the Arduino IDE "Select Other Board and Port"? whilst connecting, as I showed? Also M1 Macs are very fussing about USB versus Thunderbolt. MY LilyGO products only connect using TB cables in the TB ports on the back...my older non S3 boards only connect to the native USB ports on the back.

richp-tech commented 5 months ago

Thanks @teastainGit I also wonder if I have messed around with the locations of the Header files. I am learning bit by bit. I might wipe it all and do a clean install. I will let you know. Thansk

richp-tech commented 5 months ago

Hi @teastainGit I cracked it. It was my understanding of GitHub and libraries which you helped me fathom. A clean install made all the difference. Thanks very much! It was very kind of you. A huge leap forward in my grasp of it. success

teastainGit commented 5 months ago

Great to hear!!! Cheers, -Terry

richp-tech commented 5 months ago

Thanks again @teastainGit I'm just an artist with an interest in tech. You have helped greatly

github-actions[bot] commented 2 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 month ago

This issue was closed because it has been inactive for 14 days since being marked as stale.