Ask Hackaday: What Are Invariant Representations?

book cover for on intelligence

Your job is to make a circuit that will illuminate a light bulb when it hears the song “Mary Had a Little Lamb”. So you breadboard a mic, op amp, your favorite microcontroller (and an ADC if needed) and get to work. You will sample the incoming data and compare it to a known template. When you get a match, you light the light. The first step is to make the template. But what to make the template of?

“Hey boss, what style of the song do you want to trigger the light? Is it children singing, piano, what?”

Your boss responds:

“I want the light to shine whenever any version of the song occurs. It could be singing, keyboard, guitar, any musical instrument or voice in any key. And I want it to work even if there’s a lot of ambient noise in the background.”

Uh oh. Your job just got a lot harder. Is it even possible? How do you make templates of every possible version of the song? Stumped, you talk to your friend about your dilemma over lunch, who just so happens to be [Jeff Hawkins] – a guy whose already put a great deal of thought into this very problem.

“Well, the brain solves your puzzle easily.” [Hawkins] says coolly. “Your brain can recall the memory of that song no matter if it’s vocal, instrumental in any key or pitch. And it can pick it out from a lot of noise.”

“Yea, but how does it do that though!” you ask. “The pattern’s of electrical signals entering the brain have to be completely different for different versions of the song, just like the patterns from my ADC. How does the brain store the countless number of templates required to ID the song?”

“Well…” [Hawkins] chuckles. “The brain does not store templates like that”. The brain only remembers the parts of the song that doesn’t change, or are invariant. The brain forms what we call invariant representations of real world data.”

Eureka! Your riddle has been solved. You need to construct an algorithm that stores only the parts of the song that doesn’t change. These parts will be the same in all versions – vocal or instrumental in any key. It will be these invariant, unchanging parts of the song that you will look for to trigger the light. But how do you implement this in silicon?

[Read more...]

Ask Hackaday: Help NASA With Their High Altitude Problem

image of hackaday logo on box at high altitude

Unless you’ve been living under a high voltage transformer, you’ve probably heard that NASA has grounded the Space Shuttle fleet. This makes getting stuff to and from the International Space Station slightly more difficult. With the growing need to get small experiments back to the surface quickly and safely, NASA is researching an idea they call Small Payload Quick Return, or SPQR (pdf warning). Basically, they toss the experiment out of the window, use drag to slow it down, and then use a High Altitude High Opening (HAHO) self guiding parafoil to steer the thing down to a predefined location on the surface.

Now, what we’re interested in is the self guided parafoil part, as it takes place in known hacker territory – around 100,000 feet. This is the altitude where most high altitude balloon experiments take place. NASA is throwing a bunch of money and brainpower to research this part of the system, but they’re having problems. Lots of problems.

Stick around after the break and see if you can help, and maybe pick up some ideas on how to steer your next High Altitude Balloon project back to the launch pad.

[Read more...]

The Spooky Nature of Electromagnetic Radiation

image of the face of einstein

Our story begins a little over one hundred years ago in Bern, Switzerland, where a young man employed as a patent clerk went off to work. He took the electric trolley in each day, and each day he would pass an unassuming clock tower. But today was different, it was special. For today he would pose to himself a question – a question whose answer would set forth a fascinating dilemma.

The hands of the clock appeared to move the same no matter if his trolley was stopped or was speeding away from the clock tower. He knew that the electromagnetic radiation which enabled him to see the clock traveled at a finite speed. He also knew that the speed of the light was incredibly great compared to the speed of his trolley. So great that there would not be any noticeable difference in how he saw the hands of the clock move, despite him being at rest or in motion. But what if his trolley was moving at the speed of the reflected light coming from the clock? How would the hands of the clock appear to move? Indeed, they could not. Or if they did, it would not appear so to him. It would appear as if all movement of the clock’s hands had stopped – frozen in an instant of time.  But yet if he looked at the hands of the watch in his pocket, they would appear to move normally. How does one explain the difference between the time of the clock tower versus the time of his watch? And which one was correct?

There was no way for him to know that it would take three years to answer this question. No way for him to know that the answer would eventually lead to the discovery of matter and energy being one and the same. No way to know that he, this underemployed patent clerk making a simple observation, would soon unearth the answer to one of the greatest mysteries that had stumped every mind that came before his – the very nature of time itself.

Now it might have taken Einstein a few years to develop the answer we now know as the Special Theory of Relativity, but it most certainly took him no longer than a few days to realize that Isaac Newton…

must be wrong.

[Read more...]

Ask Hackaday: Who Wants An All DC House?

logo if acdc band

Sometimes when working on a righteous hack, we get goosebumps while watching our code execute faster than we could ever possibly comprehend. Seeing the pixels of the LCD come alive, hearing the chatter of relays and the hum of fans…it’s an amazing thing what electricity can do. And it is equally amazing when you realize that it all started one hundred and thirty five years ago, when [Thomas Edison] changed the world forever with the first practical electric light bulb.

That bulb was lit by a Direct Current – the same thing that runs the computer you’re reading this article on. The same thing that runs many of the hacks you read about here on Hack a Day, and almost all electronic devices in your house. But somewhere in the mix must exist a device that changes the Alternating Current from your wall outlet to the needed DC. Why? Why is it that we transport electricity as AC only to convert it to DC in our homes? You might answer:

“This argument was played out in the War of Currents back in the 1880’s.”

Indeed, it was. But that was a long time ago. Technology has changed. Changed so much to the point that the arguments in the War of Currents might no longer be valid. Join us after the break, where we rehash these arguments, and explore the feasibility of an all DC environment.

[Read more...]

Ask Hackaday: Floating To Space

floating into space book cover

On a cool September morning just west of Sturbridge, Massachusetts, a group of MIT students launched a low-budget high altitude project that would go on to gain global attention. They revealed to the world that with a small weather balloon, a hacked camera, cheap GPS phone and a little luck, you could get pictures that rival those from the Space Shuttle. Their project set forth a torrent of hackers, students, kids and parents the world over trying to copy their success. Many succeeded. Others did not.

At 100,000 feet or about 20 miles up, it’s a brisk 60 degrees below zero. The atmosphere at this height is but a fraction of its density at sea level. Solar radiation rains down like a summer squall, and the view is just short of breathtaking. It seems so agonizingly close to space that you could just reach out and touch it. That one could almost float right on up into orbit.

Sound impossible? Think again. A little known volunteer based company operating out of California is trying to do just this.

[Read more...]

Ask Hackaday: How Did They Shoot Down a Stealth Aircraft?

sketch of f117 fighter flying

It was supposed to be a routine mission for U.S. Air Force Lt. Col. Darrell P. Zelko, a veteran pilot of the 1991 Gulf War. The weather over the capital city of Serbia was stormy on the night of March 27th, 1999, and only a few NATO planes were in the sky to enforce Operation Allied Force. Zelco was to drop 2 laser guided munitions and get back to his base in Italy.

There was no way for him to know that at exactly 8:15pm local time, a young Colonel of the Army of Yugoslavia had done what was thought to be impossible. His men had seen Zelco’s unseeable F117 Stealth Fighter.

Seconds later, a barrage of Soviet 60’s era S-125 surface-to-air missiles were screaming toward him at three times the speed of sound. One hit. Colonel Zelco was forced to eject while his advanced stealth aircraft fell to the ground in a ball of fire. It was the first and only time an F117 had been shot down. He would be rescued a few hours later.

How did they do it? How could a relatively unsophisticated army using outdated soviet technology take down one of the most advanced war planes in the world? A plane that was supposed be invisible to enemy radar? As you can imagine, there are several theories. We’re going deep with the “what-ifs” on this one so join us after the break as we break down and explore them in detail.

[Read more...]

Ask Hackaday: What Can Save RadioShack?

radioshackThe news for RadioShack is not good. The retail chain that we hackers hold near and dear to our hearts is in financial trouble, and could go under next year.  With just 64 million in cash on hand, it literally does not have enough capital to close the 1,100 stores it planned to in March of this year.

On May 27th, 2011, we asked you what RadioShack could do to cater to our community. They listened. Most of their retail stores now carry an assortment of Arduino shields, the under appreciated Parallax (why?), and even El Wire. Thanks to you. You made this happen.

Today, we are asking you again. But not for what RadioShack can do better. We’re asking what they can do to survive. To live. It makes no sense for RadioShack to compete in the brutal cell phone/tablet market, and makes every bit of sense for them take advantage of the rapidly growing hacker/builder/maker what-ever-you-want-to-call-us community. Let’s face it. We’re everywhere and our numbers are growing. From 3D printers to drones, the evidence is undeniable.

With 5,000 retail stores across the USA, they are in a perfect position to change their business model to a hacker friendly one. Imagine a RadioShack down the road  that stocked PICs, ARMs, Atmels, stepper motors, drivers, sensors, filament….like a Sparkfun retail store. Imagine the ability to just drive a few miles and buy whatever you needed. Would you pay a premium? Would you pay a little extra to have it now? I bet you would.

Now it’s time to speak up. Let your voices be heard. Let’s get the attention of the RadioShack board. You’ve done it before. It’s time to do it again. Hackers unite!

 

Follow

Get every new post delivered to your Inbox.

Join 96,534 other followers