Putting The Brakes On High-Frequency Trading With Physics

In the middle of the East Coast’s slow broil in the summer of 2018, a curious phenomenon surfaced. As a tropical air mass settled in and smothered the metropolitan New York area, a certain breed of stock speculator began feeling the financial heat as the microwave signals linking together various data centers and exchanges began to slow down. These high-frequency traders rely on getting information a fraction of a second before other traders see the same thing and take advantage of minuscule price differences to make money hand over fist.

While you won’t catch us shedding many tears over the billions these speculators lost during the hot spell, we did find the fact that humidity can slow microwave propagation enough to make this a problem for them a fascinating subject, enough so that we covered it in some detail at the time. While financial markets come and go and the technology to capitalize them changes at a breakneck pace, physics stays the same, and it can make or break deals with no regard to the so-called fundamentals.

So it was with great interest that we happened upon Tom Scott’s recent video outlining how one new stock exchange is using physics to actually slow down stock trades, in an attempt to gain a competitive advantage over the other exchanges. In light of the billions lost over the summer to propagation delays amounting to a mere 10 microseconds, we couldn’t help but wonder how injecting a delay 35 times longer using a “magic shoebox” was actually good for business. It turns out to be an interesting story.

Continue reading “Putting The Brakes On High-Frequency Trading With Physics”

New Kinect Sensor Switch Focus From Gamers To Developers

Microsoft’s Kinect may not have found success as a gaming peripheral, but recognizing that a depth sensor is too cool to leave for dead, development continued even after Xbox gaming peripherals were discontinued. This week their latest iteration emerged and we can get it in the form of Azure Kinect DK. This is a developer’s kit focused on exploring new applications for this technology, not a gaming peripheral we had to hack before we could use in our own projects.

Packaged into a peripheral that plugs into a PC via USB-C, it is more than the core depth sensor module announced last year but less than a full consumer product. Browsing its 10-page specification (PDF) with comparisons to second generation Kinect sensor bar, we see how this technology has evolved. Physical size and weight has dropped, as has power consumption. Auxiliary capabilities has improved with an expanded microphone array, IMU with gyro in addition to accelerometer, and the RGB camera has been upgraded to 4K resolution.

But the star of the show is a new continuous-wave time-of-flight depth sensor, presented at the 2018 IEEE ISSCC conference. (Full text requires IEEE membership, but a digest form is available via ResearchGate.) Among its many advancements, we expect the biggest impact to be its field of view. Default of 75 x 65 degrees is already better than its predecessors (64 x 45 for first generation Kinect, 70 x 60 for second) but there is an option to trade resolution for coverage by switching to a wide-angle mode of 120 x 120 degrees. Significantly wider than other depth cameras like Intel’s RealSense D400 series or Occipital’s Structure.

Another interesting feature is built-in synchronization. Many projects using multiple Kinect sensors ran into problems because they interfered with each other. People hacked around the problem, of course, but now they don’t have to: commodity 3.5 mm jacks allow multiple Azure Kinect DK to be daisy chained together so they play nicely and take turns.

From its name we were worried this product would require Microsoft’s Azure cloud service in some way and be crippled without it. Based on information released so far, it appears developers have access to all the same data streams as previous sensors. Azure tie-in takes the form of optional SDKs that make it easier to do things like upload data for processing in Azure cloud-based recognition services.

And finally, Azure Kinect DK’s price tag of $399 is significantly higher than a Kinect game peripheral, but it is a low volume product for developers. Perhaps high volume consumer products built on this technology will cost less, but that remains to be seen. In the meantime, you have alternative tools for solving similar problems. For example if you are building your own AR headset, you might use Intel’s latest RealSense camera for vision based inside-out motion tacking.

Reverse Engineering Keeps Keck Telescopes On Track

Perched atop a dormant volcano far above the roiling tropical air of the Big Island of Hawai’i sit two of the largest optical telescopes in the world. Each 10-meter main mirror is but a single part of a magnificent machine weighing in at some 400 tons that needs to be positioned with incredible precision. Keeping Keck 1 and Keck 2 in peak operating condition is the job of a team of engineers and scientists, so when the servo amplifiers running the twelve motors that move each scope started to show their age, [Andrew] bit the bullet and rebuilt the obsolete boards from scratch.

The Keck telescopes were built over three decades ago, and many of the parts, including the problematic servo amps, are no longer made. Accumulated wear and tear from constant use and repeated repairs had taken their toll on the boards, from overheated components to lifted solder pads. With only some barely legible schematics of the original amplifiers to go by, [Andrew] reverse engineered new amps. Some substitutions for obsolete components were needed, the PCB design was updated to support SMD parts, and higher-quality components were specified, but the end result is essentially new amplifiers that are plug-in replacements for the original units. This should keep the telescopes on track for decades to come.

Not to sound jealous, but it seems like [Andrew] has a great gig. He’s shared a couple of his Keck adventures before, like the time a failed LED blinded the telescope. He’s also had a few more down-to-earth hacks, like fixing a dodgy LCD monitor and making spooky blinkeneyes for Halloween.

A Raspberry Pi Grimoire For The Command Line Wizard

Who says there’s no such thing as magic? Not anyone who knows what a Unix pipe is, that’s for sure. If you do some of your best incantations at a blinking cursor, this scratch-built Raspberry Pi Zero “Spellbook” laptop created by [Calvin] might be just what the apothecary ordered. Lucky for us, he was kind enough to document the design and construction of this penguin-powered tome for anyone else who wishes to dabble in the GNU Dark Arts.

In the series of videos after the break, viewers have the opportunity to watch a project go from idea to final product. The first video was uploaded nearly a month before the project was completed, and goes over some of the design elements of the project as well as different ideas [Calvin] had in terms of things like component placement. Throughout the video, he illustrates his ideas in TinkerCAD, which might not have been our first choice for a project this complex, but it does go to show what’s possible in the free web-based CAD package.

By the second video, [Calvin] has printed some parts and now has the hardware coming together. The general idea is that the outside panels of the “book” are made out of steel cut from the side panel of an old computer, with the 3D printed components taking the form of spacers between the electronic components. These plastic “pages” are not only easier and faster to print than a complete case, but help sell the appearance of the book when viewed from the sides.

[Calvin] has shared his TinkerCAD design so that others can print out the necessary components for the book, though you’ll have to source your own steel plates. He also breaks down all the principle components he used and gives links to where you can buy them, from the display and keyboard down to the screws and standoffs. He went with the Pi Zero and sticks to mainly console work, but if you want something with enough power to throw around a graphical environment, he says there’s room in the case for a Pi 3.

Hackers seem to enjoy hiding hardware inside of books, PLA or otherwise. We’ve recently seen an iPad nestled snugly into a notebook, and of course no house would be complete without a book doubling as a hidden switch.

Continue reading “A Raspberry Pi Grimoire For The Command Line Wizard”

Visual Magnetic Fields

If you need help visualizing magnetic fields, these slow-motion video captures should educate or captivate you. Flux lines are difficult to describe in words, because magnet shape and strength play a part. It might thus be difficult to visualize what is happening with a conical magnet, for a person used to a bar magnet. We should advise you before you watch the video below the break, if you are repelled by the sight of magnetite sand clogging a bare magnet then flying on the floor, this is your only warning.

The technique and equipment are simple and shown in the video. A layer of black sand is spread on a piece of tense plastic to make something like a dirty trampoline, and a neodymium magnet is dropped in the middle. The bouncing action launches the sand and magnet simultaneously so they are hanging in the air and the particles can move with little more than air resistance.

These videos were all taken with a single camera and a single magnet. Multiple cameras would yield 3D visuals, and the intertwining fields of multiple magnets can be beautiful. Perhaps a helix of spherical magnets? What do you have lying around the hosue? In a twist, we can use magnets to simulate gas atoms and trick them into performing unusual feats.

Continue reading “Visual Magnetic Fields”

Know Your Fits And Tolerances

When designing parts on a screen, it’s very easy to type in a bunch of nice round numbers and watch everything slot together in perfect harmony. Unfortunately, the real world is not so kind. A 10mm shaft will not readily fit in a 10mm hole, and producing parts to perfect dimensions simply isn’t possible. This is where fits and tolerances come in, and [tarkka] have created a practical demonstration of this on Youtube.

Tighter tolerances require more care and thus increase production costs significantly.

Hole and shaft tolerances are important to ensure parts mate correctly and as intended. If a shaft is to fit into a hole easily and the dimensions aren’t critical, a clearance fit is called for. If assembly should be easy but the part is required to locate accurately, a running fit is called for. Alternatively, if the parts are intended to be pressed together permanently, an interference or force fit should be used.

The video covers the basics of fits and tolerances in an easy to understand way, with visual examples. The fits discussed are based in Imperial measurements, but the metric standard of hole and shaft tolerances (ISO 286-2) is also noted.

Getting your tolerances right is key to making good parts – we’ve covered common issues such as tolerance stacking before. Video after the break.

Continue reading “Know Your Fits And Tolerances”

Casting The Bed Of A CNC Machine In Granite

If you’re looking at CNC machines, or machine tools in general, heavier is better. That old drill press or mill made of a few hundred pounds of cast iron isn’t just better because it’s stood the test of time for a hundred years — greater mass equals less vibration. Thanks to modern epoxy resins, we now have a replacement for tons and tons of iron. Epoxy granite, or chips of granite bound together with epoxy resin, is a viable and very good base for CNC machines, mills, and other tools that are served well with a ton of mass. [Joerg Beigang] is building his own CNC router, and he’s building the base out of epoxy granite. Here’s how he’s doing it.

Before you pour epoxy into a mold, you’ll need to figure out how you’re going to attach your ways, linear rails, and ball screws. [Joreg] is bolting these parts to pieces of aluminum he cut on his home made panel saw before carefully drilling and tapping them to accept the linear rails. These aluminum plates were then mounted to the bottom panel of the mold, in this case melamine-coated plywood.

As you would expect, the most intricate part of this build isn’t globbing up a mold with epoxy resin. No, the real trick here is making sure the rails of the CNC are aligned perfectly before the epoxy goes in. This was done by bolting the linear rails to the mold box and checking everything with a dial indicator. Once that was done it was time to pour.

The bed itself is made of 18kg of epoxy granite, with the entire pour done in four batches. The best way to settle a big pour of epoxy granite is through vibration, just like concrete, but it looks as though [Joreg] is getting some good results by tamping it down with a few sticks. You can check out the first part of this build series below.

If we’ve captured your interest, it’s worth reminding you that this isn’t the first epoxy granite CNC machine we’ve featured.

Continue reading “Casting The Bed Of A CNC Machine In Granite”