The typical way of doing a low battery detector is throwing a comparator in the circuit, setting it to measure a certain threshold voltage, and sending that signal off to a microcontroller or other circuit to notify someone the battery is going dead. [Josh] has a simpler way using an 8-bit AVR and zero other parts.
The chip [Josh] is using is the ATtiny84. The ADC in this chip is usually used to measure an unknown voltage against a reference voltage. The trick [Josh] is using is to do this in reverse: The internal 1.1 Volt reference voltage is measured against an unknown scale, namely the input voltage.
The value provided by the ADC on the chip will always be Vin times 1024 over the reference voltage. Since Vin will be 1.1 V in this case, the ADC value is known, it’s only a matter of doing some 6th grade algebra to determine the value of the input voltage.
[Josh] put together a small demonstration where the chip blinks out the number of volts its receiving from a bench power supply. By blinking a LED, it can blink out the current value of VCC as integers, but by using this technique you should be able to get a fairly fine-grained reading of what VCC actually is. Video below.
Continue reading “Adding a Battery Gauge to a Project With Zero Parts”
So, what do you do when your Arduino project needs to operate in a remote area or as a portable device? There are LiPo battery shields available, and although they may work well, recharging requires access to a USB port. You can also go the 9v battery route plugged into the on-board regulator of the Arduino but the low mAh rating of a 9v won’t allow your project to stay running for very long. [AI] needed a quick-change battery option for his Arduino project and came up with what he is calling the AA Undershield.
As the name implies, AA sized batteries are used in the project, two of them actually. Yes, two AA batteries at 1.5v each would equal only 3 volts when connected in series. The Arduino needs 5v so [AI] decided to use a MAX756 DC-to-DC step-up regulator to maintain a steady stream of 5v. This article has some nice graphs showing the difference in performance between a 9v battery being stepped down to 5v verses two AA’s being bumped up to 5v.
The ‘under’ in Undershield comes from this shield being mounted underneath the Arduino, unlike every other shield on the planet. Doing so allows use of a standard 0.100″-spaced prototype PCB and is an easy DIY solution to that odd-sized space between the Arduino’s Digital 7 and 8 pins. The Arduino mounts to the Undershield via its normal mounting holes with the help of some aluminum stand offs.
[AI] did a great job documenting his build with schematics and lots of photos so that anyone that is interested in making one for themselves can do so with extreme ease.
[Raphael] has a motorcycle he’s constantly working on, and for him that means replacing the battery occasionally. Tired of the lead-acid batteries that have been used for 100 years now, he took a look at some of the alternatives, namely lithium and the much cooler supercapacitor option. A trip to the local electronics distributor, and [Raphael] had a new supercapacitor battery for his bike, and hopefully he’ll never need to buy another chunk of lead again.
The battery pack is built from six 2.7V, 350F caps, a few connectors, and a handful of diodes. These are lashed together with rubber bands to form a 16V, 58F capacitor that makes for a great stand-in for a chunk of lead or a potentially puffy lithium battery.
[Raphael] put up a walkthrough video of his battery pack where he shows off the enclosure – an old, empty lead acid cell. He also goes through the back current protection and his method of balancing the supercaps with a few diodes.
Once again, [Afroman] is here for you, this time breaking down electrolyte and the terminology behind batteries.
Volts and Amps are easy mode, but what about Amp hours? They’re not coulombs per second hours, because that wouldn’t make any sense. An Amp hour is a completely different
unit podcast, where a 1Ah battery can supply one amp for one hour, or two amps for 30 minutes, or 500 mA for two hours.
Okay, what if you take two batteries and put them in series? That would double the voltage, but have the same Ah rating as a single cell. Does this mean there is the same amount of energy in two batteries as what is found in a single cell? No, so we need a new unit: the Watt hour. That’s Volts times Amp hours, or more incorrectly, one joule per second hour.
Now it’s a question of the number of cells in a battery. What’s the terminology for the number of cells? S. If there are three cells in a battery, that battery has a 3S rating. You would think that C would be the best letter of the alphabet to use for this metric, but C is entirely different. Nothing here makes any sense at all.
What is C? That’s related to the number of amps a battery can discharge safely. If a 20C battery can discharge 2200mAh, it can deliver a maximum current of 44 A, with 20C times 2.2Ah being 44A.
So there you go. A complete description of something you can’t use logic and inference to reason through. Video below.
Continue reading “A Description of Maddening Battery Terminology”
Although [pinomelean’s] Lithium-ion battery guide sounds like the topic is a bit specific, you’ll find a number of rechargeable battery basics discussed at length. Don’t know what a C-rate is? Pfffft. Roll up those sleeves and let’s dive into some theory.
As if you needed a reminder, many lithium battery types are prone to outbursts if mishandled: a proper charging technique is essential. [pinomelean] provides a detailed breakdown of the typical stages involved in a charge cycle and offers some tips on the advantages to lower voltage thresholds before turning his attention to the practical side: designing your own charger circuit from scratch.
The circuit itself is based around a handful of LM324 op-amps, creating a current and voltage-limited power supply. Voltage limits to 4.2V, and current is adjustable: from 160mA to 1600mA. This charger may take a few hours to juice up your batteries, but it does so safely, and [pinomelean’s] step-by-step description of the device helps illustrate exactly how the process works.
You assume that you’ll be able to get parts forever… after all: The Internet. But what if you can’t justify paying the price for them? [Cristi C.] was in this situation, not wanting to fork over $30+ for a replacement PSP battery. The handheld gaming rig itself was just discontinued this year but supposedly the batteries have been out of production for some time. What you see above is the controller board from an original battery, with the cell from a camera battery.
The key is protection. The chemistry in Lithium cells of several types brings a working voltage of around 3.7V. Swapping the cells — even if they are different capacities — should work as protection circuits generally measure current, voltage, and sometimes temperature as they charge in order to know when the cell is full. With this in mind [Christi] cracked open a used Canon NB-6L type battery and grabbed the prismatic cell as a replacement for the pouch cell in the Sony S110 case (PDF). The Canon cell is enclosed in a metal case and is just a bit smaller than the pouch was. This means with careful work it fit back inside the original plastic enclosure.
On a somewhat related note, be careful when sourcing brand-x batteries. Some manufacturers implement checks for OEM equipment but there are ways around that.
There are a number of resources scattered across the Internet that provide detailed breakdowns of common products, such as batteries, but we haven’t seen anything quite as impressive as this site. It’s an overwhelming presentation of data that addresses batteries of all types, including 18650’s (and others close in size), 26650’s, and more chargers than you can shake a LiPo at. It’s an amazing site with pictures of the product both assembled and disassembled, graphs for charge and discharge rates, comparisons for different chemistries, and even some thermal images to illustrate how the chargers deal with heat dissipation.
Check out the review for the SysMax Intellicharger i4 to see a typical example. If you make it to the bottom of that novel-length repository of information, you’ll see that each entry includes a link to the methodology used for testing these chargers.
But wait, there’s more! You can also find equally thorough reviews of flashlights, USB chargers, LED drivers, and a few miscellaneous overviews of the equipment used for these tests.