Hackaday Links Column Banner

Hackaday Links: October 4, 2020

In case you hadn’t noticed, it was a bad week for system admins. Pennsylvania-based United Health Services, a company that owns and operates hospitals across the US and UK, was hit by a ransomware attack early in the week. The attack, which appears to be the Ryuk ransomware, shut down systems used by hospitals and health care providers to schedule patient visits, report lab results, and do the important job of charting. It’s not clear how much the ransomers want, but given that UHS is a Fortune 500 company, it’s likely a tidy sum.

And as if an entire hospital corporation’s IT infrastructure being taken down isn’t bad enough, how about the multi-state 911 outage that occurred around the same time? Most news reports seemed to blame the outage on an Office 365 outage happening at the same time, but Krebs on Security dug a little deeper and traced the issue back to two companies that provide 911 call routing services. Each of the companies is blaming the other, so nobody is talking about the root cause of the issue. There’s no indication that it was malware or ransomware, though, and the outage was mercifully brief. But it just goes to show how vulnerable our systems have become.

Our final “really bad day at work” story comes from Japan, where a single piece of failed hardware shut down a $6-trillion stock market. The Tokyo Stock Exchange, third-largest bourse in the world, had to be completely shut down early in the trading day Thursday when a shared disk array failed. The device was supposed to automatically failover to a backup unit, but apparently the handoff process failed. This led to cascading failures and blank terminals on the desks of thousands of traders. Exchange officials made the call to shut everything down for the day and bring everything back up carefully. We imagine there are some systems people sweating it out this weekend to figure out what went wrong and how to keep it from happening again.

With our systems apparently becoming increasingly brittle, it might be a good time to take a look at what goes into space-rated operating systems. Ars Technica has a fascinating overview of the real-time OSes used for space probes, where failure is not an option and a few milliseconds error can destroy billions of dollars of hardware. The article focuses on the RTOS VxWorks and goes into detail on the mysterious rebooting error that affected the Mars Pathfinder mission in 1997. Space travel isn’t the same as running a hospital or stock exchange, of course, but there are probably lessons to be learned here.

As if 2020 hasn’t dealt enough previews of various apocalyptic scenarios, here’s what surely must be a sign that the end is nigh: AI-generated PowerPoint slides. For anyone who has ever had to sit through an endless slide deck and wondered who the hell came up with such drivel, the answer may soon be: no one. DeckRobot, a startup company, is building an AI-powered extension to Microsoft Office to automate the production of “company compliant and visually appealing” slide decks. The extension will apparently be trained using “thousands and thousands of real PowerPoint slides”. So, great — AI no longer has to have the keys to the nukes to do us in. It’ll just bore us all to death.

And finally, if you need a bit of a palate-cleanser after all that, please do check out robotic curling. Yes, the sport that everyone loves to make fun of is actually way more complicated than it seems, and getting a robot to launch the stones on the icy playing field is a really complex and interesting problem. The robot — dubbed “Curly”, of course — looks like a souped-up Roomba. After sizing up the playing field with a camera on an extendable boom, it pushes the stone while giving it a gentle spin to ease it into exactly the right spot. Sadly, the wickedly energetic work of the sweepers and their trajectory-altering brooms has not yet been automated, but it’s still pretty cool to watch. But fair warning: you might soon find yourself with a curling habit to support.

Skylight In Any Room

Despite a glut of introvert memes, humans need sunlight. If vitamin D isn’t your concern, the sun is a powerful heater, and it helps plants grow. Sadly for [mime], their house is not positioned well to capture all those yummy sunbeams. Luckily for us, their entry into the 2020 Hackaday Prize is their sun-tracking apparatus that redirects those powerful rays throughout the house. It uses a couple of mirrors to redirect the light around their shed and into the house. For those who work in a dim office, no amount of work is too great for a peek of natural sunlight.

Movie spoiler alert: We saw this trick in the 1985 movie Legend and it was enough to vanquish the Lord of Darkness.

This project started in 2014 and sat on hiatus for more than five years, but it is back and prime for improvements fueled by half-a-decade of experience. The parts that aren’t likely to change are the threaded struts that adjust the positioning mirror’s angle, the driving motors, and power circuitry. Their first plan was to build a solar-powered controller with an Arduino, DC motors, and sun telemetry data, but now they’re leaning toward stepper motors and a computer in the house with a long cable. They are a finalist this year, so we will keep our eyes peeled for further development.

Porting QMK To A Cheap Mechanical Keyboard

Over the last couple of years, we’ve seen an incredible number of DIY keyboard builds come our way. Some have had their switches nestled into laser-cut aluminum and others 3D printed plastic. They may be soldered together on a custom PCB, or meticulously hand-wired. But however they were built, they almost all shared one thing in common: they ran some variant of the open source QMK keyboard firmware.

But what if you just want to run an open firmware on the keyboard you picked up for $50 bucks on Amazon? That’s exactly where [Stephen Peery] found himself nine months ago with this DK63 gaming keyboard. Since so many of these small RGB LED mechanical keyboards are very similar to existing open source designs, he wondered what it would take to blow out the original firmware and replace it with a build of QMK.

While [Stephen] doesn’t have everything working 100% yet, he’s nearly reached the end of his epic reverse engineering journey. The first step was tearing apart the keyboard and identifying all the components it used, then pulling the original firmware out of the updater. From there, between Ghidra and Serial Wire Debug, he was able to figure out most of what the stock firmware was doing so he could replicate it in QMK.

According to his README, the RGB LEDs and Bluetooth functionality don’t currently work, but other than that it seems QMK is up and running. If you’re OK with those concessions, he has information on the page about flashing his build of QMK to the stock DK63 with the ST-Link V2 so you can give it a shot. Though you do so at your own risk; we wouldn’t recommend doing this on your only keyboard.

We’ve seen commercially manufactured keyboards running QMK before, but it usually involves completely replacing the original controller with new electronics. That [Stephen] got this all working on stock hardware so other owners can follow in his footsteps is really a considerable accomplishment.

[Thanks to Baldpower for the tip.]

An LED Cube To Display CPU Vitals

LED cubes are all the rage right now. High-end hardware capable of driving large arrays keeps getting cheaper in price, and 3D printers and pre-built boards can make assembly a snap. After attending a major hacker con and seeing the builds on display, [Sebastian] wanted a piece of the action, so set out to build his own.

While many elect to build an LED cube you can hold in your hand, [Sebastian] preferred a stationary tabletop design. This would reduce costs, allowing him to only use 3 LED boards, as the base and remaining two sides would face away from him and not be visible when placed on his desk. The 64×64 arrays are driven by an Adafruit LED matrix bonnet on top of a Raspberry Pi 2. The Pi was a tactical choice, as [Sebastian] had one lying around, and it packed enough processing power to run an OpenGL shader that creates an image for the cube that varies with the CPU load and temperature on his main desktop. As a nice final touch, the Raspberry Pi is set up to have a read-only filesystem. This allows the project to be turned off suddenly without risk of corrupting the SD card.

It’s a tidy build, and one which gives [Sebastian] useful information at a glance. We’ve featured a few stylish cubes before, and even a LED D20 that really breaks the bank. Video after the break.

Continue reading “An LED Cube To Display CPU Vitals”

Teaching An Old Lathe New Tricks With A Programmable Power Feed

Ask anybody whose spent time standing in front of a mill or lathe and they’ll tell you that some operations can get tedious. When you need to turn down a stainless rod by 1/4″ in 0.030″ increments, you get a lot of time to reflect on why you didn’t just buy the right size stock as you crank the wheel back and forth. That’s where the lead screw comes in — most lathes have a gear-driven lead screw that can be used to actuate the z-axis ( the one which travels parallel to the axis of rotation). It’s no CNC, but this type of gearing makes life easier and it’s been around for a long time.

[Tony Goacher] took this idea a few steps further when he created the Leadscrew Buddy. He coupled a beautiful 1949 Myford lathe with an Arduino, a stepper motor, and a handful of buttons to add some really useful capabilities to the antique machine. By decoupling the lead screw from the lathe’s gearbox and actuating it via a stepper motor, he achieved a much more granular variable feed speed.

If that’s not enough, [Tony] used a rotary encoder to display the cutting tool’s position on a home-built Digital Readout (DRO). The pièce de résistance is a “goto” command. Once [Tony] sets a home position, he can command the z-axis to travel to a set point at a given speed. Not only does this make turning easier, but it makes the process more repeatable and yields a smoother finish on the part.

These features may not seem so alien to those used to working with modern CNC lathes, but to the vast majority of us garage machinists, [Tony]’s implementation is an exciting look at how we can step up our turning game. It also fits nicely within the spectrum of lathe projects we’ve seen here at Hackaday- from the ultra low-tech to the ludicrously-precise.

Continue reading “Teaching An Old Lathe New Tricks With A Programmable Power Feed”

Cleaning Up The Yard With AI — Avian Intelligence

Despite epithets like “bird-brain,” our feathered friends are actually pretty smart. Being able to maneuver in three dimensions at high speed must have something to do with it, and the cognitive abilities of birds are well-documented and still being researched. So it naturally makes sense to harness avian brainpower to keep one’s yard clean, right?

For the record, the magpies that [Hans] is training are very intelligent and strikingly beautiful birds who delight in swooping down to harass people, and who will gladly steal food from other birds and then poop on it and fly away. So they’re jerks, but that doesn’t mean they can’t be useful jerks. The goal with his BirdBox system is to use classic operant conditioning, where a desired voluntary behavior is reinforced by a reward. In this case, the reward is a treat dispensed by a 3D-printed vibratory dispenser when the bird collects a bottlecap from the yard and deposits it in the proper slot. The video below shows the birds doing exactly what they’re supposed to do.

[Hans] tells us that the trick is getting the birds to accept the BirdBox and to have them integrate it into their “patrol schematic” of their territory. Once that’s done, it’s a simpler matter to have them associate the bottlecaps with the reward. The other challenge is making everything bulletproof, or in this case magpie-proof. Did we mention that magpies are jerks?

The possibilities for trading peanuts for yardwork are endless; [Hans] mentions plans he has for fallen fruit clean-up, and mentions a persistent garden slug problem that the birds might be employed to remediate. If you want to try this, it might be a good idea to brush up on the work of [B.F. Skinner] and his pigeons of war.

Continue reading “Cleaning Up The Yard With AI — Avian Intelligence”

Indian RISC-V Chip Is Team’s Third Successful Chip

There was a time when creating a new IC was a very expensive proposition. While it still isn’t pocket change, custom chips are within reach of sophisticated experimenters and groups. As evidence, look at the Moushik CPU from the SHAKTI group. This is the group’s third successful tapeout and is an open source RISC-V system on chip.

The chip uses a 180 nm process and has 103 I/O pins. The CPU runs around 100 MHz and the system includes an SDRAM controller, analog to digital conversion, and the usual peripherals. The roughly 25 square mm die houses almost 650 thousand gates.

This is the same group that built a home-grown chip based on RISC-V in 2018 and is associated with the Indian Institute of Technology Madras. We aren’t clear if everything you’d need to duplicate the design is in the git repository, but since the project is open source, we presume it is.

If you think about it, radios went from highly-specialized equipment to a near-disposable consumer item. So did calculators and computers. Developing with FPGAs is cheaper and easier every year. At this rate it’s not unreasonable to think It won’t be long before creating a custom chip will be as simple as ordering a PCB — something else that used to be a big hairy deal.

Of course, we see FPGA-based RISC-V often enough. While we admire [Sam Zeloof’s] work, we don’t think he’s packing 650k gates into that size. Not yet, anyway.

Continue reading “Indian RISC-V Chip Is Team’s Third Successful Chip”