I can also confirm that if I simply pull the Swan from the Notecarrier AF I am measuring an idle current of around 40uA.
And I can also confirm that the Swan on its own with a wire pulled from EN to GND consumes 2.5uAâŚ
So now to figure out where all the current is going when the two are combined!
It could be the I2C lines but does not explain the difference I am seeing against that of zfields !
And for comparison using an Adafruit Feather M0 as a host I am seeing about 9.5mA of current when EN is pulled low so the Swan is better in this respect out of the box. Current during activity for the Swan is higher but I assume there is some trickery I can do to bring that down like lower the clock speed.
Just to confirm:
- Do you have anything else wired up, other than a jumper between
ATTN
andEN
? - Are you using the same example sketch, SleepySensor?
~Zak
Hi Zak,
Nothing else wired up however using my own sketch. I did review the SleepySensor sketch and saw nothing special but I can of course test it as well.
Thanks
Yes but as I mentioned I have it set to âminimumâ mode so it should not really connect âŚ
How are you powering your test, Lipo battery ?
Can you confirm that your âchgâ LED on the Swan remains on even with EN pulled low. In your picture it looks off.
I have a second AF Notecarrier I could try for kicks.
Thanks,
Serge
Looking at the schematic it appears the 3v3 output supply is off by default. I see its EN pin pulled to ground so this should be the same for both of us.
Never mind about that comment. Seems its only powered when USB is connected to Notecarrier.
Yes, I am using a 2000mAh lipo.
If you have USB connected to the Notecarrier, then the Notecard will be in a âUSB power stateâ (by design). When it is operating exclusively from battery or solar, then it will drop into its lowest power state.
Maybe this is the difference?
Zak
Hi,
No because I am testing the same way as you, without USB. I get the same results as before with my uCurrent with an identical setup to yours. 227uA
If I can get this setup down to the 40uA you show I would be super happy!
One thing I do notice is that you are testing the high side rather than the low side. I am testing the low side.
So I tried another Notecarrier AF and another Notecard and I am still at 225uA.
Out of curiosity what firmware version are you running on your notecard ? I am on the latest 2.1.1.2013839.
So the same test with the Notecarrier AL and Swan reveal the same sleep current as the test with the Notecarrier AF. â 227 uA
Lastly I tried the sleeps sensor example code with the Notecarrier AL and Adafruit Huzzah 32 same as in the sample you provided. At best I get 120uA of current drain.
So I am slowly reaching the conclusion that your Current Ranger is off or then its somehow related to the Notecard firmware.
I am slowly running our of ideas here.
Hi @ssozonoff
Iâm investigating the difference in firmware at the moment, and Iâll get back to you with my findings.
Awesome research so far!
Zak
Hello again @ssozonoff
I have good news and a great lead.
First the good news. I updated my firmware to the latest firmware, and I am achieving slightly better current draw (barely noticable: ~500nA less than before).
The âgreat leadâ came from looking at your picture again.
You appear to have a Swan 1.7, but I have the inferior Swan 1.5. My Swan does not have the hardware pull ups on the I2C lines.
In retrospect (it feels really silly when saying this aloud), @bsatrom had it right all along, and you MUST have an isolator on your I2C lines. If you are running SleepySensor, this is easy to test. The sketch will put the MCU to sleep for 3 minutes. During this time, you can simply pull the I2C lines and see the current draw drop.
To validate/synchronize our ammeters, letâs both do the following steps:
- Plug your Notecard into the Notecarrier-AL.
- Connect the Notecard to your computer over USB
- Establish a terminal connection to the Notecard using Notecard Playground - Blues Wireless Developers.
- Issue the command:
{"req":"hub.set","mode":"off"}
- Disconnect from USB
- Short
<BAT
toGND
for 5 seconds. - Short
<VUSB
toGND
for 5 seconds. - Remove all shorts.
- Power the Notecarrier-AL using the
BAT
JST connector. - Verify your ammeter reads ~10uA
Performing this test with a 2000mAh LiPo pouch, my ammeter reads 8.1uA - 11.3uA, and averages just under 9uA.
Hi,
Great
Happy you were able to identify this, I didnât think of the Swan hardware being different
So its great news and less great news in that I was hoping to use the AF for my prototype for a more compact setup without the need for wiring up several PCBâs.
You appear to have a Swan 1.7, but I have the inferior Swan 1.5. My Swan does not have the hardware pull ups on the I2C lines.
Do you have a simple explanation or pointers to some reading that further discusses the need to isolate those I2C lines ?
If I understand correctly those I2C lines should go high when the I2C master goes to sleep because of the pull up resistors on the I2C lines. In which case there should be no current flowing. Things a probably more complex than I understand Maybe something to do with phantom powering ?
Do we have a multi master setup in that the Notecard is also acting as an I2C master ?
Thanks guys, I am not trying to doubt what has been said rather just get my head around it so I actually understand what I am doing and why.
Kind thanks and have a great weekend.
Serge
I have a plan to add the level shifter to the system without having loose pcbâs floating about.
Will test this when I am home on Monday. I already have those level shifterâs that @bsatrom was referring me to⌠see I knew I was not going to escape that
Serge
I was just reading about the level shifter you refered me to and saw this
Thatâs where this lovely chip, the TXB0104 bi-directional level converter comes in! This chip perform bidirectional level shifting from pretty much any voltage to any voltage and will auto-detect the direction . Only thing that doesnât work well with this chip is i2c (because it uses strong pullups which confuse auto-direction sensor) or control lines with a lot of capacitance on them. If you need to use pullups, you can but they should be at least 50K ohm -
Is this going to be an issue ?
Thanks,
Serge