Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brownout when start wifi and modem together #177

Open
garudaonekh opened this issue Nov 20, 2021 · 16 comments
Open

Brownout when start wifi and modem together #177

garudaonekh opened this issue Nov 20, 2021 · 16 comments

Comments

@garudaonekh
Copy link

garudaonekh commented Nov 20, 2021

Hi,

I got strange Brownout exception when I call begin Wifi and start the modem together.

If i donot start wifi, the modem can work and connect GPRS, SMS, call normally

Note, I power them from MacBook USB port

@LilyGO
Copy link
Contributor

LilyGO commented Nov 22, 2021

Hello, which board do you use ? Can you send in your source code ?

@garudaonekh
Copy link
Author

T-Call V1.4. SIM800L_IP5306_VERSION_20200811

@LilyGO
Copy link
Contributor

LilyGO commented Nov 22, 2021

I tried WiFi. The equipment is operating normally.

@garudaonekh
Copy link
Author

garudaonekh commented Nov 27, 2021

It happened sometimes if I starts Wifi and GSM modem. I don't have any clear pattern. I don't have any other hardware attached--only T-Call and SIM card. But I use only GSM modem, never have this brownout issue.

@ClemensGruber
Copy link

How is the board connecte to a power source? Could it be an insufficient power source?

@garudaonekh
Copy link
Author

How is the board connecte to a power source? Could it be an insufficient power source?

main cause of brownout is power issue but I do not think this is my case. sometimes I restart several time and it start working normally

@ClemensGruber
Copy link

ClemensGruber commented Dec 7, 2021

I had several boards that worked normally with some sensor readings or also with additional wifi. But only a too thin extension cable of the JST LiPo leads to a non functional GSM modem (but no brownout!). You may have a look at this (German) thread with two videos. https://community.hiveeyes.org/t/insuffiziente-stromversorgung-des-sim800-moduls/4263/

Can you assign the brownout to special functions or behaviours? E.g. transmitting data via modem or initialize the GSM connection? Or starting WiFi while GSM is connected?

The GSM alone needs 2 A peak, some old USB standards are below this 2 A. So I would first try to connect to an other USB power source or a fully charged LiPo battery and see if the problem occures still. Perhaps you may check the max current of your Mac's USB port in case it is a older model.

@ibrcic
Copy link

ibrcic commented Dec 7, 2021

Hi ClemensGruber, I have exactly the same problem as shown in the video in the link you posted. My German is a bit rusty so could you please tell me how did you solve the problem? Do I need to solder the battery directly to the board or use shorter wires? Currently I am using wires about 1 meter long, maybe that could be a problem?

EDIT: To clarify, I am using 18650 Li Ion battery (And high quality, Samsung one) connected directly to the board through JST connector.

@garudaonekh
Copy link
Author

I had several boards that worked normally with some sensor readings or also with additional wifi. But only a too thin extension cable of the JST LiPo leads to a non functional GSM modem (but no brownout!). You may have a look at this (German) thread with two videos. https://community.hiveeyes.org/t/insuffiziente-stromversorgung-des-sim800-moduls/4263/

Can you assign the brownout to special functions or behaviours? E.g. transmitting data via modem or initialize the GSM connection? Or starting WiFi while GSM is connected?

The GSM alone needs 2 A peak, some old USB standards are below this 2 A. So I would first try to connect to an other USB power source or a fully charged LiPo battery and see if the problem occures still. Perhaps you may check the max current of your Mac's USB port in case it is a older model.

Hi ClemensGruber, I have exactly the same problem as shown in the video in the link you posted. My German is a bit rusty so could you please tell me how did you solve the problem? Do I need to solder the battery directly to the board or use shorter wires? Currently I am using wires about 1 meter long, maybe that could be a problem?

EDIT: To clarify, I am using 18650 Li Ion battery (And high quality, Samsung one) connected directly to the board through JST connector.

i think 1 meter maybe too long, I think a good capacitor my help.

@ibrcic
Copy link

ibrcic commented Dec 9, 2021

I shortened the wire to minimum possible length (about 5-10cm) and it still doesn't work. Where do you propose to add the capacitor? Directly to the positive and negative terminals of battery terminal? What value capacitor do you think should work?

I even tried connecting ticker wires directly to battery terminal and it still doesn't work for some reason... I get the modem lights but nothing else after. The modem just continues to restart.

@ClemensGruber
Copy link

ClemensGruber commented Dec 9, 2021

@ibrcic in the non working video I had different power management devices between LiPo and T-Call:

LiPo / solarpanel > CN3065 solar charger > TPL5110-Timer > T-Call

A 2000 mA/h LiPo and a 2 W solar panel was connecte to a CN3065 breakout board, this is a dedicated solar charger. The charger was connected to a timer to save more energy than possible with the T-Call only. I have around 10 of this settings running. But could not manage to get around 8 working the same way. Changing single components did not work. So it must be a problem with adding factors.

I have also two JST cable soldered together as connection to the solar charger (without the TPL5110 breakout) but the same effect, some are working some are not.

So my advice would be use a standard LiPo and connect it direct to the JST plug on the T-Call. In case you are using a 18650 you will need a battery holder normally. The items with spring connections are reported as bad for high current. Use the one with "spring plate" instead, for a picture see https://de.aliexpress.com/item/33048934797.html or the 18650 with built in JST e.g. https://www.adafruit.com/product/1781

@ibrcic
Copy link

ibrcic commented Dec 9, 2021

I just tried soldering thicker wire directly to JST plug on the T-Call and other end directly to the battery terminals but it didn't help. The modem simply wont connect when using the battery. What is strange to me is that it is working normally through USB port that is connected to the PC and that can't provide more than 1000mA if I remember correctly.

@proximus323
Copy link

T-Call V1.4. SIM800L_IP5306_VERSION_20200811 not working on battery a have 3 board.
Can some on tell how to power up on battery ?

@proximus323
Copy link

This board sucks, I put 4.2 V from the power supply, it start working but for about 30 second voltage for 5V PIN got to 2.25 V and 3.3V PIN is now 0V, ESP32 not wake up from deep sleep, ith only work on USB port.
This can NOT be used in any projects.

@garudaonekh
Copy link
Author

This board sucks, I put 4.2 V from the power supply, it start working but for about 30 second voltage for 5V PIN got to 2.25 V and 3.3V PIN is now 0V, ESP32 not wake up from deep sleep, ith only work on USB port. This can NOT be used in any projects.

it's working again and the voltage is back to 3.3v after you reconnect the power or reset the board?

@proximus323
Copy link

Power boost for IP5306 !!!

I spend cople of hours to get this work.

bool setupPMU()
{
bool en = true;
Wire.begin(I2C_SDA, I2C_SCL);
Wire.beginTransmission(IP5306_ADDR);
Wire.write(IP5306_REG_SYS_CTL0);
if (en)
{
Wire.write(0x37); // Set bit1: 1 enable 0 disable boost keep on
}
else
{
Wire.write(0x35); // 0x37 is default reg value
}
return Wire.endTransmission() == 0;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants