Now I’ve hooked the power loop up properly and that’s working. What I’m curious about is how to go about reading the power status.
From what I’ve seen on a post about the pack:
"cairn,
The status pin is actually just tied directly to the lithium battery’s positive terminal. Measuring the voltage here you can estimate the life of the battery.
Those schematics need to be updated to include the 3.3v and status. I will try and post more updated ones.
The 3.3v is rated for 100mA and the 5v is rated for 500mA continuous.
Chris
May 15, 2008 7:47 AM"
However how do I go about reading this? Can I use the Domino directly or do I need some other components in-between?
However this isn’t going in on the VIN at all, instead this shield pumps out 5v and 3.3v and works by directly attaching it to the 5v of the board bypassing VIN completely.
The problem was with the status pin, research indicates it gives out about 4v. From previous help further up I’ve now set up a volt divider and it pumps about 2v into An1 which I can now read nicely.
“However this isn’t going in on the VIN at all, instead this shield pumps out 5v and 3.3v and works by directly attaching it to the 5v of the board bypassing VIN completely.”
Yes, my ADD took over and I changed subjects a bit.
Back to your matter. As ref is hooked directly battery, that means your battery is showing 4v also. Unless there is some other circuit going on. Either way, sounds like you got it. I would also limit as much needless current (via a resistor) as you can. No sense running any more current into the pin then you need for a reading I would think.
Not that simple in my mind. I have a USB power supply in my car that I have occasionally run a Fez from. That won’t show up as a USB connection (to a host) because it’s only supplying power, not data.
I was thinking he wanted to know via code on the FEZ if the power was coming from the 5v usb or the 5v in/out-pin (i.e. battery power). I suppose if you had a compeling reason to do this, you would use a vreg breakout that powers the fez from batt or USB and then expose test pads on it. This would also be functional as you can leave your battery attached and charge it from usb 5v or external 5v. Something like slight circuit bending of :
[url]http://www.sparkfun.com/products/10300[/url]
Yes, agreed - whether power was from USB or not. The only thing the current USB client shows is if it’s connected to a host, so my point was you can’t rely on that to tell you if you’re externally powered.
I think what we’re approaching here is a situation where if you have a very specific reason for wanting to do that then you’re going to have a very specific hardware platform that will provide that info to you. I can totally see that for solar powered remote sensors or similar where you want to control your behavior based on power inputs and charge levels etc. In general I suspect that most people don’t really need to know, their application won’t change dramatically for different power scenarios.
Lloyd, perhaps you can tell us whether the soure of power will be “critical” to your usage or not; since you said you were curious, I suspect that it won’t be a deal breaker for you if you can’t.
It can determine if supply is usb or battery and switches automatically between sources and can charge battery at same time your sys is powered via usb. Perfect. Only issue is it is a QFN. So takes it passed hobby hacks. Will have to wait for SF to upgrade their breakout.