Reliving Second-Hand Nostalgia With The PDP-11

Levy’s Hackers: Heroes of the Computer Revolution is something like required reading for the hacker subculture, and Hackaday by extension. The first section of that book is all about early hackers and their adventures with the PDP-1 at MIT. The PDP-11 has earned a special place in hacker history for being the minicomputer used to write the first Unix. We’re always amazed to find how many of our readers have stories about programming PDP microcomputers, usually the PDP-11. Those of us young enough to have missed out on the PDP experience often have something of a second-hand nostalgia for the old machines. An exceptionally detailed article over at Ars Technica promises to get us started reliving the glory days, even if it is for the first time.

It turns out that there’s an emulator for the old minicomputers, the History Simulator, abbreviated SimH. The article gives step-by-step instructions to get the emulator running, booting Unix 2.11 on a virtual PDP-11. The fun doesn’t stop there. The write-up includes an intro the the PDP-11 hardware, and a crash-course to assembly programming for the beast. It’s a great look at how the stack, branching, and subroutines work under the hood. Most of it still applies to computing today, so it really is worth the read.

Looking for more PDP-11 lore? Check out our coverage of DEC’s history.

The image above is “PDP-11” by ToastyKen, and is licensed under CC BY 2.0

A styrofoam head wearing an electronic headband with cat ears

These Mind-Controlled Cat Ears Move With Your Mood

As any cat owner will tell you, a cat’s ears are great indicators of its state of mind: pointed forward if they want your attention, turned backwards if they’re angry, and folded down flat when they’re afraid. Humans sometimes don cat ear headbands as a fashion statement, but sitting motionless those ears are more likely to confuse a cat than to provide any meaningful communication.

[Jazz DiMauro] aims to fill that gap by designing a cat ear headband that actually responds to your emotions. It does so by continuously taking an EEG measurement and extracting the “attention” and “meditation” variables from it. Those values are then applied to a set of servos that allow two-axis motion on each 3D printed ear. The EEG readout device is an off-the-shelf MindWave headset, which outputs its sensor data through Bluetooth. An Arduino then reads out the data and drives the servos.

Turning all this into a usable wearable device was a project on its own: [Jazz] went through several iterations to find a suitable power source and wiring strategy until they settled on a pair of lithium-polymer batteries and a single flat cable. The end result looks comfortable enough to wear, and the ears’ motion looks smooth and natural. All that’s left is to test it with real cats, to find out if they can now finally understand their human’s emotions too.

We’ve featured a few moving cat ear headbands before: one that moves along with your head’s motions, and another one with manual control. Today’s EEG-powered one shows yet another application for EEGs, which have been used for anything from invoking lucid dreaming to playing beer pong. Continue reading “These Mind-Controlled Cat Ears Move With Your Mood”

Impedance Mismatch

There are a few classic physics problems that it can really help to have a mental map of. One is, of course, wave propagation. From big-wave surfing, through loudspeaker positioning, to quantum mechanics, having an intuition for the basic dynamics of constructive and destructive interference is key. Total energy of a system, and how it splits and trades between kinetic and potential, is another.

We were talking about using a bike generator to recharge batteries on the Podcast last night, and we stumbled on a classic impedance mismatch situation. A pedaling person can put out 100 W, and a cell phone battery wants around 5 W to charge. You could pedal extremely lightly for nearly three hours, but I’d bet you’d rather hammer the bike for 10 minutes and get on with your life. The phone wants to be charged lightly — it’s high impedance — and you want to put out all your power at once — you’re a low impedance source.

The same phenomenon explains why you have to downshift your internal combustion automobile as you slow down. In high gear, it presents too high an impedance, and the motor can only turn so slowly before stalling. This is also why all vibrating string acoustic instruments have bridges that press down on big flat flexible surfaces, and why horns are horn shaped. Air is easy to vibrate, but to be audible you want to move a lot of it, so you spread out the power. Lifting a heavy rock with human muscle power is another classic impedance mismatch.

If these are fundamentally all the same problem, then they should all have similar solutions. The gear on the bike or the car, the bridge on a cello, the flared horn on the trumpet, and the lever under the boulder all serve to convert a large force over a short distance or time or area into a lower force over more distance, time, or area.

Pop quiz! What are the common impedance converters in the world of volts and amps? The two that come to my mind are the genafsbezre and the obbfg/ohpx pbairegre (rot13!). What am I missing?

A large PCB with empty sockets

Sensor Playground Keeps Track Of Indoor Air Quality Through The Cloud

When [tdw] wasn’t feeling well one day, his wife suggested that it might be due to poor air quality in their home. While an ordinary person could have simply opened a window after hearing such an idea, [tdw] instead showed his true hacker spirit and set about measuring the indoor air quality. He began by designing a simple PCB to measure CO2 and volatile organic compound (VOC) levels, but eventually broadened his scope to end up with the Sensor Playground: a plug-and-play platform to read out various sensors and store the results in the cloud.

A large PCB with several sensor modules and a microcontrollerDeliberately designed to be easy to assemble with minimal soldering skills, the Sensor Playground consists of a big two-layer PCB onto which various modules can be plugged. It supports either an ESP32 DevKit or an Adafruit Feather module to provide processing power, and provides sockets for a bunch of sensors, conveniently wired with power and SPI or I2C. It also provides a rotary encoder and two buttons for user input. All source files are available on [tdw]’s GitHub page, ready to be applied to any kind of sensing task.

[tdw] set up his Sensor Playground with sensors measuring CO2, VOC, PM2.5 (particulate matter), as well as temperature and relative humidity. A web interface allows anyone to track these measurements in real-time. The open and modular design should make it easy to extend this system with various other sensor types: we can imagine that things like solar irradiation, outside temperature and wind speed would also add useful data to the mix. Perhaps even a Geiger counter to keep track of radiation levels?

As indoor air quality sensors go, this one is definitely comprehensive and easy to use. We’ve featured other air quality sensors before, some of which also link their data to the cloud.

World’s Worst I/O Dock Doesn’t Deserve Elegant Fix

Even spendy commercial products can end up being lemons. This is something [Mike Buss] is familiar with, as he had the misfortune of being stuck using what he declares is the world’s worst USB hub, and it’s not even a mystery discount device from overseas: it’s an HP Thunderbolt Dock G2. It is a sort of combination I/O dock and USB hub, and it caused him no end of frustration until he “fixed” it with a crude workaround.

The problems with [Mike]’s dock come down to two major issues. The first is that the USB-C connection will, if moved even the slightest amount, instantly trigger a disconnect from the host computer. Frankly, that sounds like a defect, but that’s not all. The other issue is that the whole top of the device is actually a giant, hyper-sensitive button. Even a stern gaze seems to be enough to cause it to activate. What does the button do? It puts the host computer to sleep; something that we all agree should suffer from as few false activations as possible.

We’ll spoil the surprise by revealing that the “fix” was nothing more than putting a 3D printed enclosure around the troublesome device, as shown in the image above. Keeping the dock covered and perfectly still at least prevents the two aforementioned issues, and that’s good enough for [Mike].

The curious part of all this is just how badly the device’s design affected normal use. We’d suspect a defect or malfunction, but a cursory search of reviews online suggests [Mike]’s experience isn’t unique. It’s certainly not the first poorly-designed product we’ve seen fixed by a new enclosure, but some problems just aren’t worth the effort of a more elegant solution.

Welcome To The Future, Where Your Microwave Thinks It’s A Steam Oven

It’s fair to say that many of us will have at some time inadvertently bricked a device by applying the wrong firmware by mistake. If we’re lucky then firing up some low-level reflashing tools can save the day and return the item in question to health, but we’re guessing that among you will be plenty of people who’ve had to discard a PCB or replace an inaccessible microcontroller chip as a result.

Spare a thought then for the consumer appliance manufacturer Electrolux, whose AEG subsidiary has bricked combi microwave ovens acrosss a swathe of Western Europe (Dutch, Google Translate link). They managed this improbable feat by distributing an over-the-air update that contains the firmware for a steam oven instead. Worse still, the update has disabled over-the-air updates, meaning that any fix requires physical access to the oven.

We can’t help sympathising with whichever poor AEG engineer has had the ultimate in bad days at work, but at the same time we should perhaps consider the difference between a computer and an appliance, and whether there should be a need for an oven to phone home in the first place. Sure, such devices have been computer-controlled for decades, but should a microcontroller doing a control task need constant updates?

We’re guessing this oven has some kind of cloud aspect to it which allows AEG to slurp customer data the user to control it via their app, but even so it should serve as a warning to anyone tempted by an internet-connected kitchen appliance. If the internet isn’t necessary for the food to be cooked, don’t connect it.

We feel sorry for anyone who might have put a pizza in the oven just before it was bricked, and watched in disappointment as their tasty meal remained uncooked.

Great Computer Hacks Make Hackers Hacker Computers

In the year 1995, computers were, well… boring. The future wasn’t here yet, and computers were drab, chunky beige boxes. Sure, there were some cool-ish computers being sold, but the landscape was still relatively barren. But as you’ll see in the video below the break, it doesn’t have to be that way, and the [Hackers Curator] shows us the way by recreating Johnny Lee Miller’s computer from the 1995 movie Hackers.

Hackers wasn’t popular when it came out, but over the years it has gained quite a following. It portrayed computers and the people who loved them in completely new ways, representing a culture that has never existed. Even so, it inspired so many young hacker types. Among those inspired is the crew over at [Hackers Curator] and they have taken it upon themselves to, uh… curate… the props, costumes, and stories surrounding the movie.

Recreating Dade’s iconic camo “luggable” computer came with quite a lot of difficulty. It turns out that the original movie props were working custom computers that used hacked together customized cases and Mac Powerbook 180c internals. Dade’s (aka Zer0 Cool and Crash Override) was mashup of the a Compaq Portable 486c and the aforementioned Mac. [HackersCurator] have lovingly recreated this prop from two broken computers, but chose to run the internals with a Raspberry Pi.

The techniques used in the creation of this beastly cyberdeck are ones that can be used in building so many other projects, even if you’re not a Hackers hacker. Customizing the plastics and placing a trackball in the most awkward of spots was expertly done, and we’ll be referring to it in the future for guidance when doing similar projects.

Are movie replica hacks your thing? You’re in luck! It turns out that this isn’t [Hackers Curator]’s first build. In 2019 they tackled Lord Nikon’s laptop, and of course, we covered that one too!

Continue reading “Great Computer Hacks Make Hackers Hacker Computers”