Comments (13)
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.
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) ) :
from ttgo-t-display.
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.
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.
@Joennuh its an output, there's a diode on the pin, restricting current flow to one direction.
from ttgo-t-display.
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.
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.
@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.
@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.
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.
@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.
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.
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)
- Reintroduce the MIT Licence HOT 1
- What means soder option on the product page to order? HOT 1
- Connection lost HOT 1
- ESP32 doesn't wake-up from deep sleep when battery goes flat
- Ghosting old artifacts
- Display fails when code uploaded by PlatformIO HOT 1
- I2C Connection Issue with PN532 HOT 1
- T-Display Blank Screen HOT 3
- WebSocket Client Sample for LILYGO board
- SPI SDcard not working with LilygGO T-Display
- loading library from h:\...\Arduino\libraries\T-Display-S3: invalid library: no header files found
- 3D files
- TTGO T-display C1101
- How to make circuitpython work? HOT 3
- blank screen but still uploads code HOT 3
- Does readrect() work on this display HOT 1
- LilyGo T display won't mount. HOT 4
- TTGO T-Display v1.1 serial port problems HOT 2
- Crashing LVGL with Wifi
- Getting GPIO Error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ttgo-t-display.