Hi all, it’s my first post here, and I think my issue with the Electron is related to @rickkas7 answer. I tried debugging for some hours and searching for posts here, but I couldn’t find any answer yet. I would appreciate if anyone could help me, please. These are the details of my current issue:
Device: Electron, DeviceOS 1.0.1 (I updated the OS as soon as I got it, not sure if I should have left 0.7.0, more stable?!)
Issue: When the device is connected by battery, it connects to the internet and Particle Cloud. If I remove the battery, and use a power supply 5V/3A either via USB port or VIN, the device doesn’t connect to the internet and the Cloud.
(1) The issue doesn’t seem to be with cellular signal, as I leave the device in the exact same place when switching power supplies;
(2) I measured current with a multimeter in the power supply (before connection to device), and I see that the device is consuming max 100mA. If I connect power supply via USB, device stay in “Cellular off” (white breathing) or “Listening” (blue blinking) modes. If I connect power supply via VIN, device stay in “Looking for internet” (green blinking) mode. The latter is an advance already, thanks to the issue that @rickkas7 pointed out, which directed me to this PR: https://github.com/particle-iot/device-os/pull/1581 . As per the PR suggestions, I added this to the firmware:
Before adding this code, the device didn’t even get to “Looking for internet” (green) mode, and current measurements were showing a quick peak of 90mA and average 30-40mA. After this code, the device keeps an average of 90-100mA, trying to connect to the internet, at least.
(3) As per Electron datasheet, Power section, “Most USB ports can supply only a maximum of 500mA”. I’m not advanced in electronics, but I guess it’s mentioning about computer USB ports supplying power. I’m using a AC/DC power regulator, which I connected a USB connector to it.
(4) As per Electron datasheet, Power section, “An additional bulk capacitance of 470uF to 1000uF should be added to the VIN input when the LiPo Battery is disconnected.”. I’m not using capacitors here. I didn’t know which one to use (lack of knowledge on the topic). Anyway, I thought that the USB option would work, so the VIN was my last scenario.
Can the Electron be charged independent of a battery, if it has access to “constant” power supply?
If so, is there any code that I need to add to the firmware, like what I did in setup()?
Should I install Device OS 0.7.0 again in the device (is it more stable for alternative powering options?)?
I’m sorry if this has already been answered, but I really couldn’t find anywhere here.
Thanks in advance!