Skip to content

Create a "trip mode" for Chevy volt using a Raspberry Pi and a Panda from Comma AI to auto switch between "normal" and "hold mode" on long trips

License

Notifications You must be signed in to change notification settings

vix597/chevy-volt-trip-mode

Repository files navigation

Chevy Volt Trip Mode

I Created a "trip mode" for my Chevy volt using a Raspberry Pi and a Panda from Comma AI to auto switch between "normal" and "hold mode" on long trips. See the associated blog post for more information, hardware list, and more detailed setup/usage information.

Installation

Tested with Python 3.8 64-bit on Raspbian on a Raspberry Pi 4B, connected to a Gray Panda from Comma AI plugged into the OBD-II port on a 2017 Chevy Volt. More details in the blog post.

  1. See the hardware list from the associated blog post for more information on required hardware and installation.
  2. On a Raspberry Pi with Python 3.8 and Raspbian, create a virtual environment: python -m venv ./venv
  3. Activate the environment: source ./venv/bin/activate
  4. Install the dependencies: pip install -r requirements.txt
  5. Run the app: python tripmode.py

Auto-Start

  1. Create the file /etc/xdg/autostart/tripmode.desktop
  2. Add the contents:
[Desktop Entry]

Name=ChevyVoltTripMode

Exec=/usr/bin/python /home/pi/tripmode.py
  1. Reboot

TODO

  1. Create a safety model for the Panda that only allows what we need to be sent on the CAN bus
  2. GUI improvements: Bigger buttons, center the GUI
  3. setup.py and wheel distributions maybe
  4. Configurable trigger speed

About

Create a "trip mode" for Chevy volt using a Raspberry Pi and a Panda from Comma AI to auto switch between "normal" and "hold mode" on long trips

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages