Get ready to rumble! [Thierry] made the exact same Hello-World-esque project with two microcontrollers (that are now technically produced by the same firm!) to see how the experience went.
It’s not just an LED-blinker, though. He added in a light-detection function so that it only switches on at night. It uses the Forest Mims trick of reverse-biasing the LED and waiting for it to discharge its internal capacitance. The point is, however, that it gives the chip something to do instead of simply sleeping.
Although he’s an AVR user by habit, [Thierry] finds in favor of the PIC because it’s got a lower power draw both when idling and when awake and doing some computation. This is largely because the PIC has an onboard low-power oscillator that lets it limp along at 32 kHz, but also because the chip has a lower power consumption in general. In the end, it’s probably a 10% advantage to the PIC on power.
If you’re competent with one of the two chips, but not the other, his two versions of the same code would be a great way to start familiarizing yourself with the other. We really like his
isDarkerThan() function which makes extensive use of sleep modes on both chips during the LED’s discharge period. And honestly, at this level the code for the two is more similar than different.
(Oh, and did you notice [Thierry]’s use of a paper clip as a coin-cell holder? It’s a hack!)
Surprisingly, we’ve managed to avoid taking a stray bullet from the crossfire that occasionally breaks out between the PIC and AVR fans. We have covered a “shootout” before, and PIC won that round too, although it was similarly close. Will the Microchip purchase of Atmel calm the flames? Let’s find out in the comment section. We have our popcorn ready!
In this installment of Minimal MQTT, I’m going to cover two loose ends: one on the sensor node side, and one on the MQTT server side. Specifically, I’ll tackle the NodeMCU’s sleep mode to reduce power and step you through bridging MQTT servers to get your data securely out of your home server and into “the cloud”, which is really just other people’s servers.
If you’re just stepping into this series now, you should really check out the other three posts, where I set up a server, then build up some sensor nodes, and then flesh-out a few ways to control everything from your phone or the web. That’s the coolest material, anyway. This last installment just refines what we’ve built on. Let’s go!
Continue reading “Minimal MQTT: Power and Privacy”
[Glen], at Maker Space Newcastle Upon Tyne, is refreshingly honest. As he puts it, he’s too cheap to buy a proper battery.
He needed a 1AH battery pack to power his quadcopter controller and FPV headset, and since inadequate discharge warnings had led him to damage lithium polymer cells with these devices, he wanted his pack to use lithium-ion cells. His requirements were that the cells be as cheap, lightweight, and small as possible, so to satisfy them he turned to a stack of mobile phone cells. Nokia BL-4U cells could be had for under a pound ($1.46) including delivery, so they certainly satisfied his requirement for cheapness.
It might seem a simple procedure, to put together a battery pack, and in terms of physical wiring it certainly is. But lithium-ion cells are not simply connected together in the way dry cells are, to avoid a significant fire risk they need to have the voltage of each individual cell monitored with a special balanced charger. Thus each cell junction needs to be brought out to another connector to the charger.
[Glen]’s write-up takes the reader through all the requirements of safe lithium-ion pack construction and charging, and is a useful read for any lithium-ion newbies. If nothing else it serves as a useful reminder that mobile phone cells can be surprisingly cheap.
Lithium cells have captured our attention before here at Hackaday. Our recent Hackaday Dictionary piece provides a comprehensive primer, we’ve featured another multi-cell build, and an interesting app note from Maxim for a battery manager chip.
In this day and age we’re consistently surrounded with portable electronic devices. In order for them to be called “portable”, they must run on batteries. Most, if not all, use rechargeable batteries. These batteries have a finite lifespan, and will eventually need to be replaced. UCI chemist [Reginald Penner] and doctoral candidate [Mya Le Thai] have been hard at work on making rechargeable batteries that last forever.
Nanowires are great candidates for rechargeable battery technology because the wires, thousands of times thinner than a human hair, are great conductors of electricity. The problem is repeated charging and discharging makes them brittle, which causes them to eventually fail. Typically, the researchers at UCI could get 5000 to 7000 cycles in before they failed. After some trial and error, they found that if they coat a gold nanowire with an acrylic-like gel, they can get up to 200,000 charge/discharge cycles through it before failure.
We’ve seen rechargeable battery hacks before, but making a battery that never needs replacing is sure to get everyone excited.
Besides being common tools available to most hackers and makers out there, 3D printing, CNC machines, and cheap Chinese electronics have one more things in common: they were all used by [Nick] to build a bluetooth speaker system that has some interesting LED effects built into the case.
This is fresh on the heels of another hack that used similar construction methods to build a “magic” wood lamp. [Nick] takes it a step further, though. His case is precisely machined in white oak and stuffed with the latest China has to offer: a bank of lithium-ion batteries, a DC-DC converter to power the amplifier, and a Bluetooth module. After some sanding, the speakers look professional alongside the blue light features hiding behind the polycarbonate rings.
Of course you’ll want to visit the project site for all the details of how [Nick] built his speaker case. He does admit, however, that the electronics are fairly inefficient and need a little work. All in all though, it’s a very refined set of speakers that’ll look great on a bookshelf or on a beach, workshop bench, or anyplace else that you could take them.
Continue reading “White Oak Illuminated Bluetooth Speaker”
We all know that you can stick copper and zinc in an acid and make a battery. And the classic demonstration of this is with a lemon. YouTuber [NorthSurvival] takes this to an extreme — starting a fire by shorting his lemon battery across some steel wool. (Video embedded below.)
Now calling this a “survival tip” is pushing it. A lot. When’s the last time you went camping with a bunch of zinc and copper nails, much less a supply of fresh lemons? It might be easier to put some matches in a waterproof canister, or just bring a lighter. But when the zombie apocalypse comes, and all the lighters are used up, the man with a lemon tree will be a millionaire.
Seriously, though, this demo made us question a few assumptions. First, when people do the potato- or lemon-battery experiment, they often use multiple lemons. Why? Hooking the pins up like [NorthSurvival] did in series seems like a no-brainer after the fact.
And the lemon seems to be putting out a fair amount of juice (Amperes, that is). We’ve got to wonder — what is the short-circuit current of a lemon battery? And why haven’t we seen specs anywhere? What kind of “science education” experiment is this anyway, without measurements?
Continue reading “Lighting Fires with Lemons”
What’s worse than coming in from the workbench for a sandwich only to discover that the bread has molded? That red bread mold–Neurospora crassa–can transform manganese into a mineral composite that may improve rechargeable batteries, according to a recent paper in Current Biology.
Researchers used the carbonized fungal biomass-mineral composite in both lithium ion cells and supercapacitors. The same team earlier showed how fungi could stabilize toxic lead and uranium. Mold, of course, is a type of fungus that grows in multi-cellular filaments. Apparently, the fungal filaments that form are ideal for electrochemical use of manganese oxide. Early tests showed batteries using the new material had excellent stability and exceeded 90% capacity after 200 discharge cycles.
The team plans to continue the use of fungus in various metallurgical contexts, including recovering scarce metal elements. This is probably good news for [Kyle]. This is quite an organic contrast to the usual news about graphene batteries.
Image: Qianwei Li and Geoffrey Michael Gadd