WiFi Power Bar!

Ever wanted to access a file or run some program on your computer while away from home, but the darned thing is turned off? Finding themselves occasionally working away from home and not wanting to leave their computer on for extended periods, [robotmaker]’s solution was to hack into existence a WiFi-controlled power bar!

esp8266-powerbar-thumbInside the junction box, an eight-channel relay is connected to an ESP8266 module. The module uses MQTT to communicate with Home Assistant and is powered by a partially dismembered USB AC adapter — wrapped in kapon tape for safe-keeping. The entire bar is wired through a 10A fuse, while also using a fire resistant 4-gang electrical box. Once the outlets were wired in, closing it up finished up the power bar.

[robotmaker] controls the outlets via a cheap smartphone — running HADashboard — mounted to a wall with a 3D printed support. Don’t worry — they’ve set up the system to wait for the PCs to power down before cutting power, and the are also configured to boot up when the relay turns on.

The best part — the power bar only cost $25.

[via /r/homeautomation]

ESP32 Tutorials

The ESP8266 has become one of those ubiquitous parts that everyone knows. However, the new ESP32 has a lot of great new features, too. If you want to take the ESP32 for a spin, you should check out [Neil Kolban’s] video series about the device. When we say series, we aren’t kidding. At last count, there were nineteen videos. Some are only a few minutes long, but some weigh in at nearly twenty minutes and the average is somewhere in between.

The topics range from setting up tools and using Eclipse and GDB. There are also tutorials on specific tasks like PWM, analog conversion, real-time operating systems, and more.

Continue reading “ESP32 Tutorials”

Create Cheap Philips Hue Compatible Devices

The Philips Hue range is a great way to add wirelessly controllable lighting to your home, but the protocol is proprietary which makes it difficult to add our own custom hardware. [Peter] found a way to create his own Hue compatible devices based on cheap JN5168 modules that are able to connect to the Hue bridge. This means you can roll out your own lamps using cheap RGB or White LEDs, a power supply and the JN5168 Zigbee Light Link module.

He started off by trying to clone a Zigbee Light Link device to a MeshBee — Seeed studio’s open source Zigbee Pro module based on the NXP JN5168. Even though the MeshBee used the same device as a Hue lamp, it would not connect to the Hue bridge. But another clone lamp called Innr that he purchased from the local hardware store did connect quite easily. Using NXP’s open source tools, he was able to download the flash and EEPROM contents from the Innr and copy them to the MeshBee which did the trick.

After the EEPROM transfer trick, he figured out how to modify the two keys used for the ZigBee protocol — one for Home Automation and the other for the Light Link. With this final discovery he is able to take the ZigBee Light Link demo project, edit it using Beyond Studio, and then load the binaries on the MeshBee device so it can connect to the Hue bridge.

All of this work culminates in two custom firmware binaries; one for white dimmable lights and another for RGB dimmable ones. It even runs on these cheap JN5168 breakout kits he found for a few bucks. With all of the software taken care of, and having cheap ZigBee Light Link compatible modules on hand, building low cost Hue compatible lights becomes pretty straight forward.

Thanks [wind-rider] for the tip.

Suddenly, Wireless Power Transmission Is Everywhere

Wireless power transfer exists right now, but it’s not as cool as Tesla’s Wardenclyffe tower and it’s not as stupid as an OSHA-unapproved ultrasonic power transfer system. Wireless power transfer today is a Qi charger for your phone. It’s low power – just a few amps — and very short range. This makes sense; after all, we’re dealing with the inverse square law here, and wireless power transfer isn’t very efficient.

Now, suddenly, we can transfer nearly two kilowatts wirelessly to electronic baubles scattered all over a room. It’s a project from Disney Research, it’s coming out of Columbia University, it’s just been published in PLOS one, and inexplicably it’s also an Indiegogo campaign. Somehow or another, the stars have aligned and 2017 is the year of wirelessly powering your laptop.

disney-research-quasistatic-cavity-roomThe first instance of wireless power transfer that’s more than just charging a phone comes from Disney Research. This paper describes quasistatic cavity resonance (QSCR) to transfer up to 1900 Watts to a coil across a room. In an experimental demonstration, this QSCR can power small receivers scattered around a 50 square meter room with efficiencies ranging from 40% to 95%. In short, the abstract for this paper promises a safe, efficient wireless power transfer that completely removes the need for wall outlets.

In practice, the QSCR from Disney Research takes the form of a copper pole situated in the center of a room with the walls, ceiling, and floor clad in aluminum. This copper pole isn’t continuous from floor to ceiling – it’s made of two segments, connected by capacitors. When enough RF energy is dumped into this pole, power can be extracted from a coil of wire. The video below does a good job of walking you through the setup.

As with all wireless power transmission schemes, there is the question of safety. Using finite element analysis, the Disney team found this room was safe, even for people with pacemakers and other implanted electronics. The team successfully installed lamps, fans, and a remote-controlled car in this room, all powered wirelessly with three coils oriented orthogonally to each other. The discussion goes on to mention this setup can be used to charge mobile phones, although we’re not sure if charging a phone in a Faraday cage makes sense.

motherbox-charging-phone-squareIf the project from Disney research isn’t enough, here’s the MotherBox, a completely unrelated Indiegogo campaign that was launched this week. This isn’t just any crowdfunding campaign; this work comes straight out of Columbia University and has been certified by Arrow Electronics. This is, by all accounts, a legitimate thing.

The MotherBox crowdfunding campaign promises true wireless charging. They’re not going for a lot of power here – the campaign only promises enough to charge your phone – but it does it at a distance of up to twenty inches.

At the heart of the MotherBox is a set of three coils oriented perpendicular to each other. The argument, or sales pitch, says current wireless chargers only work because the magnetic fields are oriented to each other. The coil in the phone case is parallel to the coil in the charging mat, for instance. With three coils arranged perpendicular to each other, the MotherBox allows for ‘three-dimensional charging’.

Does the MotherBox work? Well, if you dump enough energy into a coil, something is going to happen. The data for the expected charging ranges versus power delivered is reasonably linear, although that doesn’t quite make sense in a three-dimensional universe.

Is it finally time to get rid of all those clumsy wall outlets? No, not quite yet. The system from Disney Research works, but you have to charge your phone in a Faraday cage. It would be a great environment to test autonomous quadcopters, though. For MotherBox, Ivy League engineers started a crowdfunding campaign instead of writing a paper or selling the idea to an established company. It may not be time to buy a phone case so you can charge your phone wirelessly at Starbucks, but at least people are working on the problem. This time around, some of the tech actually works.

Continue reading “Suddenly, Wireless Power Transmission Is Everywhere”

33C3: Dissecting 3G/4G Phone Modems

[LaForge] and [Holger] have been hacking around on cell phones for quite a while now, and this led to them working on the open cellphone at OpenMoko and developing the OsmocomBB GSM SDR software. Now, they are turning their sights on 3G and 4G modems, mostly because they would like to use them inside their own devices, but would also like to make them accessible to the broader hacker community. In this talk at the 33rd Chaos Communications Congress (33C3), they discuss their progress in making this darkest part of the modern smartphone useful for the rest of us.

This talk isn’t about the plug-and-play usage of a modern cell-phone modem, though, it’s about reprogramming it. They pick a Qualcomm chipset because it has a useful DIAG protocol, and in particular choose the Quectel EC20 modem that’s used in the iPhone5, because it makes the DIAG stream easily available.

Our story begins with a firmware upgrade from the manufacturer. They unzipped the files, and were pleasantly surprised to find that it’s actually running Linux, undocumented and without the source code being available. Now, [LaForge] just happens to be the founder of gpl-violations.org and knows a thing or two about getting code from vendors who use Linux without following the terms and conditions. The legal story is long and convoluted, and still ongoing, but they got a lot of code from Quectel, and it looks like they’re trying to make good.

Qualcomm, on the other hand, makes the Linux kernel source code available, if not documented. (This is the source on which Quectel’s code is based.) [LaForge] took over the task of documenting it, and then developing some tools for it — there is more going on than we can cover. All of the results of their work are available on the wiki site, if you’re getting ready to dig in.

Continue reading “33C3: Dissecting 3G/4G Phone Modems”

ESP8266 BASIC Sets Up A Web Remote In No Time

One of the sticking points for us with our own Internet of Things is, ironically, the Internet part. We build hardware happily, but when it comes time to code up web frontends to drive it all, the thrill is gone and the project is only half-done.

Including some simple web-based scripting functionality along with the microcontroller basics is one of the cleverest tricks up ESP8266 BASIC’s sleeves. BASIC author [mmiscool] puts it to good use in this short demo: a complete learning IR remote control that’s driven through a web interface, written in just a few lines of BASIC.

Note that everything happens inside the ESP8266 here, from hosting the web page to interpreting and then blinking back out the IR LED codes to control the remote. This is a sophisticated “hello world”, the bare minimum to get you started. The interface could look slicker and the IR remote could increase its range with more current to the LED, but that would involve adding a transistor and some resistors, doubling the parts count.

For something like $10 in parts, though, this is a fun introduction to the ESP and BASIC. Other examples are simpler, but we think that this project has an awesome/effort ratio that’s hard to beat.

The Best Conference Badge Of 2017 Is A WiFi Lawn

It’s February, conference season hasn’t even started yet, and already there’s a winner of the best electronic badge of the year. For this year’s MAGfest, [CNLohr] and friends distributed 2,000 ESP8266-based swag badges.

These custom #badgelife badges aren’t. Apparently, MAGFest wouldn’t allow [CNLohr] to call these devices ‘badges’. Instead, these are ‘swadges’, a combination of swag and badges.  On board theses swadges is an ESP-12, a quartet of RGB LEDs, and buttons for up, down, left, right, A, B, Select, and Start. The swadge is powered by two AA batteries (sourced from Costco of all places), and by all accounts the badge was a complete success.

[CNLohr] is one of the great ESP8266 experts out there, and one of the design goals of this badge is to have all of these swadges communicate over raw WiFi frames. This turned out to be a great idea – using normal WiFi infrastructure with two thousand badges saturated the spectrum. The control system for was simply three badges, one per WiFi channel, that tells all the badges to change the color of the LEDs.

The swadge was a complete success, but with a few hundred blinkey glowey WiFi devices, you know [CNLohr] is going to come up with something cool. This time, he turned his lawn into a rave. About 175 swadges were laid out on the lawn, all controlled by a single controller swadge. The color of the LEDs on each swadge in the yard changes in response to the WiFi signal strength. By swinging the controller badge around his head, [CNLohr] turned his yard into a disco floor of swirling blinkieness. It looks awesome, although it might not visualize WiFi signals as well as some of [CNLohr]’s other ESP hacks.

This is a fantastic build and was well received by everyone at MAGFest. Be sure to check out the videos below, they truly show off the capabilities of this really cool piece of wearable hardware.

Continue reading “The Best Conference Badge Of 2017 Is A WiFi Lawn”