Code Monkey home page Code Monkey logo

Comments (13)

ticksp avatar ticksp commented on July 17, 2024 9

ESP32-TFT(6-26).pdf
For understand PWR_EN functionality you can have a look on comments, which I made in attached schematic.
So you can set PWR_EN to "1" and read voltage in BAT_ADC, if this voltage more than 4.3 V device have powered from USB. If less then 4.3 V - device have power from battery. To save battery you can set PWR_EN to "0" and in this case USB converter will be power off and do not use your battery. When you need to measure battery voltage first set PWR_EN to "1", measure voltage and then set PWR_EN back to "0" for save battery. I hope my descrition will help somebody to better use this device! :)

from ttgo-t-display.

tadam777 avatar tadam777 commented on July 17, 2024 2

It's possible to solder a wire on the bottom of the T-Display module to access the GPIO14. I didn't test it myself but a user confirmed it to work ( #6 (comment) ) :

Plan de travail 1@4x

from ttgo-t-display.

kiromaisus avatar kiromaisus commented on July 17, 2024 1

Yes, it's possible to solder a pin on one end of the diode that's connected to IO14 and use JTAG. I did it with ESP-prog and it worked. Not needed to remove the diode, but I'm not using it with battery, just to debug.

from ttgo-t-display.

Joennuh avatar Joennuh commented on July 17, 2024

Just a guess: maybe it is read only? So you can read the value and let your sketch find out in this way whether it runs from battery or USB power?

from ttgo-t-display.

paccerdk avatar paccerdk commented on July 17, 2024

@Joennuh its an output, there's a diode on the pin, restricting current flow to one direction.

from ttgo-t-display.

gnunomad avatar gnunomad commented on July 17, 2024

I have the same problem. I've been analyzing the scheme but I can't figure out how that pin works. I think the scheme contains errors in the polarity of the mosfet.

from ttgo-t-display.

lewisxhe avatar lewisxhe commented on July 17, 2024

I get feedback: PWR_EN can continue to detect the power of the lithium battery when there is no USB power supply. V3V is to prevent leakage current. @paccerdk

from ttgo-t-display.

paccerdk avatar paccerdk commented on July 17, 2024

@lewisxhe
This isn't making much sense to me.
Detect in which way? As mentioned earlier, it appears to be an output, there is a diode restricting the current flow to one direction. (out)
Could you perhaps share the feedback that you got?
Honestly, it seems to me like there is a mistake on the schematic, and the PWR_EN was supposed to be able to let the device turn itself off, when battery powered. that also explains the naming.

from ttgo-t-display.

lewisxhe avatar lewisxhe commented on July 17, 2024

@paccerdk
In order to use VBA to turn on the power, because, when downloading 32, the single chip PWR_EN can not work, so V3V has no power, so 2104 can not be downloaded, so open V3V power through VBUS

The above is the original words, I am responsible for the transmission.

from ttgo-t-display.

ricolk avatar ricolk commented on July 17, 2024

I cannot understand BAT offsheet. It is just connected to Q4 and to the partition for battery conversion... Is it connected also to VBAT?

from ttgo-t-display.

pvonmoradi avatar pvonmoradi commented on July 17, 2024

@ticksp Thanks for the clarification. So the connection of GPIO14 to PWR_EN (as it is JTAG's TMS pin) does not hurt JTAG functionality right?
The way I see it, while debugging via JTAG, some transistors would get stressed (because of PWR EN) and the "BAT_ADC (ADC_IN, VDET_1/GPIO34)" voltage is not to be trusted, but nevertheless, this wouldn't hurt debugging.
#17 #26
Edit: Oh, I think the problem is GPIO14 is not actually broken out so it's inaccessible...

from ttgo-t-display.

posplayr avatar posplayr commented on July 17, 2024

Can anyone confirm that you can access IO14 at D6 in order to support JTAG and have the JTAG work?

Also it seems as if from ticksp's comment above:
When you need to measure battery voltage first set PWR_EN to "1", measure voltage and then set PWR_EN back to "0" for save battery.

if not using a battery then D6 be removed and this makes it easier to solder a wire to the anode pad of D6?

from ttgo-t-display.

posplayr avatar posplayr commented on July 17, 2024

Yes, it's possible to solder a pin on one end of the diode that's connected to IO14 and use JTAG. I did it with ESP-prog and it worked. Not needed to remove the diode, but I'm not using it with battery, just to debug.

Thank you for that confirmation.

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.