comma pedal - commaai/openpilot GitHub Wiki

Table of Contents

Explanation

The Comma Pedal is used to provide stop-and-go capability on OpenPilot-supported cars that don't currently support it.

The Comma Pedal is a gas pedal interceptor. It is a device that is inserted between a car's electronic gas pedal and the ECU (Engine Control Unit). It detects the voltage from the gas pedal which represents the pedal's position. It then writes that same voltage back out to the ECU as if the gas pedal had produced it. When OpenPilot is engaged, it sends the virtual gas position through the Comma Pedal instead.

OpenPilot normally controls gas and brake using the ECU's cruise control commands. Since the ECU thinks the commands are coming from a cruise control, it imposes rules for when those signals will be honored. Cars without SnG (stop-and-go) impose a minimum speed requirement (usually around 25mph) for the ECU to honor gas (acceleration) requests. As a result, OpenPilot can't be engaged below 25mph, and though most ECU's will allow braking down to 0mph, gas cannot be sent once you fall below the limit. This means OpenPilot must disengage after coming to a complete stop, or if the car needs to accelerate after dropping below the minimum speed.

History

When Comma originally setup OpenPilot on their Acura ILX, they created their own interceptor to give it stop-and-go capability. However, it was considered a hack, therefore no plans for making interceptors were originally published.

Comma reportedly believes ECU hacks are a more elegant solution to the SnG problem. However, it's difficult to hack the ECU of every car. This is where an interceptor comes in.

Though Comma stated that their original interceptor wasn't in any shape to publish, they surprised us all with the gift of an open-sourced interceptor - the Comma Pedal!

Much of the code Comma used on the Acura still exists in OpenPilot. This means that the Pedal will be (initially) easiest to use on a Honda/Acura car. Comma has tweaked and cleaned up a lot of that original code for us to use.

Comma has also stated very emphatically that the Comma Pedal is NOT SUPPORTED by Comma at all. It's not something they are going to focus on, and mostly up to the community to support.

What it Does

The Comma Pedal has 4 main systems:

  1. 2 Analog to Digital Converters
    • This is used to read the voltage from the car's gas pedal into the Comma Pedal's processor. The gas pedal produces an output Voltage between 0 and 5 Volts.
  2. 2 Digital to Analog Converters
    • This is used to send voltage back to the car's ECU as if the gas pedal had produced it.
  3. 1 CAN Bus
    • The CAN Bus is the car's communication network. The Comma Pedal communicates with OpenPilot using the CAN bus. It connects to the Comma Giraffe (old) or Harness box.
  4. 1 USB
    • This is used to program and monitor the Comma Pedal, itself.
When OpenPilot is NOT engaged, the Comma Pedal reads the voltage from the gas pedal and just passes it along to the ECU.

When OpenPilot IS engaged, the Comma Pedal gets gas commands from OpenPilot, and emulates a gas pedal to the ECU.

The Comma Pedal is constantly sending the physical gas pedal's position to the CAN bus for OpenPilot to read.

Obtaining a Comma Pedal

You cannot buy a pre-built Comma Pedal from Comma. You must either build it yourself (not recommended), or have one fabricated through a service like Macrofab.

More information on HOW to do that will be added to this wiki in the future.

You can find an article written by a community member on how to build your own through MacroFab:

comma pedal: Building with MacroFab by Joshua F. Rountree

The information needed to build one is located in Comma's NEO GitHub repo.

Guides for Building / Troubleshooting Your Comma Pedal

comma pedal: Updating the Firmware over CAN by @jfrux Use this guide to update your Comma Pedal for compatibility with openpilot v0.5.10+

comma pedal: Building with MacroFab by @jfrux

comma pedal: Wiring the Connectors by @jfrux

comma pedal: Flashing the Firmware by @jfrux

comma pedal: Installing in Your Vehicle by @jfrux

Vehicles Tested / Being Tested

Acura

  • AcuraWatch Plus

Honda

  • Nidec Hondas

Toyota

  • All DSU Toyotas w/o stop and go

Volkswagen

  • Golf MK6

Ford

  • F150, Fusion
⚠️ **GitHub.com Fallback** ⚠️