Philips Says: No Internet Of Things For You!

The 900-pound gorilla in the corner of the Internet of Things (IoT) hype that everyone is trying to ignore is interoperability. In the Internet of Internets (IoI) everything works on a few standards that are widely accepted: IP and HTML. The discrepancies are in the details and the standards wars are in the past. Websites are largely interoperable. Not so in the wild-west ethos of the IoT.

Philips makes a line of ZigBee-enabled RGB lightbulbs that took the enthusiast community by storm. And initially, Philips was very friendly to other devices — it makes a ZigBee-to-WiFi bridge that would let you control all of your ZigBee-based lights, regardless of their manufacturer, from your phone. Until now.

Philips has just rolled out a “Friends of Hue” certification process, and has since pushed out a firmware update where their Hue bridges stop interoperating with non-certified devices. You can read Philips’ version of the story here.

Philips Locks Out 3rd Party ZigBee Hardware

The hub shown on the right is what's being locked down.
The hub shown on the right is what’s being locked down.

The short version is that, ZigBee standards be damned, your future non-Philips lights won’t be allowed to associate with the Philips bridge. Your GE and Osram bulbs aren’t Friends of Hue. DIY RGB strips in your lighting mix? Not Friends of Hue. In fact, you won’t be surprised to know who the “Friends of Hue” are: other Philips products, and Apple. That’s it. If you were used to running a mixed lighting system, those days are over. If you’re not on the friends list, you are an Enemy of Hue.

Their claim is that third party products may display buggy behavior on a Philips network, and that this loads up their customer-response hotlines and makes people think that Philips is responsible. Of course, they could simply tell people to disable the “other” devices and see how it works, putting the blame where it belongs. Or they could open up a “developer mode” that made it clear that the user was doing something “innovative”. But neither of these strategies prevent consumers from buying other firms’ bulbs, which cost only 30-50% of Philips’ Hue line.

While Philips is very careful to not couch it as such, the Friends of Hue program really looks like an attempt to shut out their competitors; Philips got an early lead in the RGB LED game and has a large share of the market. As they say themselves in their own press release “Today these 3rd party bulbs represent a minimal fraction of the total product connected to our bridges so the percentage of our users affected is minimal.” And they’d like to keep it that way, even though the people they’re hurting are probably their most vocal and dedicated customers.

Who owns the IoT?

This Techdirt response to the situation is positively apoplectic, and there’s been the predictable flood of tirades in the comments on Slashdot. [Joel Ward], who in January was celebrating the ability to afford enough colored lights to appease his son is not so happy anymore.

And while we, with our manual light switches, laugh comfortably at the first-world problems of Hue consumers, we have to ask ourselves whether we’re next. Today they come for our RGB lightbulbs, but tomorrow it might be our networked toasters. A chilling thought!

Snark aside, the IoT brings two of the saddest realities of the software world into your home appliances: Where there’s code, there’s vulnerabilities, and when you can’t control the code yourself you aren’t really in control. You may own the lightbulb, but you’re merely licensing the firmware that runs it. The manufacturer can change the rules of the game, or go out of the product line entirely, and you’re high and dry. What can you do? Pull out your JTAG debugger.

Of course it’s insane to suggest that everyone needs to become an embedded-device firmware hacker just to keep their fridge running. As we’ve written before, we need to come up with some solution that puts a little more control in the hands of the ostensible owners of the devices, while at the same time keeping the baddies out. We suggest a press-to-revert-firmware button, for instance. When Philips pushes a non-consumer-friendly upgrade, you could vote with your fingertips — but then you’d miss out on bug fixes as well. Maybe it’s better to just give in an learn to love Windows 10.

There are no easy solutions and no perfect software. The industry is still young and we’ll see a lot of companies staking out their turf as with any new technology. It seems to us that IoT devices leave consumers with even less choice and control than in the past, because they are driven by firmware that’s supposed to be invisible. It’s just a lightbulb, right?

What do you think? Any ideas about how to put the power back in the hands of the “owner” of the device without everyone’s refrigerators becoming botnet zombies? Let us know in the comments.

Thanks [djxfade] for the tip!

Edit: Shortly after we ran this piece, Philips backed down:

“We underestimated the impact this would have upon the small number of our customers who currently use uncertified lights from other brands in the Philips Hue system. We have decided to continue to enable our customers who wish to integrate these uncertified products within their Philips Hue system.”

Calculus Is Not As Hard As You Think

“Everything should be made as simple as possible, but not simpler.”

                                                                                                Albert Einstein

Our journey begins with a fictitious character whom we shall call [John Doe]. He represents the average professional worker who can be found in cities and towns across the world. Most everyday, [John] wakes up to his alarm clock and drives his car to work. He takes an elevator to his office and logs on to his computer. And he does these things without the slightest clue of how any of them work. While he may be interested in learning about the inner workings of the machines and devices he uses on a daily basis, [John] does not have the time and energy to invest in doing so. To him cars, elevators, computers and alarm clocks are completely different and complicated machines with hardly any similarities. It is simply not possible to understand how each of them work without years of study.

The regular readers of Hackaday might see things a bit differently than our [John Doe]. They would know that the electric motor that moves the elevator is very similar to the alternator in his car. They would know that the PLC that controls the electric motor that moves the elevator is very similar to the computer he logs in to. They would know that on a fundamental level, the PLC, alarm clock and computer are all based on relatively simple transistor theory. What is a vast complicated mess to [John Doe] and the average person is nothing but the use of simple mechanical and electrical principles to the hacker. The complication resides in how those principles are applied. Abstracting the fundamental principles from complicated ideas allows us to simplify and understand them in a way that pays homage to Einstein’s off-the-cuff advice, quoted above.

Zeno of Elea 430 - 490BC
Zeno of Elea 490 – 430BC

Many of you look at The Calculus the same way [John Doe] looks at machines. You see the same vast, complicated mess that would require a great deal of time and effort to understand. But what if I told you that calculus shares a commonality in much the same way many different machines do. That there are a few basic principles that anyone can understand, and once you do, it will unlock a new way of looking at the world and how it works.

The average calculus course book is a thousand pages long. The [John Does] of the world will see a thousand difficult things to learn. The hacker, however, will see two basic principles and 998 examples of those principles. In this series of articles, I’m going to show you what these two principles – the derivative and the integral – are.  Based on work done by Professor [Michael Starbird] of The University of Texas at Austin for The Teaching Company, we’ll use everyday examples that anyone can understand. The Calculus reveals a particular beauty of our world — a beauty that arises when you’re able to view it dynamically as opposed to statically. It is my hope to give you this view.

Before we get started, it pays to understand a little of the history of how The Calculus came about, and how its roots lie in the very careful analysis of change and motion.

Zeno’s Paradox

Zeno of Elea was a philosopher in the fourth century BC. He posed several subtle but profound paradoxes, two of which would eventually give rise to The Calculus. It would take over 2,000 years for man’s ingenuity to solve the paradoxes. As you can imagine, it wasn’t easy. The difficulties largely revolved around the idea of infinity. How do you deal with infinity from a mathematical perspective? Sir Isaac Newton and Gottfried Leibniz would go on to independently invent The Calculus in the mid 17th century, finally putting the paradoxes to rest. Let us take a close look at them and see what the fuss was all about.

The Arrow

zeno_03Consider the arrow flying through the air. We can say with reasonable and competent assurance that the arrow is in motion. Now consider the arrow at any given instant in time. The arrow is no longer in motion. It is at rest. But we know the arrow is in motion, how can it be at rest! This is the paradox. It might seem silly, but it’s a very challenging concept to deal with it from a mathematical point of view.

We’ll find out later that what we’re really dealing with is the concept of an instantaneous rate of change, which we will elaborate on with the idea of one of the two principles of calculus – the derivative. It will allow us to calculate the velocity of the arrow at an instant in time – a monumental feat that took over two millennia for mankind to reach.

The Dichotomy

zeno_02Let us consider the same arrow again. This time let’s say the arrow is coming at us. Zeno says we don’t have to move, because it can never hit us. Imagine that as the arrow is in flight, it has to cover half the distance between the bow and the target. Once it reaches the half way point, it has to do this again – move half the distance between it and the target. Imagine that we keep doing this. The arrow is constantly moving halfway between its origin and target. By doing this, the arrow can never hit us! In real life, the arrow does eventually hit the target, leaving us with the paradox.

As with the first paradox, we’ll see how to resolve this issue with one of the two principles of calculus – the integral. The integral allows us to deal with the concept of infinity as a mathematical function. It is an extremely powerful tool to scientists and engineers.

The Two Principles of Calculus

The two main ideas of The Calculus will be demonstrated by using them to solve Zeno’s paradoxes.

  • The Derivative – The derivative is a technique that will allow us to calculate the velocity of the arrow in “The Arrow” paradox. We will do this by looking at positions of the arrow through incrementally smaller amounts of time, such that the precise velocity will be known when the time between measurements is infinitely small.
  • The Integral – The integral is a technique that will allow us to calculate the position of the arrow in the Dichotomy paradox.  We will do this by looking at velocities of the arrow through incrementally smaller amounts of time, such that the precise position will be known when the time between measurements is infinitely small.

It’s not difficult to notice some similarity between the derivative and integral. Both values are calculated by examining the arrow with increasingly finer time intervals. We will learn later that the integral and derivative are in fact two sides of the same ceramic capacitor.

Why Should I Learn Calculus?

We are all familiar with Ohm’s Law, which relates current, voltage and resistance in a simple equation. However, let us consider “Ohm’s Law” for a capacitor. A current flow through a capacitor is dependent on the voltage across it and time. Time is the critical variable here, and must be taken into account in any dynamic event. Calculus lets us understand and measure how things change over time. In the case of a capacitor, the current through it is equal to the capacitance multiplied by volts per second, or: i = C(dv/dt) where:

  • i  = current (instantaneous)
  • C = Capacitance in Farads
  • dv = change in voltage
  • dt = change in time

zeno_04In this circuit, there is no current flow through the capacitor. The volt meter will read the battery voltage and the ammeter will read zero amps. So long as the potentiometer is not moved, the voltage on the meter will be steady. Our equation would say that i = C(0/dt) = 0 amps. But what happens when we adjust the potentiometer? Our equation says there will be a resulting current flow in the capacitor. This current flow will be dependent on the rate the voltage changes, which is tied to how fast we move the potentiometer.

zeno_05

These graphs show the casual relationships between the voltage across the capacitor, the current through the capacitor and the speed we turn the potentiometer. It starts with the potentiometer turning slowly. An increase in speed results in a faster changing voltage which in turn results in a dramatic increase in current. At all points, the current through the capacitor is proportional to the rate of change of the voltage across it.

Calculus, or more specifically the derivative,  gives us the ability to quantify this rate of change, so that we can know the exact value of current running through the capacitor at any given instant in time. The same way we can know the instantaneous velocity of Zeno’s arrow. It is an incredibly powerful tool to have in your hacking arsenal.

In the next article, we will go into deep detail of how we calculate the derivative using a modern but still simple representation of Zeno’s “The Arrow” paradox and some basic algebra. A following article will do the same for the integral using the Dichotomy paradox. Then we will tie things up by showing how the two are related, something known as The Fundamental Theorem of Calculus.

Hackaday Links: December 13, 2015

So you’ve been rocking a tin foil hat for years now, and people have finally gotten used to your attire and claims that fluoridated water is a government mind control experiment. This holiday, how about something a little more stylish? Yes, it’s a Kickstarter for the World’s First Signal Proof Headwear. This fashionable beanie or cap protects you from harmful electromagnetic rays. Next time you shoot an eighteen minute long YouTube video of a wheezing rant about chemtrails, look fashionable with Shield – the world’s first stylish signal proof hat.

That last tip came to us from a Crowdfunding marketing agency. That means money was exchanged for the purposes of marketing a modern tin foil hat.

[Mike] has an old IBM 5155, the ‘luggable’ computer with design cues taken from the first Compaq. With an Ethernet adapter and a little inspiration, He was able to get this old computer to load the Hackaday retro edition.

[gyrovague] has a Chromecast that’s a bit janky. When it comes to electronics, strangeness means heat. The solution? A heat sink for the Chromecast. You don’t even need a proper heat sink for this one – just epoxy a big ‘ol transformer to the aluminum plate in the Chromecast.

This year, Keysight gave away a pile of test and measurement gear to the i3Detroit hackerspace. Keysight is doing it again, with a grand prize of around $60,000. Entries close on the 15th. Protip: you, personally, don’t want to win this for tax reasons. A non-profit does.

The Internet recently caught wind of a satellite modem being sold by Sparkfun. It’s $250 for the module, with a $12/month line rental, and each 340 byte message costs $0.18 to receive. Yes, it’s cool, and yes, it’s expensive. If you ever need to send a message from the north pole, there you go.

Need to remove the waterproof coating from LED strips? Don’t use a knife, use a Dremel and a wire brush.

Hacklet 88 – Projector Projects

Everyone loves a big screen TV. Back in the old days, anything over 27 ” was considered big. These days if you’re not sporting at least 50″, you’ll end up with display envy. One thing hasn’t changed though, those who want to go really, really big get into projectors. Hacking and projectors seem to go hand in hand. Anyone else remember those old DIY projection setups where the user would put their TV in a box upside down? This week’s Hacklet is all about projector hacks!

hushWe start with [Chaz] with Projector Hush Box . [Chaz] had a good projector, but still found himself with a problem. Projectors generate a lot of heat, which is dissipated via a fan. For whatever reason, projector companies seem to pick the loudest fans available. [Chaz’s] solution is to put the projector inside a box. Done right, this makes for a quiet projector. Done wrong, it makes an oven. [Chaz] projector hasn’t caught fire yet, so we think he did it right. Two quiet and efficient PC fans direct air through the box, and around baffles which keep the noise down. An anti-reflective coated glass window lets the light out but keeps the noise in. Sound deadening foam helps cut the sound down even further.

led-projNext up is [ric866] with 100w LED projector conversion. The killer with projectors these days are the bulbs. In some cases it’s more cost-effective to buy a new projector than to replace the bulb in an aging one. That’s how [ric866] ended up with a pair of old NEC projectors – one with a working bulb, and one without. Bulbs for this model aren’t cheap at £100. [ric866] found a cheap replacement in a 100 Watt LED. The LED in question only cost £8.99 from everyone’s favorite auction site. LEDs may be efficient, but anyone who’s played with powerful LEDs can tell you they still get hot. [ric866] had to cut up the projector’s case a bit to fit in a heat sink and fan. He also had to spend some time bypassing the various case interlock switches. The final products color calibration looks to be a bit off, but not too shabby for a quick mod!

baffle[Tom_VdE] is serious about recycling. He isn’t one to let an old laptop go to waste when it can be turned into a projector! Remember the “TV in a box” kit we mentioned up in the title? This is the modern version of that same idea. [Tom] tore down the laptop’s LCD and placed it in a CRT monitor case with the appropriate lenses. A setup like this needs length, and focus adjustments. [Tom] managed all that by building a collapsible baffle out of plywood. A build like this needs a lot of light, so [Tom] is using a 100 Watt LED (or two). A water cooling system will keep the LED’s from melting down. [Tom] is still in the prototype phase, but we can’t wait to see his first movie night with this upcycled laptop.

sensorcalFinally, we have [Alex] who built Automatic projector calibration, project #161 on Hackaday.io. [Alex] took his inspiration from [Johnny Chung Lee] to build a system which can map a projector to any angle, size, or position. The secret is phototransistors embedded in the corners of a rectangular piece of foamboard. An Arduino reads the phototransistors while the projector runs a calibration routine. [Alex] switched over to a scanning line from [Johnny’s] original binary pattern. The scan isn’t quite as fast as the binary, but it sure looks cool. Once the positions of the sensors are known, it’s just a matter of mapping the entire screen to a smaller piece of real estate. Toss in a few neat transitions, and you’ve got an awesome demo.

If you want to see more projector projects, check out our new projector project list! If I missed your project, don’t be shy, just drop me a message on Hackaday.io. That’s it for this week’s Hacklet. As always, see you next week. Same hack time, same hack channel, bringing you the best of Hackaday.io!

Hackaday Explains: Li-Fi & Visible Light Communications

A new way to transmit data is coming that could radically change the way that devices talk to each other: LiFi. Short for Light Fidelity, LiFi uses visible light to send data, creating the link between router and device with invisible pulses of light. This type of Visible Light Communication (VLC) uses something that is present in pretty much every room: an LED lightbulb.

What is LiFi?

Li-Fi sounds like the an engineer’s fevered dream: it is fast, cheap, secure and simple to implement. Speeds of up to 10Gbps have been demonstrated in the lab, and products are now available that offer 10Mbps speed. It is cheap because it can use a modified LED lightbulb. It is secure because it only works where the light is visible: step out of the room and the signal is lost. It is simple to implement because it uses an existing technology: LEDs.

The basis of the technology is in turning the LED light on and off very fast. By switching an LED on and off millions of times a second, you can create a data signal that can be detected by a sensor, but which is invisible to the human eye. At the other end, another LED detects these pulses, and can send light pulses back in response, creating a bi-directional link. If you combine this with wired Ethernet or a WiFi network, you have an awesome combination: an Internet connection that uses visible light for the last link.

Continue reading “Hackaday Explains: Li-Fi & Visible Light Communications”

Embed With Elliot: Debounce Your Noisy Buttons, Part II

If you’ve ever turned a rotary encoder or pushed a cursor button and had it skip a step or two, you’ve suffered directly from button bounce. My old car stereo and my current in-car GPS navigator both have this problem, and it drives me nuts. One button press should be one button press. How hard is that to get right?

In the last session of Embed with Elliot, we looked into exactly how hard it is to get right and concluded that it wasn’t actually all that bad, as long as you’re willing to throw some circuitry at the problem, or accept some sluggishness in software. But engineers cut corners on hardware designs, and parts age and get dirty. Making something as “simple” as a button work with ultra-fast microcontrollers ends up being non-trivial.

And unsurprisingly, for a problem this ubiquitous, there are a myriad of solutions. Some are good, some are bad, and others just have trade-offs. In this installment, we’re going to look at something special: a debouncer that uses minimal resources and is reasonably straightforward in its operation, yet which can debounce along with the best of ’em.

In short, I’ll introduce you to what I think is The Ultimate Debouncer(tm)! And if you don’t agree by the end of this article, I’ll give you your money back.

Continue reading “Embed With Elliot: Debounce Your Noisy Buttons, Part II”

Aircraft Hackchat This Thursday

This Thursday, December 10th at 5pm PST we will be hosting a live HackChat about aircraft. If it’s man-made and it files, it’s on topic! Full scale and model planes, helicopters, multicopters, gyros, blimps and gliders will be on the agenda. Our host this week will be Hackaday Community Editor [Adam Fabio] who is also the author of this well-written blog entry. In addition to being an electrical engineer, [Adam] brings 30 years of experience as a Radio Control model enthusiast. Over the years he’s worked as a professional R/C Blimp Pilot for the New York Islanders Hockey team and as an aerial photographer. On the full-scale aircraft side, he’s designed radar and air traffic control software used to keep the skies safe over land and sea.

Aircraft HackChat starts Thursday at 5pm PST (here’s a timezone cheat sheet if you need it). Participating in this live chat is very simple. Those who are already part of the Hacker Channel can simply click on theTeam Messaging button. If you’re not part of the channel, just go to the hacker Channel page, scroll to the bottom of the “TEAM” list in the left sidebar and click “Request to join this project”.

HackChat takes place in the Hacker Channel every few weeks and is a friendly place to talk about engineering and the projects you’re working on.