When Your Car Breaks Down, Simply Hack It Into A Simulator

When [Nishanth]’s Subaru BRZ came to a sudden halt, he was saddened by the wait to get a new engine installed. Fortunately, he was able to cheer himself up by hacking it into a car simulator in the mean time. This would have the added benefit of not being limited to just driving on the Road Atlanta where the unfortunate mishap occurred, but any course available on Forza and similar racing games.

On paper it seemed fairly straight-forward: simply tap into the car’s CAN bus for the steering, throttle, braking and further signals, convert it into something a game console or PC can work with and you’re off to the races. Here the PC setup is definitely the cheapest and easiest, with a single part required: a Macchina M2 Under the Dash kit ($97.50). The XBox required over $200 worth of parts, including the aforementioned Macchina part, an XBox Adaptive Controller and a few other bits and pieces. And a car, naturally.

https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fd49697c6-29ae-4b4d-a27b-e2da019d32de%2FUntitled.png?table=block&id=ed4e1bf2-91c6-4494-8e0f-f10964620869&width=5120&cache=v2

The Macchina M2 is the part that listens to the CAN traffic via the OBD2 port, converting it into something that resembles a USB HID gamepad. So that’s all a matter of plug’n’play, right? Not so fast. Every car uses their own CAN-based system, with different peripherals and addresses for them. This means that with the Macchina M2 acquired, [Nishanth]’s first task was to reverse-engineer the CAN signals for the car’s controls.

At this point the story is pretty much finished for the PC side of things, but the XBox One console is engineered to only accept official peripherals. The one loop-hole here is the Adaptive Controller, designed for people with disabilities, which allows the use of alternative inputs. This also enables using a car as an XBox One controller, which is an interesting side-effect.

Continue reading “When Your Car Breaks Down, Simply Hack It Into A Simulator”

Nuclear Reactor Simulator Is The Project Of A Lifetime

Have you been watching Chernobyl? Well, so has everyone else. Right now it seems the whole Internet is comprised of armchair dosimetrists counting roentgens in their sleep, but [Mark Wright] doesn’t need a high-budget TV show to tell him about the challenges of wrangling the atom with 1980s technology. He’s done it for real. His memories of working at a Westinghouse Pressurized Water Reactor over 30 years ago are so sharp that he’s been building a nuclear reactor “simulator” running on the Raspberry Pi that looks nearly as stressful as sitting in control room of the real thing.

The simulator software is written in Python, and is responsible for displaying a simplified overview of the reactor and ancillary systems on the screen. Here all the information required to operate the “nuclear plant” can be seen at a glance, from the utilization of individual pumps to the position of the control rods.

Continue reading “Nuclear Reactor Simulator Is The Project Of A Lifetime”

Better Simulators With Homemade Potentiometers

Perhaps you’ve played a flight simulator before, using something like a mouse and keyboard. That’s a fine experience, but like any other activity you can get a lot more out of it if you put a little more effort into the experience. Some will upgrade to a joystick for a modest improvement, and others will build incredible accurate cockpit replicas down to the smallest detail. The builders of these “pits” are always looking for ways of improving their setups, and it’s from this world that we find a method of building specialized, inexpensive hall-effect sensors.

A hall-effect sensor is a circuit that outputs a voltage based on the presence of an external magnetic field. These can be used to make compasses, but with a permanent magnet in close proximity can also be used to create a potentiometer-like device at lower cost and with higher precision than a similarly-priced pot. There was a method of building these in the simulator world using the housing of a Bic pen and some strong glue, but [LocNar] has improved on this method as well. He repurposed some bearings and some stock metal tubing in order to fabricate a professional-level sensor at a fraction of the cost.

This build is essentially a solution for anyone needing a potentiometer that’s easier to build, less expensive, has higher precision, and interacts with a digital input in a much more predictable (and programmable) way. Certainly this has applications in the simulator world, but will work for many other applications. If you’ve never thought about the intricacies (and shortcomings) of potentiometers, some other folks have taken a deep dive into that as well.

Thanks to [Keith O] for the tip!

Turn Your Car Into A Simulator

Video games, while entertaining to be sure, are a great way to experience things that could not easily be recreated in real life. Shooting aliens on a giant ring in space is an obvious example, but there are some more realistic examples that video games make much more accessible, such as driving a race car. You can make that experience as realistic as you want, too, and can even go as far as using a real car as your controller.

All modern cars use a communication system to allow their various modules to talk to one another. Fuel injection, throttle position, pedal positions, steering wheel angle, and climate control systems can all communicate on the CAN bus, and by tapping into that information the car can be used as a controller for a video game. Once you plug in to the OBD-II port on a car, you’ll need a piece of software to decode all of that information. [Andrew] uses uinput, a tool that allows Linux machines to take any input signal and map it in any way that can be programmed.

The build also includes the use of an integrated pico projector, allowing the car to be parked and turned into a simulator at any time. It’s similar to another project which used a Mazda instead of a Chevrolet Volt, but it just goes to show how straightforward it can be to take information from the CAN bus of a modern car.

Continue reading “Turn Your Car Into A Simulator”

Circuit-Level Game Boy: Upping Emulation Ante By Simulating Every Cycle

Usually when writing emulation software for a system like the Game Boy, one makes sure to take as many shortcuts as possible in order to reduce the resources required for the emulation. This has however the unfortunate side-effect that it reduces the overall accuracy of the emulation and with it the compatibility with games on the system.

This is the basic reasoning behind projects which seek to abandon simplistic abstractions in favor of cycle-accurate, full compatibility approaches, of which MetroBoy is probably the most extreme one. Instead of abstracting away the hardware, it instead does the emulation at the circuit level. As with such other projects, this means that the emulator requires a lot more CPU cycles to get things just right. On the bright side, one can likely still run this emulator on any modern system.

As the MetroBoy author explains, he implemented code in C++ which allowed him to construct circuits in an HDL-style manner, which should theoretically also allow him to generate a Verilog (or VHDL) softcore out of the project. As a demonstration of implementing HDL in C++ it’s decidedly interesting.

An approach like this is pretty much the exact opposite of a project like the UltraHLE (ultra high-level emulator) Nintendo 64 emulator, which used the knowledge that Nintendo 64 games are written in C as a first step to creating libraries that the code in the Nintendo 64 ROMs would call instead of the native (Nintendo) libraries. This allowed N64 games to directly run on the target system, with the graphic and system calls translated by UltraHLE into native OS calls, using the 3dfx Glide API for accelerated graphics.

While an approach like UltraHLE took allows for the most minimal use of system resources by essentially foregoing emulation completely, for retro systems like the Game Boy where games were implemented in assembly on bare hardware, using this circuit-level emulation ensures that one gets the most accurate match with the original handheld console experience.

As a word of caution to those who are now itching to try out MetroBoy, its Github site notes that it currently lacks support for game saves, uses a mixture of original Game Boy (DMG) and Game Boy Advance SP (AGS) hardware that confuses some games and has rather buggy sound support.

If playing around with software-defined Game Boy circuits isn’t enough and would like to literally look inside a real Game Boy, the X-ray image from the top of the article is something Chris over at Elektronaut pulled off several years ago.

An Epic Mech Cockpit Build For Steel Battalion

Steel Battalion was released for the Xbox in 2002, and remains one of the most hardcore mech simulators of all time. It became legendary for its huge twin-stick controller covered in buttons, and for deleting your save game if you failed to eject in time. It took giant robot gaming to a new level, but fundamentally, you were still playing in front of a TV at home. Things really got serious in 2015, with the completion of the Big Steel Battalion Box – the battlemech cockpit of your dreams.

Coaching the player is a key part of BSBB gameplay, with a manual created specifically for this purpose.

If you’re thinking this is just a television in a dark room with some stickers, you’d be very wrong. The Imgur thread covers the build process, and it’s one heck of a ride. Things started with a custom cabinet being built, intentionally sized to induce claustrophobia. There’s a swivelling seat with a 4-point harness, and a hatch to seal the player inside. During initial testing of the box to determine how dark it was, one of the makers was trapped inside and had to call for help. That should highlight how serious the build really is.

The controller was modified and hooked up to custom electronics to add realistic effects. Get hit? Feel the seat rumble thanks to motors and a subwoofer in the base. Mech terminally damaged? The entire cockpit is bathed in flashing red light. There’s even smoke effects rigged up to make things even more stressful during battle.

The entire setup is connected to the outside world, where a coach can view the action inside through a video feed from the Xbox and several internal cameras. A basic manual is provided to help the coach keep the player alive during their first moments of combat. This is courtesy of a custom intercom setup, built using surplus Chinese aviation headsets. There’s even a red telephone to give that authentic military feel.

It’s a build that covers just about every detail you could think of. If you’re keen to try it out, it’s on permanent loan to The Museum of Art And Digital Entertainment in Oakland, California. It recalls memories of a similar build created to play Artemis. Video after the break.

Continue reading “An Epic Mech Cockpit Build For Steel Battalion”

Unleash Your Inner Starship Captain With This Immersive Simulator Console

We like a good video game as much as the next person. Heck, a few hours wasted with “Team Fortress 2” on a couple of big monitors is a guilty pleasure we’ll never be ashamed of. But this starship bridge simulation console brings immersive gameplay to a new level, and we wholeheartedly endorse it even if we don’t quite get it.

The game in question is “Artemis Spaceship Bridge Simulator”, a game played by anywhere from 2 to 11 players, each of whom mans a different station on the bridge of a generic starship, from Engineering to Communications to the vaunted Captain’s chair. The game is generally played on laptops linked together in a LAN with everyone in the same room, and as cool as that sounds, it wasn’t enough forĀ [Angel of Rust]. The whole mousing back and forth to control the ship seemed so 21st-century, so he built detailed control panels for each of the bridge stations. The level of detail is impressive, as is the thought put into panel layouts and graphics. The panels are mostly acrylic in MDF frames, which allows for backlighting to achieve the proper mood. With the help of a bunch of Arduinos, everything talks to the game software over DMX, the protocol used mainly for stage lighting control. There’s a cool demo video below.

This is uber-nerd stuff, and we love it. Pyrotechnics and atmospherics would be a great addition for “realistic” battles, and dare we hope that someday this ends up on a giant Stewart platform flight simulator for the ultimate experience?

Continue reading “Unleash Your Inner Starship Captain With This Immersive Simulator Console”