Code Monkey home page Code Monkey logo

Comments (28)

tadam777 avatar tadam777 commented on August 16, 2024 14

To clarify the different power options :

  1. power via USB without battery
  2. power via USB with a battery : the battery will get charged, and will be used when USB is disconnected
  3. power via the +5V. It won't charge the battery. This should be done without battery only : the 5V pin is connected directly to the battery (via Q5) as soon as USB is plugged in.

image

  1. power via the VBUS (which is the 5V pin of USB). This is the best approach, as this will charge the battery, and if no power is applied on VBUS then the battery will power the board. As can be seen on the schematic, this is the only way to charge the battery, the +5V or +3.3V pins won't do it. The problem is that VBUS isn't directly accessible on a pin. Of course VBUS is the same trace as the USB power, so ideally this should be used without the USB, even if it would probably work.
    image

from ttgo-t-display.

perlix avatar perlix commented on August 16, 2024 3

Two T-Display boards that I bought in early 2020 cannot be powered over their 5V pin. Three recently bought ones can, so there may have been a revision.

from ttgo-t-display.

tadam777 avatar tadam777 commented on August 16, 2024 1

I'm powering it by the 5V pin, without using a battery or USB and it works fine.

from ttgo-t-display.

JoeBarouneD avatar JoeBarouneD commented on August 16, 2024

Like any ESP32, you "normally" can power it by 5V or 3.3V.
TP4054 recommended input is "4.5V - 6.5V" so i think it will work without problems on 5V.
You should step the TP4054 Vin up to 5V if you want to supply 3.3V to the board.

from ttgo-t-display.

flyandi avatar flyandi commented on August 16, 2024

I run it off a 1s lipo without issue.

from ttgo-t-display.

spiff72 avatar spiff72 commented on August 16, 2024

Rather than attempting to create a new issue - I am looking for some help here.

In order to power this TTGO T-Display board with a voltage source (not through the USB-C connector), how would one go about this?

Are you connecting 5v to the 5V pin? Or 3.3V to the 3.3V pin? The 3.3v pin appears to be the output of the 3.3V regulator, so I am not sure that is the right approach.

And from my (unprofessional) look at the schematic, it seems like a 5V source would ideally be connected to the VBUS line, but that isn't broken out to a pin.

Am I missing something here?

I was hoping to use these for a project where I mount it in an enclosure, with a 12V input from a wall wart, and a small buck regulator to drop the voltage to 5v to power this and a level shifter for controlling some 12v addressable LEDs. But not being able to power from that 12V source makes this board a bummer for me. Even if it could be externally powered with a 3.3v source, I could put a second buck regulator in there for the 3.3v source and make it work.

But I have also seen some mentions that the board doesn't start "automatically" when power is applied through a method outside of the USB-C port.

from ttgo-t-display.

JoeBarouneD avatar JoeBarouneD commented on August 16, 2024

Powering it by the JST connector is working (you can put a 18650 bat to test).
I could power it by USB-C with some voltage range.

Powering it by the 5V should work.
Just try it.

from ttgo-t-display.

sej7278 avatar sej7278 commented on August 16, 2024

I can't get the battery connector on the underside to turn on the display, it seems to run a IR-LED i have hanging off the 5v pin (and I assume the ESP32 itself) but I can only get the display to turn on when running from USB-C. Does the display need 5v?

Edit: seems you need to press reset to get it to boot, see #9

from ttgo-t-display.

ribbles avatar ribbles commented on August 16, 2024

If I power via 5v rail, 5.0v is sent to the LiPo battery, so it looks like it is passing battery management. If I power via USB-C, 4.2v is sent to the LiPo battery. So I am unable to use battery management unless using the USB-C port, since there is no VBUS connector. I guess I could remove the USB connector and solder on to that, but that just makes it difficult to improve the software later on.

@sej7278 - I am able to run the controller & screen using just a LiPo battery plugged into the JST port, and also via the 3.3v rail.

I am using this schematic for reference: https://raw.githubusercontent.com/Xinyuan-LilyGO/TTGO-T-Display/master/schematic/ESP32-TFT(6-26).pdf

from ttgo-t-display.

sej7278 avatar sej7278 commented on August 16, 2024

@ribbles when you run the controller and screen using a lipo, do you need to press the reset button to make the screen come on?

from ttgo-t-display.

ribbles avatar ribbles commented on August 16, 2024

No. But my board was shipped without a capacitor next to the USB-C port, which I read is what needs to be removed here: #9

from ttgo-t-display.

madameczek avatar madameczek commented on August 16, 2024

If I power via 5v rail, 5.0v is sent to the LiPo battery, so it looks like it is passing battery management. If I power via USB-C, 4.2v is sent to the LiPo battery.
...
I am using this schematic for reference: https://raw.githubusercontent.com/Xinyuan-LilyGO/TTGO-T-Display/master/schematic/ESP32-TFT(6-26).pdf

Are u sure that 5V from rail is passed to a batterry connector or U6 batt management chip? I didn't test, but can't see this from schematic.

from ttgo-t-display.

ismailagir avatar ismailagir commented on August 16, 2024

Do 3.3V output also works when a lipo is connected?

from ttgo-t-display.

ribbles avatar ribbles commented on August 16, 2024

Yes.

from ttgo-t-display.

AdamM68 avatar AdamM68 commented on August 16, 2024

still there is NO answer how to power the board/display other way than the USB-C connector.
I'm also looking for the easy answer - solution : how to power this device (not by USB-C) ?

  • which pin should I use with 5v to make it work the same way as it works during USB-C powering ?

from ttgo-t-display.

itamardv avatar itamardv commented on August 16, 2024

Still without answer about how to use a battery and the back connector to power this thing?

from ttgo-t-display.

dan-glass avatar dan-glass commented on August 16, 2024

I connected the supplied power connector cable to a 4.7v lithium battery, and charge via the USB port. Works reliably and performs battery management.

from ttgo-t-display.

Shohreh avatar Shohreh commented on August 16, 2024

I know nothing about electronics.

The TTGO has no on/off switch for the battery.

What compact switch could I use, so that I don't have to plug/unplug the JST cable each time?

Thank you.

from ttgo-t-display.

flashtel avatar flashtel commented on August 16, 2024

I tried powering via the 5vdc and one of these

Screen Shot 2022-12-09 at 3 27 29 pm

The GPS has 12 satellites but keeps loosing fix.

I plug the USB in disconnect the 5v drive, rock solid fix. Bring it in side it get's down to 4 sats and has rock solid fix.

It's also show batt volts when there is no battery attached when you drive it via the via 5 volt pin.

I'm going to either modify a USB plug or try and get something onto the back of the USB.

Thanks

from ttgo-t-display.

codiak6335 avatar codiak6335 commented on August 16, 2024

5v on the 5v pin just fried the board.

While I don't mind paying for learning... the time it takes to replace the boards... ARGH

Has any got a reliable solution? can I power the 3.3v with 5v safely?

from ttgo-t-display.

flashtel avatar flashtel commented on August 16, 2024

from ttgo-t-display.

codiak6335 avatar codiak6335 commented on August 16, 2024

from ttgo-t-display.

Esantacruz01 avatar Esantacruz01 commented on August 16, 2024

I had the same problem to power the board/display other way than the USB-C connector. Some boards doesn't work powering 5V from external or from JST. The board just works from USB-C connector.

Solution:

To power from battery or from external source you need to add these two lines at beginning of your coding setup() function (Arduino IDE). Lines are:
pinMode(15,OUTPUT); digitalWrite(15,1);
This will enables the pin for external power.
I hope that helps.

from ttgo-t-display.

elpidiovaldez avatar elpidiovaldez commented on August 16, 2024

Is it not possible to power the board from 5V connected via the JST ? As far as I can see the charger chip (TP4054) allows battery voltage in range -0.3-7V, so 5V should not be a problem. It is not going to try to charge a battery at that voltage, even if USB power is connected. The 3.3V regulator allows input up to 6V, so that should continue to work. I believe the other circuitry should prevent the USB supply fighting the battery input. Am I missing anything ? Has anyone tried it ?

from ttgo-t-display.

Esantacruz01 avatar Esantacruz01 commented on August 16, 2024

Is it not possible to power the board from 5V connected via the JST ? As far as I can see the charger chip (TP4054) allows battery voltage in range -0.3-7V, so 5V should not be a problem. It is not going to try to charge a battery at that voltage, even if USB power is connected. The 3.3V regulator allows input up to 6V, so that should continue to work. I believe the other circuitry should prevent the USB supply fighting the battery input. Am I missing anything ? Has anyone tried it ?

Hi Valdez.
I am unable to power up from the JST too.
Looks like this issue is related to some version revision of these boards....Some works, some doesn't. My lot of 10 boards just powers up from the USB-C. That's why you need to add the lines above in your coding...

from ttgo-t-display.

elpidiovaldez avatar elpidiovaldez commented on August 16, 2024

@Esantacruz01 What does GPIO15 do ? On my schematic it does not appear to be connected to anything.

On the other hand, GPIO14 does appear to do something in the power circuit.

from ttgo-t-display.

jessedmatlock avatar jessedmatlock commented on August 16, 2024

To clarify the different power options :

  1. power via USB without battery
  2. power via USB with a battery : the battery will get charged, and will be used when USB is disconnected
  3. power via the +5V. It won't charge the battery. This should be done without battery only : the 5V pin is connected directly to the battery (via Q5) as soon as USB is plugged in.

image

  1. power via the VBUS (which is the 5V pin of USB). This is the best approach, as this will charge the battery, and if no power is applied on VBUS then the battery will power the board. As can be seen on the schematic, this is the only way to charge the battery, the +5V or +3.3V pins won't do it. The problem is that VBUS isn't directly accessible on a pin. Of course VBUS is the same trace as the USB power, so ideally this should be used without the USB, even if it would probably work.
    image

Thank you for the clarification!

from ttgo-t-display.

erazor83 avatar erazor83 commented on August 16, 2024

Thanks for this issue. I also was wondering how to power via external 5V.

Using the battery input did not work for me. Fortunately I also didn't fried my board cos I noticed it's getting warm when I connect to the 5V PIN.

I connected an unused NC PIN directly to PIN 4 of the charger, see attached photos.
2107-1024 (1)
1024-2107

from ttgo-t-display.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.