CUDA Is Like Owning A Supercomputer

The word supercomputer gets thrown around quite a bit. The original Cray-1, for example, operated at about 150 MIPS and had about eight megabytes of memory. A modern Intel i7 CPU can hit almost 250,000 MIPS and is unlikely to have less than eight gigabytes of memory, and probably has quite a bit more. Sure, MIPS isn’t a great performance number, but clearly, a top-end PC is way more powerful than the old Cray. The problem is, it’s never enough.

Today’s computers have to processes huge numbers of pixels, video data, audio data, neural networks, and long key encryption. Because of this, video cards have become what in the old days would have been called vector processors. That is, they are optimized to do operations on multiple data items in parallel. There are a few standards for using the video card processing for computation and today I’m going to show you how simple it is to use CUDA — the NVIDIA proprietary library for this task. You can also use OpenCL which works with many different kinds of hardware, but I’ll show you that it is a bit more verbose.
Continue reading “CUDA Is Like Owning A Supercomputer”

3D Printer Halts And Catches Fire — Analysis Finds A Surprising Culprit

Let’s build a robot that gets hot. Really hot — like three times hotter than McDonald’s coffee. Then make it move around. And let’s get the cost in at around $100. Sounds crazy? Not really, since that describes the cheap 3D printers we all have been buying. [John] found out the hard way that you really need to be careful with hot moving parts.

The short story is that [John’s] Anet A8 caught on fire — significantly caught on fire. Common wisdom says that cheap printers often don’t have connectors for the heated bed that can handle the current. There have been several well-publicized cases of those connectors melting, especially on early production models of several printers. However, this printer had an add-on heater with a relay, so that shouldn’t be the problem. Of course, a cheap power supply could do it, too, but the evidence pointed to it being none of those things.

Continue reading “3D Printer Halts And Catches Fire — Analysis Finds A Surprising Culprit”

3D Printed Antenna Is Broadband

Antennas are a tricky thing, most of them have a fairly narrow range of frequencies where they work well. But there are a few designs that can be very broadband, such as the discone antenna. If you haven’t seen one before, the antenna looks like — well — a disk and a cone. There are lots of ways to make one, but [mkarliner] used a 3D printer and some aluminum tape to create one and was nice enough to share the plans with the Internet.

As built, the antenna works from 400 MHz and up, so it can cover some ham bands and ADS-B frequencies. The plastic parts act as an anchor and allow for coax routing. In addition, the printed parts can hold a one-inch mast for mounting.

Continue reading “3D Printed Antenna Is Broadband”

Are You Dying To Upload Your Brain?

Cryonics — freezing humans for later revival — has been a staple of science fiction for ages. Maybe you want to be cured of something presently incurable or you just want to see the future. Of course, ignoring the problem of why anyone wants to thaw out a 500-year-old person, no one has a proven technology for thawing out one of these corpsicles. You are essentially betting that science will figure that out sometime before your freezer breaks down. A new startup called Nectome funded by Y Combinator wants to change your thinking about preservation. Instead of freezing they will pump you full of preservatives that preserve your brain including fine structures that scientists currently believe contain your memories.

Nectome’s strategy isn’t to have you revived like in conventional cryonics. They think the technology to do high definition scans of your preserved brain will exist soon. Those scans might allow future scientists to recreate your brain in a simulation. That isn’t really the same as coming back to life, though. At least we don’t imagine it is.

Continue reading “Are You Dying To Upload Your Brain?”

Linux Fu: File Aliases, Links, And Mappings

Have you heard it said that everything in Linux is a file? That is largely true, and that’s why the ability to manipulate files is crucial to mastering Linux Fu.

One thing that makes a Linux filesystem so versatile is the ability for a file to be many places at once. It boils down to keeping the file in one place but using it in another. This is handy to keep disk access snappy, to modify a running system, or merely to keep things organized in a way that suits your needs.

There are several key features that lend to this versatility: links, bind mounts, and user space file systems immediately come to mind. Let’s take a look at how these work and how you’ll often see them used.

Continue reading “Linux Fu: File Aliases, Links, And Mappings”

A Tale Of Two Phases And Tech Inertia

What kind of power service is in the United States? You probably answered 120-volt service. If you thought a little harder, you might remember that you have some 240-volt outlets and that some industrial service is three phase. There used to be DC service, but that was a long time ago. That’s about it, right? Turns out, no. There are a very few parts of the United States that have two-phase power. In addition, DC didn’t die as quickly as you might think. Why? It all boils down to history and technological inertia.

Split Phase Power by Charles Esson CC-BY-SA 3.0

You probably have quite a few 120-volt power jacks in sight. It is pretty hard to find a residence or commercial building these days that doesn’t have these outlets. If you have a heavy duty electric appliance, you may have a 240-volt plug, too. For home service, the power company supplies 240 V from a center tapped transformer. Your 120V outlets go from one side to the center, while your 240V outlets go to both sides. This is split phase service.

Industrial customers, on the other hand, are likely to get three-phase service. With three-phase, there are three wires, each carrying the line voltage but out of phase with each other. This allows smaller conductors to carry more power and simplifies motor designs. So why are there still a few pockets of two-phase?

Continue reading “A Tale Of Two Phases And Tech Inertia”

Incremental Sheet Forming With A CNC Machine

If you want to form a piece of sheet metal into a shape, you’ll probably think about using a die. That’s certainly a great way to do it, but it presupposes you can create or purchase the die, which may be a showstopper for small projects. [Dardy-7] has worked out how to use a lesser-used technique — incremental sheet forming — to get similar results with a CNC machine. The idea is to trace out the form on the sheet metal with a round blunt tool.

He got good results using an inexpensive dapping tool, although he’s seen other use heated titanium ball bearings. In addition, he’s worked out how to adapt existing tool paths, like the ones you might download from the Internet, to use with this technique. You can see a video of the workflow below.

Continue reading “Incremental Sheet Forming With A CNC Machine”