Mesh2Cad Automates Re-Modelling

It’s happened to all of us, we find an STL that would just about solve our problems, but the mesh isn’t quite right. Sometimes mesh-editing is good enough, other times you need to rebuild the mesh in a proper CAD environment to get what you need. In that latter case, [Emir Mrkaljevic]’s Mesh2Cad program could save you a whole lot of work, because it does exactly what it says on the tin: turns a mesh to a CAD file.

Even better, [Emir] doesn’t pick the CAD format for you. Sure, it does STEP, but you can also go straight to FreeCAD, CadQuerry or OpenSCAD with these handy scripts. Well, technically the FreeCAD version generates a macro to make the object rather than a .FCSTD, but that’s still pretty handy. Scripts is the right word for mesh2cad, because the whole thing is python and just a pip install mesh2cad away from living on your machine. Of course you don’t need to use pip since the whole thing is on GitHub and available for your eyeballs to audit. Speaking of audit, the scripts apparently check their own work and only give you CAD if they can approximate the mesh within tolerance.

Now there are limits here, if you think it sounds too good to be true. You’re limited to things that can be made of the sort of primitive manipulation OpenSCAD usually deals in — no organic shapes, free-flowing curves, or the like. If it’s a box or a bracket with holes, fillets and chamfers, though, this tool might save you a couple minutes recreating it.

If you prefer to do it yourself or have one of those annoyingly-organic meshes this tool won’t touch, we have a guide for what to do when an STL needs some tweaking.

Sega Dreamcast Plays Nintendo 64 Cartridges

In many ways, the Sega Dreamcast was the most forward-thinking console ever produced. It included a built-in Internet connection in a time when the Internet was just becoming widely accessible, VGA output when most people connected their consoles to their televisions with composite video or RF adapters, and even supported a custom version of Windows. Its advanced features were partially a cause of its commercial failure, though, although the system is still beloved by a niche community today. Partially because it is a great platform for modding in bizarre and novels ways like this build which adds Nintendo 64 cartridge compatibility.

The controllers were unique and fairly advanced as well. They used a proprietary serial interface called Maple which is a protocol that could handle data transmission at a rate of around 2 megabits per second, which is not too shabby for technology from the late 90s, let alone for the controller on a gaming console. Using that capability to read data from a Nintendo 64 cartridge ought to be fairly straightforward then. To get the peripheral up and running, [Throaty Mumbo] took a cartridge port from a N64 and wired it to an adapter which lets the Dreamcast read the data on the cartridge through the controller port. There’s an N64 emulator available for Dreamcast, although the system is not quite fast enough for this to make games playable. The way around this was to use assets and save data from the cartridge but run games that were recompiled for the Dreamcast instead.

[Throaty Mumbo] finishes out the build with a custom PCB and case which turns it into a usable cartridge reader that easily slots into a controller port. Then, using the same premise, he built cartridge readers for other systems’ games like the SNES and Genesis, making the Dreamcast somewhat backwards-compatible. Although the Dreamcast was technically advanced it didn’t have a DVD capability, but [Throaty Mumbo] covered that in a previous build using a similar controller-based peripheral approach.

Continue reading “Sega Dreamcast Plays Nintendo 64 Cartridges” →

How Hough Transforms Enable Computers To See

Although identifying what we can see with our eyes feels like the most natural thing in the world, the responsible cognitive processes running on our brain’s wetware are quite a marvel. Even when pushed beyond their evolutionary design by e.g. driving a car at high speeds does our vision system mostly manage to keep up. Emulating these cognitive processes with artificial cognition (AC) systems like computer vision required the development of feature extraction algorithms, such as the Hough Transform that’s the topic of this video by [The Synthetic Mind].

The Hough Transform was developed originally by [Paul Hough] in the 1960s for machine analysis of patterns in bubble chamber photographs. From there the basic algorithm has evolved beyond merely detecting the straight lines of particles zipping through said bubble chambers.

Key however remains determining the points in a scene which potentially make up the lines, which requires edge detection. Yet unlike in basic examples, real-life use of these algorithms is made hard by how complex a real-life scene is. Naively checking all possible lines as in the original algorithm would take far too long, which led to the development of optimizations that take considerably less time and deal better with pixel noise.

Of course, after finding all potential lines and borders of objects in a scene the next step for a computer vision is to identify what has been spotted, what it means for the current task and determine an appropriate action. Here getting additional scene information other sensors like radar or Lidar can be incredibly helpful, especially when you’re the system in control of something like a car.

Examples like these definitely promote an appreciation of how hard it is to create AC algorithms that can emulate what we animals can seem to do almost effortlessly. Even before considering the intelligence subset of cognition, one cannot help but marvel at the sheer effort it takes for us humans to not constantly bump into things.

Continue reading “How Hough Transforms Enable Computers To See” →

Tracking Down A Mystery Beep By Giving A Coding Agent A Few Ears

[Simon Willison] recently used a coding agent in an unusual way. A software system temporarily used the microphones on devices scattered around the room to triangulate the source of a mysterious, intermittent beep coming from within one of the many boxes in the room.

The main part of the system is a Python web server, and the listeners can be any old devices one might have hanging around. Scan a QR code, and the device becomes a listening post by leveraging the Web Audio API. With listeners spread around the room, the system has everything it needs to patiently wait, listen, and zero in on the mystery beep. The culprit? An old carbon monoxide detector, buried in a box and emitting a low battery chirp.

That’s neat, but what this project really demonstrates is the benefit of hacking together a way for a coding agent to actually sense the real world, the better for it to design a solution to a physical problem.

The ad-hoc framework of web-based listeners allowed [Simon] to give the agent the ability to gather audio data on its own to refine and recalibrate its approach during development, without any need for him to record audio and pass it on manually.

It’s a bit reminiscent of this WiFi analyzer connected to an AI model, a project that hints at the possibilities of a physical tool that can be steered by an agent. Check out the GitHub repository for beep-locator if you’d like a closer look at the code itself.

The Mega Tamagotchi Manga Reader

You could read manga in the classic bound paper format. But then you’d have to carry around lots of volumes that take up lots of space. The way around this is to use an e-reader, that stores lots of manga in digital form. [Arnov Sharma] built his own themed after the classic Tamagotchi.

What you’re looking at is a big ol’ 3D printed mega-Tamagotchi. It apes the design of the original digital pet, but is scaled up to a size large enough to host a large screen. In particular, the Waveshare ESP32-P4 Touch LCD 4.3 development board, which pairs the 480 x 800 screen with the capable wireless-enabled microcontroller and even a little speaker. Two, as it happens, because there’s an ESP32-P4 and an ESP32-C6 on the board. Power is via a pair of 2000 mAh lithium-ion cells. Manga is loaded on to the device via an SD card, in JPEG format. [Arnov] uses the ESP32-P4’s hardware JPEG decoder to make flipping pages quicker than the 2-5 seconds it would take to do the same decode in software. There are also some fun tricks in the firmware that improve contrast in black-and-white scans and vibrancy in color scans, too.

If you want to read manga on the go in a device with a fun form factor, consider building something similar yourself. To populate your reader, consider a past project we examined that turns movies into comic books. Video after the break.

Continue reading “The Mega Tamagotchi Manga Reader” →

Handheld Motor Cancels Out Every Twist And Turn

It’s one thing to know that input from a motion sensor can steer a motor. It’s another to see and feel the two cancelling out the other in real-time, right in the palm of one’s hand. That’s [cpietsch]’s takeaway from the CAN do GYRO, a brushless motor with a CAN interface and tiny STM32-based development board perched atop it.

No matter how one moves, the motor swivels to keep pointing the top in the same direction; a bit like a south-pointing chariot.

It’s essentially a one-axis gimbal with a few thoughtful features. The unit tracks itself fully in three dimensions, so while the motor is limited to one axis, the unit doesn’t get confused by complex movements. It also auto-calibrates, and auto-stops within half a rotation if it detects the motor spinning freely.

The hardware consists of a tiny XIAO STM32C5 microcontroller board with integrated IMU (Inertial Measurement Unit) and CAN transceiver, and an M5Stack RollerCAN motor. The motor, handily, has a small OLED screen built into it.

Combined with a battery it’s small enough to be handheld while it shows off what a tight control loop paired with a suitable motor can do. Watch it in action in the video, embedded below.

Of course, accurate gimbals using brushless motors have been around for many years. But one thing that’s plain is just how much the kind of hardware available to individuals has changed. Compare this build to a DIY gimbal project from about ten years ago and you’ll see the function looks about the same, but today’s hardware has evolved considerably.

Continue reading “Handheld Motor Cancels Out Every Twist And Turn” →

Serial: The Port That Won’t Die

Computers have changed quite a bit over the last 60 years. Good luck plugging in an old MFM disk into your modern computer. Plugging in a parallel printer is difficult, although not impossible, as long as the device really is a printer. But the humble serial port refuses to die.

Sure, you probably don’t have a 25-pin connector on your laptop anymore. You might not even have a nine-pin connector. But serial communication is everywhere, especially if you work with microcontrollers or industrial equipment. The connectors have changed, but much of the underlying technology would be recognizable to someone working with a computer in 1975.

From Clicking Teletypes

The ASR-33 was the best way to talk to a computer until it wasn’t. (Photo by [ArnoldReinhold] CC-BY-SA-3.0)
Before video terminals, there were teletypes. These electromechanical beasts could send and receive characters over wires using a current loop. Older machines, such as the Teletype Models 15 and 28, commonly used 60 mA loops (and five-bit codes), often at 120 volts DC. Later machines, including the iconic ASR-33, generally used 20 mA loops. Current flowing represented a mark, while an interruption in the current represented a space. Marks and spaces on the line translate to 1s and 0s. The beauty of current loops was their simplicity, relative resistance to electrical noise, and their ability to drive very long cables.

Continue reading “Serial: The Port That Won’t Die” →