Mat Boards Are Spendy, So DIY CNC Tool To The Rescue

Mats are flat pieces of paper-based material that fill the space between a frame and the art within. They perform a number of aesthetic and practical functions, and they can also be expensive to purchase. Making them by hand is an option, but it’s an exacting process. [wooddragon48] felt that a CNC solution would serve this need nicely, and began designing a DIY CNC tool to do exactly that.

One of the tricky parts about cutting mat boards is that cuts are at an angle, and there is really no tolerance for overcuts or any kind of visual blemish. CNC control would seem to offer a great solution to both the need for precisely straight cuts, as well as fine control over where cuts begin and end in a way that opens the door to complex designs that would be impractical to do by hand.

[wooddragon48]’s design has an angled cutter designed to plunge perfectly on demand, surrounded by a ring — similar to that on a router — which ensures the cutting tool is always consistently positioned with the material. It’s still in the design phase, but this is a type of tool that doesn’t yet exist so far as we can tell. The ability to CNC cut mat board, especially in complex designs, would be a huge timesaver.

Art and DIY CNC have a long history of happy intersection, as we have seen with a CNC router repurposed for string art, a CNC painting robot, and even an interactive abstract sculpture generator.

Math Reveals How Many Shuffles Randomizes A Deck

Math — and some clever simulations — have revealed how many shuffles are required to randomize a deck of 52 cards, but there’s a bit more to it than that. There are different shuffling methods, and dealing methods can matter, too. [Jason Fulman] and [Persi Diaconis] are behind the research that will be detailed in an upcoming book, The Mathematics of Shuffling Cards, but the main points are easy to cover.

A riffle shuffle (pictured above) requires seven shuffles to randomize a 52-card deck. Laying cards face-down on a table and mixing them by pushing them around (a technique researchers dubbed “smooshing”) requires 30 to 60 seconds to randomize the cards. An overhand shuffle — taking sections from a deck and moving them to new positions — is a staggeringly poor method of randomizing, requiring some 10,000-11,000 iterations.

The method of dealing cards can matter as well. Back-and-forth dealing (alternating directions while dealing, such as pattern A, B, C, C, B, A) yields improved randomness compared to the more common cyclic dealing (dealing to positions in a circular repeating pattern A, B, C, A, B, C). It’s interesting to see different dealing methods shown to have an effect on randomness.

This brings up a good point: there is not really any such a thing as “more” random. A deck of cards is either randomized, or it isn’t. If even two cards have remained in the same relative positions (next to one another, for example) after shuffling, then a deck has not yet been randomized. Similarly, if seven proper riffle shuffles are sufficient to randomize a 52-card deck, there is not really any point in doing eight or nine (or more) because there isn’t any such thing as “more” random.

You can watch these different methods demonstrated in the video embedded just under the page break. Now we know there’s no need for a complicated Rube Goldberg-style shuffling solution just to randomize a deck of cards (well, no mathematical reason for one, anyway.)

Continue reading “Math Reveals How Many Shuffles Randomizes A Deck”

AI Image Generation Gets A Drag Interface

AI image generators have gained new tools and techniques for not just creating pictures, but modifying them in consistent and sensible ways, and it seems that every week brings a fascinating new development in this area. One of the latest is Drag Your GAN, presented at SIGGRAPH 2023, and it’s pretty wild.

It provides a point-dragging interface that modifies images based on their implied structure. A picture is worth a thousand words, so this short animation shows what that means. There are plenty more where that came from at the project’s site, so take a few minutes to check it out.

GAN stands for generative adversarial network, a class of machine learning that features prominently in software like image generation; the “adversarial” part comes from the concept of networks pulling results between different goalposts. Drag Your GAN has a GitHub repository where code is expected to be released in June, but in the meantime, you can read the full paper or brush up on the basics of how AI image generators work, as well as see how image generation can be significantly enhanced with an understanding of a 2D image’s implied depth.

Headset’s Poor Range Fixed By Replacing Antenna

[rafii6312]’s Corsair HS80 wireless headset had a big problem: short range. The sound quality was great, but the wireless range wasn’t winning any friends. Fortunately, the solution was just to swap the small SMT antenna on the USB transmitter for an external one.

Original SMT antenna (blue component) offers small size, but poor range.

This particular headset relies on a USB dongle to transmit audio from PC to headset over its own 2.4 GHz wireless connection. By popping open the USB dongle, [rafii6312] was able to identify an SMT antenna and easily desolder it, replacing it with a wired connection to a spare 2.4 GHz external antenna. That’s all it took to boost the headset’s range from barely one room to easily three rooms, which is a success by any measure.

Sadly, the USB transmitter dongle doesn’t have any intention of being opened and puts up a fight, so the process was a bit destructive. No problem, [rafii6312] simply fired up Fusion360 to design a new 3D-printed enclosure that accommodated the new antenna. Pictures, instructions, and 3D model files are all available on the project page, if you want to improve your headset, too.

This kind of antenna upgrade is reasonably straightforward, but if one is armed with the right knowledge, antenna upgrades from scratch using scrap wire and dollar store hardware are entirely possible. Just be sure to pick an antenna that doesn’t weigh down your headset.

Nokia N-Gage QD Becomes Universal Bluetooth Gamepad

The Nokia N-Gage might not have put up much of a fight against Nintendo’s handheld dynasty, but you can’t say it didn’t have some pretty impressive technology for the time. [BeardoGuy] happens to have a perfectly functional N-Gage QD, which he turned into a universal Bluetooth gamepad.

The handheld runs a program that makes it act as a gamepad, and a DIY Bluetooth dongle is required on the client side. The dongle consists of an ATtiny85-based development board and HC-06 Bluetooth module, and will be recognized as a USB gamepad by just about anything it plugs in to.

[BeardoGuy]’s custom GamepadBT program sends button events via Bluetooth to the dongle, and those events are then sent via USB and look just like those from any standard gamepad.

This project can be used as a resource for how to implement a USB gamepad, whether on a Nokia N-Gage or not. You can see all the details at the project’s GitHub repository, and watch it in action in the video embedded below.

As for the Nokia N-Gage itself, one might be interested to know there’s an up-to-date development environment and even Wordle has been ported to the N-Gage. It may look like a relic of the past, but it is far from being forgotten.

Continue reading “Nokia N-Gage QD Becomes Universal Bluetooth Gamepad”

Hacking The IKEA OBEGRÄNSAD LED Wall Lamp

The IKEA OBEGRÄNSAD is a pixel-style LED wall lamp that comes with a few baked-in animations, and [ph1p] improved it immensely with an ESP32 board and new firmware. The new controller provides all kinds of great new abilities, including new modes and animations, WiFi control, and the ability to send your own images or drawings to the panel. All it takes is desoldering the original controller and swapping in a programmed ESP32.

Hacking in a new controller provides a whole new range of capabilities.

Sadly, opening the unit up is a bit of a pain. It seems the back panel is attached with rivets rather than screws, but it will yield to a little bit of prying force.

The good news is that once the back panel is off, the inside of the OBEGRÄNSAD is very hackable. All the parts and connectors are easily accessible from where they are, and a nicely-labeled pin header makes a convenient attachment point for the new ESP32 board. There’s no need to disassemble any further once the back is off, and that’s always nice.

Going a bit smaller, we’ve also seen an IKEA LED nightlight greatly improved by a little hacking, and there are plenty more IKEA hacks where that came from.

Hackaday Prize 2023: Hearing Sirens When Drivers Can’t

[Jan Říha]’s PionEar device is a wonderful entry to the Assistive Tech portion of the 2023 Hackaday Prize. It’s a small unit intended to perch within view of the driver in a vehicle, and it has one job: flash a light whenever a siren is detected. It is intended to provide drivers with a better awareness of emergency vehicles, because they are so often heard well before they are seen, and their presence disrupts the usual flow of the road. [Jan] learned that there was a positive response in the Deaf and hard of hearing communities to a device like this; roads get safer when one has early warning.

Deaf and hard of hearing folks are perfectly capable of driving. After all, not being able to hear is not a barrier to obeying the rules of the road. Even so, for some drivers it can improve awareness of their surroundings, which translates to greater safety. For the hearing impaired, higher frequencies tend to experience the most attenuation, and this can include high-pitched sirens.

The PionEar leverages embedded machine learning to identify sirens, which is a fantastic application of the technology. Machine learning, after all, is a way to solve the kinds of problems that humans are not good at figuring out how to write a program to solve. Singling out the presence of a siren in live environmental audio definitely qualifies.

We also like the clever way that [Jan] embedded an LED light guide into the 3D-printed enclosure: by making a channel and pouring in a small amount of white resin intended for 3D printers. Cure the resin with a UV light, and one is left with an awfully good light guide that doubles as a diffuser. You can see it all in action in a short video, just under the page break.

Continue reading “Hackaday Prize 2023: Hearing Sirens When Drivers Can’t”