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

About 1,200 people evacuated from coastal wildfire in northern France

PARIS, Aug 12 - About 1,200 people were evacuated from a campsite due to two wildfires near the beach in the north of France, local officials said on Wednesday. The prefecture for the administrative department of Pas-de-Calais, in the country's north and bordering the Strait of Dover, said one of the wildfires was under control

XAI Grok 4.6 Is Near Frontier Capable But 85% Lower Cost

SpaceXAI Grok 4.6 is roughly the same performance as Fable 5 Max at an 85% discount. 80% cheaper for input tokens and 88% cheaper for output tokens. It is pareto dominant. Grok 4.7 will be significantly better as is a much larger model with the Cursor and SpaceX data included in pretraining. Grok 4.6 is

Done Deal: Romero ready for Parma in €7m agreement with Tigre

BUENOS AIRES, ARGENTINA - FEBRUARY 07: David Romero of Tigre celebrates after scoring his team's second goal during a Torneo Apertura Mercado Libre 2026 match between River Plate and Tigre at Estadio Más Monumental Antonio Vespucio Liberti on February 07, 2026 in Buenos Aires, Argentina. (Photo by Marcelo Endelli/Getty Images) Tigre striker David Romero is

Osun: Don’t turn election into war, Atiku tells FG

Presidential Candidate of the African Democratic Congress (ADC), Atiku Abubakar, has warned the Independent National Electoral Commission (INEC), security agencies and the Tinubu administration against militarising the Osun governorship election or deploying state institutions for partisan advantage. Speaking at the ADC National Youth Leadership Summit in Abuja, Atiku declared that “Osun is a test” of

Newsletter

Don't miss

About 1,200 people evacuated from coastal wildfire in northern France

PARIS, Aug 12 - About 1,200 people were evacuated from a campsite due to two wildfires near the beach in the north of France, local officials said on Wednesday. The prefecture for the administrative department of Pas-de-Calais, in the country's north and bordering the Strait of Dover, said one of the wildfires was under control

XAI Grok 4.6 Is Near Frontier Capable But 85% Lower Cost

SpaceXAI Grok 4.6 is roughly the same performance as Fable 5 Max at an 85% discount. 80% cheaper for input tokens and 88% cheaper for output tokens. It is pareto dominant. Grok 4.7 will be significantly better as is a much larger model with the Cursor and SpaceX data included in pretraining. Grok 4.6 is

Done Deal: Romero ready for Parma in €7m agreement with Tigre

BUENOS AIRES, ARGENTINA - FEBRUARY 07: David Romero of Tigre celebrates after scoring his team's second goal during a Torneo Apertura Mercado Libre 2026 match between River Plate and Tigre at Estadio Más Monumental Antonio Vespucio Liberti on February 07, 2026 in Buenos Aires, Argentina. (Photo by Marcelo Endelli/Getty Images) Tigre striker David Romero is

Osun: Don’t turn election into war, Atiku tells FG

Presidential Candidate of the African Democratic Congress (ADC), Atiku Abubakar, has warned the Independent National Electoral Commission (INEC), security agencies and the Tinubu administration against militarising the Osun governorship election or deploying state institutions for partisan advantage. Speaking at the ADC National Youth Leadership Summit in Abuja, Atiku declared that “Osun is a test” of

Burnham’s devolution drive could ‘push 90,000 jobs out of London’

Wednesday 12 August 2026 5:16 pm Nearly 10,000 jobs are expected to leave the capital by 2031 Roughly 90,000 of London’s white-collar jobs could be pushed into other parts of the country as Andy Burnham accelerates his devolution drive, a top recruitment firm has predicted. Legal, banking and accounting firms could be among those to

What small business owners say they’d do differently, in hindsight

Working 60+ hours a week makes owners twelve times more likely to say their business is hurting their personal life. Australian small business owners are working through illness, skipping holidays and struggling to step away from their businesses, according to new research from insurer BizCover. The survey of 1,500 BizCover small business customers found more

Bright young business brains bring ideas to life

Friday 17 July, 2026 Young Cumbrian entrepreneurs showed off their innovative business ideas, from AI virtual assistants to African food, at two celebration events this week. Fifteen young people from Furness and West Cumbria aged 14 to 25 were selected to take part in the Positive Enterprise programme back in January...

No, no, no — business travel is not dead. It’s still moving, and rather well at that

Par Bruno COURTIN Published on 7 Aug 2026 - Updated on 7 Aug 2026 3 min reading time According to forecasts from GBTA, the world's leading organisation representing business travel stakeholders, global business travel spending is set to hit a record $1.71 trillion in 2026, while the number of trips is expected to reach 1.84