Skip to content

Python library to read steering wheel angles and more from a Ford car over OBD

Notifications You must be signed in to change notification settings

dheera/python-fordreader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

python-fordreader

Reads extended PID attributes from an OBD device connected to a Ford car, including steering wheel angle and more, that you would not normally get from the standard OBD PIDs.

Example usage:

#!/usr/bin/env python3

f = FordReader(port = "/dev/ttyUSB0", baudrate = 500000)
while True:
    print("rpm", f.read_obdii_rpm())
    print("speed", f.read_obdii_vehicle_speed())
    print("total_distance", f.read_obdii_total_distance())

Avoid switching back and forth between multiple modules. For example, if you need to read steering wheel angle and speed, instead of reading steering wheel angle from the SAS module and speed from the OBDII module, you can read both from the ABS module as follows (although the ABS reported speed has less precision than the OBDII reported speed):

#!/usr/bin/env python3

f = FordReader(port = "/dev/ttyUSB0", baudrate = 500000)
while True:
    print("steering angle", f.read_abs_steering_angle())
    print("speed", f.read_abs_vehicle_speed())

About

Python library to read steering wheel angles and more from a Ford car over OBD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages