A Hacker-Friendly Software Package For Your Next AI Project

If you’re interested in using Large Language Models (LLM) in a project, but aren’t plugged directly into the fast-developing world of artificial intelligence (AI), knowing what tool or software to use can be daunting. Luckily, [Max Woolf] created simpleaichat, which is complete with examples and documentation and minimal code complexity.

As [Max] puts it, the main motivations behind the project are to provide useful tools while making it easier for non-engineers to peer through the breathless hyperbole and see just how AI-based apps actually work. This project was directly inspired by [Max]’s own real-world software experiences in this area, particularly his frustrations with popular and much-hyped frameworks in which “Hello World” feels a lot more like Hell World.

simpleaichat is a Python package that provides easy and powerful ways to interface with the OpenAI API, makers of ChatGPT. Now, it is true that OpenAI’s models are not open source and access is not free, but they are easily one of the most capable and cost-effective services of their kind.

Prefer something a little more open, and a lot more private? There’s always the option to run an LLM locally on your own machine, possibly with the help of a tool like text-generation-webui or gpt4all. Running an LLM locally will not have the quality of OpenAI’s offerings, but it can still do the job. It’s also possible to give these local LLMs an interface that mimics OpenAI’s API, so there are loads of possibilities.

Are you getting ideas yet? Share them in the comments, or keep them to yourselves and submit a tip once your project is off the ground!

Why Are We Only Just Now Hearing About LED Beaded Curtains

Beaded curtains are a pretty banal piece of home decor, unlikely to excite most interior design enthusiasts. Throw on some addressable LEDs, though, and you’ve got something eye-catching at the very least, as [Becky] demonstrates.

Joining the LED strands at the bottom made running the wiring easy but made walking through the blinds hard.

The project started with an existing beaded curtain as a base. A series of addressable LED strands were then carefully sewn to the beads using knots tied in plain sewing thread. The strands were configured as a single strand as far as the data lines were concerned, to make animation easy. Power was supplied to both ends of the strand to ensure nice and even brightness across the strands.

The brains of the system is a PixelBlaze controller, which makes it easy to wirelessly control the behavior of the strings. It’s the perfect tool for quickly whipping up fancy animations and pretty effects without hand-assembling a bunch of code yourself.

There was only a few problems with the project. [Becky] found a pretty passable LED beaded curtain from China midway through the project, which reduced her enthusiasm to finish the build. There were also issues walking through the curtain due to the wiring scheme she chose, where the bottom of one strand was connected to its neighbor.

Regardless, it’s a fun blinky build that brings some color to an otherwise drab doorway. It’s hard to complain about that! Video after the break.

Continue reading “Why Are We Only Just Now Hearing About LED Beaded Curtains”

Restoring A 45 Year Old Video Game

When we say vintage video game, some of you may think of the likes of Lemmings, Mario or maybe even Donkey Kong but the game that [Vintage Apparatus] restored is slightly older and much more minimalist, using an LED matrix and some 7-segment displays rather than this newfangled color CRT thing.

The front and back covers, buttons and screws of the game on the workbench.
The game is disassembled before cleaning.

[Vintage Apparatus] starts by removing the battery and cover from the 1977 Mattel electronics (American) football game, which uses rather uncommon 2mm triangular screws. To his and our surprise, the circuit board and its beautiful array of LEDs seem to be in excellent condition, so he moves on to cleaning the case itself.

The case, on the other hand, is a bit dirty on the outside, so [Vintage Apparatus] takes out the buttons and starts cleaning with the back cover a Q-tip. After a bit of scrubbing and some extra care to avoid removing any stickers, he moves on to the considerably dirtier and somewhat scratched front case. After some wrestling with the creases and speaker grill of the front cover, the outside of the front case looks nice and clean. Finally, he puts back the buttons and circuit board in the front cover before adding closing it all up with the back cover and screwing it back together.

The game, which immediately comes to life and was actually made by the Mattel calculator division, is a sort of evasion game where the player is a bright dot that can move forward, up or down. The player avoids the dimmer dots, the “tacklers”, in order to run as far as possible as fast as possible. When one of the tacklers tackles the player, the amount of downs is increased and the fifth down means game over. After either scoring or getting downed one too many times, the field is flipped and it’s now player 2’s turn.

Video after the break.
Continue reading “Restoring A 45 Year Old Video Game”

The McDonald’s Ice Cream Machine Saga And Calls For Right To Repair

The inside of a Taylor C709 ice cream machine, as seen from the back with the cover on the electronics removed. (Credit: iFixit)
The inside of a Taylor C709 ice cream machine, as seen from the back with the cover over the electronics removed. (Credit: iFixit)

Raising a likely somewhat contentious topic, iFixit and Public Knowledge have challenged the manufacturer behind McDonald’s ice cream machines to make them easy to diagnose and repair. This is a subject that’s probably familiar to anyone who is vaguely familiar with US news and the importance of ice cream at McDonald’s locations to the point that a live tracker was set up so that furtive customers can catch a glimpse at said tracker before finding themselves staring in dismay at an ‘Out of Order’ sign on one of these Taylor ice cream machines.

The story is more complex than just a machine being “broken”, however. The maintenance contracts are lucrative, the instruction manual is long, and the error codes are cryptic. When you add to that the complexity of cleaning and maintaining the machines, it’s tempting to just claim the machine is out of order. These Taylor machines (the C602 and the C709 from the iFixit video) are a bit more complex than your usual ice cream maker in that they also have a pasteurization element that’s supposed to keep already poured mix safe to use the next day.

Continue reading “The McDonald’s Ice Cream Machine Saga And Calls For Right To Repair”

All-Mechanical Coil Winder Is A Scrap-Bin Delight

If there’s something more tedious than winding coils, we’re not sure what it is — possibly rolling and wrapping coins; that’s really a bother. But luckily, just like there are mechanical ways to count coins, there are tools to make coil production a little less of a chore, but perhaps none that have as much charm as this all-mechanical coil winder.

We’d say that [Ralph (VK3ZZC)]’s amazing invention firmly falls under the “contraption” category, without a hint of the term being used as a pejorative. The rig was based on the MoReCo Coilmaster, a machine that was once commercially available at a fairly steep price, according to [Ralph], and still seems to command a premium even today. Never being able to afford an original, [Ralph] spun up his own from scrap metal and tooling no more sophisticated than a drill press. It’s a riot of brass and steel, with a hand crank that drives the main winding shaft while powering a cam that guides the wire along the long axis of the coil form. Cams can be changed out for different winding patterns, and various chucks adapt to hold different coil forms to the winding shaft.

Continue reading “All-Mechanical Coil Winder Is A Scrap-Bin Delight”

3D Printing RC Car Tires To Go Fast

There’s a bit of a high-speed arms race in the RC world on YouTube these days. [Michael Rectin] is in on the action, and he’s been exploring how to 3D print a decent set of tires to help his RC car reach higher speeds mph.

His first efforts involved experiments with TPU. The tires looked okay, but had very little traction. He later moved on to VarioShore TPU, a filament capable of delivering various properties depending on the printing method. Printing for the softest, and thus grippiest, possible tires, [Michael] whipped up some sporty looking boots for his wheels.

His tires improved overĀ  off-road RC tires in one major way. His design didn’t suffer significant ballooning as the rotational velocity increased. However, the VarioShore material lacked grip compared to off-the-shelf rubber RC tires designed for high-speed use. The commercially-available tires also offered a smoother ride.

[Michael] also demonstrated some neat tricks for high-speed RC driving. He used a modified flight controller to correct the car’s steering in response to perturbations, and put in a scaling method that reduces steering inputs at higher speed. That didn’t entirely stop the carnage though, with some incidents seeing wheels thrown off in big tumbling crashes.

Electric-powered RC cars can go darn quick these days, but you might want to consider jet power if you want to break records. Video after the break.

Continue reading “3D Printing RC Car Tires To Go Fast”

AI Assistant Translates Your Every Request For The Command Line

If you don’t live on the command line, it can be easy to forget the exact syntax of commands. It often leaves you running to the “/?” or “–help” switches, or else a quick Google search to find the proper incantations. Shell-AI is a machine-learning assistant that could change all that by helping you find the proper command for the job, right on the command line!

Shell-AI accepts natural-language inputs — simply type in “shai” followed by what you’re trying to do. It will then take in your request, run it through an OpenAI language model like GPT-3.5-Turbo, and then present you with three (or more) potential commands. You can then select which command to use and get on with your day.

As demonstrated, it’s more than capable of following commands like “download a random image” or “show only image files ls.” And, hilariously, it responds to the request “do something crazy” with just one suggestion: “rm -rf”. That seems rather fitting.

We wouldn’t blindly follow any commands coming out of a large language model, of course. But, if you know what you’re doing, it could prove a useful little tool to ease your regular duties on the command line.