Ok, ok..... I just overdid myself. I became VERY enthousiastic when Shawn told about the BeagleBone BeagleBone Cape. I think these new Linux-based boards are very attractive to tinkering, understanding embedded processing and making internet-connected... things!
I started creating this design, and I've come quite far in the progress. The last bit takes a bit too much of my time though since I should be spending time on the RoadTest design, and in my private live I've had some 'turbulent days' which boils down to taking a bit more time for myself. I couldn't seem to get to the point of making the decisions to finish the design. I hope my design can be a starting point, and after the RoadTest I can take a bit of time at my own pace to finish it, or maybe someone else has had a better idea yet...
Line of thought
What I wanted to do is ensure you can use the BeagleBone on Qi, and on a battery.The Qi receiver can supply up to 1A, so it is safe to let it power the board (which takes ~500mA max according to the documentation) and charge a LiPo battery. I've looked into LiPo charging solutions, but found out a simpler way; the BeagleBone carries a power management IC that already incorporates a LiPo charger in the Power Management IC (PMIC)!
Now we're getting into more troublesome terrain; can you use the LiPo battery connected to the PMIC to keep the BeagleBone going when no Qi power is available? The answer is... yes and no. Yes, you can run the BeagleBone from a LiPo battery at the battery connection; No, you can't use USB host or other IO that needs 5V. The easy way out is to say: do not use 5V IO / USB in combination with Qi. I found that a bit crude, and limiting the possibilities of the BeagleBone. My solution is to incorporate a few switches in the design to achieve the following functionality:
- When using Qi power: power the board from Qi, and let the PMIC charge the LiPo battery.
- When Qi power is gone: disconnect Qi from the 5V supply input of the BeagleBone, disconnect the battery from the PMIC, and connect it to a boost converter (I used the WEBENCH tool to design one; really comfortable!) to boost the battery voltage to 5V, and run the BeagleBone 5V USB INCLUSIVE from the LiPo battery
Sounds easy, became a bit complicated. But I got the major part in a schematic and layout.
ToDo
OK, so what are you looking at when opening the design files? I tried to solve the circuit described above by using the available signals, and some FETs and BJTs. I could have used a small microcontroller for that, it might still be wise to do so, but it's easier to understand and less error prone when done with hardware only (my opinion, I know others think different). Also, I know the MSP430 series can go in REALLY low power, but you have to design your software to go to IDLE / STOP modes. I have no experience in that field.
Which points are still open in this design?
- Finish the last bit of routing
- No on-off switch for the battery. Do you need one on the PCB? Easiest to use is a toggle switch, but I wanted the layout to be as low as possible to just glue the RxCoil of Qi to the Cape. Use a microcontroller after all, and a small push-button? Or is that overkill?
- What connector to use? Different batteries use different connectors, so I now just used plated holes to solder wires. Is that OK?
- Use a jumper (low profile / horizontal mounting to keep a flat surface) to use a dummy 10k resistor as NTC, when the LIPO pack does not have its own NTC
- Place LEDs for debugging / power indication:
- Qi present
- LIPO voltage
- 5V present
- All resistors are now 0402. I have no problem with that size, but maybe others do
- Review functionality. I did this by thinking, and not yet by testing. Maybe others have different / better ideas / see errors I overlooked.
- Last but not least: do we need an under voltage lockout (UVLO)? When the battery is connected and supplying the board it is being drained - fast. An UVLO should protect the battery, and shut down the supply to the BeagleBone. Some battery manufacturers include it in the cell, or do all manufacturers do this? I have no experience in this, so please comment...
Credits
Thanks to the BeagleBone documentation and the Adafruit Proto Cape I was able to comprehend the BeagleBone and have a good starting point for the layout. A small comment on the Adafruit board: their 'keepouts' for connectors on the BeagleBone are on the top instead of at the bottom, and are a few tenths of mm off. Good starting point anyway...
What can you do for QiCape?
I saw several people with ideas for a QiCape. Although I do not have the time needed to finish this very soon, I'd hate to see my efforts wasted. If you're looking for a starting point: see the files below (Eagle). And please let me know your concerns / thoughts, I'm very curious what you're thinking about it!
What can the QiCape do for you?
It's a board file and a schematic using the Qi receiver, including all values and ordering codes (in the Qi part). Please re-use it!