Handheld MQTT Remote For Home Automation

If you’re working on a home automation project, you’re probably knee-deep into MQTT by now. If not, you should be. The lightweight messaging protocol is an ideal choice for getting your “Things” on the Internet, and controlling them all can be done easily through a simple web interface or an application on your mobile device. Or if you’re [serverframework], you make yourself a handsome little all-in-one MQTT remote.

The hardware here is pretty simple; inside there’s just a NodeMCU ESP8266 development board, some buttons, an RGB LED to give feedback, and a 3.7v 1200mAh LiPo battery with associated charging module. Everything is held inside a nice little wooden box that looks like it would fit right in with the living room decor. We’d like to see some kind of a cover over the exposed perfboard the circuit is assembled on, but that’s arguably a personal preference kind of thing.

Most of the magic in this project is actually happening on the software side. Not only does the provided source code handle all the MQTT communications with Home Assistant, but it provides a clever user interface that allows [serverframework] to perform 25 functions with just five buttons. No, you aren’t seeing things. There are actually six buttons on the device, but one of them is a dedicated “power” button that wakes the remote out of deep sleep.

If you’d like to learn more about getting this protocol working for you, our resident MQTT guru [Elliot Williams] has plenty of thoughts on the subject. From his talk at the 2017 Hackaday Supercon to his home automation tutorial series, there’s plenty of information to get you started.

Continue reading “Handheld MQTT Remote For Home Automation”

Amazon Ring: Neighbors Leaking Data On Neighbors

For a while now a series of stories have been circulating about Amazon’s Ring doorbell, an Internet-connected camera and entry system that lets users monitor and even interact with visitors and delivery people at their doors. The adverts feature improbable encounters with would-be crooks foiled by the IoT-equipped homeowner, but the stories reveal a much darker side. From reports of unhindered access by law enforcement to privately-held devices through mass releases of compromised Ring account details to attackers gaining access to children via compromised cameras, it’s fair to say that there’s much to be concerned about.

One cause for concern has been the location data exposed by the associated Amazon Neighbors crowd-sourced local crime paranoia app, and for those of us who don’t live and breathe information security there is an easy-to-understand Twitter breakdown of its vulnerabilities from [Elliot Alderson] that starts with the app itself and proceeds from there into compromising Ring accounts by finding their passwords. We find that supposedly anonymized information in the app sits atop an API response with full details, that there’s no defense against brute-forcing a Ring password, and that a tasty list of API and staging URLs is there for all to see embedded within the app. Given all that information, there’s little wonder that the system has proven to be so vulnerable.

As traditional appliance makers have struggled with bringing Internet connectivity into their products there have been a few stories of woeful security baked into millions of homes. A defense could be made that a company with roots outside the Internet can be forgiven for such a gaffe, but in the case of Amazon whose history has followed that of mass Web adoption and whose infrastructure lies behind so much of the services we trust, this level of lax security is unforgivable. Hackaday readers will be aware of the security issues behind so-called “smart” devices, but to the vast majority of customers they are simply technological wonders that are finally delivering a Jetsons-style future. If some good comes of these Ring stories it might be that those consumers finally begin to wake up to IoT security, and use their new-found knowledge to demand better.

Header image: Ring [CC BY-SA 4.0]

Automated Cat Feeder Leaves Little To Chance

We often like to say that if something is worth doing, then it’s worth overdoing. This automatic cat feeder built by [krizzli] is a perfect example of the principle. It packs in far more sensors and functions than its simple and sleek outward appearance might suggest, to the point that we think this build might just set the standard for future projects.

The defining feature of the project is a load cell located under the bowl, which allows the device to accurately measure out how much feed is being dispensed by weight. This allows the feeder to do things such as detect jams or send an alert once it runs out of food, as well as easily adjust how much is dispensed according to the animal’s dietary needs. To prevent any curious paws from getting into the machine while it’s doling out the food, the lid will automatically open and close during the filling process, complete with optical sensors to confirm that it moved as expected.

All of the major components of the feeder were printed out on a Prusa i3 MK3S, and [krizzli] says that the feed hopper can be scaled vertically if necessary. Though at the current size, it’s already packing around a week’s worth of food. Of course, this does depend on the particular feline you’re dealing with.

In terms of electronics, the feeder’s primary control comes from an ESP8266 (specifically, the Wemos D1 Mini), though [krizzli] also has a Arduino Pro Mini onboard so there’s a few more GPIO pins to play with. The food is dispensed with a NEMA 17, and a 28-BYJ48 stepper is in charge of moving the lid. A small OLED on the side of the feeder gives some basic information like the time until the next feeding and the dispensed weight, but there’s also a simple API that lets you talk to the device over the network. Being online also means the feeder can pull the time from NTP, so kitty’s mealtime will always be on the dot.

Over the years we’ve seen an incredible array of automatic cat feeders, some of which featuring the sort of in-depth metrics possible when you’ve got on onboard scale. But we can’t help but be impressed with how normal this build looks. If nothing else, of all the feeders we’ve seen, this one is probably the most likely to get cloned and sold commercially. They say it’s the most sincere form of flattery.

You’ve Got Mail?

Life is full of tough decisions, such as deciding whether you want to go to the end of the drive to check if the mail has arrived. These questions are made even more arduous in the winter months, but [Catpin] has a solution. The Mail Box Alert uses an Electric Imp, a solar panel and a proximity sensor to let you know if you’ve got mail.

It’s a neat build, with the brains provided by that Electric Imp which handles most of the heavy lifting. This wakes up every five minutes and checks whether the status of a small proximity sensor has changed. If it has, it pings a website. The unit sits at the bottom of the postbox, so if your friendly neighborhood post person has put in any letters, it will have changed. The Imp is powered by a small battery, which is in turn charged by a solar panel. That means that it doesn’t require any power cables or other wiring, as long as it is in the range of WiFi. With the addition of a 15-hours overnight deep sleep, [Catpin] found that the whole thing could be run from a couple of 18650 LiPo batteries.

Perhaps the most interesting part of the writeup was discussing the problems that he found with the build, such as the fact that a LiPo battery won’t perform that well in a Wisconsin winter. So, this was replaced with a Lithium Iron Phosphate battery that should be a bit more tolerant of the chill. There is also a writeup on how to create the same project using an ESP8266 if required.

A Division In Voltage Standards

During my recent trip to Europe, I found out that converters were not as commonly sold as adapters, and for a good reason. The majority of the world receives 220-240 V single phase voltage at 50-60 Hz with the surprisingly small number of exceptions being Canada, Colombia, Japan, Taiwan, the United States, Venezuela, and several other nations in the Caribbean and Central America.

While the majority of countries have one defined plug type, several countries in Latin America, Africa, and Asia use a collection of incompatible plugs for different wall outlets, which requires a number of adapters depending on the region traveled.

Although there is a fair degree of standardization among most countries with regards to the voltage used for domestic appliances, what has caused the rift between the 220-240 V standard and the 100-127 V standards used in the remaining nations?

Continue reading “A Division In Voltage Standards”

Gaze Deeply Into These Infinity Mirror Coasters

Infinity mirrors have been gaining in popularity recently, thanks in no small part to the availability of low-cost RGB LED strips to line them with. Generally such pieces are limited to wall art, or the occasional table build, which is what makes these infinity mirror drink coasters from [MnMakerMan] so unique.

Built from an ATtiny85 and a WS2812B LED strip nestled into a 3D printed enclosure, these coasters are relatively cheap and easy to assemble should you want to run a few off before the holiday party season. [MnMakerMan] mentions the LEDs can consume a decent amount of energy, so he’s included a module to allow recharging of the internal 3.7 V 1500 mAh battery over USB.

Of course, a couple of PLA pieces and a custom PCB doesn’t make an infinity mirror. To achieve the desired effect, he’s created a stack consisting of a 4″ glass mirror, a 1/8″ thick plexiglass disc, and one-way mirror tint film. The WS2812B strip mounted along the circumference lights up the void between the two surfaces, and produces a respectable sense of depth that can be seen in the video after the break.

This isn’t the first high-tech piece of surface protection we’ve seen around these parts, as some very nice wirelessly charged supercapacitor coasters were entered into the 2019 Hackaday Prize. Of course, if you’re of the opinion that coasters should remain as cheap as possible, we’ve seen a number of automated attempts to add some flair to the classic paperboard discs.

Continue reading “Gaze Deeply Into These Infinity Mirror Coasters”

Detecting Water Before It’s Too Late

[mcu_nerd] is like any engineer, which is why his problem of an occasionally leaky water heater sure looks like a research project with no end in sight. Sure there’s probably a commercial product out there that can be had for half the cost and a few clicks of the mouse, but what’s the point in actually solving the problem?

His log starts with research into detecting low battery voltages. Then it was a quick exploration in designing low-power circuits. When the Flexible PCB contest came along, he realized that there was a chance to design a better electrode, and he ended up winning one of the vouchers; which is where he’s at now.

It’s definitely a work in progress, and if anything it’s just a quick five minute read and an opportunity to commiserate with another wayward soul. We do like his clever use of a tealite candle tin as both the second electrode and case for his water detection circuit. There are also some KiCad files and code.