Showing posts with label Technical Information. Show all posts
Showing posts with label Technical Information. Show all posts

Wednesday, June 6, 2018

What is Hardware in the Loop (HIL) and Software in the Loop (SIL) Testing?


Subscribe by Email!
By Gabriel Staples
Written: 6 June 2018
Last Updated: 7 June 2018

Quadcopter navigation algorithm SIL test (live video).
In mechatronics and control theory, testing is an important part of controller validation. You need to run experiments to prove that your software/analog/digital controller, actuator, algorithm, etc, does what it’s supposed to do. Experiments, however, can be expensive, time-consuming, difficult,
dangerous, or even impossible to test under all conditions. Therefore, you can do Hardware in the Loop (HIL) testing and Software in the Loop (SIL) testing/simulation to aid the testing, verification and validation of your controller without having to resort to pure, fully-physical testing with actual products under actual conditions.


***Subscribe by Email!***

Monday, October 23, 2017

Which Programming Language Should I Learn?


Subscribe by Email!
Investing time into learning a first (or new) programming language is a seriously-time-consuming endeavor. For me it wasn't something to take lightly, as I knew I'd be investing thousands of hours into any given single language when I began. When people ask which programming languages they should learn or use, a great way to make recommendations is to consider these 3 things:
  1. Popularity
  2. Is it a scripted (interpreted) or compiled language, and how does that affect what I want to do with it?
  3. Which languages are most used in my industry or application?

1) Consider the popularity of languages. The more popular the language, the higher the priority it should be, within reason, since that's what industry uses and that's where you're going to find the most resources, help and support, compatibility with others, and jobs. The TIOBE index is the place to check:
"TIOBE programming community index is a measure of popularity of programming languages, created and maintained by the TIOBE Company based in Eindhoven, the Netherlands.[1] TIOBE stands for 'The Importance of Being Earnest' which is taken from the name of a comedy play written by Oscar Wilde at the end of the nineteenth century.[2]" (https://en.wikipedia.org/wiki/TIOBE_index).



Here's the index for 2017: https://www.tiobe.com/tiobe-index/. As shown above, the top 6, in this order, are:
  1. Java
  2. C
  3. C++
  4. C#
  5. Python, and 
  6. JavaScript. 
My top 3 recommendations are Java, C++, and Python, but not necessarily in that order. When it comes to you and your personal needs, goals, and desires, however, you need to choose for yourself! Here's some tips to help you make that decision.


***Subscribe by Email!***

Saturday, August 26, 2017

How to make a Linux Live USB with a 2nd, Windows-readable partition for storage


Subscribe by Email!
This article is a "Notes to Self" article. That means I wrote it for my own personal reference and use, with myself as the target audience during drafting, but decided to post it here because I believe it is useful to others too, and I want to reach as many people as possible, not just me. 

Ever wanted to have a bootable Linux USB flash drive with a separate, Windows-readable partition for general file storage? Here's how.

By Gabriel Staples
Written: 26-27 May 2016
Posted online: 26 Aug 2017
Updated: 26 Aug 2017

The Gist of it/The super short version:
-for the experienced Linux user
  1. Use gparted on a Linux computer to make 2 FAT32 partitions on the thumb drive. The partition created first must be for storage, while the 2nd one must be for the Linux distro you are putting on the Live USB.
  2. Use UNetbootin on a Linux computer to install your iso file for the Live USB onto the 2nd partition you just made above.
  3. Done. You can now boot from the USB thumb drive, from its 2nd partition, while its 1st partition only is readable and usable by Windows still (as well as by Linux or Mac too of course).


***Subscribe by Email!***

Friday, March 31, 2017

Arduino (ATmega328) Direct Register Manipulation for Custom PWM Output (ex: 1us HIGH followed by 99us LOW --> 1% Duty Cycle at 10kHz)


Subscribe by Email!
Here's a quick example of how to make a hardware-based 1us HIGH pulse followed by a 99us LOW pulse (ie: 100us period, or 10kHz, PWM with a 1% duty cycle), via direct timer register manipulation. I've left ample comments for you to read and follow. This example below is therefore quite easy to follow and learn from, but just as it took me dozens of hours originally to learn how to do all this stuff from scratch--and to learn about all the different PWM modes possible as described in the datasheet and elsewhere, expect to spend at least a few hours if you are truly going to read the references and dig into it enough to understand it yourself. Good luck and have fun!

References to Study:
  1. Secrets of Arduino PWM, by Ken Shirriff
  2. ATmega328 Datasheet (660 pg version from 11/2015)
  3. ATmega168/328-Arduino Pin Mapping

Here's some oscilloscope screenshots of the output on Pin 3 produced by an Arduino Nano running the code below.

Rising edge to rising edge: Δx = 100us


***Subscribe by Email!***

Thursday, June 11, 2015

100+V Arduino/AVR Microcontroller Input/Output (I/O) Pin Over-Voltage Protection Using a *Single* Resistor!


Subscribe by Email!
By Gabriel Staples
Written: 11 June 2015
Last Updated: 2 Sept. 2015
Update History (newest on top):
-Added "Upfront Caveat", 2 Sept. 2015
-Added lots of extra info, & the Figures, 21 July 2015

Related Articles:

Here I present a pin protection method for very high and low input voltages that I learned from Atmel themselves, in their Application Note "AVR182: Zero Cross Detector."

If you've read my article titled "Arduino Power, Current, and Voltage Limitations" you know that the pin input voltage limits are as follows:
Maximum Input Voltage: Vcc + 0.5V, or +5.5V for a 5V Arduino
Minimum Input Voltage: -0.5V

However, if you simply add a single resistor in series with any input pin, you can protect it against higher or lower input voltages, with some caveats!

Ex: simply by placing a 10k resistor in series on an input pin, you get input voltage protection up to +15.5VDC and down to -10.5VDC. With a 100k resistor you get input voltage protection up to +105.5VDC, and down to -100.5VDC. Keep reading to learn more.

WARNING: 
-FOR YOUR PERSONAL SAFETY, WHEN USING THIS TECHNIQUE, I RECOMMEND THAT YOU DO NOT WORK WITH INPUT VOLTAGES GREATER THAN APPROXIMATELY 100VDC OR 20VAC UNLESS YOU KNOW WHAT YOU ARE DOING AND HAVE READ ALL OF MY WARNINGS HEREIN, INCLUDING THE ADDENDUM AT THE END OF THIS ARTICLE. 
-REGARDLESS OF WHAT INPUT VOLTAGES YOU ARE USING, YOU AND ONLY YOU ARE RESPONSIBLE FOR YOUR PERSONAL EXPERIMENTS, PRODUCTS, DESIGN DECISIONS, AND THE SAFETY OF YOU AND YOUR CUSTOMERS.

Upfront Caveat:
Though this technique may work, and be good for home-projects or quick prototyping, better techniques are recommended, especially if you are producing a commercial product. Redundancy is your friend. Using external, rated clipping diodes is certainly a better option than relying on the internal, integrated and unrated ones. For better protection techniques, including using *external* clipping diodes for redundancy, and adding transient voltage suppression, read more here: Science Prog: Using current limiting resistors on AVR I/O pins. Also see the AVR182 Application Note for references to additional sources to read in order to add extra pin protection.

Background & Concept:

***Subscribe by Email!***

Saturday, May 9, 2015

Quick Tip: A Comprehensive List of Helpful Arduino Learning Links


Subscribe by Email!
By Gabriel Staples Written: 9 May 2015
Last Updated: 9 May 2015

Related Articles:

Over the past couple years I have been compiling the Arduino learning links, reference pages, and resources, that I have found the most useful for my learning. I keep this list updated, and regularly add to it. The list is found at the bottom of my article titled "The Power of Arduino." Go there, scroll to the bottom, and you'll find the list.

It currently contains the following sections:


***Subscribe by Email!***

Saturday, February 7, 2015

Q&A: Question About Over-discharged LiPo--How do I quantify the amount of damage done to the battery pack?


Subscribe by Email!
By Gabriel Staples
Written: 7 Feb 2015
Last Updated: 7 Feb 2015

Related Articles:
High-current bench-top battery test setup by FliteTest (source: 4:08)


Question I Just Received:
-from "Lakshman

"Hi Gabriel.
I am referring to your post http://electricrcaircraftguy.blogspot.sg/2014/10/restoring-over-discharged-LiPos.html#.VNXv9mSUcp0.

I accidentally discharged my battery to 2.8v/cell today due to a faulty lipo alarm. It did not go off at 3.6V while flying my tricopter and within a minute or so, the voltage dropped to 2.8v/cell. I recharged it back to 3.8v storage at 0.2A without any issues. This was before I read that article.

How do I quantify the amount of damage done to the battery pack? I usually stop flying at or before ~80% discharge. Will it be a lousier battery after this incident?

Thank you."

Here's what I had to say...


***Subscribe by Email!***

Monday, October 13, 2014

Restoring/Recharging Over-discharged LiPo (Lithium Polymer) Batteries!


Subscribe by Email!
By Gabriel Staples
Written: 5 March 2014
Posted Here: 13 Oct. 2014
Last Updated: 7 Feb. 2015
-added Q&A section & link - 7 Feb. 2015

Related Articles:
Recommended Arduino Articles:

Though I first posted this article on my Instructables page, I decided to update it and repost it on my main website here in order to keep my articles more consolidated and easily maintained by myself.  From this point on, I will keep the most up-to-date version of this article right here, instead of on my Instructables page, so if you want the latest info, read here.  Don't forget to subscribe to receive an email whenever I post something new by clicking the subscribe link at the top-right of this page!  I will never use your email addresses for spam.

A LiPo that self-discharged, while in my plane, hanging overnight in a tree. :(

Intro:

LiPo batteries should never be discharged below 3.0V/cell, or they may be permanently damaged.  Many chargers don't even allow you to charge a LiPo battery that is below 2.5V/cell.  So, if you accidentally run your plane/car too long, you don't have your low voltage cutoff set properly in the ESC (Electronic Speed Controller), or you leave the power switch on, forget to unplug the LiPo, get your plane stuck overnight in a tree (the same tree, three separate times, for foolishly flying in areas too small because you are too excited to fly and it's almost dark), etc. etc., you may find yourself in a situation where you've discharged your LiPo down well below 3.0V/cell.  What do you do?

Many people toss the LiPos in the trash.  I don't.  I restore them.  Here's how.


***Subscribe by Email!***

Sunday, August 3, 2014

Recommended Soldering Kit & Tutorials (for Arduino, Electronics, & Radio Control)


Subscribe by Email!
By Gabriel Staples
Written: 14 June 2014
Posted to blog: 3 Aug. 2014
Last Updated: 26 May 2018
History (newest on TOP):
-20180526: Added Velleman desoldering review & link.
-20170415: converted basic Amazon links to Amazon Affiliate links; updated many of the solder links too, and prices on many links
-20161126: updated many links, incl the broken ones from Radio Shack; also added several new sections, including bonus soldering irons, rosin flux, high-power irons & torches, acid-core solders & acid fluxes, & how to tin a soldering iron tip.
-20141008: added an advanced "drag soldering" link at bottom
-20140905: added more soldering iron links, & solder tip tinner/cleaner link, as well as quite a bit more info.
-20140830: added more info about soldering irons "for Radio Control" use; also added "intermediate" links to the soldering tutorials section at the end

Related Articles:
Here is a list I put together to help people get into soldering & electronics.

DIGITAL GENUINE HAKKO FX-888D, from Adafruit.com
Keep reading below for more info.


***Subscribe by Email!***

Monday, May 12, 2014

Using the Arduino Uno’s built-in 10-bit to 16+-bit ADC (Analog to Digital Converter)


Subscribe by Email!
By Gabriel Staples Written: 13 May 2014
Last Updated: 16 Sept. 2015

History (newest on top):
-16 Sept 2015 - changed title from "10-bit to 21-bit ADC..." to "10-bit to 16+-bit ADC..."
-25 July 2015 - added a brief update below, updated download links
-17 Feb. 2015 - changed latest link to new release: V2.1 alpha, in yellow below
-24 Jan. 2015 - added link to Version 2.0 alpha below...allows sampling rates of ~50+ kHz, and fixed bug to allow >16-bit samples to not have computation errors

A Few Other Articles to Check Out:

This Article:

Using the Arduino Uno’s built-in 10-bit to 16+-bit ADC (Analog to Digital Converter)???
--Wait, what did you say!? I thought that Arduinos only had a 10-bit ADC!  How can you get, for example, 16-bit resolution out of a 10-bit ADC?  Well, the answer is oversampling.  Atmel has written a really good article about it called "AVR121 Enhancing ADC resolution by oversampling."

Before I continue, I'd like to give a special thanks to user "fat16lib," on the Adafruit Forums, who first made this technique known unto me by his post right here, thereby inspiring me to write this, my first ever, library.

Now on to the library:


***Subscribe by Email!***

Sunday, April 20, 2014

Saturday, April 12, 2014

Propeller Static & Dynamic Thrust Calculation - Part 2 of 2 - How Did I Come Up With This Equation?


Subscribe by Email!
By Gabriel Staples Written: 12 April 2014
Last Updated: 1 June 2015
-added Figure #s - 1 June 2015
-made some minor additions & formatting changes, incl. adding more info. about future work & possibly considering some blade element theory techniques - 13 Apr. 2014
-minor units correction - 16 Apr. 2014
-minor addition to section describing prop helical twist - 29 Apr. 2014
-additions & corrections to the bold portions of the "Application & Conjecturing" section - 4 May 2014

Related Articles:

This Article:

Since posting my initial "Propeller Static & Dynamic Thrust Calculation" post, I have had many questions about where this equation comes from, and several requests to explain more.  I have even had college students ask me about the equation.  Additionally, this is my most popular post at the moment and is getting over 700 views per month, with the bulk of those hits being from Google Search results about propeller thrust.  So, I think it's time I explain more about the background of the equation.  Here goes.

First off, here's the nomenclature I will use:


***Subscribe by Email!***

Saturday, February 8, 2014

Arduino Power, Current, and Voltage Limitations


Subscribe by Email!
By Gabriel Staples
Started: 6 Jan. 2014
Last Updated: 12 June 2015
Update History (newest on top)
-added info about IO pin voltage protection using a single resistor (ex: 10K --> +15.5V/-10.5V) - 20150612
-very minor corrections: some clarity added - 20140730

Related Articles:
Other Articles You May Be Interested in Reading:
(image above is from this Adafruit tutorial here

In using Arduino and designing my circuits for it, I have often-times asked myself the question, "What are the power/current/voltage limitations of the Arduino?"  "Will I risk damaging it?"  In the image above, for instance, a large servo is being powered by the voltage regulator right on the Arduino development board.  Larger servos and motors like these have the potential to push the Arduino past its max current limits, potentially causing it to reset itself and cause unusual errors while running, or possibly even damage the Arduino (I should note that most linear voltage regulators have an over-temperature auto-cutoff feature, however, so damage is unlikely).  In either case, it's important to understand the limitations of your Arduino, its input/output pins, and its voltage regulators.

Here, I will attempt to succinctly and accurately describe the power limitations of the standard Arduino boards, such as the Uno and Nano.  References will be included at the end, and references for particular data are denoted by square braces with the reference number, such as this: "[1]."  Following my references and methodology, you can use the same techniques to figure out the limits of your particular board, in case you're not using an Uno or Nano.

Summary of information below:

  • Input Voltage Limits:
    • Recommended: 7~12V
    • Absolute: 6~20V
    • Input/Output (I/O) pins: -0.5V to +5.5V (the actual max is "Vcc + 0.5V," which for a 5V Arduino, is +5.5V) (Note 1)
  • Output Current Limits:
    • When powered by USB: total of 500mA
    • With external battery or power supply: total of 500mA~1A (see below for specifics)
    • 5V pin: same as above: 500mA or 500mA~1A
    • Each input/output pin: 40mA
    • Sum of all input/output pins combined (but NOT including the "5V" pin): 200mA
Note 1: simply by adding a resistor in series with an I/O pin, you get increased input voltage protection for that pin. Ex: a 10k resistor provides voltage enough protection to allow input voltages between -10.5V and +15.5V. A 100k resistor allows DC input voltages from -100.5V to +105.5V. Read my article here for more info: Quick Tip: Arduino Input/Output (I/O) Pin Over-Voltage Protection Using a *Single* Resistor!

KEEP READING BELOW FOR MORE DETAILS.

Power Limitations of the Arduino Uno & Nano:


***Subscribe by Email!***

Wednesday, September 18, 2013

Propeller Static & Dynamic Thrust Calculation - Part 1 of 2


Subscribe by Email!
SUBSCRIBE TODAY TO RECEIVE MY BLOG UPDATES!  -- CLICK ENVELOPE TO THE RIGHT, & INPUT EMAIL -->


Propeller Static & Dynamic Thrust Calculation

By: Gabriel Staples
Written: 16 July 2013
Last Updated: 13 April 2014
--made a minor correction to an example, & added a plot
--added many more statistical details in order to better explain the accuracy of the equation.
--added Simplified form of eqn. too. - 15 Oct. 2013
--added links to Part 2 of this article - 13 Apr. 2014

Other Articles:

Propeller Thrust Equation, & Downloadable Excel Spreadsheet Thrust Calculator:

DOWNLOAD MY EXCEL SPREADSHEET THRUST CALCULATOR HERE (click link, then go to File --> Download)


Figure 1: a preview of what is to come - Static Thrust (left) & Dynamic Thrust (right).

I have been interested in propellers for a very long time.  I've also been interested in how they produce thrust, and how forward velocity affects that thrust.  Therefore, I've done a lot of thinking about it, and put a lot of time into understanding them better.  Here is an equation that I came up with to quantify the thrust produced by propellers.  I wanted it to be a simple approximation, with a minimal number of inputs.  Therefore, it uses only the propeller's pitch and diameter (from the numbers on the front of the prop), and the RPMs at which the prop is spinning (this can be measured from a basic optical tachometer such as the one shown in the picture to the left).  That's it!


Here is the equation.  

The expanded form is shown to help you see where some of the numbers come from.  The simplified form is shown to help you put the equation into a calculator or Excel spreadsheet easier.

***Subscribe by Email!***

Saturday, February 23, 2013

Thunder AC680/AC6 Charger & Computer Data-Logging Software


Subscribe by Email!
Setting Up The Computer Data-Logging Software for Your Thunder AC680 (or AC6) Charger
~By Gabriel Staples, 24 Feb. 2013.
Updated: 3 Jan. 2014
-added a note to check out a comment below this post if you are using Windows 8
-link added for a USB extension cable.

Related Articles:
Brief Charger Description & Review:

Since I recommend so often to beginners in RC that they purchase the Thunder AC680 charger, I thought I better at least help them learn how to setup the computer software for it, which can be a little bit tricky, even for the computer-literate person.

First off, I'd just like to say that I love this charger, and it makes an *excellent* starter charger for someone looking to get a fully functional, computerized, smart charger capable of charging, discharging, cycling, and balancing.  This charger can handle LiPo/LiFe/Li-Ion, NiMH/NiCad, and Pb battery chemistries.  To the layperson, this means that with the right connector, it can charge any rechargeable battery in your house, car, or workshop.  That's pretty impressive.  Also, by using it to discharge a battery, you can measure the capacity (mAh) in the battery to get an idea if the battery is any good, and whether or not the manufacturer of a cheap rechargeable battery (on ebay for instance) ripped you off.  I've used a charger like this to charge and/or discharge (to check the capacity) of cell phone batteries, camera batteries, airsoft gun batteries, 18V cordless drill batteries, and dozens and dozens of various RC aircraft or radio transmitter batteries.  Lastly, by using the charger's cycling abilities, I've been able to reduce or remove the "memory" effect of many of my old NiCad batteries, and I've even been able to bring back "dead" NiCad batteries, which were over 10 years old!, to at least a usable condition after years of sitting around unused.

To top it all off, this charger is available for ~$55 with shipping from hobbypartz.com, which is a steal-of-a-deal.  Many chargers of this quality sell for 3x this much, so I have got to say, I am extremely impressed.
If you'd like to purchase this charger, you can find it at the "Thunder AC680" link above, or it is located at

***Subscribe by Email!***

Sunday, January 27, 2013

Calculations For Additional Capacitors Necessary in a certain 21-motor Airplane Setup


Subscribe by Email!
These are my calcs, in regards to Posts 540~543 (here: http://www.rcgroups.com/forums/showthread.php?t=952523&page=36 and here http://www.rcgroups.com/forums/showthread.php?t=952523&page=37).  Basically, I tried to figure out how many additional capacitors are necessary on each of the 21 ESCs in order to offset the voltage ripples caused by increased battery lead length (which can destroy/damage the existing capacitors in your ESC if you don't add capacitors to help absorb the magnetically-induced voltage spikes [refer to post 1 in the above thread for more info about this]).

I am only putting this spreadsheet here because RCGroups won't allow it as an attachment on their website.
To download the file, click here then go to File --> Download:  https://docs.google.com/file/d/0BwHItOaHOOvdeFQ3WTd2T1Q5Y2s/edit.
The above link is to the old spreadsheet.  I have corrected some errors, and the NEW SPREADSHEET LINK IS FARTHER BELOW!


FOR NEW SPREADSHEET, CLICK LINK BELOW
Update: 20 March 2013 - Spreadsheet corrected and now available here (go to File --> Download to save):  https://docs.google.com/file/d/0BwHItOaHOOvdQmp3c3gydzV3SU0/edit

Update notes:  I added the "Total Capacitance Needed" (Row 25 in the new spreadsheet) in the calculations, and I removed the row called "Additional Length, beyond ESC's design, for which you must add Caps (in.)" (Row 22 in the old spreadsheet).  I then added Row 26 as well, and corrected the formulas in Row 27.  This allowed me to account for the additional current in the entire wire station length, not just in the length beyond that of what the ESC was intended to handle (Cell Q14) at its max rated continuous current (Cell Q11).

Here is a table of the differences in end-results between the old and new spreadsheets, for this one particular example:

------------------------------------------------------------------------------------------------------------
For jaccies (referring to Post #579 here)
Download spreadsheet here (go to File --> Download to save)





***Subscribe by Email!***

Tuesday, January 22, 2013

Parallel Charging Your LiPo Batteries


Subscribe by Email!
Subscribe to and share this blog by clicking the links to the right -->

Other Articles You May Be Interested in Reading:
========================================================================
Don't forget to like, share, and subscribe using the links at the right.  ~eRCaGuy
========================================================================

This article is also posted on FliteTest.com here:  http://flitetest.com/articles/Parallel_Charging_Your_LiPo_Batteries 

Parallel Charging Your LiPo Batteries
By Gabriel Staples
Initially written 12 April 2011
Preface & explanations added on 22 Jan. 2013
Most Recent Update: 26 Feb 2017

-added a lot of notes about fuse-protected parallel charge boards - 21 July 2015
-added a couple more things to list of Do's & Don'ts, & clarified "But what about cell balance..." section; added another rule about battery chemistry - 5 May 2013

Why Use Parallel Charging?
I use a Triton 2 EQ 100W balance charger (http://www3.towerhobbies.com/cgi-bin/wti0001p?&I=LXVZA8&P=ML [Note: I don’t really recommend this charger, I just bought it before I knew much about chargers.  This thing is ridiculously expensive for what it does and has some silly quirks, occasional bugs, and outdated firmware]) to regularly charge up to 8 2S 500-1000 mAh packs simultaneously, all in just over 1 hour! I also regularly charge 3S LiPos and micro 1S Lipos (I’ve done up to 14 of those at once) simultaneously using that one, single-port charger. This is called parallel charging. Essentially, parallel charging allows you to plug in many batteries at once, into one port in a single charger, and, if your charger is powerful enough, charge them all in ~1 hour or less.  All at once—boom, done!  No more messing around buying many chargers or setting up the charger many times to charge multiple batteries.  I use this charge board (shown above) plus a couple other parallel adapters I plug into it.  If you use Deans connectors, use this board instead.  The board by itself is designed for only up to 6 batteries at once, so I added a couple parallel harnesses to get 8. However, YOU MUST KNOW WHAT YOU ARE DOING OR PARALLEL CHARGING IS DANGEROUS. For example, if you plug a 2S battery in with a 3S battery, the 2S battery will be destroyed and catch fire if you leave it there.

Background:
One thing that annoys me very much about virtually all local hobby shops is that as of today, 22 Jan 2013, I haven’t found a single one that uses parallel charging or sells parallel charging equipment yet, and yet I’ve been into about 12 local shops in the past few years and looked specifically for parallel charge equipment.  This charging technique has been around for probably 6 years, and is very effective and safe when done right, so I have to assume that most local hobby shops are either A) completely oblivious about parallel charging, B) do not want to promote it because it is better for them to sell another charger rather than a parallel charge board (ie: they’ll make more money selling another charger), or C) they secretly use this technique at home but simply don’t want to be responsible for user error if a customer destroys their equipment or property if they don’t know what they’re doing while attempting it.

UPDATE (21 July 2015): I have found a hobby shop that now has parallel charging equipment! It is Radical RC. (They've had them for a couple years now, I just haven't updated this article until now). Way to go Radical RC!


(photo below: parallel charging in progress--6 2S LiFe batteries plugged into a parallel charge board
[photo source: http://www.buddyrc.com/])

Despite this, I am a strong proponent of parallel charging and have used it nearly every charge I’ve ever done since I discovered it in the early part of 2011.  I am always recommending to people that they use parallel charging, as it allows any single port LiPo charger to charge many batteries at once instead of just one battery at once.  With the right harness, even a cheap $5 2-3S LiPo charger can do parallel charging!  (However, this is less useful since these low-power chargers don’t have enough power to maintain a 1C charge rate anyway).  So, let’s get started. 

First off, parallel charging can be done with LiPo, LiFe, or Li-Ion batteries ONLY.  Do NOT attempt to use this technique with NiCad/NiMH batteries, etc., as they use a peak voltage (ΔV) detection charge technique rather than a constant current/constant voltage (CC/CV) charge technique.  A battery chemistry capable of being charged via the CC/CV technique is a must for parallel charging to be safe and effective. 

What is parallel charging?
Parallel charging means that you plug many LiPo batteries into each other via a special board or harness so that all of their negative leads are connected to each other, and all of their positive leads are connected to each other.  Now, the entire battery packs are in parallel.  In order to balance the cells with your charger, however, the balance wires of all of the batteries must also all be connected in order to put the individual cells in parallel with each other.  WARNING: YOU CAN ONLY PARALLEL CHARGE BATTERIES OF THE SAME CELL COUNT (or the lower cell count battery will catch fire), AND SIMILAR STATE OF CHARGE (or damage to the lesser-charged battery will occur).  When many batteries are connected in parallel, the charger “sees” all of them as a single, large battery, with a capacity equivalent to the sum of their individual capacities. 

But what about cell balance—how does parallel charging really work?
In nature, whenever a gradient exists, a natural balancing process will occur.  A gradient means that there is a high concentration of something as compared to a low concentration of that same thing near it.  For example, if you pour salt into still water, the area of water where the salt is will become very salty.  The rest of the water lacks salt, so this “salt gradient” will naturally cause the high concentration of salt to balance out, or diffuse, into the water with a low concentration of salt.  The same occurs with heat.  Heat will naturally diffuse from a hot area into a cold area, attempting to find a balance.  If the hot area always remains hotter than the colder area, it is not because the heat isn’t diffusing, but rather it is because a heat source exists at the hot spot, and there is a resistance to the heat flow preventing it from fully diffusing.  Pressure also follows this natural balancing process.  Take a blown up balloon, for example, and untie it.  There is a large pressure difference (or gradient) between the air in the balloon, and the air in the room.  The high-pressure air in the balloon will rush out into the lower-pressure air in the room, diffusing the high pressure into the lower pressure until an equilibrium pressure is achieved.  Electricity also follows this principle of diffusion.  The battery with the higher voltage will naturally push its charge (electrons) into the batteries with lower voltage, when plugged in parallel, until all batteries equalize to the same voltage.  Since the individual cells of each battery are also in parallel with the individual cells of all the rest of the batteries, when the balance leads are connected in parallel (by plugging them all into a parallel charge board), all of the strings of cells in parallel will also equalize to the same voltage.  Now, when you plug the entire parallel charge board balance lead into your charger, your charger will balance out the cells of each battery as if it was simply one large battery.  The charger will "see" the first string of cells in parallel as a single "Cell 1," and the second string of cells in parallel as a single "Cell 2," and the third string of cells in parallel as a single "Cell 3," etc., balancing them as if they were individual cells of a larger capacity battery!  The result is that in parallel charging, all cells come out properly balanced so long as the cells are not damaged, your charger is functioning properly, you plugged them all in properly, and nothing else is wrong!


ADVERTISEMENT:
Update Notes [21 July 2015]
Fuse-Protected Parallel Charge Boards: 
This entire article is written for those of you using raw, unprotected parallel charge boards with NO fuses or current protection circuits of any kind. If anyone tells you that you *must* have protection power fuses and polyfuses and things on your board, they are flat out wrong. I don't own such a board. I still use the raw, unprotected boards. IF YOU FOLLOW MY PROCEDURES THIS IS PERFECTLY FINE AND SAFE. If you make a mistake, however, a fuse-protected board could prevent a battery mishap, so feel free to buy protected boards. 

IN THE PAST FEW YEARS, as parallel charging has become more widespread, companies selling parallel charge equipment have added things such as large power fuses to the main leads, and small polyfuses (self-resetting, automatic fuses), to the balance leads. You can recognize these well-protected and more advanced boards usually by their price tag. They are oftentimes very expensive! (Think: "I could buy another cheap smart charger, or I could buy a parallel charge board" kind of expensive). 

Here's how a fuse-protected parallel charge board might work/save your butt:
  • If you are foolish or inattentive and plug a fully-charged battery into an empty battery, for instance, the main fuse will blow. You'll have to replace it. It may be an automotive-type fuse you can buy at an auto parts store. If you make this mistake on an unprotected board, this large current may damage the main leads, blow the large traces in the parallel charge board, and damage the lower-charged battery, causing it to puff up or even catch fire.
    • Note: the main fuse requires a *lot* of current to blow usually, so, you better still follow my guidelines below to keep you and your batteries safe.
  • If the batteries are too far out of balance, or if you plug the balance leads in parallel first, before the main leads, an unsafe surge might go through the balance leads. A polyfused parallel charge board will automatically limit this current flow through the balance leads, preventing any problems. The polyfuses will simply close off (passively, but automatically increasing their resistance) to limit the current flow. If you make this mistake on an unprotected board, this large current may heat up and melt, damage, or blow the balance leads, blow the balance traces in the parallel charge board (I've done this by touching the balance leads to the balance board backwards, in reverse polarity, for instance), or cause a high enough current to the lower-charged battery to damage it. 
  • The same goes for reverse-polarity protection: a protected board may protect against this mistake. An unprotected board.....could cause the same problems as above. You might experience damage to the leads, blowing traces in the board, batteries on fire (if the reverse-polarity contact is prolonged), spark-welding of plugs together, etc. 
Summary of the above: I like the raw, unprotected boards. They work well for me. They are very inexpensive. They are easy to find, and parallel charge harnesses can be easily hand-made if desired. If you follow my rules below, unprotected boards work fine. If you are prone to errors or want extra protection, consider buying the protected boards with things like main lead fuses, balance lead polyfuses, and reverse-polarity protection.

The Do’s and Don’ts of Parallel Charging/A Couple Things to Know About Parallel Charging:

General Rules of Thumb (again, these rules work perfectly well for normal, unprotected [without fuses] parallel charge boards, and they work great for fuse-protected boards as well!):
  1. ONLY USE LIPO/LIFE/LI-ION BATTERIES WITH THE SAME CELL COUNT, ***NO*** EXCEPTIONS. Ex: 2S with 2S, 3S with 3S, etc.
  2. ONLY PARALLEL CHARGE BATTERIES OF THE SAME LITHIUM CHEMISTRY TYPE TOGETHER.  Ex: LiPo with LiPo, LiFe with LiFe, Li-Ion with Li-Ion, but NOT LiPo with LiFe, LiPo with Li-Ion, etc.
  3. Preferably, use batteries of similar capacities. Ex: 500~1500 mah batteries together, or 1000~2200 mah batteries together, but not a 500 mah battery with a 10,000 mah battery.
  4. Use batteries with similar states of charge (how much they are charged/discharged). Ex: do NOT put a 1/2 full or 3/4 full battery in parallel with an empty battery. All batteries must be at similar discharge state.  SEE PLOTS BELOW FOR MORE INFORMATION.
  5. Use batteries of similar ages. Ex: it is not as advisable to put a new battery with a 2 year old battery, but not critical as long as the batteries are similar capacities (mAh ratings), the same cell count, and at similar discharge states.
  6. Always plug in the *main* plug first on ALL batteries, *then* plug in all the balance plugs.  Also, it is good to *wait several minutes* AFTER plugging in the main battery leads into the parallel charge board BEFORE plugging in the balance plugs. This prevents high currents from flowing through the balance plugs as the batteries equalize based on their varying voltages upon plugging them in. The main plugs can take more current. This is also the reason you want to use batteries of similar states of charge/discharge.
    1. Fuse-protected parallel charge board note: this rule of plugging in the main leads, waiting a while, *then* plugging in the balance leads always works if you also follow all of the rest of my advice, *even with fuse-protected boards.* However, people have told me that some polyfuse-protected parallel charge boards recommend you plug in the *balance* leads first, wait a while, *then* plug in the main leads. Why? Well, it seems logical to me that this is because the balance leads are polyfuse protected. Since the balance leads have polyfuses, they act as automatic current limiters to let the charge between the LiPos more slowly balance out. The main leads require too much current to be easily polyfuse-protected, however, so the balance leads are probably the ones with the current-limiting polyfuses. So...if your particular "protected board" recommends this "reversed plug-in order," that's ok. You may choose to follow their advice, depending on how well-designed their board is, or you can just follow my standard advice and order. I like to just stick to all of my standard rules here, because I know they always work, for all boards, whether fuse-protected or not, all of the time. 
  7. Be VERY CAREFUL to plug in the main leads and balance leads correctly.  Attempting to plug them in backwards will cause a short circuit and a spark, and potentially damage your batteries and/or your parallel charge board or battery leads.  (Note: many parallel charge boards require the balance plugs to be in a certain orientation on one side of the board, and in a reverse orientation on the other side of the board, so pay careful attention to the plastic guides on the plugs to ensure you attempt to plug in the balance leads correctly.)
  8. Once all batteries are plugged in together in parallel, wait several minutes (3~10 minutes or so) for them to equalize their voltages.  The farther apart the batteries' charge states, the longer you should wait.  See plots below.
  9. To determine the charge rate when charging in parallel (assuming the standard 1C charge rate), ADD all of the battery capacities together, then use that value as the charge current. Ex: parallel charging three 3S 1300 mAh (1.3Ah) LiPo's with two 3S 1000 mAh (1Ah) Lipo's would mean that you should set your charger on the 3 cell LiPo setting at a charge rate of (3 x 1.3) + (2 x 1) = 5.9A. Therefore, in this scenario, a charge rate of 5.9A corresponds to a 1C charge rate, and the charger will consider all of those batteries in parallel to be a *single* 5900 mAh (5.9Ah) 3S Lipo.
  10. It is recommended to use a fire-proof LiPo-Safe Charge bag when charging, such as this one here.  I like to place the entire charge board with all of the attached batteries, if possible, inside of the same charge bag.  If the batteries are very large, and this is not possible, feel free to separate the batteries into separate charge bags.  Note: charge bags have a special slit in the side, near the velcro, to allow the cables to come out of the bag, so placing the entire charge board, or individual attached batteries, into a charge bag is not a problem.
Feel free to Google for more info on "parallel charging" of LiPo packs. Again: this method is NOT recommended for NiMh or NiCad cells, as it may cause them to catch fire, though for LiPos it works great!

Also see these links as additional sources:

To purchase parallel charging equipment:
I recommend HobbyKing (www.hobbyking.com), ProgressiveRC (http://www.progressiverc.com/), or BuddyRC (www.buddyrc.com).

Parallel charging all these batteries at once with only 3 chargers!
[photo source: http://www.rchelicopterfun.com/parallel-lipo-charging.html]

Useful Plots:
PLOT IS FOR LIPO BATTERIES ONLY,
And is only an ***approximation***


Parallel Charging Note: 
AS LONG AS THE BATTERIES ARE WITHIN ~25% (OR LESS) STATE OF CHARGE OF EACH OTHER, THEY MAY BE PARALLEL-CHARGED TOGETHER.   If they are more than ~25% apart, the higher-charged battery will push a current into the lower-charged battery equal to or greater than a 1~2C charge current, which is bad. 
(To know for sure how much current the higher-charged battery is pushing into the lower-charged battery, and to see when they are nearly equalized, I like to hook up a power meter in between the parallel charge board and the *lowest-charged* battery, then I plug the remaining batteries into the parallel charge board, one at a time, beginning with the one that is least-charged and plugging in the one that is most-charged last.)



Also, after plugging in all main battery leads in parallel to each other, it is best to let the batteries’ voltage equalize for a few minutes before plugging in the balance leads in parallel and beginning the charge.  The chart below is just a rough estimate of how much time is recommended to let the batteries equalize their voltages prior to plugging in their balance leads and starting the charger.  Note: State of charge range = most charged battery State of Charge – least charged battery state of charge.  Ex:  If the most full battery is at 50% and the least full battery is at 30%, the state of charge range is 50% - 30% = 20%. 


For additional general LiPo information:
See my extensive article I wrote, titled “The Details of Electric Radio Controlled Aircraft,” under the “Battery” section of the document (approximately pgs. 22-35), found at my other website here:  https://sites.google.com/site/electricrcaircraftguru/.

***Subscribe by Email!***