First flight

Why The Wright Brothers Succeeded

The types of steps and missteps the Wright brothers took in developing the first practical airplane should be familiar to hackers. They started with a simple kite design and painstakingly added only a few features at a time, testing each, and discarding some. The airfoil data they had was wrong and they had to make their own wind tunnel to produce their own data. Unable to find motor manufacturers willing to do a one-off to their specifications, they had to make their own.

Sound familiar? Here’s a trip through the Wright brothers development of the first practical airplane.

Continue reading “Why The Wright Brothers Succeeded”

Anatomy Of A Digital Broadcast Radio System

What does a Hackaday writer do when a couple of days after Christmas she’s having a beer or two with a long-term friend from her university days who’s made a career in the technical side of digital broadcasting? Pick his brains about the transmission scheme and write it all down of course, for behind the consumer’s shiny digital radio lies a wealth of interesting technology to try to squeeze the most from the available resources.

In the UK, our digital broadcast radio uses a system called DAB, for Digital Audio Broadcasting. There are a variety of standards used around the world for digital radio, and it’s fair to say that DAB as one of the older ones is not necessarily the best in today’s marketplace. This aside there is still a lot to be learned from its transmission scheme, and from how some of its shortcomings were addressed in later standards. Continue reading “Anatomy Of A Digital Broadcast Radio System”

Visualization Of A Phased Array Antenna System

Phased array antenna systems are at the cusp of ubiquity. We now see Multiple-Input Multiple-Output (MIMO) antenna systems on WiFi routers. Soon phased array weather radar systems will help to predict the weather and keep air travel safe, and phased array base stations will be the backbone of 5G which is the next generation of wireless data communication.  But what is a phased array antenna system?  How do they work?  With the help of 1024 LEDs we’ll show you.

Continue reading “Visualization Of A Phased Array Antenna System”

Make Logic Gates Out Of (Almost) Anything

Logic gates are the bricks and mortar of digital electronics, implementing a logical operation on one or more binary inputs to produce a single output. These operations are what make all computations possible in every device you own, whether it is your cell phone, computer, gaming console etc.  There are myriad ways of implementing logic gates; mechanically, electronically, virtually (think Minecraft), etc. Let’s take a look at what it takes to create some fun, out-of-the-ordinary gate implementations.

Continue reading “Make Logic Gates Out Of (Almost) Anything”

200 Years Of The Stirling Engine

In the early years of the nineteenth century, steam engines were at work in a variety of practical uses. However, they were still imperfect in many ways. One particular problem were the boilers, that had a tendency to explode, causing injuries and fatalities. Reverend Dr. Robert Stirling, a Scottish clergyman, was concerned about the death toll from exploding boilers. Based on previous work by George Cayley (known for his pioneering work on aeronautics), Stirling filed his patent for a safer engine in 1816. That makes this year the bicentenary of this engine. The Stirling engine has the highest theoretical efficiency of any thermal engine. It is also a relatively simple machine. Unlike other types of engines, there are no valves, and that makes the mechanical design much simpler.

Continue reading “200 Years Of The Stirling Engine”

Ask Hackaday: Computing Square Roots On FPGA?

Hackaday reader [nats.fr] wrote in with some code from a project that resizes a video stream on the fly using an FPGA. Doing this right means undoing whatever gamma correction has been applied to the original stream, resizing, and then re-applying the gamma. Making life simpler, [nats.fr] settled on a gamma of two, which means taking a bunch of square roots, which isn’t fast on an FPGA.

[nats]’s algorithm is pretty neat: it uses a first-stage lookup to figure out in which broad range the value lies, and then one step of Hero’s algorithm to refine from there. (We think this is equivalent to saying he does a piecewise linear interpolation, but we’re not 100% sure.) Anyway, it works decently.

Of course, when you start looking into the abyss that is special function calculation, you risk falling in. Wikipedia lists more methods of calculating square roots than we have fingers. One of them, CORDIC, avoids even using multiplication by resorting to clever bitshifts and a lookup table. Our go-to in these type of situations, Chebyshev polynomial approximation, didn’t even make the cut. (Although we suspect it would be a contender in the gamma=1.8 or gamma=2.2 cases, especially if combined with range-reduction in a first stage like [nats.fr] does.)

So what’s the best/fastest approximation for sqrt(x) for 16-bit integers on an FPGA? [nats.fr] is using a Spartan 6, so you can use a multiplier, but division is probably best avoided. What about arbitrary, possibly fractional, roots?

Millennium Tower Is Sinking; And Waiting Is The Hardest Part

San Francisco’s Millennium Tower is sinking. Since its completion in 2009, the 58-story, 645-foot tall residential building has settled 16 inches and tilted perhaps 2 inches to the northwest. Since the foundation issues came to light in August 2016, the vertiginous ultra-luxury highrise has become the subject of outrage, ridicule, and at least two pieces of pending litigation.

Nothing that we build is static. Our office towers, apartment complexes, and single family homes move in response to loads applied by the environment. Buildings sway in the wind, expand and contract in response to temperature changes, and shift with the land upon which they rest. In most scenarios, these deflections are so minuscule that the occupants never even notice. Millennium Tower happens to be a large enough project with a severe enough problem that the whole world can’t help but gawk.

Millenium Tower located in San Francisco's SOMA, near the Financial District
Millenium Tower located in San Francisco’s SOMA, near the Financial District.

In foundation design, not all terra is firma. While a one or two story wood-framed building can be built safely with a shallow foundation on crummy soil, a major skyscraper requires a foundation that can transfer extremely high loads into the earth. But the strata below our city streets can consist of anything from sand to clay to solid rock, and many cities, including San Francisco, have infilled former marshes and bays with soil in order to expand their coastlines and generate valuable real estate. Millennium Tower was built in South of Market, a neighborhood that mostly used to belong to San Francisco Bay.

Continue reading “Millennium Tower Is Sinking; And Waiting Is The Hardest Part”