An uninterruptible power supply (UPS) isn’t something solely to have hooked up to your desktop PC. Your Raspberry Pi SBC might also benefit from it. Yet the available options aren’t too great, or are too expensive. This leads folk including [Joachim Baumann] to modify cheerfully cheap Chinese UPS HAT boards such as the Geekworm UPS HAT to fix its myriad of issues and missing features.
Inspired by a number of other hacks on this board which fixed things like needing to push a button on the UPS to boot the Raspberry Pi, [Joachim] set out to make a similar ATtiny-based solution that would address all issues, above all the fact that this Geekworm UPS does not detect when the connected SBC has turned off and will happily run the lithium battery pack dry. Finding a blog post by Simon who had reverse-engineered the board previously was immensely helpful. Continue reading “Fixing A Cheap UPS HAT For Your Raspberry Pi With A Tiny Daemon”
If you treat your Pi as a wearable or a tablet, you will already have a battery. If you treat your Pi as a desktop you will already have a plug-in power supply, but how about if you live where mains power is unreliable? Like [jwhart1], you may consider building an uninterruptible power supply into a USB cable. UPSs became a staple of office workers when one-too-many IT headaches were traced back to power outages. The idea is that a battery will keep your computer running while the power gets its legs back. In the case of a commercial UPS, most generate an AC waveform which your computer’s power supply converts it back to DC, but if you can create the right DC voltage right to the board, you skip the inverting and converting steps.
Cheap batteries develop a memory if they’re drained often, but if you have enough space consider supercapacitors which can take that abuse. They have a lower energy density rating than lithium batteries, but that should not be an issue for short power losses. According to [jwhart1], this quick-and-dirty approach will power a full-sized Pi, keyboard, and mouse for over a minute. If power is restored, you get to keep on trucking. If your power doesn’t come back, you have time to save your work and shut down. Spending an afternoon on a power cable could save a weekend’s worth of work, not a bad time-gamble.
We see what a supercap UPS looks like, but what about one built into a lightbulb or a feature-rich programmable UPS?
Recently I had the opportunity to do a teardown of a battery-backed LED bulb, and found some interesting details on how the device operated. Essentially, the bulb contained a low voltage DC uninterruptible power supply that would automatically switch between AC power and internal battery as needed. The implications of this seemed pretty exciting. For around $12 at big box retailers, this little bulb could be a cheap and convenient solution for providing fault tolerant power to microcontrollers and other low-power devices.
The teardown was a runaway success, with quite a bit of discussion of the UPS idea specifically. Some people hated it, others loved it. But as we’ve come to expect from Hackaday readers, the comments from both sides of the aisle contained keen observations and invaluable real-world experience. From the safety of the device to the accuracy of the manufacturer’s claims, it seems like every element of the product was addressed.
I had ended the teardown with a promise that I’d continue experimenting with the tiny salvaged UPS, but even if I hadn’t, with so much feedback it seemed revisiting the subject was all but a necessity. It this little UPS really viable? Is it too dangerous to safely implement in your project? Will the thing just blow up?
So with your comments as a guide, and free of the somewhat restrictive teardown format, I set out to conduct a more thorough investigation of this little circuit that caused so much debate last month. It’s not all good news, but it’s not in the trash either. Not yet, anyway.
Continue reading “Investigating The Tiny Salvaged UPS From A Lightbulb”
Ok, now this is something special. This is a home network and security system that would make just about anyone stop, and with jaw hanging agape, stare, impressed at the “several months of effort” it took [timekillerjay] to install their dream setup. Just. Wow.
Want a brief rundown of the diverse skill set needed to pull this off? Networking, home security, home automation, woodworking, running two thousand feet(!) of cat 6a cable, a fair hand at drywall work for the dozens upon dozens of patches, painting, staining, and — while not a skill, but is definitely necessary — an amazingly patient family.
Ten POE security cameras monitor the premises with audio recording, infrared, and motion detection capabilities. This is on top of magnetic sensors for five doors, and eleven windows that feed back to an ELK M1-Gold security system which effortlessly coordinates with an Insteon ISY994i smart home hub; this allows for automatic events — such as turning on lights after dark when a door is opened — to occur as [timekillerjay]’s family moves about their home. The ELK also allows [timekillerjay] to control other things around the house — namely the sprinkler system — via relays. [timekillerjay] says he lost track of how many smart switches are scattered throughout his home, but there are definitely 39 network drops that service the premises.
All of the crucial components are hidden in his office, behind a custom bookshelf. Building it required a few clever tricks to disguise the bookshelf for the secret door that it is, as well as selecting components with attention to how much noise they generate — what’s the point of a hidden security system if it sounds like a bunch of industrial fans?
An uninterruptible power supply will keep the entire system running for about 45 minutes if there is a power outage, with the cameras recording and system logging everything all the while. Not trusting the entrance to his vault to something from Batman, he’s also fitted the bookshelf with a 600lb magnetic lock that engages when the system is armed and the door already closed. A second UPS will keep the door secured for 6+ hours if the house loses power. Needless to say, we think this house is well secured.
Over the last few years one thing has become abundantly clear: hackers love cramming the Raspberry Pi into stuff. From classic game systems to mirrors, there’s few places that haven’t been invaded by everyone’s favorite Linux SBC. From the inspired to the bizarre, we’ve brought such projects to your attention with minimal editorialization. As we’ve said before: it’s not the job of Hackaday to ask why, we’re here to examine how.
That said, some builds do stand out from the crowd. One such project is the “Pentesting BBU Dropbox” which [b1tbang3r] has recently posted to Hackaday.io. Noticing the battery bay in a cheap Cyberpower 350VA battery backup was just about the same size as the Raspberry Pi, he decided to convert it into a covert penetration testing device. Of course the illusion isn’t perfect as the battery backup function itself doesn’t work anymore. But if you hid this thing in an office or server room, there’s very little chance anyone would ever suspect it didn’t belong.
The key to the final device’s plausibility is that from stock it had dual RJ-11 jacks for analog modem surge protection. Swapping those jacks out for RJ-45 network connectors gives the BBU Dropbox an excuse to be plugged into the network. At a cursory glance, at least. Internally there is a TRENDnet Ethernet switch which allows the Pi to get on the network when an Ethernet cable is plugged into the battery backup.
We especially like the little details [b1tbang3r] put in to make the final device look as real as possible. The “Reset” button and “Wiring Fault” LED have been connected to the GPIO pins of the Pi, allowing for an exceptionally discrete user interface. For instance the LED could be setup to blink when a scan is complete, or the button could be used to wipe the device in an emergency.
This build reminds us of the Power Pwn released back in 2012 by Pwnie Express. That device was based around a relatively bulky power strip, and the only “feature” it looks like this DIY build is missing from the professional version is the $1,300 price.
Occasionally you run across a product that you just know is simply too good to be true. You might not know why, but you’ve got a hunch that what the bombastic phrasing on the package is telling you just doesn’t quite align with reality. That’s the feeling I got recently when I spotted the “LED intellibulb Battery Backup” bulb by Feit Electric. For around $12 USD at Home Depot, the box promises the purchaser will “Never be in the dark again”, and that the bulb will continue to work normally for up to 3.5 hours when the power is out. If I could repurpose that to make a tiny UPS for a microcontroller project of my own, it could be even more useful.
Now an LED light bulb with a battery in the base isn’t exactly rocket science, we can understand the product conceptually at a glance. But as they say, the devil is in the details. The box claims the bulb consumes 8.5 watts, but a battery with enough capacity to run such a load for 3.5 hours would be far too large to fit inside of a light bulb. Obviously there’s more to the story.
On the side of the box, in the smallest font used on the whole package, we get our clue. The bulb drops down to 200 lumens when in battery backup mode, or roughly as bright as a cheap LED flashlight. Now things are starting to come together. Without even opening the device, we can be fairly sure it will contain two separate arrays of LEDs: one low set for battery, and a brighter set to run when the bulb has AC power.
Still, I tend to be of the opinion that anything less than $20 or so is worth cracking open to see what makes it tick. Even if the product itself is underwhelming, there’s a chance the internal components could be useful or interesting. With that in mind, let’s see what’s inside a battery backup light bulb, and what we might be able to do with it.
Continue reading “Teardown: LED Bulb Yields Tiny UPS”
We know your shame. Like you, we wanted to save some scratch and bought the bottom-of-the-range UPS, only to discover that it is no use to man or beast as it lacks the power to perform any reasonable task. It’s now sitting in a corner, to gather dust as its batteries deteriorate.
Not so fast with the UPS abandonment! [rue_mohr] came up with a modification for a small APC UPS that turned it into something a little more useful. Removing the mains inverter from the picture with a few displaced wires and PCB mod, the UPS is now a 12V battery with a mains charger and power outage detection built-in. In this state it’s the perfect power pack for some 12V LED strips used for emergency lighting. There is a handy 3D print that fits the rear socket cut-outs on the US version of the device and provides apertures for a pair of DC power jacks.
This is a relatively simple hack, but we like it for taking the focus away from the obvious part of the UPS, its mains inverter, and turning to the batteries as the main event. It’s a relatively tiny device, but in the past we’ve featured a UPS at the other end of the scale being used for power back-up to a whole house. Meanwhile we’d like to take a leaf from the [BOFH]’s book, and recommend that the most important piece of infrastructure requiring a UPS is the sysadmin’s coffee machine.