Snail Mail Notifier’s Simple Power Management To Maximize Battery Life

There are no weird, specialized components nor esoteric sleep mode tricks behind the long battery life of [Zak]’s WiFi mail slot watcher. Just some sensible design and clever focus on the device’s purpose: to send an HTTP request whenever it detects that the front door’s mail slot has been opened. The HTTP request is what kicks off useful notifications, but it’s the hardware design that’s really worth a peek.

The watcher’s main components are a ESP-M2 WiFi module, a reed switch, and a single lithium cell. Here’s how it works at a high level: when the mail slot is opened (detected by the reed switch), the ESP module is powered up just long enough to connect to the local WiFi network and send a single HTTP request, after which it shuts back down. The whole process takes between four and ten seconds.

As mentioned, the power control isn’t managed by any unusual components; it comes down to a NAND gate with a single inverted input, and a MIC5504 3.3 V regulator responsible for feeding the ESP board. The logic gate controls whether the voltage regulator is enabled or disabled, and therefore whether the microcontroller receives any power at all. Most of the time the regulator is disabled, but when the reed switch triggers, its input to the NAND gate is pulled low and the regulator is turned on, booting up the ESP board.

In order to stay on, the first thing the ESP board does is use a GPIO pin to drive the inverted input of the NAND gate high in order to keep the regulator enabled, and it has a window of about half a second to do this. Once the HTTP request is sent (and the battery voltage sensed), the ESP board pulls that pin low, disabling the regulator and turning itself off until the reed switch once again begins the process.

After seven months of use, the battery has dropped from 4.2 V to 3.9 V, so there’s plenty of life left. The project’s GitHub repository has the necessary code if you’d like to apply some of its ideas to your own projects. Alternately, you may wish to consider supercapacitors and solar in lieu of batteries. Even if ultra-level power savings isn’t your bag, when WiFi and networking is involved, there are software-level opportunities to be more efficient. Even a judicious 1 ms delay can save a surprising amount of power in the right circumstances.

Battery Engineering Hack Chat Gets Charged Up

Turn the clock back a couple of decades, and the only time the average person would have given much thought to batteries was when the power would go out, and they suddenly needed to juice up their flashlight or portable radio.  But today, high-capacity batteries have become part and parcel to our increasingly digital lifestyle. In fact, there’s an excellent chance the device your reading this on is currently running on battery power, or at least, is capable of it.

So let’s get to know batteries better. What’s the chemical process that allows them to work? For that matter, what even is a battery in the first place?

It’s these questions, and more, that made up this week’s Battery Engineering Hack Chat with Dave Sopchak. Our last Hack Chat of 2022 ended up being one of the longest in recent memory, with the conversation starting over an hour before the scheduled kickoff and running another half hour beyond when emcee Dan Maloney officially made his closing remarks. Not bad for a topic that so often gets taken for granted.

Continue reading “Battery Engineering Hack Chat Gets Charged Up”

New Part Day: The Smallest Batteries You Have Ever Seen

We’re used to some pretty small batteries in miniaturized electronics, thanks to the manufacture of lithium-polymer pouch cells. But they’re still pretty big, and they’re hardly the most stable power storage solution. The French company ITEN may have an answer for designers of micro-power devices though, in the form of a range of tiny surface-mount solid-state rechargeable lithium batteries. These come in a range of capacities from 0.1 mAh to 0.5 mAh, and in a 3.2 by 2.5 mm package look very much like any other slightly larger SMD chip component.

These devices are most likely to be found in applications such as remote wireless sensors, where they can store the energy from a small solar cell or similar to produce the burst of power required to transmit a packet of data as well as the tiny current required to keep things ticking over. The solid state chemistry should provide a long life and lack of leaks. For now they have some evaluation kits on offer, and unless we missed something, no full data sheet. We’d be particularly interested to learn about their temperature sensitivity when it comes to soldering, as we’ve taken to heart the  warnings about soldering to more traditional lithium cells.

Via CNX Software.

Breakers for the system on a DIN rail, with markings like 48V and 24V and 12V and so on on the bottom, and two hefty devices of some kind on the bottom, probably MPTT controllers, with hefty wires running from them.

Low-Voltage DC Network Build Incited By Solar Panels

Nowadays, some people in Europe worry about energy prices climbing, and even if all the related problems disappear overnight, we’ll no doubt be seeing some amounts of price increase. As a hacker, you’re in a good position to evaluate the energy consuming devices at your home, and maybe even do something about them. Well, [Peter] put some solar panels on his roof, but couldn’t quite figure out a decent way to legally tie them into the public grid or at least his flat’s 220V network. Naturally, a good solution was to create an independent low-voltage DC network in parallel and put a bunch of devices on it instead!

He went with 48V, since it’s a voltage that’s high enough to be efficient, easy to get equipment like DC-DCs for, safe when it comes to legal matters concerned, and overall compatible with his solar panel setup. Since then, he’s been putting devices like laptops, chargers and lamps onto the DC rail instead of having them be plugged in, and his home infrastructure, which includes a rack full of Raspberry Pi boards, has been quite content running 24/7 from the 48V rail. There’s a backup PSU from regular AC in case of overcast weather, and in case of grid power failures, two hefty LiFePO4 accumulators will run all the 48V-connected appliances for up to two and a half days.

The setup has produced and consumed 115kWh within the first two months – a hefty contribution to a hacker’s energy independence project, and there’s enough specifics in the blog post for all your inspiration needs. This project is a reminder that low-voltage DC network projects are a decent choice on a local scale – we’ve seen quite viable proof-of-concept projects done at hackercamps, but you can just build a small DC UPS if you’re only looking to dip your feet in. Perhaps, soon we’ll figure out a wall socket for such networks, too.

Comparing Solar Energy Harvesters

There doesn’t have to be much more to setting up a simple solar panel installation than connecting the panel to a battery. Of course we would at least recommend the use of a battery management system or charge controller to avoid damaging the battery, although in a pinch it’s not always strictly necessary. But these simple systems leave a lot on the table, and most people with any sizable amount of solar panels tend to use a maximum power point tracking (MPPT) system to increase the yield of the panels. For a really tiny installation like [Salvatore] has, you’ll want to take a look at a similar system known as a solar energy harvester.

[Salvatore] is planning to use an energy harvester at his small weather station, which is currently powered by an LDO regulator and a small solar cell. While this is fairly energy efficient, the energy harvesters that he is testing with this build will go far beyond what an LDO is capable of. The circuit actually has two energy harvesters built onto it which allows him to test the capabilities of both before he makes a decision for his weather station. Every amount of energy is critical when using the cell he has on hand, which easily fits in the palm of one’s hand.

The testing of this module isn’t complete yet, but he does have two working prototypes to test in future videos to see which one truly performs the best. For a project of this size, this is a great way to get around the problem of supplying a small amount of power to something remote. For a larger solar panel installation, you’ll definitely want to build an MPPT system though.

Continue reading “Comparing Solar Energy Harvesters”

Crusty Leaking Cells Kill Your Tech. Just What’s Going On?

Seasoned Hackaday readers may have noticed over the years, that some of us who toil under the sign of the Jolly Wrencher have a penchant for older tech. After all, what’s not to like in a dirt cheap piece of consumer electronics from decades past that’s just begging for a bit of hardware hacking? For me at the moment this is manifesting itself in a selection of 8mm movie cameras, as I pursue a project that will eventually deliver a decent quality digital film cartridge.

When A Cell Is From West Germany, You Know It’s Old

A leaky Duracell, "Made In West Germany"
“Made in West Germany”

The trouble with scouring junk shops for a technology superseded four decades ago is that the cameras I find have in most cases been sitting in a drawer since the early 1980s. They were a valuable item back in the day so of course they were hung on to, then they were forgotten about until one day the grown-ups who were once the kids featured in the home movies are clearing the house, and they start their journey to my bench.

The problem is that very few owners of 8mm cameras had the good sense to remove their batteries before putting them away, so I inevitably end up with a battery compartment full of crusty 1980s Duracells and rusted contacts. This has left me curious, just what has happened here and how can I fix it?

What’s The Leaky Stuff?

Construction of a zinc-manganese "alkaline" cell.
Construction of a zinc-manganese “alkaline” cell. Tympanus, Public domain.

Non-rechargeable cells come in a variety of chemistries, but the commercial ones we’re most familiar with are zinc-carbon “dry cells”, and “Alkaline” zinc-manganese dioxide cells. The zinc-carbon variety are becoming less common here in 2022 and have an acidic zinc chloride or ammonium chloride electrolyte, while the alkaline cells have a higher capacity and a basic potassium hydroxide electrolyte. They both have different failure modes that result in the leaky cells, so it’s worth taking a look at each one.

The failure mode of a zinc-carbon cell is a chemical one, the acidic electrolyte reacts with the zinc can anode, and eventually eats through it. The leaking electrolyte then attacks the surrounding circuitry and battery clips. It’s hardly a concentrated acid, but it’s enough to do plenty of damage over the years.

Meanwhile an alkaline cell has a build-up of hydrogen as it degrades. It incorporates a vent which allows the hydrogen to escape, however the hydrogen pressure can instead force the electrolyte out through this vent. The electrolyte will then corrode the battery terminals and any other electronics it touches. A feature of alkaline cell leakage is a white crust, this is potassium carbonate formed from the reaction between the potassium hydroxide electrolyte and carbon dioxide in the air.

The Global Parts Bin To The Rescue

Fresh and new battery clips for AA holders
Fresh and new battery clips for AA holders

How much damage has been done is usually a function of how long the leaking batteries have been in the device. Sometimes one is lucky and the battery contacts are salvageable, otherwise they are too far gone and a replacement has to be found. A past me tried all sorts of home-made solutions using stiff copper wire and other materials, but today thanks to the miracle of international commerce it’s usually possible to find a contact the same as or very similar to the old one. A quick AliExpress search on terms such as “AA battery spring” will return numerous options, and it’s simply a case then of paging through to find the one you need on the terms you like.

So those of you who like retro tech will find something familiar in the last few paragraphs, but there’s a lesson to be found in dealing with ancient batteries. Here in 2022 we’re more likely to have lithium polymer cells in our consumer devices and so the need to keep a pile of Duracells at hand is reduced. But the thought of today’s equivalent of a Super 8 camera lying forgotten in a drawer for decades with a cheap li-po pouch cell inside it is far more frightening than something with some crusty manganese cells. Have we just found the root cause of house fires in the 2040s?

Mining And Refining: Cobalt, The Unfortunately Necessary Metal

The story of humankind is largely a tale of conflict, often brought about by the uneven distribution of resources. For as long as we’ve been down out of the trees, and probably considerably before that too, our ancestors have been struggling to get what they need to survive, as often as not at the expense of another, more fortunate tribe. Food, water, land, it doesn’t matter; if They have it and We don’t, chances are good that there’s going to be a fight.

Few resources are as unevenly distributed across our planet as cobalt is. The metal makes up only a fraction of a percent of the Earth’s crust, and commercially significant concentrations are few and far between, enough so that those who have some often end up at odds with those who need it. And need it we do; what started in antiquity as mainly a rich blue pigment for glass and ceramics has become essential for important industrial alloys, high-power magnets, and the anodes of lithium batteries, among other uses.

Getting access to our limited supply of cobalt and refining it into a useful metal isn’t a trivial process, and unfortunately its outsized importance to technological society forces it into a geopolitical role that has done a lot to add to human misery. Luckily, market forces and new technology are making once-marginal sources viable, which just may help us get the cobalt we need without all the conflict.

Continue reading “Mining And Refining: Cobalt, The Unfortunately Necessary Metal”