Control Mario Kart 64 with your car over CAN bus (2016)

Catch Me If You CAN

The most realistic Mario Kart 64 simulator ever

Requirements

  • Python 2.7+
  • PyKeyboard
  • m64py – A frontend for Mupen64Plus
  • A copy of Mario Kart 64 as a ROM image
  • Raspberry Pi + PiCAN
  • ODB-II to DB9 cable (you can also wire this yourself)
  • A car (currently only tested on a 2012 Honda CR-V)
  • A low-latency network connection between your Pi and the laptop running m64py

Setup

Install SocketCAN on the Pi according to this guide. Connect
the Pi to your car and verify that ./candump can0 prints a stream of data to your screen. If you’re
using the ODB-II cable, keep in mind there are 3 jumpers — SJ1, SJ2, and SJ3 — that need to be
soldered on the board (this PDF
provides details).

Connect the Pi to your laptop. Your network configuration is up to you, but a hard-wired connection is
highly recommended due to latency concerns. We found that an Ethernet cable running directly from the
Pi to the laptop worked best, configured as such:

  • On the Pi: sudo ip ad add 10.0.0.10/24 dev eth0
  • On the laptop: sudo ip ad add 10.0.0.20/24 dev eth0

Assuming this setup, verify that the Pi can ping 10.0.0.20.

Launch m64py and load a Mario Kart 64 ROM. Using the default controls, try playing a game to make sure
everything works. Shift/Ctrl are gas/brakes respectively, and arrow keys steer.

Usage

Level out your steering wheel as best as you can. Put the car in park/neutral and make sure your
parking brake is on.
Take your feet off the pedals.

On the laptop, start the Python script as a normal user:

Start m64py and launch Mario Kart.

On the Pi, start candump and have it send relevant data to the laptop:

./candump can0,17c:7FF,1a6:7FF,156:7FF,294:7FF | nc -u 10.0.0.20 1738

By default, port 1738 is used. You can change this in the script if you experience a conflict.

Give focus to the m64py window.

NOTE: Once you start the script on the Pi, the Python script will begin emulating a keyboard. If
your steering wheel was not level or you had any pedals held down, this will cause key presses to be
passed to the active window. Move your focus to m64py as quickly as possible to avoid confusion.

You should be able to navigate the menu using the car. The steering wheel will move you left/right, and
gas/brakes will move you up/down menu trees.

Start racing!

Controls

  • Steering: Turn the steering wheel left/right.
  • Acceleration: Hit the gas pedal. Gas is binary in Mario Kart, so more pressure will not increase speed.
  • Brakes: Hit your brakes. Again, this is a binary input.
  • Use item: Activate your winshield wipers.
  • Jump: Toggle your high beams.

Read More
Zonia Buresh

Latest

Newsletter

Don't miss

Shoday – Come Kulosa Ft. Olamide & Billionboi

MusicDOWNLOAD MP3 SONG...

The $6.4 Billion Bid Changing the Music Industry: Why UMG Is Selling Off Its Spotify Stake

Music Please enable JS and disable any ad blockerRead...

Joy of Jazz returns with purpose, power and prestige

Music Music 403 ERRORRequest blocked. We can't connect to the...

Jon Secada, Karolína Kurková & More Attend YMU’s $1.8M Fundraiser

Music Photo Credit: Osmany Torres, Adrian Gonzalez, Chris WhitefoxMusic...

Jury acquits 2 business executives of bribing Navy admiral for government contract

A federal jury has acquitted two business executives of charges that they conspired to bribe a retired four-star U.S. Navy admiral, who is now serving a six-year prison sentence for his conviction on corruption charges By MICHAEL KUNZELMAN Associated Press WASHINGTON -- A federal jury has acquitted two business executives of charges that they conspired

US Business Leaders Optimistic About China Cooperation, Emphasize Importance of Chinese Market

© 2026 China Money Network. All Rights Reserved. Disclaimer: The views, opinions, forecasts, and statements made by our hosts and guests are the personal views of those respective individuals and may or may not be either endorsed or accepted by China Money Network Limited or the companies with which these individuals are employed.

Tesla’s Business Has Become Much More Diversified in Just the Past Five Years. Does That Make Its Stock a Better Buy Today?

Key Points Tesla's energy generation and storage segment generated 27% revenue growth last year. The company's non-automotive segments were able to help offset a double-digit decline in auto revenue in 2025. These 10 stocks could mint the next wave of millionaires › Tesla (NASDAQ: TSLA) is known for its electric vehicles (EVs), and while they