Using AI To Help With Assembly

Although generative AI and large language models have been pushed as direct replacements for certain kinds of workers, plenty of businesses actually doing this have found that using this new technology can cause more problems than it solves when it is given free reign over tasks. While this might not be true indefinitely, the real use case for these tools right now is as a kind of assistant to certain kinds of work. For this they can be incredibly powerful as [Ricardo] demonstrates here, using Amazon Q to help with game development on the Commodore 64.

The first step here was to generate code that would show a sprite moving across the screen. The AI first generated code in all caps, as was the style at the time of the C64, but in [Ricardo]’s development environment this caused some major problems, so the code was converted to lowercase. A more impressive conversion was done in the next steps, as the program needed to take advantage of the optimizations found in the Assembly language. With the code converted to 6502 Assembly that can run on the virtual Commodore, [Ricardo] was eventually able to show four sprites moving across the screen after several iterations with the AI, as well as change the style of the sprites to arbitrary designs.

Although the post is a bit over-optimistic on Amazon Q as a tool specifically for developers, it might have some benefits over other generative AIs especially if it’s capable at the chore of programming in Assembly language. We’d love to hear anyone with real-world experience with this and whether it is truly worth the extra cost over something like Copilot or GPT 4. For any of these generative AI models, though, it’s probably worth trying them out while they’re in their early stages. Keep in mind that there’s a lot more than programming that can be done with some of them as well.

Portable, Full-Size Arcade Cabinets

Believe it or not, there was a time when the only way for many of us to play video games was to grab a roll of quarters and head to the mall. Even though there’s a working computer or video game console in essentially every house now doesn’t mean we don’t look back with a certain nostalgia on those times, though. Some have turned to restoring vintage arcade cabinets and others build their own. This hackerspace got a unique request for a full-sized arcade cabinet that was also easily portable as well.

The original request was for a portable arcade cabinet, and the original designs were for a laptop-like tabletop arcade. But further back-and-forth made it clear they wanted full-size cabinets that just happened to also be portable. So with that criteria in mind the group started building the units. The updated design is modular, allowing the controls, monitor, and Raspberry Pi running the machines to be in self-contained units, with the cabinets in two parts that can quickly be assembled on-site. The base is separate and optional, with the top section capable of being assembled on the base or on something like a tabletop or bar, and the electronics section quickly drops in.

While the idea of a Pi-powered arcade cabinet is certainly nothing new, the quick build, prototyping, design, and final product that’s mobile and quickly assembled are all worth checking out. There is even more information on the build at the project’s GitHub page including Fusion 360 models. If you need your cabinets to be even more portable, this tabletop MAME cabinet is a great place to start.

Force Feedback Steering Wheel Made From Power Drill

When it comes to controllers for racing games, there is perhaps no better option than a force feedback steering wheel. With a built-in motor to push against the wheel at exactly the right times, they can realistically mimic the behavior of a steering wheel from a real car. The only major downside is cost, with controllers often reaching many hundreds of dollars. [Jason] thought it shouldn’t be that hard to build one from a few spare parts though and went about building this prototype force feedback steering wheel for himself.

Sourcing the motor for the steering wheel wasn’t as straightforward as he thought originally. The first place he looked was an old printer, but the DC motor he scavenged from it didn’t have enough torque to make the controller behave realistically, so he turned to a high-torque motor from a battery-powered impact driver. This also has the benefit of coming along with a planetary gearbox as well, keeping the size down, as well as including its own high-current circuitry. The printer turned out to not be a total loss either, as the encoder from the printer was used to send position data about the steering wheel back to the racing game. Controlling the device is an Arduino, which performs double duty sending controller information from the steering wheel as well as receiving force feedback instructions from the game to drive the motor in the steering wheel. Continue reading “Force Feedback Steering Wheel Made From Power Drill”

A montage of a "death stranding" lamp in two different color modes, purple on the left and blue on the right

Illuminate Your Benched Things With This Death Stranding Lamp

[Pinkman] creates a smart RGB table lamp based off of the “Odradek device” robot arm from the video game “Death Stranding”.

[Pinkman] adds a XIAO BLE nRF52840 Sense device, with Bluetooth support, microphone and TinyML capability. The nRF52840 is used to push data to the five WS2812 strips, one for each “blade” of the lamp, and also connects to a TTP223 capacitive touch controller to add touch input detection. The TinyML portion of the nRF52840 allows for custom keyword training to turn on the lamp with voice commands ([Pinkman] uses “Bling Bling”). [Pinkman] has also provided Bluetooth control, allowing the color and pattern to be changed from a phone application.

The lamp is 3D printed with the build being based off of [Nils Kal]’s Printables files. Each of the five blades has a white 3D-printed diffusor plate to help ease out the hot spots for the LED strip. The lamp is fully adjustable in addition to having cavities, channels and access points for “invisible” wiring. [Pinkman] has also upgraded the original 3D files to allow for the three wires needed to drive the WS2812, instead of the two wires that [Nils] had allotted in the original.

[Pinkman] has all of the code, STL files and training data available for download, so be sure to check it out. Lamps are a favorite of ours and we’ve featured our fair share, including 3D printed Shoji lamps and RGB wall lamps.

Video after the break!

Continue reading “Illuminate Your Benched Things With This Death Stranding Lamp”

Old CRT Television playing Luigi's Mansion on a rusted out bike (Original Photo by Anete Lusina)

Luigi’s Mansion First Person Mod Brings Spooky New Perspective

The Nintendo GameCube in many ways defied expectations. It was purple, it had buttons shaped like beans, and it didn’t launch with a Mario game. What we got instead was the horror-adjacent ghost adventure game starring Mario’s brother — Luigi’s Mansion. The game was a graphical showpiece for the time, however, the camera angles were all fixed like an early Resident Evil game. Not satisfied with playing within those bounds, modder [Sky Bluigi] created a first person camera patch for the game that finally let players see why Luigi was so freaked out all the time.

The patch dubbed Luigi’s Mansion FPO (First Person Optimized) does a lot to drive home the game’s child-friendly, spooky aesthetic. Along with the ability to explore environments with a new lens, it provides the ability to turn the flashlight on and off manually if you want. Though the most impressive part of Luigi’s Mansion FPO is that it runs on real hardware. All that’s needed to play the mod is clean image of the North American release of Luigi’s Mansion and a .xdelta patching utility like Delta Patcher. GameCube games can be ripped directly to a USB thumb drive using a soft-modded Nintendo Wii console running Clean Rip or similar backup tool.

Luigi’s Mansion FPO actually provides a collection of patches that offer revised controls and increased field of view depending on which patch is used. The original game had inverted controls for aiming Luigi’s ghost vacuum, so the “Invert C-Stick Controls” patch will install a more modern aiming scheme where up on the right stick will aim upwards and vice versa. The “Better FOV” pulls the camera a little further back from where Luigi’s head would be while the original aiming scheme is retained. Though no matter which patch you decide to go with, a mod like this is always a good excuse to revisit a cult classic.

For another fresh GameCube mod check out this post about a Raspberry Pi Pico based modchip for the system.

Continue reading Luigi’s Mansion First Person Mod Brings Spooky New Perspective”

Dylan showing off his giant tractor video game controller

Real Tractor Moonlights As Farming Simulator Controller

Around October, amid all the pumpkin spiced food and beverages, folks make their yearly pilgrimage to a local farm. They load themselves onto hay-filled tractor trailers and ride out in search of the perfect pumpkin to put on the front porch, and let it slowly decompose. The “closest” a video game has come to replicating this seasonal event is the annual Farming Simulator series. One modder, [Dylan], decided to add an extra level of authenticity to the Farming Simulator experience by controlling the game with an actual tractor.

The opportunity for the project presented itself thanks to a local Kiwi farmer (Kiwi as in New Zealand, not the fruit) who provided [Dylan] with access to a Case IH 310 Magnum CVT tractor. [Dylan] built a custom USB controller that mirrored the actual layout of the tractor’s control pad. Tilt sensors were wrapped around the tractor’s steering wheel and throttle to provide analog input for steering and speed control. After a number of hours tweaking the setup on site, [Dylan] live-streamed his Farming Simulator PC play session (video below) with the tractor itself left off for obvious reasons. Without tractor motor engaged there was no power steering, so he deserves a bit of extra credit for making it through multiple hours.

This certainly isn’t the first ridiculous controller project [Dylan] has taken on. He’s created a trombone controller to just to play Trombone Champ, a Nerf bow controller for Overwatch, and he even played through Hades using a literal pomegranate. You can watch more of [Dylan’s] custom controller projects on his Rudeism Twitch channel.

Continue reading “Real Tractor Moonlights As Farming Simulator Controller”

Researching Factorio…For Science

Science has affirmatively answered a lot of questions that, looking back, could be seen as bizarre to have asked in the first place. Questions like “can this moldy cheese cure disease” or “can this rock perform math if we give it some electricity.”  Among the more recent of this list is the question of whether or not the video game Factorio, in which the player constructs an elaborate factory, can be used as the basis for other academic work. As [Kenneth Reid] discusses in this talk, it most certainly can.

If you haven’t played the game, it’s a sort of real-time strategy (RTS) game where the player gathers materials to construct a factory while defending it from enemies. On the surface it might seem similar to Age of Empires or Starcraft, but its complexity is taken to extremes not found in other RTS games. The complexity hides nuance, and [Kenneth] points out that it’s an excellent simulator to study real-world problems such as vehicle routing problems, decision making, artificial intelligence, bin packing problems, and production planning, among a whole slew of other interesting areas of potential research.

[Kenneth] and his partners on this project also developed some software tools with interacting with a Factorio game without having to actually play it directly. The game includes an API which the team used to develop tools so that other researchers can use it as a basis for simulations and studies. There was a research paper published as well for more in-depth reading on the topic. We shouldn’t be too surprised that a game can be used in incredibly productive ways like this, either. Here’s another example of a toy being used to train engineers working in industrial automation.

Continue reading “Researching Factorio…For Science”