Thank you for this excellent project. Using the voltage divider is a very good solution to the ADC voltage limitations. Facing the anomaly , we must take voltage measurements as you did.
Hi, Thanks for the excellent walk-through of your project. Can you please explain your pinoutInit() function further? I see the reference to ADC_EN, pin 14, but can find nothing in the Espressif documentation. The only reference I find is in the TTGO project you linked to. Any further details are greatly appreciated.
I tested a lot while preparing this video and I remember being embarrassed because the ADC was not working properly. Please take a look at this post. It's helped me a lot. github.com/Xinyuan-LilyGO/TTGO-T-Display/issues/35
Very well I was looking for some of that for wroom32, regarding the sketch on the LilyGo TTGO board does not appear the pin number 14! void pinoutInit(){ pinMode(14, OUTPUT); digitalWrite(14, HIGH); } That is necessary?
Which board do I select? Compiles and uploads with various ESP32 boards but I get a black screen as SPIFFS.begin doesn't initialise... 19:40:09.274 -> E (107) psram: PSRAM ID read error: 0xffffffff 19:40:09.274 -> E (115) SPIFFS: mount failed, -10025 19:40:09.274 -> SPIFFS initialisation failed! Have I the wrong options in Tools? Any help appreciated...
@@ThatProject I'm using the same tool... BTW, running Linux (my main computer) but also tried my on Windows PC, uploading images worked but they didn't display, then I switch to my Mac but ended up with an unrelated problem getting Arduino IDE to compiling any code...
May I ask if the ADC pin and Digital Input mode for pin 14 settings is the same if you use the Lilygo TTGO V2.1? I saw it in their schematic that the Battery DIO pin for the TTGO V2.1 module is D35.
Im building my first drone. I want to monitor the battery so i dont over discharge. I have been reading about voltage devider circuit and it makes sense. The board im testing is xiaon esp32s3 sense. I solder 3.7v 850mah lipo to the pads on the back. Do you know if this board has a built in a battery monitor circuit?
I know it has an internal power circuit, but I couldn't find the pin connected to the VBAT. I think it would be a good idea to contact Seeed Studio directly about this.
great demo ! i noticed that the blue LED lits up when charging and turns off when the battery is full. But, the battery icon still shows "charging". Is there a way to acess the GPIO of that blue LED?
As far as I know, it doesn't have a GPIO attached. Therefore, it cannot be turned off or turned on by the user. Just in case, please check the schematic again.
Thank you very much for your contribution!!! You are a great programmer. Everything works as you describe. Can I charge a 3.7V 400mAh lipo battery with this project?
I'm trying it, I have two questions for you, first question: connected to battery and usb, it gives me a charging signal, right? (I see the writing Chrg...) but when the battery is charged does it stop signaling that it is charging? second question: in your opinion I can use this on a wemos D1 mini, how many corrections I will have to do, thanks
Your video is very helpful. Is there a way to show the battery percentage more consistently because the battery percentage keeps increasing and decreasing and decreasing and increasing. For example, 78% increased to 79% and then decreased to 78% similarly for other battery levels. It is not as stable as shown on the phone, the battery percentage displayed on the phone is by default decreasing when not charging, and the battery percentage on this one increases and decreases when not charging.
Do you have any idea how I can use both I2S bus independently? I want to record from one port and send it to the device and using second I2S to play recorded file received from others device simultaneously
Well, sounds like it's possible. Let's say there are two I2s, TX, RX. TX connects to the speaker and RX is for the mic. In this case, while reading the data from the mic, also writing this data to the speaker. It's like operating the echo mic.
Hi, Can you somehow use this ESP32 and TTGO together with a Raspberry Pi connected to for example a 3.7v - 5000mah Lipo battery and the Adafruit Powerboost 1000c ? If so, can U then use this to automatically and safely shut down the Raspberry Pi when the Battery is low ? Or else just use this to monitor the battery level ? Thanks in advance.
My channel is not working on a project using Raspberry Pi yet. But it's something I'm interested in, so I googled it. I hope this helps. www.instructables.com/Make-Your-Pi-Project-Rechargeable/
If it's confirmed that there is no problem with the TTGO T-Call board and battery, there is a possibility that is a problem with the VBAT side. Have you checked this one?
Thanks for the share but I had no luck with this. It would constantly say my charge was 5% (1938 reading for 2v on pin 36). Its only 116 from 2047. So I don't understand why it would report 5%. Changed your defined pins in the library. The indicator images wouldn't show regardless of where I put them in the project folder. When I first tried your example, the text was too big for the screen. Code is code, so I don't understand why things like what is shown on the screen are different between us?
That's weird. Are you using the same model I'm using? It's LILYGO TTGO T-Display ESP32 with IPS ST7789V 1.14 Inch. If it's the same model, the same result as my video should come out. I've already tested with several devices. Also, please check if the TFT_eSPI setting is correct.
@@ThatProject I think so. I purchased 4 directly from LilyGo. I updated the user setup to set ST7789 as the driver. The text then loaded properly. Like scaled right. But the indicator image doesn't show still. On top of that, I have use this to get the right reading from gpio 27 for some reason? All good, I can work from there. Thanks! int v; adc2_get_raw( ADC2_CHANNEL_7, ADC_WIDTH_12Bit, &v);
@@devdeque7846 Did you put the indicator image into the ESP32 File system (SPIFFS)? If not, please refer to my first TTGO video. ruclips.net/video/Bl1C7Vdl3GA/видео.html
@@ThatProject Yeah, I uploaded them successfully and it just would say file not found. I tried, gave up on that. I ended up converting them to C arrays and doing it that way.
Possible yes, in that you can divide the voltage or get a regulator. But you're going to be losing a massive amount of energy in heat and will need to dissipate that heat. All in all the extra components to make it happen might cost more than just getting an appropriate battery. You can also pull apart your battery and rewire the cells from in series to in parallel, which will drop their output volts and increase how long they'll last.
Hi, I hope for your help, I followed all the instructions, but I can't upload the sketch, it gives me an error "Error compiling for TTGO LoRa32-OLED V1 card".
@@AndhonyPalacios Could you please check your TFT_eSPI settings again? I would recommend you to first do a test that simply outputs text without any other code.
Hello, I kindly ask if you can help me, I wanted to upload your file to esp32 devkit, but I can't, arduino crashes immediately before programming "Error compiling for the ESP32 Dev Module card" can you tell me why thanks
This is most likely because the default build settings are incorrect as the error occurs before the code is loaded. Please check PSRAM, Flash size and so on again.
Am I the only one that can't get the TTGO to turn on when connected to the lipo plug? It only seems to power on over USB-C Can't seem to find any documentation on this, did I miss something? This video looks like its just plug and play with a 1s lipo :( EDIT: Hahaha unfortunately this was just a mistake - turns out that 3 of the 5 batteries I bought actually were dead on arrival.... verified one with a multimeter and functionality is back haha also, great video Eric :)
Yes, you're right. I did just plug and play with a 1s lipo because there is nothing we can do other than that. Check this schematic first. github.com/Xinyuan-LilyGO/TTGO-T-Display/blob/master/schematic/ESP32-TFT(6-26).pdf The battery is connected directly to VBUS via TP4054(linear charger for single-cell lithium-ion batteries). Anyway, it works now so we're all happy now.
Thank you for code it is great but I have problem. When I disconnect usb imgs on ttgo t display show that still charging. Battery 3,7V 700mAh. Pls help. Average value from pins: 2894, Volts 5,21, Charge lvl: 100, Never Used: 136
Everything works great for me now. I can see the icon now. Apparently, it does not work in IDE 2. just IDE 1., so I had to downgrade the software. Thanks for your time
Good project,but my esp32 ttgo don't show charging indicator ,how need connect battery,where in ttgo pin 34?😄 indicator work well and show battery icon ( full when conect usb cable) and when disconnect 34% but when connect charging cable not show charging status,,how need corectly connect?
Pin 34 is connected to ADC. Since they are internally connected, there is no need to connect them separately. I'm not sure, but the ADC seems to be not working properly.
@@ThatProject Thank you for reply!!!,,,I change value #define MIN_USB_VOL 4.75 and now showing charging status, but I dont know how acuracy, now learn code,Thank you, good job, good project :) Have nice day:)
@@ThatProject Hi Eric thanks for the response I actually had to downgrade TJpg_decoder to 0.0.3 to get rid of the error. 1.0.3 produces the error Littlefs.h missing
I can now get the sketch to upload TFT_eSPI ver 2.4.51 JPg_Decoder 0.0.3 (.1.0.3 produces a Littlefs.h error) Looking at serial monitor I get ets Jul 29 2019 12:21:46 rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:1216 ho 0 tail 12 room 4 load:0x40078000,len:10944 load:0x40080400,len:6388 entry 0x400806b4 Initialisation done. Nothing shows on the screen it just remains blank. Any ideas? thanks for all your hard work.
@@ThatProject Hi Eric I finally got it working, I installed Arduino 1.8.19 (I was also using 2.0) I reinstalled everything taking care to get all my versions correct and it all started working.
@@speedy_x5491 This project is based on the TTGO T-Display. Please refer to the first video regarding graphics. ruclips.net/video/Bl1C7Vdl3GA/видео.html
That Project's Channel - ruclips.net/user/ThatProject
Join FB Group - facebook.com/groups/138965931539175
Thank you for this excellent project. Using the voltage divider is a very good solution to the ADC voltage limitations. Facing the anomaly , we must take voltage measurements as you did.
Oh this is exactly what i am looking for 2 years ago. Thanks
Took you 2 years mate? So you waited?
Excellent, best code and use of I've seen so far. Will be adopting this code for my project.
Thanks for your compliment!
The TTGO board has also a Lipo charge IC on board (TP405), so overcharging is not possible.
Nice this library is just what im searching for my project
suscribed!!!
Hi, Thanks for the excellent walk-through of your project.
Can you please explain your pinoutInit() function further? I see the reference to ADC_EN, pin 14, but can find nothing in the Espressif documentation. The only reference I find is in the TTGO project you linked to.
Any further details are greatly appreciated.
I tested a lot while preparing this video and I remember being embarrassed because the ADC was not working properly. Please take a look at this post. It's helped me a lot. github.com/Xinyuan-LilyGO/TTGO-T-Display/issues/35
Excellent project video
Finally I'm able to transmit the Live audio from ESP32 service to web application
Great!
Im testing this with tdeck , thanks for your efforts
Very well I was looking for some of that for wroom32, regarding the sketch on the LilyGo TTGO board does not appear the pin number 14!
void pinoutInit(){
pinMode(14, OUTPUT);
digitalWrite(14, HIGH);
} That is necessary?
To make sure, have a double-check your pinout configuration.🤞
Nice video! Thank you for making it 👏👏
Which board do I select?
Compiles and uploads with various ESP32 boards but I get a black screen as SPIFFS.begin doesn't initialise...
19:40:09.274 -> E (107) psram: PSRAM ID read error: 0xffffffff
19:40:09.274 -> E (115) SPIFFS: mount failed, -10025
19:40:09.274 -> SPIFFS initialisation failed!
Have I the wrong options in Tools?
Any help appreciated...
Are you using TTGO T-Display??? Or do you use another ESP32 board?
@@ThatProject USING LILYGO...
From tools menu, upload sketch data results in "SPIFFS Upload failed!"
Error reads:
[SPIFFS] data : /media/Dev/2022/Kicad/Projects/TTGO_Projects/ThatProject-master/ESP32_TTGO/TTGO_Battery_Indicator/data
[SPIFFS] start : 2686976
[SPIFFS] size : 1408
[SPIFFS] page : 256
[SPIFFS] block : 4096
/battery_02.jpg
/battery_05.jpg
/battery_04.jpg
/battery_03.jpg
/battery_01.jpg
[SPIFFS] upload : /tmp/arduino_build_912800/TTGO_Battery_Indicator.spiffs.bin
[SPIFFS] address: 2686976
[SPIFFS] port : /dev/ttyUSB0
[SPIFFS] speed : 115200
[SPIFFS] mode : dio
[SPIFFS] freq : 80m
SPIFFS Upload failed!
@@michaelo2l Which tool for SPIFFS are you using? I used this. github.com/me-no-dev/arduino-esp32fs-plugin/releases/tag/1.1
@@ThatProject I'm using the same tool... BTW, running Linux (my main computer) but also tried my on Windows PC, uploading images worked but they didn't display, then I switch to my Mac but ended up with an unrelated problem getting Arduino IDE to compiling any code...
May I ask if the ADC pin and Digital Input mode for pin 14 settings is the same if you use the Lilygo TTGO V2.1? I saw it in their schematic that the Battery DIO pin for the TTGO V2.1 module is D35.
Is there a new version of Lilygo TTGO V2.1? I didn't know that. What updates do they have?
Im building my first drone. I want to monitor the battery so i dont over discharge. I have been reading about voltage devider circuit and it makes sense.
The board im testing is xiaon esp32s3 sense. I solder 3.7v 850mah lipo to the pads on the back. Do you know if this board has a built in a battery monitor circuit?
I know it has an internal power circuit, but I couldn't find the pin connected to the VBAT. I think it would be a good idea to contact Seeed Studio directly about this.
ok what libraries are you using for this project I might not have it.
great demo ! i noticed that the blue LED lits up when charging and turns off when the battery is full. But, the battery icon still shows "charging". Is there a way to acess the GPIO of that blue LED?
As far as I know, it doesn't have a GPIO attached. Therefore, it cannot be turned off or turned on by the user. Just in case, please check the schematic again.
Thank you very much for your contribution!!! You are a great programmer.
Everything works as you describe.
Can I charge a 3.7V 400mAh lipo battery with this project?
gracias.
yes, you can charge a 3.7V 400mAh lipo battery with this projec
Great project!
I'm trying it, I have two questions for you,
first question: connected to battery and usb, it gives me a charging signal, right? (I see the writing Chrg...) but when the battery is charged does it stop signaling that it is charging?
second question: in your opinion I can use this on a wemos D1 mini, how many corrections I will have to do, thanks
The screen updates even while charging.
If wemos D1 mini has VBAT, it can be used in the same way.
Very good project..... Thanks
Your video is very helpful.
Is there a way to show the battery percentage more consistently
because the battery percentage keeps increasing and decreasing and decreasing and increasing.
For example, 78% increased to 79% and then decreased to 78% similarly for other battery levels.
It is not as stable as shown on the phone, the battery percentage displayed on the phone is by default decreasing when not charging, and the battery percentage on this one increases and decreases when not charging.
#define READS 20
If set to a higher value, it can be calculated with more data, so you can have a more stable value.
Are you using the inbuilt voltage divider or are there some resistors hidden underneath?
It's using the built-in voltage divider.
Do you have any idea how I can use both I2S bus independently?
I want to record from one port and send it to the device and using second I2S to play recorded file received from others device simultaneously
Well, sounds like it's possible. Let's say there are two I2s, TX, RX. TX connects to the speaker and RX is for the mic. In this case, while reading the data from the mic, also writing this data to the speaker. It's like operating the echo mic.
@@ThatProject are you going to make some videos on same topic plz
So using the battery to power the project and getting the USB to charge the battery didn't require any code. Is that correct?
Yes, that's right. The code is used to calculate the battery's voltage and show it on the display.
@@ThatProject Awesome. Thank you!
Hi, Can you somehow use this ESP32 and TTGO together with a Raspberry Pi connected to for example a 3.7v - 5000mah Lipo battery and the Adafruit Powerboost 1000c ?
If so, can U then use this to automatically and safely shut down the Raspberry Pi when the Battery is low ?
Or else just use this to monitor the battery level ?
Thanks in advance.
My channel is not working on a project using Raspberry Pi yet. But it's something I'm interested in, so I googled it. I hope this helps. www.instructables.com/Make-Your-Pi-Project-Rechargeable/
@@ThatProject I'll take a look at it. Thanks
유용한 정보 감사드립니다.
질문이 있습니다 자문좀 부탁드립니다...!
Ttgo t call v4 모듈로 프로젝트 진행중이고 관련코드나 회로구성을 마쳤는데요.
전원공급이 배터리로 설계되어야해서 3.7V 600mah을 달아주었는데 전원이 안들어오더라구요.. pc에 연결할때는 가능하던데.. 문제점이나 해결방법이 있을까요?
If it's confirmed that there is no problem with the TTGO T-Call board and battery, there is a possibility that is a problem with the VBAT side. Have you checked this one?
@@ThatProject Thanks for your advice!
I hope you solve the problem well.
Hi. Somebody did this Project for LILYGO T DISPLAY S3....??
great.
do you using sdcard memory? where do you save the pict?
All battery images are on the SPIFFS. Please check here how to put it in. ruclips.net/video/Bl1C7Vdl3GA/видео.html
Thanks for the share but I had no luck with this. It would constantly say my charge was 5% (1938 reading for 2v on pin 36). Its only 116 from 2047. So I don't understand why it would report 5%. Changed your defined pins in the library. The indicator images wouldn't show regardless of where I put them in the project folder. When I first tried your example, the text was too big for the screen. Code is code, so I don't understand why things like what is shown on the screen are different between us?
That's weird. Are you using the same model I'm using? It's LILYGO TTGO T-Display ESP32 with IPS ST7789V 1.14 Inch. If it's the same model, the same result as my video should come out. I've already tested with several devices. Also, please check if the TFT_eSPI setting is correct.
@@ThatProject I think so. I purchased 4 directly from LilyGo. I updated the user setup to set ST7789 as the driver. The text then loaded properly. Like scaled right. But the indicator image doesn't show still. On top of that, I have use this to get the right reading from gpio 27 for some reason? All good, I can work from there. Thanks!
int v;
adc2_get_raw( ADC2_CHANNEL_7, ADC_WIDTH_12Bit, &v);
@@devdeque7846 Did you put the indicator image into the ESP32 File system (SPIFFS)? If not, please refer to my first TTGO video. ruclips.net/video/Bl1C7Vdl3GA/видео.html
@@ThatProject Yeah, I uploaded them successfully and it just would say file not found. I tried, gave up on that. I ended up converting them to C arrays and doing it that way.
@@devdeque7846 Uploading files into Filesystem occur any issues? Well, anyway, I'm glad it's working.
Hello, I have a question please. Can you charge the battery when your ESP32 module is off?
Since there is no switch between the battery pin and ESP32 TTGO, it will always turn on when the battery is charging.
@@ThatProject But, do you think its possible charge the batery when the ESP32 TTGO is off with a switch or with other element?
@@RoboDIYer I don't think so. You need to make your hardware for that.
@@RoboDIYer it should be possible to charge the battery while the ESP32 is in deepsleep which is almost the same as switching the ESP32 off.
Great project! Unfortunatelly my TTGO TDISPLAY does not turn on, when I connect a 18650 in the back connector. Is it necessary to make something else?
Please take a look at this post. It helps you.
www.reddit.com/r/esp32/comments/if2gco/powering_the_esp_from_a_18650/g2lmznq?context=3
@Itamar Vieira did you configure the espi library?
Hallo...
Is this the same method for any esp32 3.3v? Or some esp32 (3.3v) need some resistance?
It may vary from product to product. You must check the schematic of the part of VBat.
@@ThatProject Thank
Sorry but I have another question: Do you know any site to buy the smallest swicth to turn the battery on and off?
@@Abbici Sorry. I have no idea. FYI, I usually buy what I need from aliexpress.
Thanks and sorry for the bother.
Hello!
Is there any way to build it for an 10s battery? It's range is from 25v to 42v.
Thanks for your time and knowledge!
Possible yes, in that you can divide the voltage or get a regulator. But you're going to be losing a massive amount of energy in heat and will need to dissipate that heat. All in all the extra components to make it happen might cost more than just getting an appropriate battery.
You can also pull apart your battery and rewire the cells from in series to in parallel, which will drop their output volts and increase how long they'll last.
Hi, I hope for your help, I followed all the instructions, but I can't upload the sketch, it gives me an error
"Error compiling for TTGO LoRa32-OLED V1 card".
It's Not for TTGO LoRa32-OLED. It has SSD1306 but TTGO T-Display I'm using here is ST7789V. Please update the display setting for yours.
@@ThatProject Thanks for answering my question, I did and fixed it
In my board the code was uploaded correctly but the screen is always off, don´t show nothing, how can I know what is the problem?
@@AndhonyPalacios Could you please check your TFT_eSPI settings again? I would recommend you to first do a test that simply outputs text without any other code.
I want to combine it with a separate charging board without charging via esp 32, what should I do?
I think you can use a Mini Lipo board. ruclips.net/video/hteut2R8eQ0/видео.htmlsi=O1spWvYzNZaLLXOz&t=146
Hello, I kindly ask if you can help me, I wanted to upload your file to esp32 devkit, but I can't, arduino crashes immediately before programming "Error compiling for the ESP32 Dev Module card" can you tell me why thanks
This is most likely because the default build settings are incorrect as the error occurs before the code is loaded. Please check PSRAM, Flash size and so on again.
Am I the only one that can't get the TTGO to turn on when connected to the lipo plug? It only seems to power on over USB-C
Can't seem to find any documentation on this, did I miss something? This video looks like its just plug and play with a 1s lipo :(
EDIT: Hahaha unfortunately this was just a mistake - turns out that 3 of the 5 batteries I bought actually were dead on arrival.... verified one with a multimeter and functionality is back haha
also, great video Eric :)
Yes, you're right. I did just plug and play with a 1s lipo because there is nothing we can do other than that. Check this schematic first.
github.com/Xinyuan-LilyGO/TTGO-T-Display/blob/master/schematic/ESP32-TFT(6-26).pdf
The battery is connected directly to VBUS via TP4054(linear charger for single-cell lithium-ion batteries).
Anyway, it works now so we're all happy now.
One after one you create a new World!
It'll help me for solar panel!
I love it. Please make tutorial arduinomenu for esp32 ttgo :)
Please check out this post. sites.google.com/site/jmaathuis/arduino/lilygo-ttgo-t-display-esp32/arduinomenu-demo-ttgo-t-display
@@ThatProject thanks but i can't call function from other .h or .cpp though enterevent by arduinomenu
@@chalutx4114 Well, it's working well on my end. Did you install the ArduinoMenu library correctly? Check this again. github.com/neu-rah/ArduinoMenu
@@ThatProject Yes, corrected but maybe i'm not good at arduino coding
Thank you for code it is great but I have problem. When I disconnect usb imgs on ttgo t display show that still charging. Battery 3,7V 700mAh. Pls help. Average value from pins: 2894, Volts 5,21, Charge lvl: 100, Never Used: 136
That's weird. It has to catch the voltage changes when the USB is disconnected. Please check the voltage with the multimeter.
Everything work just fine. However the icon does not appear in the screen, may I know the problem?
Seems like battery icon files are not in your SPIFFS. Did you upload them?
@@ThatProject SPIFFS, doesn't appear in my tools although I followed every step. I'm facing a problem with it. Do you know how to solve it?
Everything works great for me now. I can see the icon now. Apparently, it does not work in IDE 2. just IDE 1., so I had to downgrade the software. Thanks for your time
@@muskar2882 Congrats! You made it.
Good project,but my esp32 ttgo don't show charging indicator ,how need connect battery,where in ttgo pin 34?😄 indicator work well and show battery icon ( full when conect usb cable) and when disconnect 34% but when connect charging cable not show charging status,,how need corectly connect?
Pin 34 is connected to ADC. Since they are internally connected, there is no need to connect them separately. I'm not sure, but the ADC seems to be not working properly.
@@ThatProject Thank you for reply!!!,,,I change value #define MIN_USB_VOL 4.75 and now showing charging status, but I dont know how acuracy, now learn code,Thank you, good job, good project :) Have nice day:)
How can I see the battery while it is charging? thanks
It can be checked by reading the ADC value even while charging the battery.
Could I do thiswith Heltec Wireless Tracker?
This solution is so general that it can also be used with the Heltec Wireless Tracker.
I can't detect charging for the pin. My volt-only 4.1V when charging. how do you work?
It's correct that a higher voltage is required than a battery when charging. Are you using the same model I used in this project?
@@ThatProject I am not using ESP32TTGO for this project. I designed a module for my use. Does it make a difference?
@@tuananhle7130 The ADC operation for VBAT is slightly different. Please refer to the datasheet of the module you are using.
Will it work for a 3.7v 659mah battery
Yeah. No issues using 3.7v 1-cell battery (max 4.2v)
You are the best of the best
Is not possible to know percentage % during charging?
Unfortunately, the battery voltage is not known while charging on this system.
usng TTGO and when uploading I get fatal error: LittleFS.h: No such file or directory anyone got any idea. have loaded the upload tools as instructed.
To use LittleFS, you must use ESP version 2.0.x or higher and TJpeg_Decoder version 1.0.3. Please check the two versions.
@@ThatProject Hi Eric thanks for the response I actually had to downgrade TJpg_decoder to 0.0.3 to get rid of the error. 1.0.3 produces the error Littlefs.h missing
I can now get the sketch to upload TFT_eSPI ver 2.4.51 JPg_Decoder 0.0.3 (.1.0.3 produces a Littlefs.h error)
Looking at serial monitor I get
ets Jul 29 2019 12:21:46
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:10944
load:0x40080400,len:6388
entry 0x400806b4
Initialisation done.
Nothing shows on the screen it just remains blank. Any ideas? thanks for all your hard work.
@@JamesT65 Oh okay. Maybe Bodmer the author of TJpg_decoder will update it sooner or later.
@@ThatProject Hi Eric I finally got it working, I installed Arduino 1.8.19 (I was also using 2.0) I reinstalled everything taking care to get all my versions correct and it all started working.
how long does it last on battery?
Usually, it has an 80mA average operating current, so if you use a small 350mAh lipo battery, you can use it for about 4 hours.
can we do the same source code to the raspberry pi?
No, this code only works on ESP32.
How exact is the indicator 🤔
Not bad. If you increase the read count you can get a more precise value.
@@ThatProject thanks for your answer 🖖
Can I use Battery 18650 Li-Ion?
The 18650 cell has voltage of 3.7v and has between 1800mAh and 3500mAh so you can use it in this system.
@@ThatProject nice👍
@@ThatProject btw, should I use resistor?
What is it for???
@@ThatProject for battery to connect esp32 :)
Nice..👍👍👍
Güzel video olmuş
Teşekkür ederim.
ok here is a new error Error compiling for board TTGO T1
TTGO T1??? This project is based on the TTGO T-Display. Please check how the VBat connection is made on T1.
@@ThatProject ok thank you for helping me!
@@ThatProject can you post a link to it plz
@@speedy_x5491 Which link??
@@ThatProject for the VBat.
it is not working
For real? Which part is not working???
@@ThatProject It says TJpg_Decoder.h: No such file or directory
@@speedy_x5491 This project is based on the TTGO T-Display. Please refer to the first video regarding graphics. ruclips.net/video/Bl1C7Vdl3GA/видео.html
Can I ask for details via Facebook?I'm a newbie and I really want to do this stuff.
Of course. Other users besides me may be able to help you from FB.