Thanks to visit codestin.com
Credit goes to github.com

Skip to content

wowy/pi-telemetry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pi-telemetry

Gathers telemetry via CAN BUS from a Haltech ECU and writes to a file.

Eventually, this data will be transmitted via APRS using Direwolf.

Requirements

Hardware

Software

  • Python 3.9+
  • Python dependencies are declared in pyproject.toml. To install runtime dependencies:
    • On Raspberry Pi OS
      • sudo apt install python3-can
    • Using pip:
      • Runtime only: pip install .
      • Development (adds Black): pip install -e .[dev]
  • Add the following lines to your Raspberry Pi boot config (/boot/firmware/config.txt), then reboot.
    dtparam=spi=on
    dtoverlay=mcp2515-can0,oscillator=12000000,interrupt=25,spimaxfrequency=1000000
    

Usage

./startup.sh

This will write the data to a file, telemetry_data.csv, with a single line of values. Feel free to modify this to suit your needs; I only want the latest values for parsing using Direwolf to send via APRS.

Example output

coolant_temp_celsius,oil_temp_celsius,fuel_level_gallons,abs_error,check_engine
15.35,20.55,2.91,False,False

Resources

About

Gathers telemetry via CAN BUS, and sends over APRS

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors