Closed jbrepogmailcom closed 3 years ago
There is a battery connector on the backside. Use the cable you got to connect.
Den tis 22 okt. 2019 kl 21:45 skrev jbrepogmailcom <notifications@github.com
:
Hello,
I cannot find any documentation on how to power the TTGO-T-Call board. Do I connect 4V battery to 5V PIN, or to plastic connector on the board? Is the battery charged when connected to USB?
Thanks for answer, Jan
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/TTGO-T-Call/issues/29?email_source=notifications&email_token=ACWEUM65ZGLHA2W2XM3KKALQP5J55A5CNFSM4JDUNM2KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HTTHJYA, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACWEUMYCYV73MSGHR5AZHEDQP5J55ANCNFSM4JDUNM2A .
OK, got it and it works. Two more questions please:
Yes it charges battery when connected to usb-c You can measure pin 352 to get voltage. I do like this int batteryLevel = analogRead(35)2;
Den ons 23 okt. 2019 kl 23:10 skrev jbrepogmailcom <notifications@github.com
:
OK, got it and it works. Two more questions please:
- is battery charged through that connector when TTGO is connected to USB-C?
- is there any way how to measure the battery power without resistor divider? I tried routine to measure internal voltage with rom_phy_get_vdd33(), but that seems to measure power after stabilizer not battery
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/TTGO-T-Call/issues/29?email_source=notifications&email_token=ACWEUM7ILMW6T6QZPHNG45DQQC4STA5CNFSM4JDUNM2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECC4KNI#issuecomment-545637685, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACWEUM473EAZJWG2MCOIDGDQQC4STANCNFSM4JDUNM2A .
Works well, thank you. Multiplication by 2 should supposedly give me milivolts, but the value was too high. so I had to use something like analogRead(35)*2 / 1135 to get real voltage.
Yes it charges battery when connected to usb-c You can measure pin 352 to get voltage. I do like this int batteryLevel = analogRead(35)2; Den ons 23 okt. 2019 kl 23:10 skrev jbrepogmailcom <notifications@github.com … : OK, got it and it works. Two more questions please: - is battery charged through that connector when TTGO is connected to USB-C? - is there any way how to measure the battery power without resistor divider? I tried routine to measure internal voltage with rom_phy_get_vdd33(), but that seems to measure power after stabilizer not battery — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#29?email_source=notifications&email_token=ACWEUM7ILMW6T6QZPHNG45DQQC4STA5CNFSM4JDUNM2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECC4KNI#issuecomment-545637685>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACWEUM473EAZJWG2MCOIDGDQQC4STANCNFSM4JDUNM2A .
I can input 9V in usb-c ?
Hi about battery measurement I took some samples for more accuracy measurement, I compared with a tester and is very accurate. void getBateryValue() { // tomar un número de muestras analógicas y sumarlas while (sample_count < NUM_SAMPLES) { sum += analogRead(BATTERY_METTER_PIN); ample_count++; delay(10); } voltage = (sum/NUM_SAMPLES)/ 2350.0; batteryLevel = _min(map(sum / NUM_SAMPLES, 2000, 2440.0, 0, 100), 100); //1100 if (sum/NUM_SAMPLES < 1200) batteryLevel = 0; Serial.print("Valor Analogo: "); Serial.println(sum); Serial.print("Battery Lavel:"); Serial.print(batteryLevel); Serial.println("%"); sample_count = 0; //Reset counter sum = 0; //Reset counter voltage = voltage * 4.20; Serial.print(voltage); Serial.println (" V"); }
my experiences:
I had great variations with batteryLevel = analogRead(35), so I am averaging 20 measures 0.1s apart. That seems to be pretty stable.
I had issues with powering the board with LiPo 3.6V battery via the connector. It works rarely and it seems that the board is not getting enough power. Probably the transition resistance of about 1 ohm in battery holder and thin wires is too much for high current. Anyway, I have connected battery directly to pins GND and 5V and the board seems to work well. The voltage returned by batteryLevel = analogRead(35) is now about half of that when battery connected via battery connector, so I will have to adjust it.
I would like to ask for opinion - can the charging circuitry cause that the board is getting less power from the battery?
Hello, Is there a way to optimize the battery consumption? with a 3.7v 2000mAh li-ion Lipo, it discharge in 24hrs, without doing anything special (web server running waiting for client and send every 15mns a http req)
If you need to have a web server always on I don't think you can do much. If you drop the web server and only send an http request every 15 minutes, you can then use the deep sleep mode (which is more a controlled power off than a sleep) and you should be able to save consistent amounts of energy. See here: https://github.com/Xinyuan-LilyGO/TTGO-T-Call/issues/40 and here: https://github.com/Xinyuan-LilyGO/TTGO-T-Call/pull/46 (where the contributor measured ~1mA in deep sleep mode)
Why not simple power with 3x 1.5V AA batteries on 5V pin? In deep sleep it consumes then 100-150uA.
Did you actually measure the current? For me it is several mA even in deep sleep mode
Yes, I measure the current. Board consume in deep sleep about 120uA (3x AA batteries on pin 5V).
Please post the .ino script or link to it that you use to put TTGO to sleep. Thank you very much
#define MODEM_POWER_ON 23
...
...
...
void GoToSleep() {
esp_sleep_enable_timer_wakeup(TIME_TO_SLEEP * uS_TO_S_FACTOR);
digitalWrite(MODEM_POWER_ON, LOW);
esp_deep_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH, ESP_PD_OPTION_OFF);
esp_deep_sleep_pd_config(ESP_PD_DOMAIN_RTC_FAST_MEM, ESP_PD_OPTION_OFF);
esp_deep_sleep_pd_config(ESP_PD_DOMAIN_RTC_SLOW_MEM, ESP_PD_OPTION_OFF);
esp_deep_sleep_start();
}
@nikil511 I see you have a lot of experience with this. What do you think about powering the board (pin 5V) with three AA batteries (if we don't use rechargeable batteries), do you have any concerns about proper functionality (GSM spikes,...)? Is the 5V pin suitable for this? Do you found maybe any other optimal solution to operate with the rechargeable Li-Ion batteries and minimum power consumption in deep sleep mode (up to 200uA)? Our need is simple, GSM modem send data once an hour, in the meantime is in deep sleep. And as long as possible without charging the batteries or any other intervention ;-)
Dear Der2k7, thanks for example. It did not work, because it was using obsolete esp_deep_sleep_pd_config, which is now esp_sleep_pd_config. After I fixed the script, I got to 1250uA when I blinked LED, without LED code I got 950uA. Therefore I think it is not possible to achieve less than 1mA and definitely not 120uA even when powering directly to 5V rail by 3 AAA cells as you suggest.
Here is modified code that works: `
void setup() { // put your setup code here, to run once:
esp_sleep_enable_timer_wakeup(TIME_TO_SLEEP * uS_TO_S_FACTOR); pinMode(MODEM_POWER_ON, OUTPUT); digitalWrite(MODEM_POWER_ON, LOW); esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH, ESP_PD_OPTION_OFF); esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_FAST_MEM, ESP_PD_OPTION_OFF); esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_SLOW_MEM, ESP_PD_OPTION_OFF);
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() { // put your main code here, to run repeatedly:
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second
esp_deep_sleep_start();
} `
Hay, Can someone confirm that you can power this board with 5v onto the 5v pin? Everything I seem to find says you cannot do this, but it would make my project a lot easier! TIA
i do works fine. just take care you've got 2A on your supplies
i do works fine. just take care you've got 2A on your supplies
@maromme With 5V supplied to the pins directly, does it charge the LIPO battery?
didn't try that yet but regarding comments of other users here, it's not charging in that case
didn't try that yet but regarding comments of other users here, it's not charging in that case
Would have been great if it could. I'm running the board powered using AC/DC PSU 220V->5V@3A and it would have been amazing if the battery could then serve as backup power on a mains power failure. I would need to figure out how to get the USB-C powered via my existing power source.
with a USB-C cable maybe? :-)
On Thu, Apr 30, 2020 at 1:17 PM Billy notifications@github.com wrote:
didn't try that yet but regarding comments of other users here, it's not charging in that case
Would have been great if it could. I'm running the board powered using AC/DC PSU 220V->5V@3A and it would have been amazing if the battery could then serve as backup power on a mains power failure. I would need to figure out how to get the USB-C powered via my existing power source.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/LilyGo-T-Call-SIM800L/issues/29#issuecomment-621744073, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHB4OWB6CDZ2RD2PWUO7DTRPFF5FANCNFSM4JDUNM2A .
with a USB-C cable maybe? :-)
Cut off one side and solder it to my power supply output? That might work. Will investigate. Not sure what the usb-c pinouts are and how one would go about powering it. Worth a try.
What lithium batteries are good to use (or to avoid) for TTGO Lilygo T-Display??
I put a NCR18650 via the small connector on the back and it works. When the battery is somewhat discharged part of the board near the connector gets hot while charging.
Cheers, Richard L.
I've been struggling for documantation on this. Can anybody tell me how to power the board from the usb socket and supply seperate power(not battery) to the the sim800 part with 2a capability. I intend to run from 12v supply and use lm2596 for voltage drop. In this scenario there would be no lipo and no lipo charging involved.
thanks
Ed
If you provide 5v via USB , that should be enough for stable gsm operation. Depending on PSU maybe you might have to add a capacitor too on the 5v line
You can also power them directly via 5v pin, but I had a few tcall powered long term that way and some failed.
Either way, new tcall has an i2c power managment chip so behavior will be different.
On Sat, Jun 13, 2020, 10:31 vitalstates notifications@github.com wrote:
I've been struggling for documantation on this. Can anybody tell me how to power the baord from the usb socket and supply seperate power(not battery) to the the sim800 part with 2a capability. I intend to run from 12v supply and use lm2596 for voltage drop. In this scenario there would be no lipo and no lipo charging involved.
thanks
Ed
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/LilyGo-T-Call-SIM800L/issues/29#issuecomment-643584781, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHB4OQPCR2CIXDKA3CHOZDRWMTMNANCNFSM4JDUNM2A .
Many thanks for quick response.... I was thinking that the usb supply from the PC would not be enough current for the gsm during upload and debugging so thought a seperate 4v 2a would be necessary for the sim800.
(usb is enough) But..why don't you try it first, before making your life complicated?
On Sat, Jun 13, 2020, 12:48 vitalstates notifications@github.com wrote:
Many thanks for quick response.... I was thinking that the usb supply from the PC would not be enough current for the gsm during upload and debugging so thought a seperate 4v 2a would be necessary for the sim800.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/LilyGo-T-Call-SIM800L/issues/29#issuecomment-643599610, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHB4OSR57F3YZYA5MIDQFLRWNDO7ANCNFSM4JDUNM2A .
hi nikil, could you please be a bit more detailed there: "directly via 5v pin, but I had a few tcall powered long term that way and some failed."
There is (was) a major bug with IP5306 that upon power failure and recovery, it needed "reset" to start. I am solar charging them thus to overcome this problem I tried powering tcall with a solar-charger module that had 5v output (e.g. dfrobot, seeedstudio, adafruit,sparkfun etc) It worked for a few weeks, but then my devices went offline. Many things could have gone wrong, so I do not have a diagnosis and I dont think its important anymore, since tcall power management has completely changed- improved in the latest version.
On Sat, Jun 13, 2020 at 9:25 PM maromme notifications@github.com wrote:
hi nikil, could you please be a bit more detailed there: "directly via 5v pin, but I had a few tcall powered long term that way and some failed."
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/LilyGo-T-Call-SIM800L/issues/29#issuecomment-643659956, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHB4OQCHB2BIXYG3VMKZM3RWPAAZANCNFSM4JDUNM2A .
Hay nikil511, You may beable to shine some light on an issue Im having. I'm having a problems with T-Call, powered directly via 5vpin, from a 3Amp power supply. On GPRS connection, I send two HTTP post successfully and then disconnect. The T-Call restarts on its own. Sending data via wifi with 5v power supply, or GPRS with USB power, I have no problems, only when sending via SIM and on 5v power supply. Any advice... help will be appreciated, its driving me up the wall. G
If esp32 does a brown out reset during gprs transfer or registration then you are underpowered, a capacitor might help. If the restart is after successful http request, then check your code! It does not sound like a power problem.
On Sun, Jun 14, 2020, 22:04 grichfitz notifications@github.com wrote:
Hay nikil511, You may beable to shine some light on an issue Im having. I'm having a problem with my T-Call, powered directly via 5vpin. On GPRS connection, I send two HTTP post successfully and then disconnect. The T-Call restart on its own. Sending data via wifi, same method, I have no problems, only when sending via SIM it reboots. Any advice... help will be appreciated, its driving me up the wall. G
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/LilyGo-T-Call-SIM800L/issues/29#issuecomment-643808262, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHB4OTYEOLGUG2QO37ITKLRWUNNNANCNFSM4JDUNM2A .
I have used both "batteryLevel = analogRead(35)*2;" and "battVoltage = modem.getBattVoltage();" from the TinyGsmClient library, to get the battery voltage. The strange thing is I get a reading of about 4 volts, wether I have a battery connected or not. Can anyone explain? I also have a few other questions. Is there a way in software to find out if the battery is being charged? Can the battery supply power to the esp32 as well, or only to the SIM800 modem?
4v is the power to the gsm module via regulators.
See the examples to understand how to get the battery
On Tue, Jun 16, 2020, 03:22 thetandberg notifications@github.com wrote:
I have used both "batteryLevel = analogRead(35)*2;" and "battVoltage = modem.getBattVoltage();" from the TinyGsmClient library, to get the battery voltage. The strange thing is I get a reading of about 4 volts, wether I have a battery connected or not. Can anyone explain? I also have a few other questions. Is there a way in software to find out if the battery is being charged? Can the battery supply power to the esp32 as well, or only to the SIM800 modem?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/LilyGo-T-Call-SIM800L/issues/29#issuecomment-644457961, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHB4OXJVBJ7AA67Q7W2GL3RW23MHANCNFSM4JDUNM2A .
Thank you for quick response @nikil511 :)
What examples are you refering to? The "int batteryLevel = analogRead(35)*2;" is an example in this thread.
Shouldn't the reading be zero, when no battery is connected?
Do you also have the answer to the other two questions?
Sorry if this question has already be asked. I'm currently working with the Lilygo t-call programmed using micropython. My issue is as follows. When I power the device using a 18650 battery connected to the back attachment, I am unable to switch the device on. I switch it off by holding down the reset button for 10 seconds however can't switch it on again. Is there a gpio pin that can be used to do this or am I just doing something wrong. Currently to switch on the system I insert the USB-c cable.
I've issues when power T-call(IP5306) by 5v pin with 220->5v 3A supply. Esp32 reseting with Guru Meditation Error (IllegalInstruction). Are there any solutions? What max 5v pin voltage? May be i can increase input to 5.5v and this solve problem?
Add capacitor, and/or change psu You shouldn't have to go above 5v
On Wed, Jul 29, 2020, 20:36 eugvb notifications@github.com wrote:
I've issues when power T-call(IP5306) by 5v pin with 220->5v 3A supply. Esp32 reseting with Guru Meditation Error (IllegalInstruction). Are there any solutions? What max 5v pin voltage? May be i can increase input to 5.5v and this solve problem?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/LilyGo-T-Call-SIM800/issues/29#issuecomment-665801499, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHB4OXW4HQWE3RHVQ6QAYDR6BMYRANCNFSM4JDUNM2A .
I use PSU Meanwell RS-15-5 with output 5V 3A, if I connect this PSU to USB, it works very well. I doesn't try add capacitor, what capacity it should be?
P.S. In newer T-Call with AXP192 power pin marked as "5V-IN", does it mean, that connecting to this pin is simmilar to usb and I'll can charge battery?
Hi, I connected ttgo tcall with 2 Li ion batteries in series though the attachment on its back. So in total I provided it near about 7.4 V supply. But it didn't work and now it's not even working with usb. Does ttgo tcall not accept this voltage? Is there any way to rectify this? Thanks in advance.
Hello there, regarding the board power.
If I want to connect 4x18650 v4 batteries, can I connect them through the plastic pin located in the other side of USB-C connector. That would be around 7.4V 5000mAh.
Is there any discharge/overcharge protection inside the board?
Will a USB-C charge the batteries when it would be connected? (for example 24 hours per 3 months).
Thank you
Hello there, regarding the board power.
If I want to connect 4x18650 v4 batteries, can I connect them through the plastic pin located in the other side of USB-C connector. That would be around 7.4V 5000mAh.
Is there any discharge/overcharge protection inside the board?
Will a USB-C charge the batteries when it would be connected? (for example 24 hours per 3 months).
Thank you
Did you try this ?
Issues have not been active for a long time and will be closed. If there is a problem, please reopen it.
Good day,I need a code to switch two relays attached to the T-Call SIM800 please. I have search the internet with no results!
@Ronel308 Your issue is not related to the product. Simply search how to connect relay to esp32. And if you want to learn how to send command over gsm internet or SMS to switch relay on and off, simply search randomnerdtutorials for that. This all is very basic stuff. Moreover, esp32 pins can output 0V (low) and 3.3V (high) and you can search for relay boards with switching voltage of 3.3V, for example this one. https://robu.in/product/2-channel-isolated-5v-10a-relay-module-opto-coupler-arduino-pic-avr-dsp-arm/
Good day, I am new to this enviroment and would like to control a relay from this board from my cellphone. I have access to my own server. Kind regards, Kobus
Kobus Steenkamp Cell 0828937098
On 11 Feb 2021, at 18:16, bhupiister notifications@github.com wrote:
@Ronel308 Your issue is not related to the product. Simply search how to connect relay to esp32. And if you want to learn how to send command over gsm internet or SMS to switch relay on and off, simply search randomnerdtutorials for that. This all is very basic stuff. Moreover, esp32 pins can output 0V (low) and 3.3V (high) and you can search for relay boards with switching voltage of 3.3V, for example this one. https://robu.in/product/2-channel-isolated-5v-10a-relay-module-opto-coupler-arduino-pic-avr-dsp-arm/
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
Hello there, regarding the board power.
If I want to connect 4x18650 v4 batteries, can I connect them through the plastic pin located in the other side of USB-C connector. That would be around 7.4V 5000mAh.
Is there any discharge/overcharge protection inside the board?
Will a USB-C charge the batteries when it would be connected? (for example 24 hours per 3 months).
Thank you
You can connect just 1S battery to the battery connector. If you want to use 4 batteries, just connect them in parallel. Discharge/overcharge protection is implemented. The battery can be charged only via USB connector. 5V pin does not charge the battery!
Hi. I am able to read the battery voltage on PIN35. I want to read if the USB is powered or not. Is there a way to read the power on the USB to detect if the Power is lost?
Hi. I am able to read the battery voltage on PIN35. I want to read if the USB is powered or not. Is there a way to read the power on the USB to detect if the Power is lost?
I used to see the voltage on PIN35 for my case. If USB power is missing, the voltage will drop below 4V.
Hi. I am able to read the battery voltage on PIN35. I want to read if the USB is powered or not. Is there a way to read the power on the USB to detect if the Power is lost?
That's possible to obtain from IP5306 power manager. It is connected to ESP32 via I2C. Datasheet: http://www.injoinic.com/wwwroot/uploads/files/20200221/0405f23c247a34d3990ae100c8b20a27.pdf Registers: https://docviewer.yandex.ru/view/0/?page=8&*=H5f3ndGZgnTZYCmrKmDgl66huU57InVybCI6InlhLWRpc2stcHVibGljOi8vZTlnMElGZVlCM3ZwaTlxbklETy9wTThHZzRXOVhCc1F4UmRqNHZqYzNxVEJtay9COU1EVkFpV1BUTS9wVFR6QnEvSjZicG1SeU9Kb25UM1ZvWG5EYWc9PSIsInRpdGxlIjoiSVA1MzA2IEkyQyByZWdpc3RlcnMucGRmIiwibm9pZnJhbWUiOmZhbHNlLCJ1aWQiOiIwIiwidHMiOjE2MTc2Mzg2ODM1NTUsInl1IjoiNTkwNDQ2MTM4MTU3OTgwMTc0MCJ9
Register 0x70 bit 3 is that you are looking for.
Hello,
I cannot find any documentation on how to power the TTGO-T-Call board. Do I connect 4V battery to 5V PIN, or to plastic connector on the board? Is the battery charged when connected to USB?
Thanks for answer, Jan