Hackaday Links Column Banner

Hackaday Links: May 14, 2023

It’s been a while since we heard from Dmitry Rogozin, the always-entertaining former director of Roscosmos, the Russian space agency. Not content with sending mixed messages about the future of the ISS amid the ongoing war in Ukraine, or attempting to hack a mothballed German space telescope back into action, Rogozin is now spouting off that the Apollo moon landings never happened. His doubts about NASA’s seminal accomplishment apparently started while he was still head of Roscosmos when he tasked a group with looking into the Apollo landings. Rogozin’s conclusion from the data his team came back with isn’t especially creative; whereas some Apollo deniers go to great lengths to find “scientific proof” that we were never there, Rogozin just concluded that because NASA hasn’t ever repeated the feat, it must never have happened.

Continue reading “Hackaday Links: May 14, 2023”

Minimal USB Device Connects With Just A Couple Of Resistors

If you’re like most of us, your basic approach to building something boils down to: “What’s the minimum amount I need to do to get this to work?” It’s not a bad strategy in general, but the minimal build is rarely enough to meet all the requirements, as this extremely minimal but functional USB device illustrates.

Functional, yes, but as [TM] explains, only if you define functional as being recognized by your operating system. The BOM for that job turns out to be really small — a 3.3-volt regulator, its capacitor, and a pair of resistors connected to a DIP switch. The resistors, 1.5k each, are connected to the D+ and D- lines of the USB connector and pull their respective lines up to 3V3 when their switch is closed. If the D- switch is thrown, it indicates a low-speed connection is requested, while D+ requests a speedier connection. Either way, its enough to get the familiar “USB connect” sound in Windows, and to see it listed in Device Manager or dmesg on Linux.

With no microcontroller to return a device descriptor, not much else happens, of course, but it’s still interesting that so little is needed to at least get the host machine to know that something was plugged in. And that alone has some diagnostic value; as [TM] points out, you could use this circuit to test that the physical port on the host at least minimally works.

He runs through a few other potentially useful scenarios, but really, the best use of something like this is to educate yourself on the lowest levels of USB connection negotiation. If you want to dive deeper into USB-C specifically, we suggest you check out [Arya Voronova]’s “All About USB-C” series.

Continue reading “Minimal USB Device Connects With Just A Couple Of Resistors”

USB Meets Core Memory In A Vintage ‘Scope

It’s normal today for even relatively modest instruments to have some form of computer control capability over Ethernet or USB. But five decades ago this was by no means a given, and when Tektronix shipped their P7001 digitiser module for their high-end oscilloscopes in 1971, they were initially designed to interface with a minicomputer. Not everybody has a PDP/11 lying around in 2023, but [Holger Lübben] wasn’t fazed by this. He set about creating a USB interface for this ancient piece of test equipment.

At its heart is a Teensy 4.1 which does the job of interfacing with the Tektronix 16-bit bus through a level shifting transceiver. The software for the Teensy comes with some demos, but sadly not the Tek BASIC of the original. We’re particularly impressed with the care to make the card frame for the module resemble as closely as possible an original Tektronix product.

We’re guessing very few of you will have this ancient test module on your bench, but the depth into which he goes over its internal design and programming makes this very much worth a read. If you fancy more vintage Tek goodness, take a look at this current probe.

New Drivers For Ancient Webcam

For those of us who are a little older, the 90s seem like they were just a few years ago. The younger folks might think that the 90s were ancient history though, and they might be right as we’ve been hearing more bands like Pearl Jam and The Offspring playing on the classic rock stations lately. Another example of how long ago the 90s were is taking a look at the technological progress that has happened since then through the lens of things like this webcam from 1999, presuming you load up this custom user space driver from [benjojo].

Thankfully the driver for this infamous webcam didn’t need to be built completely from scratch. There’s a legacy driver available for Windows XP which showed that the camera still physically worked, and there’s also a driver for Linux which was used as a foundation to start working from. From there a USB interface was set up which allowed communication to the device. Not a simple task, but apparently much easier than the next steps which involve actually interpreting the information coming from the webcam. This is where a background in digital signal processing is handy to have. First, the resolution and packet size were sorted out which led to a somewhat recognizable image. From there a single monochrome image was pieced together, and then after deconstructing a Bayer filter and adding color, the webcam is back to its former 90s glory.

[benjojo] has hosted all of the code for this project on a GitHub page for anyone who still has one of these webcams sitting around in the junk drawer. The resolution and color fidelity are about what we’d expect for a 25-year-old device that predates Skype, Facebook, Wikipedia, and Firefox. And, while there are still some things that need to be tweaked such as the colors, white balance, and exposure, once that is sorted out the 90s and early 00s nostalgia is free to flood in.

Recreating A Non-Standard USB Cable

USB is a well-defined standard for which there are a reasonable array of connectors for product designers to use in whatever their application is. Which of course means that so many manufacturers have resorted to using proprietary connectors, probably to ensure that replacements are suitably overpriced. [Teaching Tech] had this problem with a fancy in-car video device, but rather than admit defeat with a missing cable, he decided to create his own replacement from scratch.

The plug in use was a multi-way round design probably chosen to match the harshness of the automotive environment. The first solution was to hook up a USB cable to a set of loose pins, but after a search to find the perfect-fitting set of pins a 3D printed housing was designed to replace the shell of the original. There’s an ouch moment in the video below the break as he receives a hot glue burn while assembling the final cable, but the result is a working and easy to use cable that allows access to all the device functions. Something to remember, next time you have a proprietary cable that’s gone missing.

Continue reading “Recreating A Non-Standard USB Cable”

High Voltage Power Supply From USB

Those who work in different spaces may have different definitions of the term “high voltage”. For someone working on the GPIO pins of a Raspberry Pi it might be as little as 5 volts, someone working on a Tesla coil might consider that to be around 20 kV, and an electrical line worker might not reference something as HV until 115 kV. What we could perhaps all agree on, though, is that getting 300 volts out of a USB power supply is certainly a “high voltage” we wouldn’t normally expect to see in that kind of context, but [Aylo6061] needed just such a power supply and was eventually able to create one.

In this case, the high voltages will eventually be used for electrophoresis or electrowetting. But before getting there, [Aylo6061] has built one of the safest looking circuits we’ve seen in recent memory. Every high voltage part is hidden behind double insulation, and there is complete isolation between the high and low voltage sides thanks to a flyback converter. This has the benefit of a floating ground which reduces the risk of accidental shock. This does cause some challenges though, as voltage sensing on the high side is difficult while maintaining isolation, so some clever tricks were implemented to maintain the correct target output voltage.

The control circuitry is based around an RP2040 chip and is impressive in its own right, with USB isolation for the data lines as well. Additionally the project code can be found at its GitHub page. Thanks to a part shortage, [Aylo6061] dedicated an entire core of the microprocessor to decoding digital data from the high voltage sensor circuitry. For something with a little less refinement, less safety, and a much higher voltage output, though, take a look at this power supply which tops its output voltage around 30 kV.

USB Borescope Lets Doctors Hone Intubation Skills On The Cheap

One of the most critical skills in emergency medicine is airway management. Without a patent airway, a patient has about four minutes to live, so doctors and paramedics put a huge amount of effort into honing their intubation skills. They have to be able to insert an endotracheal tube quickly and efficiently, without damaging sensitive structures like the vocal cords. It’s a tricky skill to master without a ton of practice.

The perfect tool to practice these skills is a video laryngoscope, but these are wildly expensive and reserved for clinical use. Luckily, with a little ingenuity and a cheap USB borescope, [Dr. Adam Blumenberg] and [Dr. Erin Falk] were able to come up with this low-cost video-assisted laryngoscopy setup to reach as many students as possible. The idea is to use a single-use laryngoscope blade, which replicates the usual tool used to visualize the patient’s vocal cords. The blade is made from clear plastic, which makes it perfect for the application. The borescope is passed through an opening in the blade and affixed to it with adhesives. A little Dremel work might be necessary to get the optical axes of the blade and the camera to line up; failing that, there’s always the option to disassemble the camera to get a better angle.

The chief advantage of this setup, aside from being cheap, is that it’s something that it’s not intended to be used on patients. Along with an airway manikin, the tricked-out borescope can sit in a conference room waiting for students to have a go. Using a large screen allows the whole group to watch the delicate procedure and learn from the mistakes of others. It may not be as detailed a simulation environment as some, but “blade time” is really what counts here.