Configure ESP8266 Wifi With WiFiManager

There’s no doubt that the ESP8266 has made creating little WiFi widgets pretty easy. However, a lot of projects hard code the access point details into the device. There’s a better way to do it: use the WiFiManager library. [Witnessmenow] has a good tutorial and a two-minute video (which you can see below).

Hard coding is fine if you are just tinkering around. However, if you are going to send your device away (or even take it with you somewhere) you probably don’t want to reprogram it every time you change access points. This problem is even worse if you plan on a commercial product. WiFiManager does what a lot of commercial devices do. It initially looks like an access point. You can connect to it using a phone or other WiFi device. Then you can configure it to join your network by setting the network ID, password, etc.

Continue reading “Configure ESP8266 Wifi With WiFiManager”

Retrotechtacular: How Old Is The Remote?

A few weeks ago we covered a (probably) bogus post about controlling a TV with the IR from a flame. That got us thinking about what the real origin of the remote control was. We knew a story about the 38 kHz frequency commonly used to modulate the IR. We’ve heard that it was from sonar crystals used in earlier sonic versions of remotes. Was that true? Or just an urban myth? We set out to find out.

Surprise! Remotes are Old!

If you are a younger reader, you might assume TVs have always had remotes. But for many of us, remotes seem like a new invention. If you grew up in the middle part of the last century it is a good bet you were your dad’s idea of a remote control: “Get up and turn the channel!” Turns out remotes have been around for a long time, though. They just weren’t common for a long time.

If you really want to stretch back, [Oliver Lodge] used a radio to move a beam of light in 1894. In 1896, [Marconi] and some others made a bell ring by remote control. [Tesla] famously showed a radio-controlled boat in 1898. But none of these were really remote controls like we think of for a television.

mysteryOf course, TV wouldn’t be around for a while, but by the 1930’s many radio manufacturers had wired remotes for radios. People didn’t like the wires, so Philco introduced the Mystery Control in 1939. This used digital pulse coding and a radio transmitter. That’s a fancy way of saying it had a dial like an old telephone. As far as we can tell, this was the first wireless remote for a piece of consumer equipment.

Continue reading “Retrotechtacular: How Old Is The Remote?”

Robot Hand Goes Wireless

We can’t decide if [MertArduino’s] robotic hand project is more art or demonstration project. The construction using springs, fishing line, and servo motors isn’t going to give you a practical hand that could grip or manipulate anything significant. However, the project shows off a lot of interesting construction techniques and is a fun demonstration for using nRF24L01 wireless in a project. You can see a video of the contraption, below.

A glove uses homemade flex sensors to send wireless commands to the hand. Another Arduino drives an array of servo motors that make the fingers flex. You don’t get fine control, nor any real grip strength, but the hand more or less will duplicate your movements. We noticed one finger seemed poorly controlled, but we suspect that was one of the homemade flex sensors going rouge.

Continue reading “Robot Hand Goes Wireless”

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”