Table of Contents

PyCosworth Configuration

PyCosworth is a combination of code-reader/sensor reader, data logger and digital dashboard.

The software can be configured to enable or disable most of those options.

Main Configuration File

Configuration for all aspects of the software are held in the file

libs/settings.py

The configuration file is divided up in to several sections:

Scroll down to see the available configuration options and recommended settings.

Enable Programme Features

Main modules

This section enables or disables the modules of the software which are activated at run-time.

Note: All of the modules run in their own process and communicate their state, so whilst the GraphicsIO module is running, all of the other modules are not blocked from using the processor. The main reason is that the SensorIO module is always running in the background, gathering sensor readings, and is never blocked from running by one of the other modules. For this reason, it is highly recommended that the software be run on a multi-core device such as a Raspberry Pi 3.

Customisation of modules

Some of the module have additional major functionality that can be enabled or disabled - for example, activating certain types of additional sensors or display modes.

Debug messages

By default, only warnings and errors are output whilst the software is running. However, for debugging, either or both of these options can be set and will result in a lot more output from the software about what it is doing.

For most of the time, both items are best left as False in production mode.

Module Configuration

Sensor Information

Cosworth ECU Settings

Only valid if USE_COSWORTH is set to True.

* COSWORTH_ECU_USB

AEM Wideband AFR Settings

Only valid if USE_AEM is set to True.

Graphics / OLED Display Settings

These settings are only valid if the USE_GRAPHICS setting is set to True. They control how the emulated screen and the physical OLED screen behave, the sensors which are shown and/or their sizes and resolutions.

* GFX_MASTER_SIZE

* GFX_BOOT_LOGO

* GFX_SLEEP_TIME

* GFX_MASTER_WINDOW

* GFX_FONTS

Datalogger Settings

Datalogger settings are only valid if the USE_DATALOGGER variable is set to True. These settings configure how the data logging portion of the application works, including the name and location of where sensor data logs are stored.

Watchdog Timer Settings

Watchdog timer settings are only relevant if the USE_PI_WATCHDOG variable is set to True. These settings configure how the Pi interacts with and responds to status information from the Super Watchdog V2 addon.


Back to main PyCosworth page.