Fried Desk Lamp Reborn: How To Use ESP8266 To Build Connected Devices

Some hacks are born of genius or necessity, and others from our sheer ham-fisted incompetence. This is not a story about the first kind. But it did give me an excuse to show how easy it is to design WiFi-connected devices that work the way you want them to, rather than the way the manufacturer had in mind.

It started out as a sensible idea – consumer electronics in Vietnam have many different electric plug types for mains AC power: A, C, G, F, and I are fairly present, with A and C being most common. For a quick review of what all those look like, this website sums it up nicely. There are universal power adapters available of course, but they tend to fit my most common type (C) poorly, resulting in intermittent power loss whenever you sneeze. So I figured I should replace all the plugs on my devices to be A-type (common to those of you in North America), as it holds well in all the power bar types I have, mainly leftover server PDUs.

This was very straightforward until I got to my desk lamp. Being a fancy Xiaomi smart lamp, they had opted to hide a transformer in the plug with such small dimensions that I failed to notice it. So instead of receiving a balmy 12 volts DC, it received 220 volts AC. With a bright flash and bang, it illuminated my desk one final time.

Continue reading “Fried Desk Lamp Reborn: How To Use ESP8266 To Build Connected Devices”

Intelligent Control For That Cheap Diesel Heater

If you own a caravan or a boat, you’ll know that keeping it warm can present something of a struggle. Open-flame gas heaters carry a risk of carbon monoxide poisoning, while solid fuel stoves are heavy and require safe flues. The prospect of a diesel heater then is enticing, bringing as they use a safer fuel and allow for easy external exhaust. Unfortunately they’ve been something of an expensive option, but the arrival of cheap imported heaters in recent years has made them an attractive choice. [Ray Jones] has improved upon their sometimes basic control electronics with the Afterburner, an intelligent controller that packs both ESP32 and HC-05 modules to both enhance the feature set and the connectivity of the devices.

The full list of capabilities is somewhat exhaustive but has a few stand-outs such as the ability to connect 1-wire temperature sensors to the system. It’s not compatible with all the heaters on the market, but there is a comprehensive guide to those models with which it can work. Meanwhile, all the code and other resources are available on GitLab should you wish to try it for yourself.

Diesel is something of a dirty word in 2019, but maybe biodiesel will save devices like this one.

Thanks [Bob] for the tip!

A Stylish Home For Your Next ESP Project

The ESP8266 and ESP32 are fast becoming the microcontroller of choice for, well, everything. But one particular area we’ve seen a lot of activity in recently is home automation; these boards make it so incredibly easy and cheap to get your projects online that putting together your own automation system is far more appealing now than it’s ever been. Capitalizing on that trend, [hwhardsoft] has been working on a ESP enclosure that’s perfect for mounting on the living room wall.

Of course, there’s more to this project than an admittedly very nice plastic box. The system also includes a ILI9341 2.4 inch touch screen LCD, an integrated voltage regulator, and even a section of “perfboard” that gives you a spot to easily wire up ad-hoc circuits and sensors. You don’t even need to switch over to the bare modules either, as the PCB is designed to accommodate common development boards such as the Wemos D1 Mini and NodeMCU.

Despite its outward appearance, this project is very much beginner friendly. Utilizing through hole components, screw down terminals, and a impeccably well-labeled silkscreen, you won’t need to be a hardware expert to produce a very slick gadget the whole family can appreciate.

Much like the HestiaPi project we covered a few months back, this project takes a cheap and readily available development board and turns it into something that has all the trappings of a commercial offering. These projects are reminders that the line between built and bought is only getting blurrier as time goes on.

Continue reading “A Stylish Home For Your Next ESP Project”

Tiny Vacuum Cleaner Sucks (In A Good Way)

Sometimes something is remarkable not for its content, but for its size. A ball of yarn isn’t exciting for example, unless it’s a giant ball of yarn. At the other end of the scale writing your name is a quotidian event, but put it on a grain of rice and that’s ten bucks at the mall. [Toby Bateson] has been making vacuum cleaners since he was 8 years old — and he looks considerably older than that now. In of itself that’s not a big deal, but his machines are tiny. In fact, he has the Guinness Book of World Records entry for the smallest vacuum cleaner. His latest exploit? A vacuum in an Altoid’s tin!

Electronically, this is just a switch, a battery, and a motor. But if you are looking for a Dremel tool project, you are in luck. Check out the video of the diminutive device, below. Besides the Altoids tin, there is a metal pipe and some bits of a cut-up soda can.

Continue reading “Tiny Vacuum Cleaner Sucks (In A Good Way)”

A Professional-Level Desk In A Dorm

Heading off to college comes with its own set of challenges. Harder course material, living away from home for the first time, and dealing with roommates are common hurdles to overcome, but an oft-overlooked issue is the poor quality dorm room desks. For a place that a student is expected to spend a majority of their study time, colleges and universities don’t often provide inspiring areas in the dorm rooms for this task. With a few tools and some time, though, anyone suffering in a dorm can have a much better place to work.

This desk build comes to us from reddit user [lucas_talbert] and is noteworthy for using simple tools and materials to transform the standard, boring desk in a way which won’t upset the facilities manager in charge of the dorm furniture. The backer is a piece of plywood which was covered in bamboo flooring. It was screwed into the back of the desk and secured with L-brackets. A piece of 1×4 was attached around the edges to help hide the LED lights and cables as well.

We like this build for its impressive transformation of an otherwise drab dorm room into a place that most of us wouldn’t mind having as our main workstation, even beyond college. It also uses common materials and is easily removable, both of which are perks when living as a student. The one thing it doesn’t have, though, is the ability to exercise when using it.

DJ Xiaomi Spins Beats And Brushes At The Same Time

Direct from the “Just Because I Can” department, this blog post by [Eddie Zhang] shows us how easy it is to get the Xiaomi robotic vacuum cleaner working as what might be the world’s most unnecessary Spotify Connect speaker. Will your home be the next to play host to an impromptu performance by DJ Xiaomi? Judging by the audio quality demonstrated in the video after the break, we doubt it. But this trick does give us a fascinating look at the current state of vacuum hacking.

For the first phase of this hack, [Eddie] makes use of Dustcloud, an ongoing project to document and reverse engineer various Xiaomi smart home gadgets. Using the information provided there you can get root-level SSH access to your vacuum cleaner and install your own software. There’s a sentence you never thought you’d read, right?

With the vacuum rooted, [Eddie] then installs a Spotify Connect client intended for the Raspberry Pi. As they’re both ARM devices, the software will run on the Xiaomi bot well enough, but the Linux environment needs a little tweaking. Namely, you need to manually create an Upstart .conf file for the service, as the vacuum doesn’t have systemd installed. There goes another one of those unexpected sentences.

We’re certainly no stranger to robotic vacuum hacking, though historically the iRobot Roomba has been the target platform for such mischief. Other players entering the field can only mean good things for those of us who get a kick out of seeing home appliances pushed outside of their comfort zones.

Continue reading “DJ Xiaomi Spins Beats And Brushes At The Same Time”

Detecting Cars With An ESP8266 Magnetometer

Having a motorized gate on your driveway is great, but only if there’s an easy way to trigger it. [Andrew] says the gate at his parent’s place could only be controlled by manually pushing a button on the panel or with a dinky remote that didn’t have nearly the range they wanted. So he decided to build his own magnetometer allowing the gate to automatically open when a car was trying to leave.

Naturally, there are commercial offerings that would solve this problem. But with a sticker price of more than $150 USD, [Andrew] was more than happy to spend a bit of time tinkering to get the job done for less than 1/10th the cost with an ESP8266 and a QMC5883X series magneto-resistive sensor. Of course, this is one of those projects that seems simple enough in your head, but ends up taking a bit of finesse to pull off in the real-world.

For one, [Andrew] had to figure out how to prevent false positives. Pretty much any object brought close enough to the sensor, including his hand, would cause it to react. He ended up coming up with a way to use a rolling average to prevent the gate from firing off just because a squirrel ran past. The built-in safeties are designed to ensure that the gate only opens when an actual car is sitting in the appropriate spot for long enough.

Speaking of, we love how [Andrew] deployed the QMC5883X sensor for this project. The small sensor board and a few moisture-absorbing packets were placed in a Sonoff IP66 waterproof enclosure, and buried under the rocks of the driveway. A standard CAT5 cable is used to tether it to the ESP8266, relay, and assorted other goodies that now live in the gate’s control box. In the future he says the cable will likely have to go into a conduit, but for now the system is working more or less how he expected.

If your estate isn’t quite palatial enough to have a motorized gate out front, we’ve seen plenty of projects that add some much-needed intelligence to the humble garage door opener which might be more your speed.