Better Linux Through Coloring

Cyber security is on everyone’s minds these days. Embedded devices like cameras have been used by bad guys to launch attacks on the Internet. People worry about data leaking from voice command devices or home automation systems. And this goes for the roll-your-own systems we build and deploy.

Many network-aware systems use Linux somewhere — one big example is pretty much every Raspberry Pi based project. How much do you think about security when you deploy a Pi? There is a superior security system available for Linux (including most versions you’d use on the Pi) called SELinux. The added letters on the front are for “Security-Enhanced” and this project was originally started by the NSA and RedHat. RedHat actually has — no kidding — a coloring book that helps explain some of the basic concepts.

We aren’t so sure the coloring book format is really the right approach here, but it is a light and informative read (we didn’t stay in the lines very well, though). Our one complaint is that it doesn’t really show you anything in practice, it just explains the ideas behind the different kind of protections available in SELinux. If you want to actually set it up on Pi, there’s a page on the Pi site that will help. If you have an hour, you can get a good overview of using SELinux in the video below.

Continue reading “Better Linux Through Coloring”

Punching It Down: Insulation Displacement Connectors

In my misspent youth I found myself doing clinical rotations at a local hospital. My fellow students and I were the lowest of the low on the hospital pecking order, being the ones doing the bulk of the work in the department and paying for the privilege to do so. As such, our locker facilities were somewhat subpar: a corner of a closet behind a door labeled “COMMS”.

In the room was a broken chair and a couple of hooks on the wall for our coats, along with an intriguing (to me) electrical panel. It had a series of rectangular blocks with pins projecting from it. Each block had a thick cable with many pairs of thin, colorful wires fanned out and neatly connected to the left side, and a rats nest of blue and white wires along the right side. We were told not to touch the board. I touched it nonetheless.

I would later learn that these were Type 66 punchdown blocks for the department’s phone system, and I’d end up using quite a few of them over my hacking life. Punchdown connectors were a staple of both private and public telco physical plants for decades, and belong to a class of electrical connections called insulation displacement connections, or IDC. We’ve recently looked at how crimp connections work, and what exactly is going on inside a solder joint. I thought it might be nice to round things out with a little bit about the workings of IDC.

Continue reading “Punching It Down: Insulation Displacement Connectors”

Innovating A Better Printing Platform

Just because you have a fancy new 3D printer doesn’t mean that innovation should stop there. Almost everyone has had a print go foul if the first layer doesn’t properly adhere to the printing platform — to say nothing of difficulty in dislodging the piece once it’s finished. Facing mixed results with some established tricks meant to combat these issues, [D. Scott Williamson] — a regular at Chicago’s Workshop 88 makerspace — has documented his trials to find a better printer platform.3D Printer Steel Print Plate 1

For what he had (a printer without a heated plate), painter’s tape and hairspray wasn’t cutting it, especially when it came time to remove the print as the tape wouldn’t completely come off the part. How then, to kill two birds with one stone? Eureka! A flexible metal covering for the printing plate.

Continue reading “Innovating A Better Printing Platform”

Saved By The Bel — Understanding Decibels

If you’ve hung around electronics for any length of time, you’ve surely heard of the decibel (often abbreviated dB). The decibel is a measure of a power ratio. Actually, the real measure is a bel, but you almost never see that in practice. If you are versed in metric, you won’t be surprised to learn a decibel is 1/10 of a bel. Sometimes in electronics, we deal with really large ratios, so the decibel is logarithmic to cope with this. Doubling the number of decibels doesn’t double the ratio, as you will soon see. It’s all about logarithms, and this ends up being extremely useful when measuring something like antenna or amplifier gain.

Besides antennas, decibels are often used to measure sound and light. The reason is that human ears and eyes have a logarithmic response to those quantities. Your ear, for example, has a huge dynamic range. That is to say, you can hear a whisper or a space shuttle launch. That ratio is about 1 trillion to 1, but that’s only 120 dB. This is also why potentiometers made for volume controls have a logarithmic taper. A linear pot would seem off because, for example, a tenth of a turn at one extreme will affect the apparent volume much more than a tenth of a turn at the other extreme. This holds true whether or not those knobs go up to eleven.

Continue reading “Saved By The Bel — Understanding Decibels”

Paul: A Robot And Its Ball

[Jochen Alt]’s Paul is one of the coolest robots of its type, and maybe one of the coolest robots period. Personality? Check. Omniwheels? Check. Gratuitous feats of derring-do? Check. Paul is a ball balancing robot.

Under the hood, Paul isn’t all that strange. He’s got two microcontrollers, one for taking care of the balancing and kinematics, and another that handles the LEDs, speech processor, loudspeaker, remote-control, and other frilly bits. But the mathematics! Paul is a cylinder standing up on top of a bowling ball, so the only way it can roll forwards is to lean forwards. But of course, it can’t lean too much, because it has also got to balance. It’s absolutely the least reasonable means of locomotion. We love it.

[Jochen] was nice enough to put everything up on GitHub, so you can see how it was done, even though it looks like magic. And we dare you to watch the video, embedded below, and not feel at least a pang of sympathy pain when (spoiler alert!) he falls flat on his face. Does he recover? We’d love to know!

Paul is just one of the stellar robots in the 2017 Hackaday Sci-Fi contest, so head on over there if you still don’t have your fill.

Continue reading “Paul: A Robot And Its Ball”

Fixing Fake FTDIs

If you know where to go on the Internet, you can pick up an FTDI USB to Serial adapter for one dollar and sixty-seven cents, with free shipping worldwide. The chip on this board is an FTDI FT232RL, and costs about two dollars in quantity. This means the chips on the cheap adapters are counterfeit. While you can buy a USB to serial adapter with a legitimate chip, [Syonyk] found a cheaper solution: buy the counterfeit adapters, a few genuine chips, and rework the PCB. It’s brilliant, and an excellent display of desoldering prowess.

Why is [Syonyk] replacing non-genuine chips with the real FTDI? The best reason is FTDIgate Mk. 1, where the official FTDI driver for Windows detected non-genuine chips and set the USB PID to zero. This bricked a whole bunch of devices, and was generally regarded as a bad move. FTDIgate Mk. 2 was a variation on a theme where the FTDI driver would inject garbage data into a circuit if a non-genuine part was found. This could also brick devices. Notwithstanding driver issues, the best reason for swapping out fake chips for real ones is the performance at higher bit rates; [Syonyk] is doing work at 3 Mbps, and the fake chips just don’t work that fast.

To replace the counterfeit chip, [Syonyk] covered the pins in a nice big glob of solder, carefully heated both sides of the chip, and slid the offending chip off when everything was molten. A bit of solder braid, and the board was ready for the genuine chip.

With the new chip, the cheap USB to serial adapter board works perfectly, although anyone attempting to duplicate these efforts might want to look into replacing the USB mini port with a USB micro port.

Vintage COSMAC Elf Is Pretty Close To Original

Popular Electronics was famous for the article introducing the Altair 8800 back in 1975 (well, the cover date was 1975; it really came out in late 1974). That was so popular (no pun intended), that they ran more computer construction articles, including the SWTPC 680 late in 1975. But in 1976 a very popular article ran on building a very simple computer called the COSMAC ELF. [Youtubba] had an Altair, but always wanted a “cute” COSMAC ELF. Now, forty-something years later, he finally got around to it. He made the very detailed video about his experience, below.

Surprisingly, he didn’t have to look very hard for too many of the components as most of them were available from Digikey. He had to get compatible RAM chips, the 1802 CPU and LED displays. He also couldn’t find a look-alike crystal, so he used a fake one and a hidden oscillator. The result looks awfully close to the original. He even did a nice front panel using Front Panel Express.

Continue reading “Vintage COSMAC Elf Is Pretty Close To Original”