[quote=“fbritop, post:4, topic:1056, full:true”]
I think the definitely solución is to delay in 1 or 2 seconds the wifi start from the library. That should avoid the initial peak current at boot.[/quote]
How did you do this? I tried to disable wifi entirely by commenting out the proper references in the mos.yml but it still started wifi.
Haven’t done it. I not a C expert and it is not possible, up to what I understand, to do it in MJS. Today powering up from USB directly failed for the first time inside the lab device
From what I can tell, the wifi starts before my init function is called. I tried a delay as the first thing in the init function but, as expected, it didn’t help. I tried commenting out all the wifi related libraries in the mos.yml but it still seems to be starting wifi on power up.
Given it boots correctly when I plug the USB into a 2,1A wall wart I believe this is a power issue. If I can figure out how to start it without BLE or wifi I think we can lick this.
Oh, this happens if I use Mongoose or just Arduino, so I guess its not Mongoose related.
I have no trouble at all now. For what I saw: Using VIN connectors, you should really check for loose connections, dupont cables are not reliable. WHen using USB, for lack of space I was using a custom built connector, but it somewhere had a voltage leak, when using a direct USB connection from an adapter, there is no problem at all. Also check that the DC adapter, gives full current at startup and does not have any current leak at initial power up
I had a similar problem problem, but not as bad, I ended up putting a timer delay in some of my code for a few seconds.
Btw how do you delay the wifi connection?