In one of my projects, I don’t need WiFi and Particle Cloud. However, since this project is battery operated, I do need a long(er) battery life.
In order to eliminate any variables I have the Photon with no connections to it’s pins, exception the 3v3 and GND pins that I’m using to power the Photon with 3.3 volts. The firmware on the Photon is just an empty sketch with SYSTEM_MODE set to (MANUAL) and the RGB LED, turned off.
I find that @3.3 volts supplied at the 3v3 pin
In normal mode (AUTOMATIC) and WiFi On - 145mA
SYSTEM_MODE(MANUAL) and WiFi Off: 106mA
I need my code running so I’m not interested in putting the Photon in Sleep mode. I was expecting the current draw with WiFi off at around 30-40mA (as per the datasheet). So what am I missing?
I find that powering the Photon via the Vin pin, instead of the 3v3 pin makes a difference (probably because the WiFi module is connected to the 3v3 pin?
When powered via the Vin pin I now get 50mA power consumption. that would double my battery life. I feel this (3v3 pin vs Vin pin) should be documented in the datasheet.
Why's that? Seems to me like powering over 3.3V is perfectly reasonable. Powering through Vin means you have to go through the voltage regulator, wasting energy you're trying to save. With that in mind, can you elaborate on the 'common sense'?
Yea, not sure how or why I should rely on common sense when documentation does not make this clear. Experimentation is what led me to try the Vin pin. Common sense, I'm afraid, totally evade me
Supply to the internal RTC, backup registers and SRAM when 3V3 is not present (1.65 to 3.6VDC).
To me that reads as, "In order to keep the RTC alive when no power supply is present". I'll pull down the unused pins and connect 3v3 to VBAT and provide that data, here.
I've got a FLUKE 115 (True RMS) multimeter connected between the battery and the Photon. The readings I presented were after 1 minute or so, after the connection was made.
An STM32F2 application note states that when Backup RAM and RTC are not buffered via external battery it should be bridged to 3.3V (which is the case by default on the Electron due to an onboard 0Ohm resistor).
The Particle docs do also state
Thank you for the additional information @ScruffR.
I connected 3v3 to VBAT. No change to power consumption. Today I get 58mA readings. Then hooked up 10K resistor from all GPIO pins to GND. No change in power consumption.
Thank you. Yes I do understand the best practice aspect.
@shiv, that 58ma “feels” like the WiFi radio is not off. I’m not home right now so can you test again by adding WiFi.off() in setup()? What version of firmware are you running?
Initially I had the System mode MANUAL and in addition I had WiFi.off() in the setup() method. It made no difference. I'll try the WiFi.off() in set up again and report back.
Ok, I made a mistake earlier when I posted 58mA. There was some code running on the Photon that I had flashed and had forgotten about. It didn’t do much of anything but nonetheless was not an empty sketch.
So with WiFi.off() in the setup() method or not (empty sketch and SYSTEM_MODE(MANUAL)) the power consumption is 54mA.