Clamps, Cauls, And The Mother Of Invention

If there’s one thing you need in a woodshop, it’s more clamps. There are bar clamps, pipe clamps, spring clamps, and trigger clamps, but for one task in the workshop, no clamp does the job just right. Gluing up panels – a few wide pieces of wood joined on edge – either requires more clamps than you have or cauls, devices that press down on the boards vertically while the clamps press the board together horizontally.

[Andrew Klein] has just invented a new type of clamp for this task, proving once again that not all problems are solved, and there’s still some places where an invention can pop out of mid-air.

The new clamps are a modification to traditional bar clamps that allow for two clamps to interlock. On each of the ‘working’ ends of the clamps, there are two adjustment handles. The first screws the clamp horizontally, just like any bar or pipe clamp. The second adjustment handle moves a bearing up and down. When this bearing meshes with a riser on the mating end of another clamp, the two clamps are pressed together vertically.

The new clamps are effectively clamps and cauls, able to push material together from side to side and top to bottom. The new clamps work, too. In the video below, you can see [Andrew] gluing up a panel. When the vertical adjustment wheel is loosened, the boards come apart vertically. When the vertical adjustment wheel is tightened, the boards are perfectly in line with each other, both edge to edge and face to face.

Continue reading “Clamps, Cauls, And The Mother Of Invention”

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.”

Augmenting Human Vision With Polarimetric Cameras

Light is just a wave, and the wavelength of light determines its color and determines if it can cook food like microwaves, or if it can see through skin like x-rays. There’s another property of waves human’s don’t experience much: polarization, or if the light wave is going up and down, side to side, or anywhere in between.

[David Prutchi]’s project for the Hackaday Prize was like many projects – a simple, novel idea that’s easy and relatively cheap to implement. It’s a polarimetric camera meant to see what humans can’t. By seeing the world in polarized light, the DOLPi can see landmines, cancerous tissue, and air pollution using only a Raspberry Pi and a few Python scripts He gave a talk at this year’s Hackaday SuperConference about polarization cameras and the DOLPi project. After enjoying the video, join us after the break for more details.


Continue reading “Augmenting Human Vision With Polarimetric Cameras”

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.

Capture The Flag With Lightsabers

There’s a great game of capture-the-flag that takes place every year at HITCON. This isn’t your childhood neighborhood’s capture-the-flag in the woods with real flags, though. In this game the flags are on secured servers and it’s the other team’s mission to break into the servers in whatever way they can to capture the flag. This year, though, the creators of the game devised a new scoreboard for keeping track of the game: a lightsaber.

In this particular game, each team has a server that they have to defend. At the same time, each team attempts to gain access to the other’s server. This project uses a lightsaber stand that turns the lightsabers into scoreboards for the competition at the 2015 Hacks In Taiwan Conference. It uses a cheap OpenWRT Linux Wi-Fi/Ethernet development board, LinkIt Smart 7688 which communicates with a server. Whenever a point is scored, the lightsaber illuminates and a sound effect is played. The lightsabers themselves are sourced from a Taiwanese lightsabersmith and are impressive pieces of technology on their own. As a bonus the teams will get to take them home with them.

While we doubt that this is more forced product integration advertisement from Disney, it certainly fits in with the theme of the game. Capture-the-flag contests like this are great ways to learn about cyber security and how to defend your own equipment from real-world attacks. There are other games going on all around the world if you’re looking to get in on the action.

Continue reading “Capture The Flag With Lightsabers”

Critical And Creative Thinking In A Hacker’s Work

Imagine yourself in a labyrinth, vast – endless for all you know. You wander the corridors, stumbling upon a closed door. You could invest some effort into unlocking it to find out what’s inside. Pretty soon you realize there are many more doors in the maze and you wish you had some sort of tool to help you see what’s behind them, and whether they are worth the effort.

If the labyrinth is a metaphor for your life or your work, then you should know that there is such a tool, and its name is Critical Thinking. It can save you a lot of time and money, sometimes your health and even your life. It can help you optimize or debug your projects, and even boost your creativity.

Why Should We Think Critically?

Even though many equate it with criticism, critical thinking is not a negative process. It keeps you open to new ideas, and at the same time it acts as a firewall against harmful ideological, political, or marketing delusions and scams, and especially against your own self-delusions. It suggests how to think, not what to think.

You can find a lot of definitions of critical thinking on the internet, and most of them are worth reading. I like the definition which [Richard Paul] gave in an informal presentation: “Critical thinking is thinking about your thinking, while you’re thinking, in order to make your thinking better”.

In a hacker’s work, critical thinking is very useful as a defense mechanism against self-delusion in problem solving, and dead ends in creative process. If you want to be a creative hacker, you have to think critically. It is even more severe in science, where the process called scientific skepticism (also spelled scepticism) involves systematic doubt – questioning every single step in scientific activity. It results in scientific method, which is not just doubt, but a set of methods for examining reality.

Here is an example in which critical thinking takes place and saves not only time and effort, but also leads to a creative result. When you start creating a concept for a new project, you get an idea and you probably like it from the beginning. That’s good, as it keeps you motivated, but the first idea is not necessarily the best one, and a process of trying out alternatives often leads to a better solution. If you know how to use critical thinking to attack your initial concept, it can help you get a better idea. To do so, you have to restart from the beginning many times, trying out a different approach each time. You will probably not have a perfect concept until you have made several modifications, some of which assume you forget everything up to that point and start fresh. It may seem like a waste of time, but it is quite the opposite – your initial concept is crucial for the final value of the project, and it is better to modify it in the early stage of the process.

Don’t despair even if you have to do it when you are already halfway through the project. In the early days of the computer era, data storage was not very safe and backing up data was slow and expensive. On several occasions I had lost all of my data and had to start from scratch. Yet every time, I was happy that it happened like that, as in redoing it I could add a new quality I hadn’t thought of before.

How to Think in a Creative Way

Critical thinking is a learned skill, that can be reinforced by habit. The same is valid for logical thinking, but we shall not discuss it here, as most hackers have already practiced logic over many years, and they surely know how to apply it in their activity. You can say that the logic is a necessary part of critical thinking.

brain_2It is hard to imagine debugging, servicing or any other form of problem solving without critical thinking, but if you are creating a project from scratch, you also have to think creatively. Creative thinking is different from critical thinking, but they share a strong bond. The creative process needs to have a critical check of ideas, and on the other hand, creative thinking can help you imagine all the possibilities when you need to pinpoint a problem.

Creative thinking is more motivating and generally brings more pleasure than critical thinking, and you can use it even when you are relaxed. While daydreaming, but still holding the problem in the back of your head, you may suddenly get a burst of creative energy and arrive at an “Aha” moment. Seems like a naive game, but it can be empowering.

If you hang around artists and designers, you can observe from how many different angles the creative process can be approached. Some of it can be applied to the hacker’s domain as well. You might, for example, start composing a new project that does not have a defined function; imagine the shape you like, define its dimensions, color, even draw it or make a 3D model. Then ask yourself – what would I like that shape to do? This inverse process can result in some pretty cool projects.

You will notice that many creative thinkers with have a small notebook on hand (not a computer, but an ordinary copybook) to write down ideas the moment they appear, so that they can be examined later. I knew a painter who held an exhibition which had no actual paintings, but a hundred of such palm-sized papers with rough sketches.

Who is a Good Critical Thinker?

Do you think that you can think critically? Let’s say someone wants to find a specific place in an unknown city. If you can give them a good, eloquent explanation, which helps them find it, you probably have the gift of critical thinking. This ability means that you can “observe” your own explanation through someone else’s mind, and the same “parallel processing” engine is used for critical thinking. If you can deliver that explanation in a witty and imaginitive way, then you are not only a good critical thinker, but also a good creative thinker.

It is much easier to recognize non-critical thinkers. They egoistically take their facts as the only relevant ones, seeing things in binary form: black or white, right or wrong, clever or dumb and so on – rather than recognizing all alternatives. They never doubt, especially when evaluating their own creations: “My idea is brilliant, because I’m a genius”.

This attitude is the worst possible basis for critical thinking; the bad news is that most likely none of us is a genius, but the good news is that even a real genius is hardly ever sure that their ideas are good. Being a genius does not mean having ideas without trying hard, but quite the opposite. So, if someone always admires their own creations and doesn’t ever doubt them, he is no genius – he simply doesn’t match the milieu.

There is one more parameter which can help us evaluate someone’s thinking qualities. If he believes that astrology, dowsing, and similar techniques are based on true facts, he is probably not very familiar with critical thinking. Not familiar enough to be a hacker that builds cool stuff anyway.

How to Become a Critical and Creative Thinker

So, how do you think we should evaluate new ideas? However appealing they might seem, they should be treated as 50/50, good/bad ab initio. Some people will tell you that’s being optimistic, as 9 out of 10 initially bright ideas turn out to be worthless. It would be prudent to expose your idea to scrutiny. Consult with someone or publish it online and read the comments, but remember to always take public commentary with a grain of salt.

Critical thinking is an unnatural act. We evolved to survive in a cruel world, not to play around with our hacks. To make things worse, we evolved in a herd, which means that we intuitively respect the authority of the leader. But we also have to be creative, so we have to respect ourselves first. Finding the right dose of self-respect is a crucial thing in creative work. Too little self-respect could destroy our motivation and creativity, and too much will interfere with our ability to estimate the value of our ideas, and can easily result in investing time, money and effort in worthless projects.

Noone is born a critical thinker, but almost anyone can become one. Think about what [Edward de Bono] said:

“The need to be right all the time is the biggest bar to new ideas. It is better to have enough ideas for some of them to be wrong than to be always right by having no ideas”.

Feeling Force Through A Servo

Using force sensors it’s possible to chain a series of servo motors together so they not only move as one, but can detect and simulate the force that another feels. Which means if you built up a tele-presence robot with a servo-driven robotic arm, using the local control arm you could feel exactly what it feels like on the other side!

[Wolf Tronix] saw our post last week on Series Elastic Actuators, and shared what he was working on in the comments. As one tipster pointed out — it deserves its own feature!

He’s been designing his own Real Time Motion Control System and Mini Servo board, or RTMCS2 for short and shown off a short video of it in action. By adding a force feedback sensor to each servo, not only do they copy each other, but if you put a load on one, you’ll feel it on the others!

Continue reading “Feeling Force Through A Servo”