Difference between revisions of "Pedal Interceptor"

From Tinkla: Tinkering with Tesla
m
m
Line 8: Line 8:
 
The Comma Pedal has 4 main systems:
 
The Comma Pedal has 4 main systems:
 
# 2 Analog to Digital Convertors
 
# 2 Analog to Digital Convertors
#* This is used to read the voltage from the car's gas pedal into the CommaPedal's processor. The gas pedal produces an output Voltage between 0 and 5 Volts.  
+
#* This is used to read the voltage from the car's accelerator pedal into the Comma Pedal's processor. The accelerator pedal produces an output Voltage between 0 and 5 Volts.  
 
# 2 Digital to Analog Convertors
 
# 2 Digital to Analog Convertors
#* This is used to send voltage back to the car's ECU as if the gas pedal had produced it.
+
#* This is used to send voltage back to the car's DU as if the accelerator pedal had produced it.
 
# 1 CAN Bus  
 
# 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.
+
#* The CAN Bus is the car's communication network. The Comma Pedal communicates with Openpilot using the CAN Bus. It connects to the Tesla Giraffe on CAN3.
 
# 1 USB
 
# 1 USB
 
#* This is used to program and monitor the Comma Pedal, itself.
 
#* 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 NOT engaged, the Comma Pedal reads the voltage from the accelerator pedal and just passes it along to the DU.  
  
When Openpilot IS engaged, the Comma Pedal gets gas commands from Openpilot and emulates a gas pedal to the ECU.  
+
When Openpilot IS engaged with longitudinal control, the Comma Pedal gets accelerator commands from Openpilot and emulates a accelerator pedal to the DU.  
  
The Comma Pedal is constantly sending the physical gas pedal's position to the CAN bus for Openpilot to read.
+
The Comma Pedal is constantly sending the physical accelerator pedal's position to the CAN bus for Openpilot to read.
  
 
=== Obtaining a Comma Pedal ===
 
=== Obtaining a Comma Pedal ===
Line 32: Line 32:
  
 
The information needed to build one is located in Comma's [https://github.com/commaai/neo/tree/master/pedal EON GitHub repo.]
 
The information needed to build one is located in Comma's [https://github.com/commaai/neo/tree/master/pedal EON GitHub repo.]
 +
 +
=== Guides for Building / Troubleshooting Your Comma Pedal ===
 +
 +
'''[https://medium.com/@jfrux/comma-pedal-updating-the-firmware-over-can-fa438a3cf910 Comma Pedal: Updating the Firmware over CAN]''' by [https://medium.com/@jfrux @jfrux] Use this guide to update your Comma Pedal for compatibility with Openpilot v0.5.10+
 +
 +
'''[https://medium.com/@jfrux/comma-pedal-building-with-macrofab-6328bea791e8 Comma Pedal: Building with MacroFab]''' by [https://medium.com/@jfrux @jfrux]
 +
 +
'''[https://medium.com/@jfrux/comma-pedal-wiring-the-connectors-2a453675de9a Comma Pedal: Wiring the Connectors]''' by [https://medium.com/@jfrux @jfrux]
 +
 +
'''[https://medium.com/@jfrux/flashing-the-comma-pedal-with-ubuntu-a83fb668f6e2 Comma Pedal: Flashing the Firmware]''' by [https://medium.com/@jfrux @jfrux]
 +
 +
'''[https://medium.com/@jfrux/comma-pedal-installing-in-your-vehicle-5f3592eff9ed Comma Pedal: Installing in Your Vehicle]''' by [https://medium.com/@jfrux @jfrux]

Revision as of 17:59, 7 May 2019

The Comma Pedal is used to provide acceleration and regen braking capability on Tesla cars running Openpilot that do not have iBooster installed.

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

The Comma Pedal is connected to the Giraffe on CAN3-EPAS usually using a Y adapter (that you have to make).

What it Does

The Comma Pedal has 4 main systems:

  1. 2 Analog to Digital Convertors
    • This is used to read the voltage from the car's accelerator pedal into the Comma Pedal's processor. The accelerator pedal produces an output Voltage between 0 and 5 Volts.
  2. 2 Digital to Analog Convertors
    • This is used to send voltage back to the car's DU as if the accelerator 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 Tesla Giraffe on CAN3.
  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 accelerator pedal and just passes it along to the DU.

When Openpilot IS engaged with longitudinal control, the Comma Pedal gets accelerator commands from Openpilot and emulates a accelerator pedal to the DU.

The Comma Pedal is constantly sending the physical accelerator 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. Perhaps someone will begin selling them, but for now, 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 EON 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