A Switchboard Operator Simulator, On Real Hardware

After having been around computer games since the end of the 1970s, one might think that, to borrow a Who lyric, from Soho down to Brighton, you must have played them all. Games get flashier, have more depth, or longer stories, but substantially they fit into familiar categories. Then along comes [Mark Sidell] with a Western Electric telephone switchboard, and changes all that. We ain’t seen nothing like it, in any amusement hall.

The premise of this game is simple. In front of you is a real 1950s telephone switchboard, and you play the operator at a hotel. Your job is to route calls between guests, hotel-functions, and external lines. There are sixty characters on the line, and 120 scenes played out over the phone.

Behind the scenes is a PC with a multichannel sound card, and perhaps most importantly the switchboard hasn’t been modified. It’s a board with a history, having been used at the Southern California Edison office before being given to its former operator, and then donated to the Connections Museum. It’s thus really unusual in that it retains all of its internal hardware, something frequently removed in decommissioned boards to save weight. There’s a video below which shows it in action, and if you’re like us, we think you’d want to give it a go too.

We like this project for its novelty, its attention to detail, and above all, for its respect of the original hardware. Meanwhile, it’s not the first piece of venerable telephone hardware we’ve brought you.

Continue reading “A Switchboard Operator Simulator, On Real Hardware” →

Ask Hackaday: Putting The C In CPU

I was once in a meeting where the facilitator asked us to introduce ourselves with the usual information, but also wanted us to share our favorite hobby. I spent a second trying to think of which hobby I could say to not sound like a total nerd. Then I realized it didn’t matter. All my hobbies are nerdy, including designing CPUs and their instruction sets.

I actually started sketching out an instruction set when I was a kid, back when no one had home computers. I am glad I lost that notebook: it would be painful to see today. The first CPU I put on an FPGA wasn’t of my own design, though. I implemented BLUE from Caxton Foster’s Computer Architecture book. I also extended it and modernized it a lot. I really wanted a C compiler for it.

C Compilation

That’s really the problem. C was once a simple language, but modern C is far from simple, and compilers are huge projects. I have looked before at porting GCC to a different architecture, and it looks daunting. There’s LLVM, which is a bit more modern, but also non-trivial to port. There are a few older compilers that ought to be easier, but they often aren’t quite modern enough. Plus, if your CPU were big enough, which BLUE isn’t, GCC or a similar modern compiler would be attractive because you could use it to get Linux going.

Keep in mind, though, I’m not talking about a C compiler that runs on BLUE. Just a cross-compiler. My OneDer CPU is 32-bit and could host a C compiler, though. That’s another reason to bite the bullet and do a “big” compiler port. Because even if BLUE isn’t that big, other CPUs are, and I’d love to have a GCC port under my belt.

Continue reading “Ask Hackaday: Putting The C In CPU” →

Designing A Passively Morphing Quadcopter That Can Fly Through Gaps

Generally when a quadcopter attempts to occupy the same space as an immovable object, the quadcopter comes out as the loser. Although you can add active systems that detect and morph the quadcopter’s shape before trying to e.g. squeeze through a narrow tunnel, this adds a lot of complexity. In comparison, [Etor Arza] et al. chose to passively morph their quadcopter design upon encountering resistance.

Their prototype can change its width from 31.3 to 14.1 cm, which is demonstrated to fly through gaps as small as 15×20 cm and 40 cm long tubes. Although passively morphing quadcopter designs aren’t new, the challenge with such a design is to reliably transform and restore to nominal configuration only when needed.

To achieve this they made two of the quadcopter’s arms flexible using elastic rolling cam (ERC) joints, with the details covered in the paper over at arXiv. They also ran many simulations to figure out the best angles under which to approach a narrow gap, following which the built-up tension in the ERC joint pushes the arm back into its nominal position.

Continue reading “Designing A Passively Morphing Quadcopter That Can Fly Through Gaps” →

Getting Started With Hobbyist-Level 3D Scanning Technologies

Going from a physical object to a 3D model on your computer would go so much faster than manual modelling if you could just hold the object up to said computer and tell the modelling software to just create that, but digital. Although that may sound as silly as talking to a computer mouse, this is basically what 3D scanners are trying to achieve, with varying levels of success over the decades.

Although 3D scanners have existed for decades, their hobbyist variants have only become affordable relatively recently. Here two approaches are popular: photogrammetry and structured light, with the latter quite recently adding lasers to the original near-infrared (NIR) projection approach for theoretically even higher resolutions and better compatibility with certain materials.

Both approaches seem quite viable for detailed scans on face value, but the major question is how they perform when you throw a range of challenging objects at them. Which one should you splurge your hard-earned cash on?

Continue reading “Getting Started With Hobbyist-Level 3D Scanning Technologies” →

Troubleshooting Ethernet Networks With The ESP32

While there are cheap handheld testers that can tell you if an Ethernet jack is wired improperly or if the cable itself has a broken conductor, figuring out if there’s a live TCP/IP network over it is a little more difficult. There are commercial testers that can detect those sorts of issues as well, but they’re considerably more expensive. So when trying to diagnose a flaky network connection, it’s often necessary to lug a laptop around so you can plug it in at various points to try and isolate the problem.

Mobile view of the web UI.

If this is a situation you occasionally find yourself in, the Syndetis project by [theo79] may be of interest. This firmware for the WT32-ETH01 turns the ESP32 development board into a handy network tester that can determine Ethernet link status,  pin IP addresses, detect other devices using Link Layer Discovery Protocol (LLDP), and even and sniff out active services such as DHCP. Add an 128×64 OLED display, a few buttons, and a USB power bank, and you’ve got a self-contained diagnostic tool that can fit in your pocket.

Anyone who’s had to squeeze into a wiring closet will appreciate the stand-alone nature of this device. But if you’ve got the room to bring your phone along and a free hand to operate it, the firmware also offers up a web interface that can be accessed over WiFi.

This will present you with a slightly more polished UI than can be offered up by the OLED and buttons, offering up a more complete view of what’s happening on the network. It’s also possible to generate diagnostic reports that are saved as JSON files for later analysis.

If you don’t need all these fancy features and just want a quick way to tell if an Ethernet cable is good, we’ve covered a DIY tester that uses the venerable 555 timer. If you’ve got a multimeter handy, you can get away with little more than a bare PCB.

RF Remote Cloning Without The Benefit Of An SDR

It’s difficult to overstate just how transformative the RTL-SDR project was for the hobbyist. It wasn’t that software-defined radios didn’t exist before that, of course. It’s that folks like us didn’t have access to them. Suddenly any hacker or maker with $20 to spare could peek in on how all sorts of devices were talking to each other, and we’re still seeing the practical applications of this new capability more than a decade later.

But snooping on higher frequencies usually requires considerably more expensive gear, which is the problem that [Henrikbiscuit] recently ran into. He wanted to hook the Lindby Velua ceiling light into Home Assistant, and that meant cloning the signals being sent by its 2.4 GHz remote. Without the benefit of an SDR that could listen in on something that high, he ended up doing it with nRF24 and CC2500 transceiver chips connected to an ESP32.

Conceptually, this would seem fairly straightforward. After all, these are the sort of chips that would normally be used for  consumer gadgets that wanted to talk on 2.4 GHz. But you’ve still got to figure out what the remote is sending out over the air, and doing that without the benefit of something like Universal Radio Hacker can be daunting.

Continue reading “RF Remote Cloning Without The Benefit Of An SDR” →

It Isn’t That The Trackpad Sings Well…

[Samuel Johnson] once remarked something about when a dog walks on its hind legs, it isn’t that it is done well, it is that it’s done at all. We imagine that’s what [os6]’s nospeaker project is like. It uses the haptic speaker in a MacBook trackpad to generate sound. You can hear it in the X post, embedded below.

To make the trick work, you need a Force Touch trackpad. These trackpads have a motor that taps glass to give you feedback. But if you drive the motors fast, the glass vibrating will make tones. Of course, the official API only offers three fixed taps. Then there is the private and undocumented MultitouchSupport interface.

To make it work, the system captures speech output from macOS and then finds the two strongest formants and feeds them to the motors. In theory, it is possible to use three resonances, but in practice that didn’t sound as good as using two.

Continue reading “It Isn’t That The Trackpad Sings Well…” →