Modular Arduino Power Cube

by EvanKale in Circuits > Arduino

26215 Views, 335 Favorites, 0 Comments

Modular Arduino Power Cube

instructablesThumbnail.jpg
overview.png

Lithium ion (Li-ion) batteries can work wonders for portable Arduino projects.

Chances are, you probably have tons of them lying around that you're not making use of. You can salvage them from many rechargeable electronics such as cellphones, cameras, MP3 players, etc.

An annoyance I came across when using these batteries in my projects though, is when I have to transfer a Li-ion battery from one project to another - I usually have to open up an old project, desolder the battery, and solder it into the new project.

To solve this problem, we're building a modular power cube - a Li-ion battery cube that can be easily attached and detached from one project to another. It also comes with the charger and power switch!

Watch the Video!

Arduino Power Cube (Lithium battery and Booster/Charger)

Check out this quick video, for a run-through all the steps below from start to finish.

Click here to watch on YouTube

Where to buy

Soldering gear:

Testing gear:

Salvage the Battery

vlcsnap-2016-03-29-23h51m58s164.png
vlcsnap-2016-03-29-23h52m03s085.png
vlcsnap-2016-03-29-23h52m08s790.png

Safety warning: Li-ion batteries can be potentially hazardous and can present a fire hazard if damaged, defective or improperly used. Do not expose them to excess heat. Do not puncture them (they are pressurized inside).

For our purposes, we're going to salvage a 3.7V (single cell) Li-ion battery. Pictured above are examples of where you can find these batteries.

Boosting the Voltage

vlcsnap-2016-03-29-23h53m15s129.png
vlcsnap-2016-03-29-23h53m32s032.png
vlcsnap-2016-03-29-23h53m52s482.png
vlcsnap-2016-03-29-23h54m12s964.png

A single cell Li-ion battery outputs around 3.7V, which isn't going to work by itself if we want to power Arduinos (like the UNO) that require a 5V regulated input.

So I'll be using a 5V DC Booster/Charger module. You can have them for around $4 USD. It comes with a mini-USB input for charging, and a standard USB for output. The B terminals are where we connect our lithium battery. It also has three LEDs on-board to denote the status of the battery (red - charging, green - charged, blue - load).

We're going to make a couple of modifications to this board to suit our needs. First we'll swap the output plug from USB female to USB male, and add a slide switch so that we can turn the host device ON and OFF. Then we're going to solder in a few LEDs into the external LED slots so that we can have LEDs on the case of the battery.

Swap the Booster Output Port

vlcsnap-2016-03-29-23h54m49s626.png
vlcsnap-2016-03-29-23h54m55s992.png
vlcsnap-2016-03-29-23h55m05s978.png
vlcsnap-2016-03-29-23h55m16s689.png
vlcsnap-2016-03-29-23h55m40s233.png
vlcsnap-2016-03-29-23h55m45s388.png
vlcsnap-2016-03-29-23h55m53s353.png

Let's start by removing the USB female port from the booster and replacing it with a USB male port, so that we can plug our power cube into a host device.

We can salvage a USB male connector from a USB extension cable.

Solder in the male connector to the output port of the booster board, using a short ribbon cable.

Tip: don't solder the positive wire just yet (our power switch needs to be attached)!

Attach the Battery and Power Switch

vlcsnap-2016-03-29-23h56m06s661.png
vlcsnap-2016-03-29-23h56m19s300.png
vlcsnap-2016-03-29-23h56m28s813.png

Here's the battery I chose, it's a 1800mAh (this is the capacity of the battery - the higher, the longer the battery will last) single cell, and I salvaged this one from a PSP battery expansion pack that I never used.

We'll solder the positive (+) terminal (or red wire, in this case) of the battery to the B+ terminal of the booster, and the negative (-) battery terminal to the B- terminal of the booster. When in doubt, check the polarity of the battery with a multimeter first!

I've also soldered a SPST slide switch to positive wire of the output port. This will act as our power switch and disconnect/reconnect power to the host device.

Attach External LEDs

vlcsnap-2016-03-29-23h56m37s458.png
vlcsnap-2016-03-29-23h56m49s111.png
vlcsnap-2016-03-29-23h57m08s896.png

Next, we'll check which LED is which color, and a quick way to do that is to put our multimeter in continuity reading, and probe the two ends of the LED to light it up.

After we figure out which color is which, we'll take an RGB LED strip, and wire that up to the corresponding external LED slots.

At this point, we'll want to give our battery a test charge and make sure all our components are working as intended before we go ahead and build an enclosure.

Make a Plastic Cutting Tool

vlcsnap-2016-03-29-23h57m28s828.png
vlcsnap-2016-03-29-23h57m46s229.png
vlcsnap-2016-03-30-03h13m51s262.png

There's many ways to go about building an enclosure - 3D printing, and laser cutting being some common options lately. But, we're going to be resourceful and build the enclosure out of recycled CD jewel cases.

We'll need to create a heated blade tool to cut CD cases with.

Take a leftover piece of blade from a retractable knife and mount it to a soldering iron by fitting the piece between the screw of the iron.

Tighten the screw so that the blade cannot move. Remove the solder tip.

Cut Out Enclosure Panels

vlcsnap-2016-03-29-23h57m18s633.png
vlcsnap-2016-03-30-00h02m27s751.png
vlcsnap-2016-03-30-00h02m40s874.png
vlcsnap-2016-03-29-23h58m09s306.png

Using our heated blade tool and a straight metal edge, we'll cut out panels to fit our components.

Make shallow cuts, and snap off the pieces with pliers. This will create cleaner cuts rather than letting our heated blade tool melt through the plastic.

After we have our pieces cut, use sand paper to smooth the edges.

Cut Holes for Ports and LEDs

vlcsnap-2016-03-29-23h58m14s254.png
vlcsnap-2016-03-29-23h58m20s501.png
vlcsnap-2016-03-29-23h58m25s119.png
vlcsnap-2016-03-29-23h58m44s802.png

Using our heated blade tool, we'll also cut out holes for the USB ports and power switch.

Using a drill, we'll drill holes to expose the LEDs.

Glue Components Together

vlcsnap-2016-03-29-23h58m39s333.png
vlcsnap-2016-03-29-23h59m11s324.png
vlcsnap-2016-03-29-23h58m58s878.png

Use a generous amount of hot glue to firmly attach the USB output port through the hole of the top panel.

Use super glue to attach the rest of the enclosure panels together.

Tape Up the Edges

vlcsnap-2016-03-29-23h59m23s366.png
vlcsnap-2016-03-29-23h59m37s236.png

To make our battery cube a little more aesthetically pleasing, I chose to seal up the edges with black electrical tape. This step is optional though, of course.

Give It a Test!

vlcsnap-2016-03-30-00h00m03s495.png

We're done! Give it a test and try to power up any USB powered device.

In the picture above, I have my power cube charging a Blackberry while the power cube itself is being charged. The blue LED indicates that the battery is under load, and the red LED indicates that battery charge is in progress.

---

That's all I have for you today!

If you liked this Instructable, then perhaps you'll like some of my other projects!

You can check them out over at my YouTube channel.

Next week, we'll be building a portable Arduino device that is powered by this power cube, and also makes use of the Bluetooth HID module from our last Instructable. So check back next week!

I'll see you then!