DIY Portable Solar Powerbank (w/ 110v Outlets & USB Ports)

by ASCAS in Workshop > Solar

151113 Views, 1393 Favorites, 0 Comments

DIY Portable Solar Powerbank (w/ 110v Outlets & USB Ports)

DSC_0026aasxa.jpg
DSC_0203a.jpg
Untitled.jpg
DSC_0212.JPG

This week we are building SlimPanel, an intelligent all-in-one solution for portable solar energy production. SlimPanel has all the needed components inside a portable 1 inch enclosure. Basically it's a huge but portable powerbank that can power 220v/110v appliances and USB devices. It uses an Arduino for its brains and can be upgraded to work with the Intel Edison IoT.


.

My reason for building this project is to develop and deliver a cheaper alternative for non-renewable energy. Yes the technology has been invented but the incorporation to fit everything you need inside the Solar Panel's enclosure is far from conventional. Rich or poor, people need electricity. The project aims to deliver electricity to areas that have no access to electricity. Other than that, the project can be of use to the consumer level. People can use it as a source of electricity wherever they choose to go. In my opinion, this is an important tool for survival.

.

This is our investigatory project for our physics class in High School. I'm planning to enter this for this year's Google Science fair and for Intel's science contest. The project is still in the making and I'm build several prototypes to reach perfection.

____________________________

Here's teaser of my upcoming video tutorial:

It can power a 32" LCD TV and a Laptop too!

____________________________

The project is still in the making. I'll be updating this guide frequently until I stop and decide to build the SlimPanel v2.0. Your opinion is what matters most to me, it helps a lot on building my version 2.0.

.

Google Science Fair 2015 and Intel 2015 (Research Paper)

Google_Science_Fair_thumb800.png

I'm joining this in several science fair contests. Hope I win same as last year.

______________________________________

Cool new high production video coming soon!

Glossary - Words to Understand

Charge Controller -

Voltage Divider -

Battery Balancing -

Inverter -

Regulator -

Lithium Batteries -

Layout of the Electronics - How It Works

F2FAZK0I6YLTDOS.png

Here's a block diagram of the project. I apologize for the poor quality, I've used MS Paint to make the diagram. Anyway, I wrote a layman's description below on how the system works. I wont use too much technical terms so that everyone would understand.

How It Works:

1st.) The solar panel converts sunlight to electricity during day.

2nd.) The power output of the solar panel goes through a junction going to a voltage divider. The voltage divider makes the output voltage below 5 volts making it readable to the Arduino MCU's analog pin. This voltage divider keeps track of the solar panel's output voltage.

3rd.) After passing through the junction of the voltage divider, the power output of the solar panel enters the charge controller section of the circuit.

4th.) The MCU runs an Algorithm to control the charging cycle of the charge controller.

5th.) After the solar panel's power output has passed through the charge controller (with the MCU's permission), it will then go through a junction to another voltage divider. The second voltage divider (this one) is used for getting the battery's voltage (used for power status).

6th.) After going passing through the voltage divider's junction, the panel's output now gets to charge the Li-ion battery pack.

7th.) The charging wont stop until the MCU has detected that the battery is full.

8th.) In addition, there's another line (parallel to the charger's charging line) that goes to the MOSFET load switcher. The load switcher is in charge of turning the appliances on and off automatically. It works very similar to relays. Again, the MCU has control to the load switcher. You can modify the program in step # 31 to add some cool new features to the SlimPanel.

9th.) The load switcher follows the written program. The default program will only supply electricity to the USB charger and Power Inverter if the battery has enough power (16v low cut-off). You can customize the MCU's program to add a menu selection.

10th.) The USB Charger regulates the output power of the battery and lowers it to 5V (2A). The output then goes to the modified USB HUB. The hub extends the number of ports.

11th.) The inverter converts the Regulated 12v to AC (220v), the power used for wall appliances.

12th.) While all of these are happening simultaneously, there are other modules that are also operating. Ones like the tact buttons (for control), LCD screen (for displaying the battery status and power modes, Bluetooth module (for smartphone control and telemetry) and WiFi module (Intel IoT).

Gather the Parts & Materials

DSC_096ax.jpg
DSC_0096ba.jpg
DSC_0102a.jpg
DSC_0106a.jpg
DSC_0099.JPG
DSC_0080.JPG
DSC_0131a.jpg

Here are the parts you'll need:

General Components:

- 12v to 220v Inverter

- 2A USB Charger

- 20W Solar Panel

- Arduino Uno

- LCD Screen

- USB Hub

- 18650 li-ion Battery

Discrete Components:

- ATmega328 IC (Included with Arduino)

- 28 Pin IC Socket (for Atmega328)

- 16mHz Crystal Oscillator

- 22pF Ceramic Capacitor

- IRF9530 MOSFET

- IRF540 MOSFET

- 2N3904 NPN Transistor

- SPDT Switch

MISC:

- AC Sockets

- Epoxy

- Super Glue

- Glue Sticks

- Silicone Sealant

Might As Well Buy an Intel Edison (IoT)

DSC_0080.JPG
DSC_0083z.jpg

The original plan was to build the project having the Edison as the MCU. I failed to do so since I'm lacking the compact breakout board for the Edison. I'm still planing to pursuit to use my original on the Version 2.0 of SlimPanel.

Measure the Components

DSC_0156a.jpg
DSC_0134a.jpg

Grab your note pad and vernier caliper then write down the measurements.You'll be needing them later.

Mark the Cutouts

DSC_0170a.jpg
DSC_0185a.jpg
DSC_0187a.jpg
DSC_0188a.jpg
DSC_0189a.jpg
DSC_0190a.jpg

Plan and layout the placement of parts then draw the acquired measurements to the solar panel's aluminum frame. Don't use ballpens or markers they will smuge, use pencil instead.

Grind Some Metal!

DSC_0206a.jpg
DSC_0197a.jpg
DSC_0199a.jpg

You are probably wondering how were you suppose to cut the aluminum frame. The answer: you could use your electric drill and jigsaw. First, drill a hole for the buttons and a hole at the center of the rectangular markings. Next, useyour jigsaw to finish off the remaining metal from the rectangular markings. If you have access to a jigsaw, you can use a hacksaw or you can use a rotary tool.

Smoothen the Edges

DSC_0518a.jpg
DSC_0521a.jpg
DSC_0522a.jpg

Use your metal file to smoothen the sharp edges. Do it slowly and patiently, there's no going back once you have filed too much metal.

Hack the USB Hub

DSC_0524a.jpg
DSC_0003a.jpg
DSC_0544a.jpg
DSC_0525a.jpg
DSC_0528a.jpg
DSC_0540a.jpg
DSC_0543a.jpg

In this step, you'll be needing a USB hub. As much as possible, buy the cheapest one. Quality doesn't matter that much since we will be removing most of the components inside.

.

I used a USB hub to expand the number of USB ports of my USB car charger. You will need to hack your USB port to remove all the vampire components. The USB hub consumes electricity to power the IC that expands the ports, we wont be needing that since we are only tapping in the hub's power line. Once you are done desoldering the components, solder two hookup wires to the DC power jack.

Hack & Acquire the USB Charger's Internals

DSC_0001a.jpg
DSC_0005a.jpg

Find a 12 USB charger with a 2.1 ampere output. Some mobile devices like the latest apple products only charge at 2.1A, they won't work with chargers rated below 2.1 amperes.

.

Find a way to dismantle the USB charger. You can open most of the cheap chargers by using a screw driver to push apart the plastic division. The expensive ones usually comes off by unscrewing the tip of the 12v plug's fuse area.

Connect the Hub to the 12v USB Charger

DSC_0008a.jpg
DSC_0010a.jpg
USB.jpg

Now, solder the wires of your hacked USB hub to your USB charger's USB port (note: I removed the female plug from the charger). Next, solder two hookup wires to the charger's 12v input.

Mount the Hub to the Panel

DSC_0010a.jpg
DSC_0012a.jpg
DSC_0011a.jpg
DSC_0009a.jpg

Hot glue the USB hub together with the 12v charger's circuitry on the solar panel.

Mount the AC Sockets

DSC_0006b.jpg
DSC_0001a.jpg
DSC_0014a.jpg
DSC_0021a.jpg

These AC sockets were supposed to be snap-ons although the double wall aluminum frame was too thick. The latches didn't work so I hot glued them too. For the wiring of the outlet, both of them are soldered in parallel.

Disassemble the Inverter

DSC_0011a.jpg
DSC_0007a.jpg
DSC_0013a.jpg
DSC_0012a.jpg

I you happen to have a 12v inverter lying around, you can use it for the project. If you don't, you could buy one from eBay or Amazon. They don't cost that much, if you buy the right ones. Their price range lies around $5-$25. As much as possible, buy the 75W version, anything higher than that will consume too much electricity and will drain the battery faster.

.

When you happen to find or buy one, check it if it works and find if it's fit for your appliance's voltage. Next, dismantle the inverter to get the circuit inside. Be sure to exercise caution, some inverters contain charged capacitors that could cause electric shocks. You can dismantle the inverter by unscrewing the fuse head found at the tip of the 12v plug of your inverter.

Connect the Sockets to the Inverter

DSC_0027a.jpg
DSC_0022a.jpg
DSC_0030a.jpg

The wires that you've soldered to the AC sockets can now be soldered to the AC output of the 12v inverter.

Mount the LCD

DSC_0035a.jpg
DSC_0027.JPG

I bought this cheap 8x1 character SPI LCD from e-Gizmo for P90 ($2.00). It was perfect since the LCD was able to fit within the solar panel's frame. You can mount it by simply using hot glue, same to the tact buttons.

Mount the Buttons

DSC_0220.JPG

Do Some Outdoor Testing (Getting the Voltage)

DSC_0508a.jpg
DSC_0509a.jpg
DSC_0516a.jpg

Aside from using my solar panel's datasheet as reference, I thought it would be wise to do some testing to see if the values of the datasheet were accurate. It turns out that the solar panel's max (no load) voltage was 3v higher than the one specified in the datasheet. Acquiring the max voltage is very important, it dictates how the number of battery-cells your solar panel can charge. You will also need the max voltage later for constructing the voltage divider of the charge controller circuit later on.

Build a Dual 12v Regulator

DSC_0023a.jpg
DSC_0007a.jpg
DSC_0103.JPG
DSC_0109.JPG

I plan to use 5 Li-ion cells connected in series. When connected in series, the batteries will yield a max voltage of 21v. The inverter and USB charger will only operate at voltages ranging from 11-14v. In order for us to use the appliances safely, we would have to regulate the supply that goes to the charger and inverter. In this project, I used and designed a linear regulator since I was not able to get hold of a Switching Regulator/ Buck Converter. This is a huge step down for me, although I'm still planning to replace this Linear regulator with a much more efficient switching regulator, if ever I get hold of one.

______________________

If ever you chose to build the linear regulator, you can download the zip file below. The zip file contains everything you need: the schematic diagram, the Printable PCB Layout (PDF) and the raw fritzing file.

Assemble the Dual Regulator

DSC_0044a.jpg
DSC_0049a.jpg
DSC_0051.JPG

In assembling the linear regulator, bend the transistor and regulator's pins facing forward. When you solder the tansistors and regulators, the metal (heatsink) portion must be facing upwards. Be sure to use a mylar insulator and plastic washer for the 7805 regulators and the TIP35C transistors. If you don't have one with you, you can simply cover the 7805 with a thick peice of masking tape (no need for the TIP35C transistors). Now screw both transistors to the heatsink, leaving the regulators unscrewed. The transistors do not need insulation since the metal plates are both connected to a common rail, the regulators on the other hand are connected to the opposite voltage of the rail so they need to be isolated from the heatsink. The regulators do not need to be screwed to the heatsink since they don't dissipate too much heat.

A Better Alternative for the Regulator

61TulQ66rgL._SL1200_.jpg
81DjXCqwiDL._SL1200_.jpg

If you are patient enough to wait for the shipping, I would suggest buying a buck converter. Buck converters are much more efficient than linear regulators.

Connect the Regulator to the Other Components

DSC_0062.JPG
DSC_0060a.jpg

Connect the output of the regulator to the inverter and to the 12v USB charger. Leave the input hanging. For now, I'm using epoxy to mount the heatsink. A smart suggestion would be to screw the heatsink directly to the Aluminum frame of the panel.

Build the Charge Controller Circuit

DSC_0057a.jpg
FL2JC9LHTQN6B61.LARGE.jpg
FT6E89PHTS5A7J1.LARGE.jpg
F6QY2UUHTQN6B3V.LARGE.jpg
FIJUPOFHTS5A27A.LARGE.jpg
FXYPAPXHUVPR4FS.jpg

This is the heart of the project. The charge controller controls everything. It regulates the voltage and current coming from your solar panels which is placed between a solar panel and a battery. It is used to maintain the proper charging voltage on the batteries. As the input voltage from the solar panel rises, the charge controller regulates the charge to the batteries preventing any over charging.

.

What's The Advantage of Building One Instead of Buying One?

Pre-made charge controllers are meant to work directly out of the box. Yes, a pre-manufactured controller is easier to use but it has its limitations and that would be the lack if customizability. The answer to that is to build a DIY Charge Controller, having an Arduino as its brain. We all know what Arduino's could do, pretty much anything I guess. If ever you'd want to set a different voltage cut-off, you can just program it with your laptop. If you would like to add other functions, you could program the it do do what you want as well.

___________________________________

I've acquired the circuit's design from my good friend, Debashish (Deba168). He has designed three outstanding solar charge controllers, here in instructables and I highly recommend his projects.

___________________________________

This guide won't explain the detailed process of building a charge controller since it is to broad to teach, instead you can visit these well documented instructables of Debashish (Deba168) on building one from scratch:

1st.) ARDUINO SOLAR CHARGE CONTROLLER (Version 1.0)

2nd.) ARDUINO SOLAR CHARGE CONTROLLER ( Version 2.0)

3rd.) ARDUINO MPPT SOLAR CHARGE CONTROLLER ( Version-3.0)

BTW, In this project, I used the charge controller design from the fist link.

Add a Balancing Charger Circuit (Soon to Upgrade)

11046130_868583836539373_447241256_o.jpg
11040703_868584996539257_1608750546_n.jpg

Recently, I got help from Adam Munich in designing a better charger (his design) for the SlimPanel project. The balancing charger is designed to charge Lithium batteries, Li-ion to be specific. It's designed to keep track of each Li-ion cell's voltage. I was not able to implement the balancing charger to my current version of SlimPanel since I was not able to get hold of the shipment in time. I'm planning to add it to my 2nd version of the project. Since lithium batteries are very sensitive to draining, a lithium balancing charger is recommended to prevent explosions. The balancing charger circuit makes sure that each lithium cell receives an equal charge distribution.

Alternatives for the Controller

51bqELZ9OtL.jpg
51rctShXu0L._SL1000_.jpg
61Cm5Ey1-1L._SL1200_.jpg
61k1QQDRQML._SL1500_.jpg
61OF7bJw3TL._SL1000_.jpg
61QVvntKusL._SL1000_.jpg
612hgfjJp-L._SL1000_.jpg

There's a wide variety to chose from. If you don't have enough experience to build an Arduino version, you can always choose to buy a ready made controller.

Here's a link to Amazon's top selling controllers: Solar Charge Controllers

Assemble Li-ion the Battery Pack

DSC_0054a.jpg
AW18650-2600.png
DSC_0019.JPG
DSC_0054.JPG

Recently I found a store that sells lithium 18650 Lithium-Ion batteries for $2 each. Lithium batteries are the most efficient so far. They charge faster, have a higher current discharge rate, has great size to capacity ratio and is relatively cheap. Each cell rated at 3.7v (2000mAh). I soldered four of them in series to build a 14.8v (2000mAh) battery pack. Be sure to solder them fast, otherwise things could go wrong once you heat them up too long.

_______________________________

Advantages of Li-ion:

As seen on the graph above, Lithium-ion batteries have a sudden discharge characteristic. Unlike Lead Acid Batteries, they would still maintain the same voltage until the battery runs low.

Hot Surface Battery Hazard (Fix)

DSC_0167.JPG
DSC_0170.JPG

Lithium Batteries are sensitive to heat, being exposed to extreme heat could cause explosions. The solar panel, when exposed under sunlight, could heat-up up to +100° C. My solution for this was too add a huge 12v snail fan to cool the the surface where the batteries are mounted on. The fan is connected directly to the solar panel. The fan will turn whenever the solar panel produces electricity from sunlight. There no need for temperature sensors, I'm against overkilling prototypes.

Hook Them Up Together

DSC_0062a.jpg

Now that you have all the parts mounted within the solar panel's frame, you can now connect everything together. Just follow the block diagram.

Construct the Back Panel

DSC_0076.JPG
DSC_0078.JPG
DSC_0079.JPG
DSC_0080.JPG

Cut a piece of foam board then use it to cover the rear area of the panel. You can either screw it or hot glue it to the solar panel's frame.

Program It

Untitled.png

Download the codes below.

Downloads

Demo - Video

SlimPanel - Powering a 32" LCD TV and a Laptop:

Project Teaser:

Coming Next - SlimPanel (v2.0)